本文整理汇总了PHP中printAddToFavorites函数的典型用法代码示例。如果您正苦于以下问题:PHP printAddToFavorites函数的具体用法?PHP printAddToFavorites怎么用?PHP printAddToFavorites使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printAddToFavorites函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printPageListWithNav
}
?>
</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>';
}
if (function_exists('printAddToFavorites')) {
echo "<br />";
printAddToFavorites($_zp_current_album);
}
if (function_exists('printCommentForm')) {
printCommentForm();
}
?>
</div>
<div class="content-secondary">
<?php
jqm_printMenusLinks();
?>
</div>
</div><!-- /content -->
<?php
jqm_printBacktoTopLink();
jqm_printFooterNav();
示例2: printCustomSizedImage
printCustomSizedImage(getAnnotatedImageTitle(), NULL, 79, 79, 79, 79, NULL, NULL, NULL, NULL, true, NULL);
?>
<?php
printImageTitle();
?>
<small> (<?php
printImageDate('');
?>
)</small>
<div class="albumdesc"><?php
echo $_zp_current_image->getAlbum()->getTitle();
?>
</div>
</a>
<?php
printAddToFavorites($_zp_current_image, '', gettext('Remove'));
?>
</li>
<?php
}
?>
</ul>
<br class="clearall" />
<?php
if (hasPrevPage() || hasNextPage()) {
printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7);
}
?>
<?php
if (function_exists('printCommentForm')) {
printCommentForm();
示例3: printTags
?>
<div class="span8 offset2">
<div class="center"><?php
printTags('links', NULL, 'nav nav-pills', NULL);
?>
</div>
</div>
<?php
}
?>
<?php
if (zp_loggedin() && extensionEnabled('favoritesHandler')) {
?>
<div class="span8 offset2 favorites"><?php
printAddToFavorites($_zp_current_image);
?>
</div>
<?php
}
?>
<?php
if (extensionEnabled('rating')) {
?>
<div id="rating" class="span8 offset2">
<div><?php
printRating();
?>
</div>
</div>
示例4: theme_content
function theme_content($map)
{
global $_zp_current_image, $_zp_current_album, $points;
?>
<!-- Image page section -->
<div id="content">
<div id="main">
<div id="images">
<?php
$points = array();
$firstImage = null;
$lastImage = null;
while (next_image()) {
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();
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
if (function_exists('printAddToFavorites')) {
printAddToFavorites($_zp_current_album);
}
?>
<?php
@call_user_func('printRating');
?>
</div> <!-- main -->
<div class="clearage"></div>
<?php
if (isset($firstImage)) {
printNofM('Photo', $firstImage, $lastImage, getNumImages());
}
?>
</div> <!-- content -->
<?php
}
示例5: gettext
?>
<div id="favorites-box">
<h5 id="favorites-title"><i class="fa fa-star"></i> <?php
echo gettext('Favorites');
?>
</h5>
<?php
if ($_zp_gallery_page == 'album.php') {
$current = $_zp_current_album;
} elseif ($_zp_gallery_page == 'image.php') {
$current = $_zp_current_image;
} else {
$current = null;
}
if ($current) {
printAddToFavorites($current);
?>
<?php
if (getOption('favorites_multi')) {
?>
<div id="favorites_help">
<i class="fa fa-question-circle"></i> <em><?php
echo gettext('To add to a specific favorites list, type it in the input box before clicking add favorite.');
?>
</em>
</div><br />
<?php
}
}
?>