Пример #1
0
/**
 * Prints the home page link (WEBPATH with trailing slash) to a Zenphoto theme index.php page
 * Use in breadcrumbs if the theme uses a custom gallery index page so the gallery is not the site's home page
 * 
 * @param string $after Text after and outside the link for breadcrumbs
 * @param string $text Text of the link, if NULL "Home"
 */
function printSiteHomeURL($after = NULL, $text = NULL)
{
    global $_zp_gallery_page;
    if ($_zp_gallery_page == 'index.php') {
        $after = '';
    }
    if (is_null($text)) {
        $text = gettext('Home');
    }
    printLinkHTML(getSiteHomeURL(), $text, $text, 'homeurl');
    echo $after;
}
Пример #2
0
}
?>
	</head>
	<body class="sidebars">
		<?php 
zp_apply_filter('theme_body_open');
?>
		<div id="navigation"></div>
		<div id="wrapper">
			<div id="container">
				<div id="header">
					<div id="logo-floater">
						<div>
							<h1 class="title">
								<a href="<?php 
echo html_encode(getSiteHomeURL());
?>
" title="<?php 
echo gettext('Gallery Index');
?>
"><?php 
echo html_encode(getGalleryTitle());
?>
</a>
							</h1>
							<span id="galleryDescription"><?php 
printGalleryDesc();
?>
</span>
						</div>
					</div>
Пример #3
0
/**
 * 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 
}