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


PHP printCustomPageURL函数代码示例

本文整理汇总了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>';
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:28,代码来源:functions.php

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

示例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";
?>
	
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:password.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>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:sidebar.php

示例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>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:21,代码来源:footer.php

示例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);
        ?>
 &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

示例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">
开发者ID:bgenere,项目名称:negpos,代码行数:31,代码来源:navbar.php

示例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')) {
    ?>
				&middot; <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')) {
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:inc-footer.php

示例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 
}
?>
			&raquo;&nbsp;<?php 
echo gettext("Object not found");
?>
</h3>
	</div>

	<h4>
		<?php 
print404status();
?>
	</h4>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:404.php

示例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 
}
开发者ID:rb26,项目名称:zenphoto,代码行数:66,代码来源:functions.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 
}
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:inc-header.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 
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:61,代码来源:functions.php

示例13: getBareGalleryTitle

<div class="wrapper" id="footer">
	<div class="centered">
		<div id="foot-left">
			<div id="copyright">
				<p>&copy; <?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 
}
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:footer.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);
        ?>
 &middot;
						<?php 
        $c = get_subalbum_count();
        echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c);
        ?>
 &middot;
						<?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')) {
            ?>
							&middot;
							<?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();
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:93,代码来源:functions.php

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


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