本文整理汇总了PHP中printCustomPageURL函数的典型用法代码示例。如果您正苦于以下问题:PHP printCustomPageURL函数的具体用法?PHP printCustomPageURL怎么用?PHP printCustomPageURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printCustomPageURL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printLoginZone
/**
* Prints out the links for login/out, register formular if asked
*/
function printLoginZone()
{
if (!zp_loggedin() && (function_exists('printUserLogin_out') || function_exists('printUserLogin_out') || function_exists('printRegistrationForm'))) {
$multi = 0;
echo '<div id="loginout" class=" push_5 grid_10">';
if (zp_loggedin() && function_exists('printUserLogin_out')) {
printUserLogin_out('', '', false);
$multi++;
}
if (!zp_loggedin() && function_exists('printUserLogin_out')) {
if ($multi) {
echo ' - ';
}
printCustomPageURL(gettext('Login'), 'login', '', '');
$multi++;
}
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
if ($multi) {
echo ' - ';
}
printCustomPageURL(gettext('Register for this site'), 'register', '', '');
}
echo '</div>';
}
}
示例2: gettext
} else {
$archivlinktext = gettext('Gallery');
}
if ($_zp_gallery_page == "archive.php") {
?>
<li class='menu-active'>
<?php
echo $archivlinktext;
?>
</li>
<?php
} else {
?>
<li>
<?php
printCustomPageURL($archivlinktext, "archive");
?>
</li>
<?php
}
?>
</ul>
<div class="menu_rule"></div>
</div>
<?php
if (getOption('RSS_album_image') || getOption('RSS_articles')) {
?>
<div class="menu">
<h3><?php
echo gettext("RSS");
示例3: printPasswordForm
</div>
<?php
printPasswordForm($hint);
?>
<?php
} else {
?>
<div class="errorbox">
<p><?php
echo gettext('You are logged in...');
?>
</p>
</div>
<?php
}
?>
<?php
if (!zp_loggedin() && function_exists('printRegistrationForm') && $_zp_gallery->isUnprotectedPage('register')) {
printCustomPageURL(gettext('Register for this site'), 'register', '', '<br />');
echo '<br />';
}
?>
</div>
</div>
</div>
<?php
include "inc-footer.php";
?>
示例4: gettext
<?php
}
?>
<div class="menu">
<h3><?php
echo gettext("Archive");
?>
</h3>
<ul>
<?php
if ($_zp_gallery_page == "archive.php") {
echo "<li class='menu-active'>" . gettext("Gallery And News") . "</li>";
} else {
echo "<li>";
printCustomPageURL(gettext("Gallery and News"), "archive") . "</li>";
}
?>
</ul>
</div>
<div class="menu">
<h3><?php
echo gettext("RSS");
?>
</h3>
<ul>
<li><?php
printRSSLink('Gallery', '', 'Gallery', '');
?>
</li>
示例5: printCustomPageURL
<div id="footer">
<div class="archives">
<?php
printCustomPageURL(gettext("Archive View"), "archive");
?>
</div>
<?php
if (function_exists('printLanguageSelector')) {
echo ' - ';
printLanguageSelector();
}
if (zp_loggedin() && function_exists('printUserLogin_out')) {
echo ' - <div class="logout">';
printUserLogin_out();
echo '</div>';
}
?>
<p>
Theme by theWholeLifeToLearn for <a href="http://www.zenphoto.org/">Zenphoto</a> based on M9 & Default themes.
</p>
</div>
示例6: 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);
?>
·
<?php
$c = get_subalbum_count();
echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c);
?>
·
<?php
$photosNumber = db_count('images');
echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber);
?>
<?php
if (function_exists('printCommentForm')) {
?>
·
<?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
}
示例7: printCustomPageURL
</a>
<div class="dropdown-menu">
<?php
@call_user_func('printLanguageSelector', "langselector");
?>
</div>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<span class="glyphicon glyphicon-user"></span>
</a>
<ul class="dropdown-menu">
<li>
<?php
if ($_zp_gallery_page != 'contact.php') {
printCustomPageURL(gettext('Contact us'), 'contact', '', '');
} else {
echo gettext("Contact us");
}
?>
</li>
<?php
if (function_exists("printUserLogin_out")) {
echo '<li>';
printUserLogin_out("", "");
echo "</li>";
}
?>
</ul>
</li>
<li class="dropdown">
示例8: printCustomPageURL
<i class="fa fa-key fa-fw"></i> <?php
printCustomPageURL(gettext('Login'), 'password', '');
?>
<?php
}
?>
</span>
<?php
}
?>
<?php
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
?>
· <i class="fa fa-users fw"></i> <?php
printCustomPageURL(gettext('Register'), 'register', '', '');
?>
<?php
}
?>
</div>
<?php
if (class_exists('RSS')) {
?>
<div id="rsslinks">
<i class="fa fa-rss fa-fw"></i>
<?php
if ($_zp_gallery_page == 'news.php' && getOption('RSS_articles')) {
printRSSLink('News', '', gettext('RSS News'), '', false);
} elseif ($_zp_gallery_page == 'pages.php' && getOption('RSS_pages')) {
示例9: html_encode
?>
<a href="<?php
echo html_encode(getGalleryIndexURL());
?>
" title="<?php
echo gettext('Albums Index');
?>
"><?php
echo html_encode(getGalleryTitle());
?>
</a>
<?php
} else {
?>
<?php
printCustomPageURL(getGalleryTitle(), 'gallery');
?>
<?php
}
?>
» <?php
echo gettext("Object not found");
?>
</h3>
</div>
<h4>
<?php
print404status();
?>
</h4>
示例10: 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
}
示例11: printCustomPageURL
<?php
if (function_exists('printContactForm')) {
?>
<li><?php
printCustomPageURL(gettext('Contact'), "contact");
?>
</li>
<?php
}
?>
<?php
if ($zpfocus_show_archive) {
?>
<li><?php
printCustomPageURL(gettext('Archive'), "archive");
?>
<?php
}
?>
</ul>
<?php
if ($zpfocus_allow_search) {
?>
<div>
<?php
printSearchForm('', 'searchform', '', gettext('SEARCH'), "{$_zp_themeroot}/images/search-drop.jpg", null, null, null);
?>
</div>
<?php
}
示例12: footer
function footer()
{
global $_zp_gallery_page, $_zp_current_category, $_zp_gallery;
$exclude_login = array('password.php', 'register.php', 'contact.php');
?>
<div id="footer">
<?php
switch ($_zp_gallery_page) {
default:
printRSSLink('Gallery', '', 'RSS', '');
break;
case 'album.php':
printRSSLink('Album', '', 'RSS', '');
break;
case 'news.php':
if (is_NewsCategory()) {
printZenpageRSSLink('Category', $_zp_current_category->getTitlelink(), '', 'RSS', '');
} else {
printZenpageRSSLink('News', '', '', 'RSS', '');
}
break;
}
?>
<?php
if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') {
printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ', '');
}
?>
<?php
if ($_zp_gallery_page != 'contact.php' && getOption('zp_plugin_contact_form') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('contact'))) {
printCustomPageURL(gettext('Contact us'), 'contact', '', ' | ', '');
}
?>
<?php
if ($_zp_gallery_page != 'register.php' && !zp_loggedin() && function_exists('printRegistrationForm') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
printCustomPageURL(gettext('Register for this site'), 'register', '', ' | ', '');
}
?>
<?php
if (function_exists('printUserLogin_out') && !in_array($_zp_gallery_page, $exclude_login)) {
printUserLogin_out(' | ', '', true);
}
?>
<?php
if (function_exists('printLanguageSelector')) {
?>
<br />
<?php
printLanguageSelector();
} else {
?>
<br />
<?php
}
?>
<?php
printZenphotoLink();
?>
</div>
<?php
}
示例13: getBareGalleryTitle
<div class="wrapper" id="footer">
<div class="centered">
<div id="foot-left">
<div id="copyright">
<p>© <?php
echo getBareGalleryTitle();
?>
, <?php
echo gettext('all rights reserved');
?>
<?php
if (function_exists('printContactForm')) {
?>
| <?php
printCustomPageURL(gettext("Contact Us"), "contact");
}
?>
</p>
</div>
<?php
if ($zpgal_show_credit) {
?>
<div id="zpcredit">
<?php
printZenphotoLink();
?>
</div>
<?php
}
?>
示例14: printFooter
function printFooter($admin = true)
{
global $_zp_themeroot, $_zp_gallery_page, $_zp_current_zenpage_news, $_zp_current_zenpage_page;
$h = NULL;
?>
<!-- Footer -->
<div class="footlinks">
<?php
$h = 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') {
?>
<p>
<small>
<?php
$albumNumber = getNumAlbums();
echo sprintf(ngettext("%u Album", "%u Albums", $albumNumber), $albumNumber);
?>
·
<?php
$c = get_subalbum_count();
echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c);
?>
·
<?php
$photosArray = query_single_row("SELECT count(*) FROM " . prefix('images'));
$photosNumber = array_shift($photosArray);
echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber);
?>
<?php
if (function_exists('printCommentForm')) {
?>
·
<?php
$commentsArray = query_single_row("SELECT count(*) FROM " . prefix('comments') . " WHERE inmoderation = 0");
$commentsNumber = array_shift($commentsArray);
echo sprintf(ngettext("%u Comment", "%u Comments", $commentsNumber), $commentsNumber);
?>
<?php
}
?>
</small>
</p>
<?php
}
?>
<?php
printThemeInfo();
?>
<?php
printZenphotoLink();
?>
<?php
if ($_zp_gallery_page == 'gallery') {
printRSSLink('Gallery', '<br />', 'Gallery RSS', '');
}
?>
<?php
if (function_exists('printUserLogin_out') && $_zp_gallery_page != 'password') {
printUserLogin_out('<br />', '', true);
}
?>
<?php
if (getOption('zp_plugin_contactform') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('contact'))) {
printCustomPageURL(gettext('Contact us'), 'contact', '', '<br />');
}
?>
<?php
if (!zp_loggedin() && function_exists('printRegistrationForm') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('unprotected_register'))) {
printCustomPageURL(gettext('Register for this site'), 'register', '', '<br />');
}
?>
<?php
if (function_exists('printLanguageSelector')) {
printLanguageSelector();
}
?>
<br clear="all" />
</div>
<!-- Administration Toolbox -->
<?php
if ($admin) {
printAdminToolbox();
}
}
示例15: printSearchForm
if (getOption('allow_search')) {
?>
<div class="span6 pull-right">
<?php
printSearchForm();
?>
</div>
<?php
}
?>
<div class="span6 pull-left">
<div id="copyright">
<?php
echo getMainSiteName();
if (getOption('zpB_show_archive')) {
printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ');
}
if (!zp_loggedin() && extensionEnabled('register_user')) {
printRegisterURL(gettext('Register'), ' | ');
}
if (extensionEnabled('user_login-out')) {
printUserLogin_out(' | ', '', 1);
?>
<script type="text/javascript">
$('.passwordform').before('| <a href="#zpB_login_passwordform" data-toggle="modal" class="zpB_logonlink" title="<?php
echo gettext('Login');
?>
"><?php
echo gettext('Login');
?>
</a>');