当前位置: 首页>>代码示例>>PHP>>正文


PHP printCustomSizedImage函数代码示例

本文整理汇总了PHP中printCustomSizedImage函数的典型用法代码示例。如果您正苦于以下问题:PHP printCustomSizedImage函数的具体用法?PHP printCustomSizedImage怎么用?PHP printCustomSizedImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了printCustomSizedImage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printUserSizeImage

/**
 * prints the image according to the size chosen
 *
 * @param string $alt alt text for the img src Tag
 * @param string $default the default (initial) value for the image sizing
 * @param string $class if not empty will be used as the image class tag
 * @param string $id if not empty will be used as the image id tag
 */
function printUserSizeImage($alt, $default = NULL, $class = NULL, $id = NULL)
{
    $size = $width = $height = NULL;
    getViewerImageSize($default, $size, $width, $height);
    if (empty($size)) {
        printCustomSizedImageMaxSpace($alt, $width, $height, $class, $id);
    } else {
        printCustomSizedImage($alt, $size, $width, $height, NULL, NULL, NULL, NULL, $class, $id, false);
    }
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:18,代码来源:viewer_size_image.php

示例2: printCustomSizedImage

</div>
<div class="wrapper">
	<div class="container">
		<?php 
$nextimg = $_zp_current_image->getNextImage();
$previmg = $_zp_current_image->getPrevImage();
?>
		<div class="ten columns">
			<div class="image-wrap" id="image">
				<?php 
if ($zpskel_ismobile) {
    $size = 420;
} else {
    $size = 630;
}
printCustomSizedImage(getBareImageTitle(), $size, null, null, null, null, null, null, 'remove-attributes');
?>
				<?php 
if ($nextimg) {
    ?>
					<a class="mobile-nav next" href="<?php 
    echo html_encode(getNextImageURL());
    ?>
#image" title="<?php 
    echo gettext("Next Image");
    ?>
">&raquo;</a>
				<?php 
}
if ($previmg) {
    ?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php

示例3: printCustomSizedImageMaxHeight

/**
 * This function is considered deprecated. 
 * Please use the new replacement get/printCustomSizedImageMaxSpace(). 
 * 
 * Prints out a sized image up to $maxheight tall (as width the value set in the admin option is taken)
 *
 * @param int $maxheight how bif the picture should be
 */
function printCustomSizedImageMaxHeight($maxheight)
{
    trigger_error(gettext('printCustomSizedImageMaxHeight is deprecated. Use printCustomSizedImageMaxSpace().'), E_USER_NOTICE);
    if (getFullWidth() === getFullHeight() or getDefaultHeight() > $maxheight) {
        printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
    } else {
        printDefaultSizedImage(getImageTitle());
    }
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:17,代码来源:template-functions.php

示例4: printCustomSizedImageMaxHeight

/**
 * @deprecated
 */
function printCustomSizedImageMaxHeight($maxheight)
{
    deprecated_function_notify(gettext('Use printCustomSizedImageMaxSpace().'));
    if (getFullWidth() === getFullHeight() or getDefaultHeight() > $maxheight) {
        printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
    } else {
        printDefaultSizedImage(getImageTitle());
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:12,代码来源:deprecated-functions.php

示例5: html_encode

echo $wide . $high;
?>
>
			<div id="pic_day">
				<?php 
if ($randomImage) {
    ?>
					<a href="<?php 
    echo html_encode(getGalleryIndexURL());
    ?>
" title="<?php 
    echo gettext('Albums Index');
    ?>
">
						<?php 
    printCustomSizedImage(gettext('Visit the image gallery'), $size);
    ?>
					</a>
					<?php 
} else {
    echo '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/zen-logo.png" width="310" height="90" alt="' . gettext('There were no images from which to select the random heading.') . '" />';
}
?>
			</div>
			<?php 
if (!$zenpage) {
    ?>
				<p align="center">
					<a href="<?php 
    echo html_encode(getGalleryIndexURL());
    ?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:indexpage.php

示例6: html_encode

            // reset to start with a again;
            break;
    }
    ?>
				<a class="image<?php 
    echo $imgclass;
    ?>
" href="<?php 
    echo html_encode(getImageURL());
    ?>
" title="<?php 
    printBareImageTitle();
    ?>
">
					<?php 
    printCustomSizedImage(getAnnotatedImageTitle(), NULL, 230, 230, 230, 230, NULL, NULL, NULL, NULL, true, NULL);
    ?>
				</a>
			<?php 
}
?>
		</div>
		<br class="clearall" />
		<?php 
if (hasPrevPage() || hasNextPage()) {
    printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7);
}
if (function_exists('printSlideShowLink')) {
    echo '<span id="slideshowlink">';
    printSlideShowLink();
    echo '</span>';
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:album.php

示例7: getImageTitle

                            echo getImageTitle();
                            ?>
</h3>
								<p><?php 
                            echo getImageDesc();
                            ?>
</p>
								<a href="<?php 
                            echo htmlspecialchars(getImageLinkURL());
                            ?>
" title="<?php 
                            echo getBareImageTitle();
                            ?>
" class="open"></a>
								<?php 
                            printCustomSizedImage(getImageTitle(), null, 540, null, null, null, null, null, 'full');
                            ?>
								<?php 
                            printImageThumb(getImageTitle(), 'thumbnail');
                            ?>
							</div>
							<?php 
                        }
                    }
                    ?>

						</div> <!-- smoothImages -->
						<?php 
                    if (!$show) {
                        if ($imagePage) {
                            $url = htmlspecialchars(getPageURL(getTotalPages(true)));
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:album.php

示例8: zp_side_bar

		<?php 
zp_side_bar();
?>

	<div id="image_left">

		<div class="image_container">
			<a class="thickbox" href="<?php 
echo getFullImageURL();
?>
" title="<?php 
echo getImageTitle();
?>
"> <?php 
printCustomSizedImage("", 480, "");
?>
</a>
		</div>
		<div id="narrow">
		<?php 
if (function_exists('printCommentForm')) {
    printCommentForm();
}
?>
		</div>
	</div>

<?php 
zp_footer();
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:image.php

示例9: printCustomSizedImage

?>
	<div id="padbox">
	<div id="image" class="imageit">
		<?php 
if ($width < 650) {
    printCustomSizedImage('', 600);
} else {
    ?>
		<a href="<?php 
    echo getFullImageURL();
    ?>
" title="<?php 
    echo getImageTitle();
    ?>
"> <?php 
    printCustomSizedImage('', 600);
    ?>
</a> 
		<?php 
}
?>
  	</div>
	<div id="tools">
		<?php 
if (hasPrevImage()) {
    ?>
		<a href="<?php 
    echo getPrevImageURL();
    ?>
"><span class="prev"></span></a>
		<?php 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php

示例10: while

					</ul>
					<div class="l_clear"></div>
					<ul class="album">
						<?php 
while (next_image()) {
    ?>
						<li class="grid_5">
							<a href="<?php 
    echo html_encode(getImageURL());
    ?>
" title="<?php 
    echo getAnnotatedImageTitle();
    ?>
">
								<?php 
    printCustomSizedImage(getAnnotatedImageTitle(), NULL, 376, 140, 376, 140, NULL, NULL, NULL, NULL, true, NULL);
    ?>
							</a>
							<span><?php 
    echo getAnnotatedImageTitle();
    ?>
</span>
						</li>
						<?php 
}
?>
					</ul>
				</div>
				<div class="clear"></div>
				<?php 
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »", false, true, 'pagelist', null, true, 5);
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:search.php

示例11: getRandomImages

    for ($i = 1; $i <= 5; $i++) {
        $randomImage = getRandomImages();
        if (is_object($randomImage) && $randomImage->exists) {
            makeImageCurrent($randomImage);
        }
        ?>
						<li>
							<a href="<?php 
        echo html_encode(getCustomPageURL('gallery'));
        ?>
" title="<?php 
        html_encode(gettext('Gallery'));
        ?>
">
						<?php 
        printCustomSizedImage(gettext('Gallery'), null, 780, 400, 780, 400);
        ?>
							</a>
						</li>
	<?php 
    }
    ?>
				</ul>
			</div>
		</div>
<?php 
} else {
    ?>
		<div class="span10 offset1">
			<div class="flexslider">
				<img src="<?php 
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:home.php

示例12: getNextImageURL

		echo "</li>\n";
	}
*/
if (hasNextImage()) {
    $link = getNextImageURL();
} else {
    $link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Next Image\">&raquo;</a></li>";
?>
		</ul>
	</div>

	<div id="imageList">
		<?php 
printCustomSizedImage(getImageTitle(), 320);
?>
	</div>

	<div id="text">
	   <?php 
printImageDesc(true);
?>
		<div id="commentbox">
		<?php 
if (function_exists('printCommentForm')) {
    printCommentForm();
}
?>

开发者ID:Imagenomad,项目名称:Unsupported,代码行数:29,代码来源:image.php

示例13: printCustomSizedImageMaxSpace

/**
 * Print normal video or un-cropped within the given height and width dimensions. Use for sized images or thumbnails in an album.
 * Note: a class of 'not_visible' or 'password_protected' will be added as appropriate
 *
 * @param string $alt Alt text for the url
 * @param int $width width
 * @param int $height height
 * @param string $class Optional style class
 * @param string $id Optional style id
 */
function printCustomSizedImageMaxSpace($alt, $width, $height, $class = NULL, $id = NULL, $thumb = false)
{
    global $_zp_current_image;
    if (is_null($_zp_current_image)) {
        return;
    }
    getMaxSpaceContainer($width, $height, $_zp_current_image, $thumb);
    printCustomSizedImage($alt, NULL, $width, $height, NULL, NULL, NULL, NULL, $class, $id, $thumb);
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:19,代码来源:template-functions.php

示例14: printCustomSizedImage

                printCustomSizedImage(getAnnotatedImageTitle(), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), null, null, 'remove-attributes', null, true);
            } else {
                printImageThumb(getBareImageTitle(), 'remove-attributes');
            }
        } else {
            ?>
							<a href="<?php 
            echo html_encode(getImageURL());
            ?>
" title="<?php 
            printBareImageTitle();
            ?>
">
								<?php 
            if (getOption('thumb_crop')) {
                printCustomSizedImage(getAnnotatedImageTitle(), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), null, null, 'remove-attributes', null, true);
            } else {
                printImageThumb(getBareImageTitle(), 'remove-attributes');
            }
            ?>
							</a>
							<?php 
        }
        ?>
							<?php 
        if (getOption('zpbase_magnific_masonry') || getOption('zpbase_nodetailpage')) {
            if (getOption('zpbase_magnific_target') == 'imagepage') {
                ?>
							<a class="masonry-image-popup" href="<?php 
                echo html_encode(getImageURL());
                ?>
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-masonry.php

示例15: printCustomSizedImage

            ?>
					<div class="sdscroll-item">
						<?php 
            if (getOption('zpbase_nodetailpage')) {
                printCustomSizedImage(getBareImageTitle(), null, null, getOption('zpbase_sds_maxheight'), null, null, null, null, 'remove-attributes', null, true);
            } else {
                ?>
						<a href="<?php 
                echo html_encode(getImageURL());
                ?>
" title="<?php 
                printBareImageTitle();
                ?>
">
							<?php 
                printCustomSizedImage(getBareImageTitle(), null, null, getOption('zpbase_sds_maxheight'), null, null, null, null, 'remove-attributes', null, true);
                ?>
						</a>
						<?php 
            }
            ?>
						<?php 
            if ((getOption('zpbase_magnific_sds') || getOption('zpbase_nodetailpage')) && isImagePhoto($_zp_current_image)) {
                ?>
 
						<a title ="<?php 
                echo getBareImageTitle();
                ?>
" class="image-popup" <?php 
                if (!getOption('zpbase_nodetailpage')) {
                    ?>
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-sdscroll.php


注:本文中的printCustomSizedImage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。