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


PHP printAddToFavorites函数代码示例

本文整理汇总了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();
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:album.php

示例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();
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:favorites.php

示例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>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php

示例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 
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:77,代码来源:functions.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 
        }
    }
    ?>
					
开发者ID:ckfreeman,项目名称:libratus,代码行数:30,代码来源:inc-favorites.php


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