本文整理汇总了PHP中getNumImages函数的典型用法代码示例。如果您正苦于以下问题:PHP getNumImages函数的具体用法?PHP getNumImages怎么用?PHP getNumImages使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getNumImages函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getImage_AlbumCount
function getImage_AlbumCount()
{
$c = getNumSubalbums();
if ($c > 0) {
$result = "\n " . sprintf(gettext("%u albums(s)"), $c);
} else {
$result = '';
}
$c = getNumImages();
if ($c > 0) {
$result .= "\n " . sprintf(gettext("%u images(s)"), $c);
}
return $result;
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:14,代码来源:customfunctions.php
示例2: ji_show_thumb
function ji_show_thumb()
{
/*
$cw - crop width
$ch - crop height
$iw - image width
$ih - image height
*/
$iw = $cw = THM_WIDTH;
$ih = $ch = THM_HEIGHT;
?>
<li>
<a href="<?php
echo getAlbumURL();
?>
"
title="<?php
echo getAlbumTitle();
?>
"><img
src="<?php
echo getCustomAlbumThumb(null, $iw, $ih, $cw, $ch);
?>
"
alt="<?php
echo getAlbumTitle();
?>
"
width="<?php
echo $iw;
?>
" height="<?php
echo $ih;
?>
" />
<span><?php
echo getNumImages() . ' images';
if (getAlbumDesc() == '') {
echo '<br /><br />[' . getAlbumTitle() . ']';
} else {
echo '<br /><br />' . getAlbumDesc();
}
?>
</span></a>
</li>
<?php
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:47,代码来源:functions.php
示例3: loadAlbum
function loadAlbum($album)
{
global $gallery, $_zp_current_album, $_zp_current_image;
$subalbums = $album->getSubAlbums();
$count = 0;
foreach ($subalbums as $folder) {
$subalbum = new Album($gallery, $folder);
$count = $count + loadAlbum($subalbum);
}
$_zp_current_album = $album;
if (getNumImages() > 0) {
echo "<br />" . $album->name . "{";
while (next_image(true)) {
if (isImagePhoto($_zp_current_image)) {
echo '<img src="' . getImageThumb() . '" height="8" width="8" /> | <img src="' . getDefaultSizedImage() . '" height="20" width="20" />' . "\n";
} else {
echo '<img src="' . getImageThumb() . '" height="8" width="8" /> | ';
}
$count++;
}
echo "}<br/>\n";
}
return $count;
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:24,代码来源:admin-cache-images.php
示例4: html_encode
?>
</a></h3>
<a href="<?php
echo html_encode(getAlbumLinkURL());
?>
" title="<?php
printf(gettext("View album: %s"), getAnnotatedAlbumTitle());
?>
" class="img"><?php
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, ALBUM_THUMB_WIDTH, ALBUM_THUMB_HEIGHT, ALBUM_THUMB_WIDTH, ALBUM_THUMB_HEIGHT);
?>
</a>
<p>
<?php
$anumber = getNumAlbums();
$inumber = getNumImages();
if ($anumber > 0 || $inumber > 0) {
echo '<p><em>(';
if ($anumber == 0) {
if ($inumber != 0) {
printf(ngettext('%u image', '%u images', $inumber), $inumber);
}
} else {
if ($anumber == 1) {
if ($inumber > 0) {
printf(ngettext('1 album, %u image', '1 album, %u images', $inumber), $inumber);
} else {
printf(gettext('1 album'));
}
} else {
if ($inumber == 1) {
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:index.php
示例5: html_encode
echo html_encode(getNextImageURL());
?>
" title="<?php
echo gettext("Next Image");
?>
"><?php
echo gettext("next");
?>
»</a><?php
}
?>
<span title="<?php
echo gettext('Image Number/Total images');
?>
"><?php
echo imageNumber() . '/' . getNumImages();
?>
</span>
</div>
<div class="sidebar-divide">
<div id="full-image-details">
<h2><?php
printImageTitle(true);
?>
</h2>
<div class="sidebar-section"><?php
printImageDate('', '', null, true);
?>
</div>
<?php
if (getImageDesc() || zp_loggedin()) {
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php
示例6: printSlideShowLink
/**
* Prints a link to call the slideshow (not shown if there are no images in the album)
* To be used on album.php and image.php
* A CSS id names 'slideshowlink' is attached to the link so it can be directly styled.
*
* If the mode is set to "jQuery Colorbox" and the Colorbox plugin is enabled this link starts a Colorbox slideshow
* from a hidden HTML list of all images in the album. On album.php it starts with the first always, on image.php with the current image.
*
* @param string $linktext Text for the link
* @param string $linkstyle Style of Text for the link
*/
function printSlideShowLink($linktext = NULL, $linkstyle = Null)
{
global $_zp_gallery, $_zp_current_image, $_zp_current_album, $_zp_current_search, $slideshow_instance, $_zp_gallery_page;
if (is_null($linktext)) {
$linktext = gettext('View Slideshow');
}
if (empty($_GET['page'])) {
$pagenr = 1;
} else {
$pagenr = sanitize_numeric($_GET['page']);
}
$slideshowhidden = '';
$numberofimages = 0;
if (in_context(ZP_SEARCH)) {
$imagenumber = '';
$imagefile = '';
$albumnr = 0;
$slideshowlink = rewrite_path(_PAGE_ . '/slideshow', "index.php?p=slideshow");
$slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
} else {
if (in_context(ZP_IMAGE)) {
$imagenumber = imageNumber();
$imagefile = $_zp_current_image->filename;
} else {
$imagenumber = '';
$imagefile = '';
}
if (in_context(ZP_SEARCH_LINKED)) {
$albumnr = -$_zp_current_album->getID();
$slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
} else {
$albumnr = $_zp_current_album->getID();
}
if ($albumnr) {
$slideshowlink = rewrite_path(pathurlencode($_zp_current_album->getFileName()) . '/' . _PAGE_ . '/slideshow', "index.php?p=slideshow&album=" . urlencode($_zp_current_album->getFileName()));
} else {
$slideshowlink = rewrite_path(_PAGE_ . '/slideshow', "index.php?p=slideshow");
$slideshowhidden = '<input type="hidden" name="favorites_page" value="1" />' . "\n" . '<input type="hidden" name="title" value="' . $_myFavorites->instance . '" />';
}
}
$numberofimages = getNumImages();
$option = getOption('slideshow_mode');
switch ($option) {
case 'jQuery':
if ($numberofimages > 1) {
?>
<form name="slideshow_<?php
echo $slideshow_instance;
?>
" method="post" action="<?php
echo zp_apply_filter('getLink', $slideshowlink, 'slideshow.php', NULL);
?>
">
<?php
echo $slideshowhidden;
?>
<input type="hidden" name="pagenr" value="<?php
echo html_encode($pagenr);
?>
" />
<input type="hidden" name="albumid" value="<?php
echo $albumnr;
?>
" />
<input type="hidden" name="numberofimages" value="<?php
echo $numberofimages;
?>
" />
<input type="hidden" name="imagenumber" value="<?php
echo $imagenumber;
?>
" />
<input type="hidden" name="imagefile" value="<?php
echo html_encode($imagefile);
?>
" />
<?php
if (!empty($linkstyle)) {
echo '<p style="' . $linkstyle . '">';
}
?>
<a class="slideshowlink" id="slideshowlink_<?php
echo $slideshow_instance;
?>
" href="javascript:document.slideshow_<?php
echo $slideshow_instance;
?>
.submit()"><?php
echo $linktext;
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:slideshow.php
示例7: 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
示例8: while
<div id="main"<?php
if ($zpmin_switch) {
echo ' class="switch"';
}
?>
>
<div id="albums-wrap">
<?php
while (next_album()) {
?>
<div class="album-maxspace">
<a class="thumb-link" href="<?php
echo html_encode(getAlbumURL());
?>
" title="<?php
echo getNumAlbums() . ' ' . gettext('subalbums') . ' / ' . getNumImages() . ' ' . gettext('images') . ' - ' . strip_tags(shortenContent(getBareAlbumDesc(), 300, '...'));
?>
">
<?php
if ($zpmin_thumb_crop) {
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, $zpmin_album_thumb_size, $zpmin_album_thumb_size, $zpmin_album_thumb_size, $zpmin_album_thumb_size);
} else {
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), $zpmin_album_thumb_size);
}
?>
<span class="album-title"><?php
echo shortenContent(getBareAlbumTitle(), 25, '...');
?>
</span>
</a>
</div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php
示例9: getGalleryTitle
?>
">
<?php
echo getGalleryTitle();
?>
</a> |
<?php
echo "<em>" . gettext("Search") . "</em>";
?>
</span></h2>
</div>
<hr />
<?php
if (($total = getNumImages() + getNumAlbums()) > 0) {
if (isset($_REQUEST['date'])) {
$searchwords = getSearchDate();
} else {
$searchwords = getSearchWords();
}
echo "<p>" . sprintf(gettext('Total matches for <em>%1$s</em>: %2$u'), $searchwords, $total) . '</p>';
}
$c = 0;
?>
<div id="albums">
<?php
while (next_album()) {
$c++;
?>
<div class="album">
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:search.php
示例10: printRSSLink
}
?>
</ul>
<div class="galleryinfo">
<p>Feed for this album: <?php
printRSSLink('Album', '', '', '', true, 'i');
?>
</p>
<?php
$params = $_zp_current_search->getSearchParams();
if (!empty($params)) {
if ($results != "0") {
if ($firstImage + $lastImage != 0) {
echo '<em class="count">';
printf(gettext('Photos %1$u-%2$u of %3$u'), $firstImage, $lastImage, getNumImages());
echo "</em>";
if (function_exists('printSlideShowLink')) {
printSlideShowLink(gettext('View Slideshow'));
}
}
?>
<?php
if (hasPrevPage()) {
?>
<a href="<?php
echo htmlspecialchars(getPrevPageURL());
?>
" accesskey="x">« <?php
echo gettext('prev page');
?>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:search.php
示例11: getTags
</div>
<?php
$singletag = getTags();
$tagstring = implode(', ', $singletag);
if (strlen($tagstring) > 0) {
?>
<div class="tags"><i class="fa fa-tags fa-fw"></i> <?php
printTags('links', '', 'taglist', ', ');
?>
</div>
<?php
}
?>
<?php
if (function_exists('printSlideShowLink') && getNumImages() > 1) {
?>
<hr /><div class="slideshow-link"><i class="fa fa-play fa-fw"></i> <?php
printSlideShowLink();
?>
</div><?php
}
?>
<hr />
<?php
if ($_zp_gallery_page == 'album.php') {
if (class_exists('RSS') && getOption('RSS_album_image')) {
?>
<div><i class="fa fa-rss fa-fw"></i> <?php
printRSSLink('Collection', '', gettext('Album RSS'), '', false);
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:album.php
示例12: printThumbNav
/** Prints the jQuery jCarousel HTML setup to be replaced by JS
*
* @param int $minitems The minimum number of thumbs to be visible always if resized regarding responsiveness.
* @param int $maxitems not supported
* @param int $width Width Set to NULL if you want to use the backend plugin options.
* @param int $height Height Set to NULL if you want to use the backend plugin options.
* @param int $cropw Crop width Set to NULL if you want to use the backend plugin options.
* @param int $croph Crop heigth Set to NULL if you want to use the backend plugin options.
* @param bool $crop TRUE for cropped thumbs, FALSE for un-cropped thumbs. $width and $height then will be used as maxspace. Set to NULL if you want to use the backend plugin options.
* @param bool $fullimagelink Set to TRUE if you want the thumb link to link to the full image instead of the image page. Set to NULL if you want to use the backend plugin options.
* @param string $vertical 'horizontal','vertical', 'fade'
* @param int $speed not supported
*/
function printThumbNav($minitems = NULL, $maxitems = NULL, $width = NULL, $height = NULL, $cropw = NULL, $croph = NULL, $fullimagelink = NULL, $vertical = NULL, $speed = NULL, $thumbscroll = NULL)
{
global $_zp_gallery, $_zp_current_album, $_zp_current_image, $_zp_current_search, $_zp_gallery_page;
// Just incase the theme has not set the option, at least second try will work!
setOptionDefault('slideshow_' . $_zp_gallery->getCurrentTheme() . '_' . stripSuffix($_zp_gallery_page), 1);
$items = "";
if (is_object($_zp_current_album) && $_zp_current_album->getNumImages() >= 2) {
if (is_null($thumbscroll)) {
$thumbscroll = getOption('jcarousel_scroll');
} else {
$thumbscroll = sanitize_numeric($thumbscroll);
}
if (is_null($width)) {
$width = getOption('jcarousel_width');
} else {
$width = sanitize_numeric($width);
}
if (is_null($height)) {
$height = getOption('jcarousel_height');
} else {
$height = sanitize_numeric($height);
}
if (is_null($cropw)) {
$cropw = getOption('jcarousel_cropw');
} else {
$cropw = sanitize_numeric($cropw);
}
if (is_null($croph)) {
$croph = getOption('jcarousel_croph');
} else {
$croph = sanitize_numeric($croph);
}
if (is_null($fullimagelink)) {
$fullimagelink = getOption('jcarousel_fullimagelink');
} else {
$fullimagelink = sanitize($fullimagelink);
}
if (is_null($vertical)) {
$vertical = getOption('jcarousel_vertical');
} else {
$vertical = sanitize($vertical);
}
if ($vertical) {
$vertical = 'true';
} else {
$vertical = 'false';
}
if (in_context(ZP_SEARCH_LINKED)) {
if ($_zp_current_search->getNumImages() === 0) {
$searchimages = false;
} else {
$searchimages = true;
}
} else {
$searchimages = false;
}
if (in_context(ZP_SEARCH_LINKED) && $searchimages) {
$jcarousel_items = $_zp_current_search->getImages();
} else {
$jcarousel_items = $_zp_current_album->getImages();
}
if (count($jcarousel_items) >= 2) {
foreach ($jcarousel_items as $item) {
if (is_array($item)) {
$imgobj = newImage($_zp_current_album, $item['filename']);
} else {
$imgobj = newImage($_zp_current_album, $item);
}
if ($fullimagelink) {
$link = $imgobj->getFullImageURL();
} else {
$link = $imgobj->getLink();
}
if (!is_null($_zp_current_image)) {
if ($_zp_current_album->isDynamic()) {
if ($_zp_current_image->filename == $imgobj->filename && $_zp_current_image->getAlbum()->name == $imgobj->getAlbum()->name) {
$active = 'active';
} else {
$active = '';
}
} else {
if ($_zp_current_image->filename == $imgobj->filename) {
$active = 'active';
} else {
$active = '';
}
}
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:jcarousel_thumb_nav.php
示例13: getAlbumThumb
echo 'thumb: \'' . getAlbumThumb() . '\',' . "\n";
echo 'image: \'' . getCustomAlbumThumb(getOption('image_size')) . '\',' . "\n";
echo 'big: \'' . getCustomAlbumThumb(getOption('zpbase_galbigsize')) . '\',' . "\n";
echo 'title: \'' . html_encode(getBareAlbumTitle()) . '\',' . "\n";
if (getNumAlbums() > 0 && getNumImages() > 0) {
$divider = '/ ';
} else {
$divider = '';
}
if (getNumAlbums() > 0) {
$albumcount = getNumAlbums() . ' ' . gettext('albums');
} else {
$albumcount = '';
}
if (getNumImages() > 0) {
$imagecount = getNumImages() . ' ' . gettext('images');
} else {
$imagecount = '';
}
$desc1 = $albumcount . $divider . $imagecount . ' ... <a href="' . html_encode(getAlbumURL()) . '">' . gettext('Goto Album') . ' →</a>';
$desc2 = '<p>' . getBareAlbumDesc() . '</p>';
$desc2 = str_replace("\r\n", '<br />', $desc2);
$desc2 = str_replace("\r", '<br />', $desc2);
$desc = $desc1 . $desc2;
echo 'description: \'' . js_encode($desc) . '\',' . "\n";
echo 'link: \'' . html_encode(getAlbumURL()) . '\'' . "\n";
echo '}' . "\n";
$c++;
}
}
while (next_image(true)) {
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-galleria.php
示例14: printPPSlideShowLink
/**
* Prints a link to call the prettyphoto slideshow (not shown if there are no images in the album)
* Modified from core slideshow plugin to work with prettyphoto (http://www.no-margin-for-errors.com)
*
* @param string $linktext Text for the link
* @param string $linkstyle Style of Text for the link
*/
function printPPSlideShowLink($linktext = '', $linkstyle = '')
{
global $_zp_gallery, $_zp_current_image, $_zp_current_album, $_zp_current_search, $slideshow_instance, $_zp_gallery_page, $zpskel_pptarget;
$numberofimages = getNumImages();
if ($numberofimages > 1) {
if (in_context(ZP_SEARCH_LINKED) && !in_context(ZP_ALBUM_LINKED) || in_context(ZP_SEARCH) && is_null($_zp_current_album)) {
$images = $_zp_current_search->getImages(0);
} else {
$images = $_zp_current_album->getImages(0);
}
$count = '';
foreach ($images as $image) {
if (is_array($image)) {
$suffix = getSuffix($image['filename']);
} else {
$suffix = getSuffix($image);
}
$suffixes = array('jpg', 'jpeg', 'gif', 'png');
if (in_array($suffix, $suffixes)) {
$count++;
if (is_array($image)) {
$albobj = new Album($image['folder']);
$imgobj = newImage($albobj, $image['filename']);
} else {
$imgobj = newImage($_zp_current_album, $image);
}
if ($_zp_gallery_page == 'image.php' || in_context(ZP_SEARCH_LINKED)) {
if (in_context(ZP_SEARCH_LINKED)) {
if ($count == 1) {
$style = '';
} else {
$style = ' style="display:none"';
}
} else {
if ($_zp_current_image->filename == $image) {
$style = '';
} else {
$style = ' style="display:none"';
}
}
} elseif ($_zp_gallery_page == 'album.php' || $_zp_gallery_page == 'search.php') {
if ($count == 1) {
$style = '';
} else {
$style = ' style="display:none"';
}
}
if ($zpskel_pptarget == 'sized') {
$imagelink = $imgobj->getSizedImage(630);
} else {
$imagelink = $imgobj->getFullImage();
}
$imagedetaillink = $imgobj->getLink();
?>
<div class="ss-link noshow-mobile">
<a class="ss button" href="<?php
echo html_encode($imagelink);
?>
" rel="slideshow[group]"<?php
echo $style;
?>
title="<a href='<?php
echo $imagedetaillink;
?>
'><?php
echo html_encode(strip_tags($imgobj->getTitle())) . ' (' . gettext('Click for Detail Page') . ')';
?>
</a>"><?php
echo $linktext;
?>
</a>
</div>
<?php
}
}
}
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:84,代码来源:functions.php
示例15: pageCount
static function pageCount($count, $gallery_page, $page)
{
global $_firstPageImages, $_oneImagePage;
if (stripSuffix($gallery_page) == 'favorites') {
$albums_per_page = max(1, getOption('albums_per_page'));
$pageCount = (int) ceil(getNumAlbums() / $albums_per_page);
$imageCount = getNumImages();
if ($_oneImagePage) {
if ($_oneImagePage === true) {
$imageCount = min(1, $imageCount);
} else {
$imageCount = 0;
}
}
$images_per_page = max(1, getOption('images_per_page'));
$count = $pageCount + (int) ceil(($imageCount - $_firstPageImages) / $images_per_page);
if ($count < $page && isset($_POST['addToFavorites']) && !$_POST['addToFavorites']) {
//We've deleted last item on page, need a place to land when we return
global $_zp_page;
header('location: ' . FULLWEBPATH . '/' . $this->getLink($_zp_page - 1));
exitZP();
}
}
return $count;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:25,代码来源:favoritesClass.php
示例16: getNumAlbums
$divider = '- ';
} else {
$divider = '';
}
?>
<?php
if (getNumAlbums() > 0) {
echo getNumAlbums() . ' ' . gettext("subalbums");
}
?>
<?php
echo $divider;
?>
<?php
if (getNumImages() > 0) {
echo getNumImages() . ' ' . gettext("images");
}
?>
</div>
</div>
</div>
<?php
}
} else {
// or latest images
require_once SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/image_album_statistics.php';
$images = getImageStatistic(getOption('zpbase_galhomecount'), 'latest');
foreach ($images as $image) {
if (isImagePhoto($image)) {
makeImageCurrent($image);
?>
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-sdscroll.php
示例17: zp_side_bar
function zp_side_bar()
{
?>
<div id="sidebar">
<?php
//-------------If you are in the Image Page
if (in_context(ZP_IMAGE)) {
?>
<div class="imgnav">
<?php
if (hasPrevImage()) {
?>
<div class="imgprevious"><a href="<?php
echo getPrevImageURL();
?>
" title="Previous Image"><img src="<?php
echo getPrevImageThumb();
?>
" /><br /><small>« prev |</small></a></div>
<?php
}
if (hasNextImage()) {
?>
<div class="imgnext"><a href="<?php
echo getNextImageURL();
?>
" title="Next Image"><img src="<?php
echo getNextImageThumb();
?>
" /><br /><small>| next »</small></a></div>
<?php
}
?>
</div>
<div id="sbinfo">
<b>Album Name:</b> <?php
printAlbumTitle(true);
?>
<br />
<b>Number of Photos:</b> <?php
echo getNumImages();
?>
<br />
<b>Album Date:</b> <?php
printAlbumDate($before = "Date: ", $format = "%F");
?>
<br />
<b>Album Description:</b> <?php
printAlbumDesc(true);
?>
<br />
<b>Image Name:</b> <?php
echo getImageTitle();
?>
<br />
<b>Image Description:</b> <?php
printImageDesc(true);
?>
<br />
</div>
<?php
//--------------- If you are in the Album Page
} else {
if (in_context(ZP_ALBUM)) {
?>
<b>Album Name:</b> <?php
printAlbumTitle(true);
?>
<br />
<b>Number of Pictures:</b> <?php
echo getNumImages();
?>
<br />
<b>Album Date:</b> <?php
printAlbumDate($before = "Date: ", $format = "%F");
?>
<br />
<b>Album Description:</b> <?php
printAlbumDesc(true);
?>
<br />
<?php
//--------------- If you are in the Index Page
} else {
if (in_context(ZP_INDEX)) {
}
}
}
?>
</div>
<?php
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:93,代码来源:functions.php
示例18: printPageListWithNav
?>
<div class="pagination-nogal clearfix">
<?php
printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7);
?>
</div>
</noscript>
<!-- End of noscript display -->
<?php
} else {
include 'inc_print_image_thumb.php';
}
}
if (!(getNumImages() > 0 && getOption('use_galleriffic'))) {
?>
<div class="pagination-nogal">
<?php
printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7);
?>
</div>
<?php
}
?>
<?php
include 'inc_footer.php';
} else {
include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:favorites.php
示例19: printNofM
</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');
?>
</span>
<?php
if (isset($firstImage)) {
printNofM('Photo', $firstImage, $lastImage, getNumImages());
}
?>
</div> <!-- content -->
<?php
} else {
/* no images to display */
if (getNumAlbums() == 0) {
?>
<div id="main3">
<div id="main2">
<br />
<p align="center"><?php
echo gettext('Album is empty');
?>
</p>
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:favorites.php
示例20: getNumAlbums
?>
<ul class="album-info">
<li class="counts <?php
if ($zpmas_thumbsize == 'small' && getNumAlbums() > 0) {
echo 'smallthumbs';
}
?>
">
<?php
if (getNumAlbums() > 0) {
echo getNumAlbums() . ' ' . gettext('subalbums');
}
?>
<?php
if (getNumImages() > 0) {
echo getNumImages() . ' ' . gettext('images');
}
?>
</li>
<?php
if (strlen(getAlbumDate()) > 0) {
?>
<li class="date"><?php
printAlbumDate('');
?>
</li><?php
}
?>
<?php
if (strlen(getAlbumDesc()) > 0) {
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php
注:本文中的getNumImages函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论