本文整理汇总了PHP中printAdminToolbox函数的典型用法代码示例。如果您正苦于以下问题:PHP printAdminToolbox函数的具体用法?PHP printAdminToolbox怎么用?PHP printAdminToolbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printAdminToolbox函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
}
if (isset($image)) {
echo '<br />' . sprintf(gettext('Image: %s'), sanitize($image));
}
if (isset($obj)) {
echo '<br />' . sprintf(gettext('Page: %s'), substr(basename($obj), 0, -4));
}
?>
</div>
</div>
<!-- Footer -->
<div class="footlinks">
<small><?php
printThemeInfo();
?>
</small>
<?php
printZenphotoLink();
?>
<br/>
</div>
<?php
if (function_exists('printAdminToolbox')) {
printAdminToolbox();
}
?>
</body>
</html>
示例2: printFooter
function printFooter($page)
{
global $_zp_themeroot;
?>
<!-- Footer -->
<div class="footlinks">
<?php
switch ($page) {
case 'image':
case 'album':
$h = getHitcounter();
if ($h == 1) {
echo "<p>" . sprintf(gettext('1 hit on this %s'), $page) . "</p>";
} else {
echo "<p>" . sprintf(gettext('%1$u hits on this %2$s'), $h, $page) . "</p>";
}
break;
case 'gallery':
?>
<small>
<p><?php
$albumNumber = getNumAlbums();
echo sprintf(gettext("Albums: %u"), $albumNumber);
?>
·
<?php
echo sprintf(gettext("Subalbums: %u"), get_subalbum_count());
?>
·
<?php
$photosArray = query_single_row("SELECT count(*) FROM " . prefix('images'));
$photosNumber = array_shift($photosArray);
echo sprintf(gettext("Images: %u"), $photosNumber);
?>
<?php
if (getOption('Allow_comments')) {
?>
·
<?php
$commentsArray = query_single_row("SELECT count(*) FROM " . prefix('comments') . " WHERE inmoderation = 0");
$commentsNumber = array_shift($commentsArray);
echo sprintf(gettext("Comments: %u"), $commentsNumber);
?>
<?php
}
?>
</p>
</small>
<?php
break;
}
?>
<small><?php
printThemeInfo();
?>
</small>
<?php
printZenphotoLink();
?>
<?php
if ($page == 'gallery') {
echo '<br />';
printRSSLink('Gallery', '', 'Gallery RSS', '');
}
?>
<?php
if (function_exists('printUserLogout')) {
printUserLogout('<br />', '', true);
}
?>
<?php
if (function_exists('printContactForm')) {
printCustomPageURL(gettext('Contact us'), 'contact', '', '<br />');
}
?>
<?php
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
printCustomPageURL(gettext('Register for this site'), 'request', '', '<br />');
}
?>
<?php
if (function_exists('printLanguageSelector')) {
printLanguageSelector();
}
?>
</div>
<!-- Administration Toolbox -->
<?php
printAdminToolbox();
}
示例3: 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();
}
}