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

PHP printFavoritesURL函数代码示例

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

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



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

示例1: printFooter

function printFooter($admin = true)
{
    global $_zp_themeroot, $_zp_gallery, $_zp_gallery_page, $_zp_current_zenpage_news, $_zp_current_zenpage_page;
    $h = NULL;
    ?>
	<!-- Footer -->
	<div class="footlinks">
		<?php 
    $h = @call_user_func('getHitcounter');
    if (!is_null($h)) {
        ?>
			<p>
				<?php 
        printf(ngettext('%1$u hit on this %2$s', '%1$u hits on this %2$s', $h), $h, gettext('page'));
        ?>
			</p>
			<?php 
    }
    if ($_zp_gallery_page == 'gallery.php') {
        ?>
			<p>
				<small>
					<?php 
        $albumNumber = getNumAlbums();
        echo sprintf(ngettext("%u Album", "%u Albums", $albumNumber), $albumNumber);
        ?>
 &middot;
					<?php 
        $c = get_subalbum_count();
        echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c);
        ?>
 &middot;
					<?php 
        $photosNumber = db_count('images');
        echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber);
        ?>
					<?php 
        if (function_exists('printCommentForm')) {
            ?>
						&middot;
						<?php 
            $commentsNumber = db_count('comments', " WHERE inmoderation = 0");
            echo sprintf(ngettext("%u Comment", "%u Comments", $commentsNumber), $commentsNumber);
        }
        ?>
				</small>
			</p>
			<?php 
    }
    ?>

		<?php 
    printThemeInfo();
    ?>
		<?php 
    printZenphotoLink();
    ?>
		<br />
		<?php 
    if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') {
        printFavoritesURL(NULL, '', ' | ', '<br />');
    }
    ?>
		<?php 
    if ($_zp_gallery_page == 'gallery.php') {
        if (class_exists('RSS')) {
            printRSSLink('Gallery', '', 'Gallery RSS', '');
        }
        echo '<br />';
    }
    ?>
		<?php 
    @call_user_func('printUserLogin_out', '', '<br />');
    ?>
		<?php 
    if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) {
        printCustomPageURL(gettext('Contact us'), 'contact', '', '');
        echo '<br />';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
        printRegisterURL(gettext('Register for this site'), '');
        echo '<br />';
    }
    ?>
		<?php 
    @call_user_func('mobileTheme::controlLink');
    ?>
	<?php 
    @call_user_func('printLanguageSelector');
    ?>
		<br class="clearall" />
	</div>
	<!-- Administration Toolbox -->
	<?php 
}
开发者ID:rb26,项目名称:zenphoto,代码行数:97,代码来源:functions.php


示例2: footer

function footer()
{
    global $_zp_gallery_page, $_zp_current_category, $_zp_gallery;
    ?>
	<div id="footer">
		<?php 
    if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') {
        printFavoritesURL(NULL, '', ' | ', '<br />');
    }
    if (class_exists('RSS')) {
        $prev = ' | ';
        switch ($_zp_gallery_page) {
            default:
                printRSSLink('Gallery', '', 'RSS', '');
                break;
            case 'album.php':
                printRSSLink('Album', '', 'RSS', '');
                break;
            case 'news.php':
                if (is_NewsCategory()) {
                    printRSSLink('Category', '', 'RSS', '', true, null, '', NULL, $_zp_current_category->getTitlelink());
                } else {
                    printRSSLink('News', '', 'RSS', '');
                }
                break;
            case 'password.php':
                $prev = '';
                break;
        }
    } else {
        $prev = '';
    }
    if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') {
        printCustomPageURL(gettext('Archive View'), 'archive', '', $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) {
        printCustomPageURL(gettext('Contact us'), 'contact', '', $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
        printRegisterURL(gettext('Register for this site'), $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    @call_user_func('printUserLogin_out', $prev);
    ?>
		<br />
		<?php 
    @call_user_func('mobileTheme::controlLink');
    ?>
		<br />
		<?php 
    @call_user_func('printLanguageSelector');
    ?>
		<?php 
    printZenphotoLink();
    ?>
	</div>
	<?php 
}
开发者ID:rb26,项目名称:zenphoto,代码行数:66,代码来源:functions.php


示例3: gettext

?>
				</div>
				<br class="clearall" />
				<?php 
@call_user_func('printSlideShowLink');
if ($c == 0) {
    echo "<p>" . gettext("Sorry, no image matches found. Try refining your search.") . "</p>";
}
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
?>
			</div>
		</div>
		<div id="credit">
			<?php 
if (function_exists('printFavoritesURL')) {
    printFavoritesURL(NULL, '', ' | ', '<br />');
}
?>
			<?php 
if (class_exists('RSS')) {
    printRSSLink('Gallery', '', gettext('Gallery RSS'), ' | ');
}
?>
			<?php 
printCustomPageURL(gettext("Archive View"), "archive");
?>
 |
			<?php 
printZenphotoLink();
?>
			<?php 
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:31,代码来源:search.php


示例4: printPageMenu

</li><?php 
}
?>
								<?php 
if (function_exists('printPageMenu')) {
    ?>
									<li class="divider"></li>
									<?php 
    printPageMenu('list-top', '', 'active', '', 'active', '', true, false);
    ?>
								<?php 
}
?>
							</ul>

							<?php 
if (function_exists('printFavoritesURL')) {
    ?>
								<ul class="menu-dropdown">
									<?php 
    printFavoritesURL(NULL, '<li>', '</li><li>', '</li>');
    ?>
								</ul>
								<?php 
}
?>
						</li>
					</ul>
				</div>
			</div>
		</div>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc-header.php


示例5: printFavoritesLink

/**
 * @deprecated
 * @since 1.4.6
 *
 */
function printFavoritesLink($text = NULL)
{
    deprecated_functions::notify(gettext('use printFavoritesURL()'));
    printFavoritesURL($text);
}
开发者ID:rb26,项目名称:zenphoto,代码行数:10,代码来源:deprecated-functions.php


示例6: toolbox

 static function toolbox($zf)
 {
     printFavoritesURL(gettext('Favorites'), '<li>', '</li><li>', '</li>');
     return $zf;
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:5,代码来源:favoritesClass.php


示例7: elseif

    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 
        }
    }
    ?>
					
					<?php 
    printFavoritesURL(null, '', '', '');
    ?>
	
				</div>
				<?php 
}
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:inc-favorites.php


示例8: printPageMenu

							<?php 
if ($_zenpage_enabled) {
    ?>
	<?php 
    printPageMenu('list-top', '', 'active', '', '', '', 0, false);
}
if (zp_loggedin() && extensionEnabled('favoritesHandler')) {
    ?>
								<li<?php 
    if ($_zp_gallery_page == 'favorites.php') {
        ?>
 class="active"<?php 
    }
    ?>
> <?php 
    printFavoritesURL();
    ?>
</li>
<?php 
}
if (extensionEnabled('contact_form')) {
    ?>
								<li<?php 
    if ($_zp_gallery_page == 'contact.php') {
        ?>
 class="active"<?php 
    }
    ?>
><?php 
    printCustomPageURL(gettext('Contact'), 'contact');
    ?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc_header.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP printFiles函数代码示例发布时间:2022-05-15
下一篇:
PHP printError函数代码示例发布时间: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