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


PHP printImageThumb函数代码示例

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


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

示例1: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Colorbox section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb">
						<?php 
            if (isImagePhoto()) {
                // colorbox is only for real images
                $link = html_encode(getDefaultSizedImage()) . '" class="thickbox"';
            } else {
                $link = html_encode(getImageURL()) . '"';
            }
            ?>
						<a href="<?php 
            echo $link;
            ?>
" title="<?php 
            echo getBareImageTitle();
            ?>
">
							<?php 
            printImageThumb(getImageTitle());
            ?>
						</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:46,代码来源:functions.php

示例2: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Image page section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb"><a href="<?php 
            echo html_encode(getImageURL());
            ?>
" title="<?php 
            echo html_encode(getBareImageTitle());
            ?>
"><?php 
            printImageThumb(getImageTitle());
            ?>
</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:36,代码来源:functions.php

示例3: while

					<?php 
if (getNumImages() > 0) {
    ?>
						<div id="images">
							<?php 
    while (next_image()) {
        ?>
								<div class="image">
									<div class="imagethumb"><a href="<?php 
        echo html_encode(getImageURL());
        ?>
" title="<?php 
        printBareImageTitle();
        ?>
"><?php 
        printImageThumb(getBareImageTitle());
        ?>
</a></div>
								</div>
							<?php 
    }
    ?>
						</div>
						<br class="clearall" />
					<?php 
}
?>
					<?php 
@call_user_func('printSlideShowLink');
if ($total == 0) {
    echo "<p>" . gettext("Sorry, no matches found. Try refining your search.") . "</p>";
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php

示例4: while

					<br class="clearall">
					<div id="images">
						<?php 
    while (next_image()) {
        ?>
							<div class="image">
								<div class="imagethumb">
									<a href="<?php 
        echo html_encode(getImageURL());
        ?>
" title="<?php 
        printBareImageTitle();
        ?>
">
										<?php 
        printImageThumb(getAnnotatedImageTitle());
        ?>
									</a>
									<?php 
        printAddToFavorites($_zp_current_image, '', gettext('Remove'));
        ?>
								</div>
							</div>
							<?php 
    }
    ?>
					</div>
					<br class="clearall">
					<?php 
    @call_user_func('printSlideShowLink');
    printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:favorites.php

示例5: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Colorbox section -->
		<div id="content">
			<div id="main">
				<div id="images">
					<?php 
        $points = array();
        $firstImage = null;
        $lastImage = null;
        while (next_image()) {
            // Colorbox does not do video
            if (is_null($firstImage)) {
                $lastImage = imageNumber();
                $firstImage = $lastImage;
            } else {
                $lastImage++;
            }
            ?>
						<div class="image">
							<div class="imagethumb">
								<?php 
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            $annotate = annotateImage();
            if (isImagePhoto()) {
                // colorbox is only for real images
                echo '<a href="' . html_encode(getDefaultSizedImage()) . '" class="thickbox"';
            } else {
                echo '<a href="' . html_encode(getImageURL()) . '"';
            }
            echo " title=\"" . $annotate . "\">\n";
            printImageThumb($annotate);
            echo "</a>";
            ?>
							</div>
						</div>
						<?php 
        }
        echo '<div class="clearage"></div>';
        if (!empty($points) && $map) {
            function map_callback($map)
            {
                global $points;
                foreach ($points as $coord) {
                    addGeoCoord($map, $coord);
                }
            }
            ?>
						<div id="map_link">
						<?php 
            printGoogleMap(NULL, NULL, NULL, 'album_page', 'map_callback');
            ?>
						</div>
						<?php 
        }
        @call_user_func('printSlideShowLink', NULL, 'text-align:center;');
        ?>
				</div><!-- images -->
			<?php 
        @call_user_func('printRating');
        ?>
			</div><!-- main -->
			<div class="clearage"></div>
		<?php 
        if (isset($firstImage)) {
            printNofM('Photo', $firstImage, $lastImage, getNumImages());
        }
        ?>
		</div><!-- content -->
		<?php 
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:78,代码来源:functions.php

示例6: while

    <div id="images_tlg">
		<?php 
while (next_image()) {
    ?>

		<div class="image">
			<div id="image_box">
			<div id="image_position">
			<a href="<?php 
    echo getImageURL();
    ?>
" title="<?php 
    echo getImageTitle();
    ?>
"><?php 
    printImageThumb(getImageTitle());
    ?>
</a>
			</div>
			</div>
		</div>


		<?php 
}
?>
	<p style="margin:0px;padding:0px;clear: both; ">&nbsp;</p>
	</div>

	<?php 
printPageListWithNav("« prev", "next »");
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php

示例7: getGeoCoord

                $lastImage++;
            }
            ?>
									<div class="image">
										<div class="imagethumb">
											<?php 
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            $annotate = annotateImage();
            echo '<a href="' . html_encode(getImageURL()) . '"';
            echo " title=\"" . $annotate . "\">\n";
            printImageThumb($annotate);
            echo "</a>";
            printAddToFavorites($_zp_current_image, '', gettext('Remove'));
            ?>
										</div>
									</div>
									<?php 
        }
        echo '<div class="clearage"></div>';
        ?>
							</div><!-- images -->
						</div> <!-- main -->
						<div class="clearage"></div>
						<span style="text-align:center"><?php 
        @call_user_func('printSlideShowLink');
        ?>
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:favorites.php

示例8: while

<div class="image-wrap">
	<ul class="thumbnails">
		<?php 
while (next_image()) {
    ?>
			<li class="span3 image-thumb">
				<a class="thumbnail" rel="tooltip" href="<?php 
    echo html_encode(getImageURL());
    ?>
" title="<?php 
    echo html_encode(getBareImageTitle());
    ?>
">
					<?php 
    printImageThumb(getAnnotatedImageTitle(), 'remove-attributes');
    ?>
				</a>
			</li>
		<?php 
}
?>
	</ul>
	<script type="text/javascript">
		$('.thumbnail').tooltip({
			placement: 'bottom'
		});
	</script>
</div>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:28,代码来源:inc_print_image_thumb.php

示例9: while

 				<div id="main">
 					<div id="images">
 			<?php 
        $firstImage = null;
        $lastImage = null;
        while (next_image()) {
            if (is_null($firstImage)) {
                $lastImage = imageNumber();
                $firstImage = $lastImage;
            } else {
                $lastImage++;
            }
            echo '<div class="image">' . "\n";
            echo '<div class="imagethumb">' . "\n";
            echo '<a href="' . html_encode(getImageLinkURL()) . '" title="' . GetBareImageTitle() . '">' . "\n";
            echo printImageThumb(annotateImage()) . "</a>\n";
            echo "</div>\n";
            echo "</div>\n";
        }
        ?>
 					</div>
 					</div> <!-- main -->
		 			<div class="clearage"></div>
 					<?php 
        if (function_exists('printSlideShowLink')) {
            printSlideShowLink(gettext('View Slideshow'), 'text-align:center;');
        }
        printNofM('Photo', $firstImage, $lastImage, getNumImages());
        ?>
 					</div> <!-- content -->
	 		<?php 
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:search.php

示例10: setOption

                // wipe out any px settings for plugin, flex set in css
                setOption('osmap_height', '400px', false);
            }
        }
    }
    ?>
						<div>
							<a href="<?php 
    echo html_encode(getImageURL());
    ?>
" title="<?php 
    echo getBareImageTitle();
    ?>
">
								<?php 
    printImageThumb(null, 'check-flagthumb scale');
    ?>
							</a>
							<div class="caption caption-image">
								<?php 
    if (isImagePhoto()) {
        ?>
								<a class="swipebox image-zoom" title="<?php 
        echo html_encode('<a href="' . getImageURL() . '">' . getBareImageTitle() . '</a>');
        ?>
" href="<?php 
        echo html_encode(getDefaultSizedImage());
        ?>
"><i class="fa fa-search-plus fa-lg"></i></a>
								<?php 
    }
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:album.php

示例11: printImageThumb

                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());
                ?>
?show=imagepage" title="<?php 
                printBareImageTitle();
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-masonry.php

示例12: while

?>
				</ul>
		
				<ul class="list-inline">
					<?php 
while (next_image()) {
    ?>
						<li>
							<a href="<?php 
    echo html_encode(getImageURL());
    ?>
" title="<?php 
    printBareImageTitle();
    ?>
"><?php 
    printImageThumb(getBareImageTitle(), "img-thumbnail");
    ?>
</a>
						</li>
					<?php 
}
?>
				</ul>

				<?php 
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »", FALSE, TRUE, "pager", TRUE, 9);
printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ', ');
?>
				<br />
				<?php 
if (function_exists('printGoogleMap')) {
开发者ID:bgenere,项目名称:negpos,代码行数:31,代码来源:album.php

示例13: printImageDiv

/**
 * @deprecated
 * @since 1.4.3
 */
function printImageDiv()
{
    deprecated_functions::notify(gettext('Use printImageThumb().'));
    if (!isset($_GET['sortable'])) {
        echo '<a href="' . html_encode(getImageURL()) . '" title="' . html_encode(getImageTitle()) . '">';
    }
    printImageThumb(getImageTitle());
    if (!isset($_GET['sortable'])) {
        echo '</a>';
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:15,代码来源:deprecated-functions.php

示例14: printImageDiv

/**
 * Print the entire <div> for a thumbnail. If we are in sorting mode, then only
 * the image is inserted, if not, then the hyperlink to the image is also added.
 *
 * @author Todd Papaioannou (lucky@luckyspin.org)
 * @since  1.0.0
 */
function printImageDiv()
{
    if (!isset($_GET['sortable'])) {
        echo '<a href="' . html_encode(getImageLinkURL()) . '" title="' . html_encode(getImageTitle()) . '">';
    }
    printImageThumb(getImageTitle());
    if (!isset($_GET['sortable'])) {
        echo '</a>';
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:17,代码来源:template-functions.php


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