function printPageListWithNavAlt($prevtext, $nexttext, $nextprev = true, $class = NULL, $id = "pagelist") { echo "<div" . ($id ? " id=\"{$id}\"" : "") . " class=\"{$class}\">"; $total = getTotalPages(); $current = getCurrentPage(); echo "\n<ul class=\"{$class}\"><li>[</li>"; for ($i = 1; $i <= $total; $i++) { echo "\n <li" . ($i == $current ? " class=\"current\"" : "") . ">"; printLinkHTML(getPageURL($i), $i, "Page {$i}" . ($i == $current ? " (Current Page)" : "")); echo "</li>"; } echo "\n<li>]</li>"; if ($nextprev) { echo "\n <li class=\"prev\">"; printPrevPageURL($prevtext, "Previous Page"); echo "</li>"; } echo "\n<li></li>"; if ($nextprev) { echo "\n <li class=\"next\">"; printNextPageURL($nexttext, "Next Page"); echo "</li>"; } echo "\n</ul>"; echo "\n</div>\n"; }
function zp_footer() { ?> <div id="credit"><?php if (zp_loggedin()) { printUserLogin_out($before = '', $after = '| ', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL); } else { printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin | '); } printZenphotoLink(); ?> <?php printVersion(); ?> </a> | Using "Side Of Chili Theme" by: <a href="http://www.chilifrei.net" title="How Do You Like Your Chili?">ChiliFrei64</a></div> <?php }
</div> <div id="text"> </div> <div id="footer"> <div id="logo"> <?php printZenphotoLink(); ?> </div> <div id="options"> <?php if (zp_loggedin()) { printUserLogin_out($before = '', $after = '|', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL); } else { printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin'); } ?> </div> <div id="info"> <?php echo round(array_sum(explode(" ", microtime())) - $startTime, 4) . ' seconds'; echo '. Pink Clouds 1.0 . '; echo 'ZenPhoto '; printVersion(); ?> </div> </div> </div>
static function toolbox() { if (zp_loggedin(COMMENT_RIGHTS)) { ?> <li> <?php printLinkHTML(WEBPATH . "/" . ZENFOLDER . '/' . PLUGIN_FOLDER . '/' . 'comment_form/admin-comments.php?page=comments&tab=' . gettext('comments'), gettext("Comments"), NULL, NULL, NULL); ?> </li> <?php } }
/** * Prints link to an image of specific size * @param int $size how big * @param string $text URL text * @param string $title URL title * @param string $class optional URL class * @param string $id optional URL id */ function printSizedImageURL($size, $text, $title, $class = NULL, $id = NULL) { printLinkHTML(getSizedImageURL($size), $text, $title, $class, $id); }
/** * Prints the breadcrumbs of the current page * * NOTE: this function is entirely dependedn on the menu tree you have * generated. It will work only with static menu trees. That is, if the page * upon which you call this function is not present in your menu tree it will * not have any parent pages. Thus, menu items generated for instance by function * calls cannot have parents in the printMenumanagerBreadcrumb sense. * * Likewise if you have non exclusive menu links to a page the parentage of that * page with respect to breadcrumbs may not reflect on the menu transitions that * the user used to arrive on the page. * * @param string $menuset current menu set * @param string $before before text * @param string $between between text * @param string $after after text */ function printMenumanagerBreadcrumb($menuset = 'default', $before = '', $between = ' | ', $after = ' | ') { $parents = getParentMenuItems($menuset); if ($parents) { if ($before) { echo '<span class="beforetext">' . html_encode($before) . '</span>'; } if ($between) { $between = '<span class="betweentext">' . html_encode($between) . '</span>'; } $i = 0; foreach ($parents as $item) { if ($i > 0) { echo $between; } $itemarray = getItemTitleAndURL($item); if ($item['type'] == 'menulabel') { echo html_encode($itemarray['title']); } else { printLinkHTML($itemarray['url'], $itemarray['title'], $itemarray['title']); } $i++; } if ($after) { echo '<span class="aftertext">' . html_encode($after) . '</span>'; } } }
echo getGalleryTitle(); ?> </a> | <?php printParentBreadcrumb(); ?> </span> <?php printAlbumTitle(); ?> </h2> </div> ( <?php printLinkHTML(getPrevAlbumURL(), "« " . gettext("Prev Album")); ?> | <?php printLinkHTML(getNextAlbumURL(), gettext("Next album") . " »"); ?> ) <hr /> <?php printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ''); ?> <?php printAlbumDesc(true); ?> <br /> <?php printPageListWithNav("« " . gettext('prev'), gettext('next') . " »");
/** * Creates a link to the admin comment edit page for the current comment * * @param string $text Link text * @param string $before text to go before the link * @param string $after text to go after the link * @param string $title title text * @param string $class optional css clasee * @param string $id optional css id */ function printEditCommentLink($text, $before = '', $after = '', $title = NULL, $class = NULL, $id = NULL) { global $_zp_current_comment; if (zp_loggedin(COMMENT_RIGHTS)) { if ($before) { echo '<span class="beforetext">' . html_encode($before) . '</span>'; } printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/comment_form//admin-comments.php?page=editcomment&id=' . $_zp_current_comment['id'], $text, $title, $class, $id); if ($after) { echo '<span class="aftertext">' . html_encode($after) . '</span>'; } } }