• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getNextImageURL函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getPrevImageURL

		<?php 
if (hasPrevImage()) {
    ?>
		<div style="float:left;">
		<a href="<?php 
    echo getPrevImageURL();
    ?>
">&laquo; previous photo</a>
		</div>
		<?php 
}
if (hasNextImage()) {
    ?>
		<div style="float:right;">
		<a href="<?php 
    echo getNextImageURL();
    ?>
">next photo &raquo;</a>
		</div>
		<?php 
}
?>
	<p style="margin:0px;padding:0px;clear: both; ">&nbsp;</p>
	</div>


	<div id="image">



		<a class="gallery" href="<?php 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例2: htmlspecialchars

        ?>
<span>Prev</span><?php 
    }
    ?>
					</div>
					<div id="next" <?php 
    if (hasNextImage()) {
        echo 'class="active"';
    }
    ?>
>
				<?php 
    if (hasNextImage()) {
        ?>
<a href="<?php 
        echo htmlspecialchars(getNextImageURL());
        ?>
">Next</a><?php 
    } else {
        ?>
<span>Next</span><?php 
    }
    ?>
					</div>
	<?php 
}
?>
			</div>
<?php 
commentFormDisplay();
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例3: html_encode

    echo html_encode(getPrevImageURL());
    ?>
" title="<?php 
    echo gettext("Previous Image");
    ?>
">&laquo; <?php 
    echo gettext("prev");
    ?>
</a><?php 
}
?>
			<?php 
if (hasNextImage()) {
    ?>
<a class="image-next" href="<?php 
    echo html_encode(getNextImageURL());
    ?>
" title="<?php 
    echo gettext("Next Image");
    ?>
"><?php 
    echo gettext("next");
    ?>
 &raquo;</a><?php 
}
?>
			<span title="<?php 
echo gettext('Image Number/Total images');
?>
"><?php 
echo imageNumber() . '/' . getNumImages();
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php


示例4: zenPaypal

/**
 * Places a Paypal button on your form
 * 
 * @param array $pricelist optional array of specific pricing for the image.
 * @param bool $pricelistlink set to true to include link for exposing pricelist
 * @param string $text The text to place for the link (defaults to "Price List")
 * @param string $textTag HTML tag for the link text. E.g. h3, ...  
 * @param string $idtag the division ID for the price list. (NB: a div named $id appended with "_data" is
 */
function zenPaypal($pricelist = NULL, $pricelistlink = false, $text = NULL, $textTag = "l1", $idtag = "zenPaypalPricelist")
{
    if (!is_array($pricelist)) {
        $pricelist = zenPaypalPricelistFromString(getOption('zenPaypal_pricelist'));
    }
    ?>
<script language="javascript">

function paypalCalculateOrder(myform) {
	<?php 
    $sizes = array();
    $media = array();
    foreach ($pricelist as $key => $price) {
        $itemparts = explode(':', $key);
        $media[] = $itemparts[1];
        $sizes[] = $itemparts[0];
        echo 'if (myform.os0.value == "' . $itemparts[0] . '" && myform.os1.value == "' . $itemparts[1] . '") {' . "\n";
        echo 'myform.amount.value = ' . $price . ';' . "\n";
        echo 'myform.item_name.value = "' . getImageTitle() . ' - Photo Size ' . $itemparts[0] . ' - ' . $itemparts[1] . '";' . "\n";
        echo '}' . "\n";
    }
    ?>
        
}
</script>

<?php 
    $locale = getOption('locale');
    if (empty($locale)) {
        $locale = 'en_US';
    }
    ?>

<div id="BuyNow">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" name="myform">
<input type="hidden" name="on0"	value="Size"> <label>Size</label> 
	<select name="os0">
	<?php 
    $media = array_unique($media);
    $sizes = array_unique($sizes);
    foreach ($sizes as $size) {
        echo '<option value="' . $size . '" selected>' . $size . "\n";
    }
    ?>
</select> 
<input type="hidden" name="on1" value="Color"> <label><?php 
    echo gettext("Stock");
    ?>
</label>
<select name="os1">
	<?php 
    foreach ($media as $paper) {
        echo '<option value="' . $paper . '" selected>' . $paper . "\n";
    }
    ?>
</select> 
<input type="image" src="https://www.paypal.com/<?php 
    echo $locale;
    ?>
/i/btn/x-click-butcc.gif" border="0"
	name="submit" onClick="paypalCalculateOrder(this.form)"
	alt=<?php 
    gettext("Make payments with PayPal - it's fast, free and secure!");
    ?>
	class="buynow_button"> 
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?php 
    echo getOption('zenPaypal_userid');
    ?>
">
<input type="hidden" name="item_name" value="Options Change Amount"> 
<input type="hidden" name="amount" value="1.00"> 
<input type="hidden" name="shipping" value="<?php 
    echo getOption('zenPaypal_ship_cost');
    ?>
"> 
<input type="hidden" name="no_note" value="1"> 
<input type="hidden" name="currency_code" value="<?php 
    echo getOption('zenPaypal_currency');
    ?>
"> 
<input type="hidden" name="return" value="<?php 
    echo 'http://' . $_SERVER['SERVER_NAME'] . htmlspecialchars(getNextImageURL());
    ?>
">
<input type="hidden" name="cancel_return" value="<?php 
    echo 'http://' . $_SERVER['SERVER_NAME'] . htmlspecialchars(getImageLinkURL());
    ?>
">
</form>
<?php 
//.........这里部分代码省略.........
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:101,代码来源:zenPaypal.php


示例5: 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>&laquo; 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 &raquo;</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


示例6: html_encode

							<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>
						</div>

						<!-- Logo -->
						<div id="logo2">
							<?php 
printLogo();
?>
						</div>
					</div>
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:30,代码来源:image.php


示例7: htmlspecialchars

						<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()) . '">&laquo; ' . gettext('prev') . '</a>';
} else {
    echo '<div class="imgdisabledlink">&laquo; ' . 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') . ' &raquo;</a>';
} else {
    echo '<div class="imgdisabledlink">' . gettext('next') . ' &raquo;</div>';
}
?>
						</div>
					</div>

					<!-- Logo -->
					<div id="logo2">
						<?php 
printLogo();
?>
					</div>
				</div>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:30,代码来源:image.php


示例8: gettext

						<?php 
} else {
    ?>
						<span class="button prev-link"><i class="fa fa-caret-left"></i> <?php 
    echo gettext("Prev Image");
    ?>
</span>
						<?php 
}
?>
						
						<?php 
if (hasNextImage()) {
    ?>
						<a class="button next-link" href="<?php 
    echo html_encode(getNextImageURL()) . '#view';
    ?>
" title="<?php 
    echo gettext("Next Image");
    ?>
"><?php 
    echo gettext("Next Image");
    ?>
 <i class="fa fa-caret-right"></i></a>
						<?php 
} else {
    ?>
						<span class="button next-link"><?php 
    echo gettext("Next Image");
    ?>
 <i class="fa fa-caret-right"></i></span>
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:image.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getNextPageURL函数代码示例发布时间:2022-05-15
下一篇:
PHP getNextAlbum函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap