本文整理汇总了PHP中getPrevImageURL函数的典型用法代码示例。如果您正苦于以下问题:PHP getPrevImageURL函数的具体用法?PHP getPrevImageURL怎么用?PHP getPrevImageURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPrevImageURL函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: html_encode
</div><?php
}
?>
</div>
<div id="sidebar"<?php
if ($zpmin_switch) {
echo ' class="switch"';
}
?>
>
<div class="image-nav">
<?php
if (hasPrevImage()) {
?>
<a class="image-prev" href="<?php
echo html_encode(getPrevImageURL());
?>
" title="<?php
echo gettext("Previous Image");
?>
">« <?php
echo gettext("prev");
?>
</a><?php
}
?>
<?php
if (hasNextImage()) {
?>
<a class="image-next" href="<?php
echo html_encode(getNextImageURL());
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php
示例2: printParentBreadcrumb
printParentBreadcrumb();
printAlbumBreadcrumb();
?>
| <?php
printImageTitle();
?>
</span></h2>
</div>
<div id="imgnav_tlg">
<?php
if (hasPrevImage()) {
?>
<div style="float:left;">
<a href="<?php
echo getPrevImageURL();
?>
">« previous photo</a>
</div>
<?php
}
if (hasNextImage()) {
?>
<div style="float:right;">
<a href="<?php
echo getNextImageURL();
?>
">next photo »</a>
</div>
<?php
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php
示例3: 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
示例4: printThumbNav
<?php
if (function_exists('printjCarouselThumbNav')) {
printThumbNav(3, 50, 50, 50, 50, NULL);
} else {
?>
<div id="prev" <?php
if (hasPrevImage()) {
echo 'class="active"';
}
?>
>
<?php
if (hasPrevImage()) {
?>
<a href="<?php
echo htmlspecialchars(getPrevImageURL());
?>
">Prev</a><?php
} else {
?>
<span>Prev</span><?php
}
?>
</div>
<div id="next" <?php
if (hasNextImage()) {
echo 'class="active"';
}
?>
>
<?php
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php
示例5: html_encode
<!-- Wrap Everything -->
<div id="main4">
<div id="main2">
<!-- Wrap Header -->
<div id="galleryheader">
<div id="gallerytitle">
<!-- Image Navigation -->
<div class="imgnav">
<div class="imgprevious">
<?php
global $_zp_current_image;
if (hasPrevImage()) {
$image = $_zp_current_image->getPrevImage();
echo '<a href="' . html_encode(getPrevImageURL()) . '" title="' . html_encode($image->getTitle()) . '">« ' . gettext('prev') . '</a>';
} else {
echo '<div class="imgdisabledlink">« ' . gettext('prev') . '</div>';
}
?>
</div>
<div class="imgnext">
<?php
if (hasNextImage()) {
$image = $_zp_current_image->getNextImage();
echo '<a href="' . html_encode(getNextImageURL()) . '" title="' . html_encode($image->getTitle()) . '">' . gettext('next') . ' »</a>';
} else {
echo '<div class="imgdisabledlink">' . gettext('next') . ' »</div>';
}
?>
</div>
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:image.php
示例6: htmlspecialchars
<!-- Wrap Everything -->
<div id="main4">
<div id="main2">
<!-- Wrap Header -->
<div id="galleryheader">
<div id="gallerytitle">
<!-- Image Navigation -->
<div class="imgnav">
<div class="imgprevious">
<?php
global $_zp_current_image;
if (hasPrevImage()) {
$image = $_zp_current_image->getPrevImage();
echo '<a href="' . htmlspecialchars(getPrevImageURL()) . '" title="' . html_encode($image->getTitle()) . '">« ' . gettext('prev') . '</a>';
} else {
echo '<div class="imgdisabledlink">« ' . gettext('prev') . '</div>';
}
?>
</div>
<div class="imgnext">
<?php
if (hasNextImage()) {
$image = $_zp_current_image->getNextImage();
echo '<a href="' . htmlspecialchars(getNextImageURL()) . '" title="' . html_encode($image->getTitle()) . '">' . gettext('next') . ' »</a>';
} else {
echo '<div class="imgdisabledlink">' . gettext('next') . ' »</div>';
}
?>
</div>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:image.php
示例7: getImageData
<p class="image-copy"><i class="fa fa-copyright"></i> <?php
echo getImageData('copyright');
?>
</p><?php
}
?>
</div>
</div>
<div class="gallery-sidebar pad">
<div class="single-nav">
<?php
if (hasPrevImage()) {
?>
<a class="button prev-link" href="<?php
echo html_encode(getPrevImageURL()) . '#view';
?>
" title="<?php
echo gettext("Previous Image");
?>
"><i class="fa fa-caret-left"></i> <?php
echo gettext("Prev Image");
?>
</a>
<?php
} else {
?>
<span class="button prev-link"><i class="fa fa-caret-left"></i> <?php
echo gettext("Prev Image");
?>
</span>
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:image.php
示例8: printImageTitle
<?php
printImageTitle(true);
?>
</h2>
</div>
<div id="img_header_bg">
<div id="img_header"> </div>
</div>
</div>
<div id="navigation">
<ul>
<?php
if (hasPrevImage()) {
$link = getPrevImageURL();
} else {
$link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Previous Image\">«</a></li>\n";
/*
for ($i = 1; $i <= $totalPages; $i++) {
echo ($i == $currentPage)? '<li class="current">' : '<li>';
if ($i < 10) { $page = '0' . $i; } else { $page = $i; }
printLinkHTML(getPageURL($i), $page, "Page $page");
echo "</li>\n";
}
*/
if (hasNextImage()) {
$link = getNextImageURL();
} else {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php
示例9: getFullImageURL
'height="16" alt="left arrow" /></a></li>' . "\n";
echo "\t\t" . '<li><a href="' . getFullImageURL() . '" title="Full Size Image">' .
'<img src="' . $_zp_themeroot . '/images/arrow_out.png" width="16" ' .
'height="16" alt="arrows pointing out" /></a></li>' . "\n";
if (hasNextImage()) { $link = getNextImageURL(); } else { $link = "#"; }
echo "\t\t" . '<li id="next"><a href="' . $link . '" title="Next Image">' .
'<img src="' . $_zp_themeroot . '/images/arrow_right.png" width="16" ' .
'height="16" alt="right arrow" /></a></li>' . "\n";
*/
?>
<div id="fullplate-navigation">
<ul>
<?php
if (hasPrevImage()) {
echo "\t\t" . '<li id="previous"><a href="' . getPrevImageURL() . '" title="Previous Image"><img src="' . $_zp_themeroot . '/images/arrow_left.png" width="16" height="16" alt="left ' . 'arrow" /></a></li>' . "\n";
} else {
echo "\t\t" . '<li> </li>' . "\n";
}
if (in_context(ZP_IMAGE)) {
echo "\t\t" . '<li><a class="gallery" href="' . getFullImageURL() . '" title="Full Size Image"><img src="' . $_zp_themeroot . '/images/arrow_out.png" width="16" height="16" alt="arrows ' . 'pointing out" /></a></li>' . "\n";
} else {
echo "\t\t" . '<li> </li>' . "\n";
}
if (hasNextImage()) {
echo "\t\t" . '<li id="next"><a href="' . getNextImageURL() . '" title="Next Image"><img src="' . $_zp_themeroot . '/images/arrow_right.png" width="16" height="16" alt="right ' . 'arrow" /></a></li>' . "\n";
} else {
echo "\t\t" . '<li> </li>' . "\n";
}
?>
</ul>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php
注:本文中的getPrevImageURL函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论