當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。