本文整理汇总了PHP中printCustomSizedImage函数的典型用法代码示例。如果您正苦于以下问题:PHP printCustomSizedImage函数的具体用法?PHP printCustomSizedImage怎么用?PHP printCustomSizedImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printCustomSizedImage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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");
?>
">»</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\">»</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
示例16: getFullImageURL
$fullimage = getFullImageURL();
} else {
$fullimage = NULL;
}
if (!empty($fullimage)) {
?>
<a href="<?php
echo html_encode(pathurlencode($fullimage));
?>
" title="<?php
printBareImageTitle();
?>
" class="thickbox">
<?php
}
printCustomSizedImage(getImageTitle(), null, 520);
if (!empty($fullimage)) {
?>
</a>
<?php
}
?>
</div>
<?php
if (function_exists('printAddToFavorites')) {
printAddToFavorites($_zp_current_image);
}
@call_user_func('printRating');
@call_user_func('printCommentForm');
printCodeblock(2);
footer();
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:image.php
示例17: htmlspecialchars
echo $_zp_themeroot;
?>
/images/shout.png" alt="Comments" /></a>
<?php
}
?>
</div>
<a class="thumb" href="<?php
echo htmlspecialchars(getImageURL());
?>
" title="<?php
echo getBareImageTitle();
?>
">
<?php
printCustomSizedImage(getBareImageTitle(), null, 120, 160, 120, 160, null, null, 'thumb', null, true);
?>
</a>
<?php
}
?>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
?>
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:30,代码来源:album.php
示例18: html_encode
<div class="image-block" style="width:<?php
echo $zpmas_image_size;
?>
px;height:<?php
echo $zpmas_image_size;
?>
px;">
<div class="back">
<a class="thumb-link" href="<?php
echo html_encode(getImageURL());
?>
" title="<?php
echo getBareImageTitle();
?>
"><?php
printCustomSizedImage(getAnnotatedImageTitle(), null, $zpmas_image_size, $zpmas_image_size, $zpmas_image_size, $zpmas_image_size, null, null, null, null, true);
?>
</a>
</div>
<?php
if (!isImageVideo()) {
?>
<div class="overlay">
<a class="zpmas-cb" href="<?php
if ($zpmas_cbtarget) {
echo htmlspecialchars(getDefaultSizedImage());
} else {
echo htmlspecialchars(getUnprotectedImageURL());
}
?>
" title="<?php
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php
示例19: zenpageAlbumImage
/**
* support to show an image from an album
* The imagename is optional. If absent the album thumb image will be
* used and the link will be to the album. If present the link will be
* to the image.
*
* @param string $albumname
* @param string $imagename
* @param int $size the size to make the image. If omitted image will be 50% of 'image_size' option.
* @param bool $linkalbum set true to link specific image to album instead of image
*/
function zenpageAlbumImage($albumname, $imagename = NULL, $size = NULL, $linkalbum = false)
{
global $_zp_gallery;
echo '<br />';
$album = newAlbum($albumname);
if ($album->loaded) {
if (is_null($size)) {
$size = floor(getOption('image_size') * 0.5);
}
$image = NULL;
if (is_null($imagename)) {
$linkalbum = true;
$image = $album->getAlbumThumbImage();
} else {
$image = newImage($album, $imagename);
}
if ($image && $image->loaded) {
makeImageCurrent($image);
if ($linkalbum) {
rem_context(ZP_IMAGE);
echo '<a href="' . html_encode($album->getLink()) . '" title="' . sprintf(gettext('View the %s album'), $albumname) . '">';
add_context(ZP_IMAGE);
printCustomSizedImage(sprintf(gettext('View the album %s'), $albumname), $size);
rem_context(ZP_IMAGE | ZP_ALBUM);
echo '</a>';
} else {
echo '<a href="' . html_encode(getImageURL()) . '" title="' . sprintf(gettext('View %s'), $imagename) . '">';
printCustomSizedImage(sprintf(gettext('View %s'), $imagename), $size);
rem_context(ZP_IMAGE | ZP_ALBUM);
echo '</a>';
}
} else {
?>
<span style="background:red;color:black;">
<?php
printf(gettext('<code>zenpageAlbumImage()</code> did not find the image %1$s:%2$s'), $albumname, $imagename);
?>
</span>
<?php
}
} else {
?>
<span style="background:red;color:black;">
<?php
printf(gettext('<code>zenpageAlbumImage()</code> did not find the album %1$s'), $albumname);
?>
</span>
<?php
}
}
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:61,代码来源:zenpage-template-functions.php
示例20: printCustomSizedImage
$wide = '';
} else {
$wide = "style=\"width:" . ($w + 22) . "px;\"";
}
?>
<div class="main" <?php
echo $wide;
?>
>
<?php
if ($show = !checkForPassword()) {
?>
<p id="photo">
<strong>
<?php
printCustomSizedImage(getImageTitle(), null, $ls ? 480 : null, $ls ? null : 480);
?>
</strong>
</p>
<?php
}
?>
</div>
<?php
if ($show) {
?>
<div id="meta">
<ul>
<li class="count"><?php
if (($num = getNumImages()) > 1) {
printf(gettext('%1$u of %2$u photos'), imageNumber(), getNumImages());
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:image.php
注:本文中的printCustomSizedImage函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论