Beispiel #1
0
function printThemeMenu()
{
    echo '<ul class="menu main">';
    if (getMainSiteName() != '') {
        echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>';
    }
    echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>';
    if (function_exists('printNewsIndexURL')) {
        echo '<li><a href="' . getNewsIndexURL() . '" title="' . gettext('News') . '">' . gettext('News') . '</a></li>';
    }
    if (function_exists("printPageMenu")) {
        printPageMenu("list-top", "", "menu-active", "", "", '', 0, false, '');
    }
    echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>';
    echo '</ul>';
}
Beispiel #2
0
function printThemeMenu()
{
    echo '<ul id="main">';
    if (getMainSiteName() != '') {
        echo '<li class="title">' . gettext('Main site') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printAlbumMenu')) {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        $temp = getGalleryTitle();
        printAlbumMenu('list', false, '', 'menu-active', 'submenu', 'menu-active', $temp, true);
    } else {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printNewsIndexURL')) {
        echo '<li class="title">' . gettext('News blog') . '</li>';
        printAllNewsCategories("All news", FALSE, "", "menu-active");
    }
    if (function_exists("printPageMenu")) {
        echo '<li class="title">' . gettext('Pages') . '</li>';
        printPageMenu("list", "", "menu-active", "submenu", "menu-active");
    }
    echo '<li class="title">' . gettext('Stay informed') . '</li>';
    echo '<ul>';
    echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>';
    echo '</ul>';
    echo '</ul>';
    echo '<div id="login">';
    echo '<div class="title">' . gettext('Connection') . '</div>';
    if (function_exists('printUserLogin_out') and !zp_loggedin()) {
        printUserLogin_out();
    }
    echo '</div>';
    if (function_exists("printLanguageSelector")) {
        echo '<div id="languages">';
        echo '<div class="title">' . gettext('Languages') . '</div>';
        printLanguageSelector();
        echo '<div class="clear_left"></div>';
        echo '</div>';
    }
}
Beispiel #3
0
echo $zenCSS;
?>
" type="text/css" />
	</head>
	<body id="gallery-register">
	<?php 
zp_apply_filter('theme_body_open');
?>
		<div id="wrapper">
			<div id="header">
				<ul class="path c">
					<?php 
if (getMainSiteURL()) {
    ?>
						<li><h1><a href="<?php 
    echo getMainSiteURL();
    ?>
"><?php 
    echo getMainSiteName();
    ?>
</a></h1></li>
					<?php 
}
?>
					<li><h2><a href="<?php 
echo getGalleryIndexURL();
?>
"><?php 
echo getGalleryTitle();
?>
</a></h2></li>
Beispiel #4
0
    ?>
				<div id="site-title" class="clearfix">
					<?php 
    if (extensionEnabled('dynamic-locale')) {
        ?>
						<div id="flag"><?php 
        printLanguageSelector('langselector');
        ?>
</div>
					<?php 
    }
    ?>
					<!-- banniere -->
					<div id="banniere">
						<a href="<?php 
    echo html_encode(getMainSiteURL());
    ?>
" title="<?php 
    echo gettext('Home');
    ?>
"><img id="zplogo" src="<?php 
    echo $_zp_themeroot;
    ?>
/images/<?php 
    echo getOption('use_image_logo_filename');
    ?>
" alt="<?php 
    echo getGalleryTitle();
    ?>
" /></a>
					</div>
Beispiel #5
0
/*******************************************************************************
 * random.php: return random image
 *******************************************************************************
 * URL Parameters:
 *   num	- number of images
 *   width	- width of random image.
 *   height	- height of random image.
 *   class	- css class for random image.
 *   album	- album to get the random image, default is root.
 *
 *******************************************************************************
 */
define('OFFSET_PATH', true);
require_once "template-functions.php";
isset($_REQUEST['num']) ? $num = $_REQUEST['num'] : ($num = 0);
isset($_REQUEST['width']) ? $width = $_REQUEST['width'] : ($width = 50);
isset($_REQUEST['height']) ? $height = $_REQUEST['height'] : ($height = 50);
isset($_REQUEST['class']) ? $class = $_REQUEST['class'] : ($class = '');
isset($_REQUEST['album']) ? $album = $_REQUEST['album'] : ($album = '');
header('Content-Type: text/html; charset=' . getOption('charset'));
while ($num > 0) {
    if ($album == '') {
        $randomImage = getRandomImages();
    } else {
        $randomImage = getRandomImagesAlbum($album);
    }
    $randomImageURL = getURL($randomImage);
    echo '<a href="' . getMainSiteURL() . $randomImageURL . '" title="View image: ' . $randomImage->getTitle() . '" class="' . $class . '">' . '<img src="' . getMainSiteURL() . $randomImage->getCustomImage(null, $width, $height, null, null, null, null) . '" width="' . $width . '" height="' . $height . '" alt="' . $randomImage->getTitle() . '"';
    echo "/></a>\n";
    $num--;
}