/** * Prints the image/subalbum count for the album loop */ function jqm_printMainHeaderNav() { global $_zp_gallery_page, $_zp_zenpage, $_zp_current_album, $_zp_themeroot; ?> <div data-role="header" data-position="inline" data-theme="b"> <h1><?php printGalleryTitle(); ?> </h1> <a href="<?php echo html_encode(getSiteHomeURL()); ?> " data-icon="home" data-iconpos="notext"><?php echo gettext('Home'); ?> </a> <?php if (getOption('Allow_search')) { ?> <a href="<?php echo getCustomPageURL('search'); ?> " data-icon="search" data-iconpos="notext"><?php echo gettext('Search'); ?> </a> <?php } ?> <div data-role="navbar"> <ul> <li><a href="<?php echo getCustomPageURL('gallery'); ?> "><?php echo gettext('Gallery'); ?> </a></li> <?php if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) { ?> <li><a href="<?php echo getNewsIndexURL(); ?> "><?php echo gettext('News'); ?> </a></li> <?php if (extensionEnabled('zenpage') && ZP_PAGES_ENABLED) { ?> <li><a href="<?php echo getPagesLink(); ?> "><?php echo gettext('Pages'); ?> </a></li> <?php } ?> <?php } ?> <li><a href="<?php echo getCustomPageURL('archive'); ?> "><?php echo gettext('Archive'); ?> </a></li> </ul> </div><!-- /navbar --> </div><!-- /header --> <?php }
?> </head> <body> <?php zp_apply_filter('theme_body_open'); ?> <div data-role="page" id="mainpage"> <?php jqm_printMainHeaderNav(); ?> <div class="ui-content" role="main"> <div class="content-primary"> <h2 class="breadcrumb"><a href="<?php echo getPagesLink(); ?> "><?php echo gettext('Pages'); ?> </a> <?php printZenpageItemsBreadcrumb('', ' '); printPageTitle(''); ?> </strong></h2> <?php printPageContent(); printCodeblock(1); $subpages = $_zp_current_page->getPages(); if ($subpages) {