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


PHP printFavoritesURL函数代码示例

本文整理汇总了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;未经允许,请勿转载。