コード例 #1
0
ファイル: functions.php プロジェクト: Imagenomad/Unsupported
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>';
    }
}
コード例 #2
0
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);
            ?>
 &middot;
					<?php 
            echo sprintf(gettext("Subalbums: %u"), get_subalbum_count());
            ?>
 &middot;
					<?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')) {
                ?>
						&middot;
						<?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
0
ファイル: header.php プロジェクト: bgenere/negpos
<!-- header - begin -->
<!-- removed : <h1><?php 
printGalleryTitle();
?>
</h1> -->
<div class="col-sm-4 panel-group">
	<div class="panel panel-default">
		<div class="panel-header">
		<?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector("langselector");
    // flags
    //printLanguageSelector(''); // combo text
}
?>
 
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-content">  
		<?php 
if (getOption('Allow_search')) {
    //-- need to be generated manually not compliant
    printSearchForm("", "form-group", "", "");
}
?>
		</div>
	</div>
</div>
<div class="col-sm-8">
	 <img src="http://negpos.fr/negposphoto/uploaded/images/header.gif" class="img-responsive" alt="NegPos"> 
コード例 #4
0
ファイル: footer.php プロジェクト: Imagenomad/Unsupported
<div id="footer">
	<div class="archives">
		<?php 
printCustomPageURL(gettext("Archive View"), "archive");
?>
	</div>
	<?php 
if (function_exists('printLanguageSelector')) {
    echo ' - ';
    printLanguageSelector();
}
if (zp_loggedin() && function_exists('printUserLogin_out')) {
    echo ' - <div class="logout">';
    printUserLogin_out();
    echo '</div>';
}
?>
	<p>
		Theme by theWholeLifeToLearn for <a href="http://www.zenphoto.org/">Zenphoto</a> based on M9 & Default themes.
	</p>
</div>
コード例 #5
0
ファイル: calendar.php プロジェクト: Imagenomad/Unsupported
/css/1200_15_col.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="<?php 
echo $_zp_themeroot;
?>
/css/theme.css" type="text/css" media="screen" />
    </head>
    <body>
		<?php 
zp_apply_filter('theme_body_open');
?>
		<div class="container_15">
			<div id="header" class="grid_15">
				<?php 
if (function_exists('printLanguageSelector')) {
    echo '<div class="languages grid_5">';
    printLanguageSelector(true);
    echo '</div>';
}
?>
				<?php 
printLoginZone();
?>
				<h1><?php 
echo getBareGalleryTitle();
?>
</h1>
			</div>
			<div class="clear"></div>
			<div id="menu">
				<div id="m_bread" class="grid_8">
						<a href="<?php 
コード例 #6
0
ファイル: functions.php プロジェクト: hatone/zenphoto-1.4.1.4
function footer()
{
    global $_zp_gallery_page, $_zp_current_category, $_zp_gallery;
    $exclude_login = array('password.php', 'register.php', 'contact.php');
    ?>
	<div id="footer">
		<?php 
    switch ($_zp_gallery_page) {
        default:
            printRSSLink('Gallery', '', 'RSS', '');
            break;
        case 'album.php':
            printRSSLink('Album', '', 'RSS', '');
            break;
        case 'news.php':
            if (is_NewsCategory()) {
                printZenpageRSSLink('Category', $_zp_current_category->getTitlelink(), '', 'RSS', '');
            } else {
                printZenpageRSSLink('News', '', '', 'RSS', '');
            }
            break;
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') {
        printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ', '');
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'contact.php' && getOption('zp_plugin_contact_form') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('contact'))) {
        printCustomPageURL(gettext('Contact us'), 'contact', '', ' | ', '');
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'register.php' && !zp_loggedin() && function_exists('printRegistrationForm') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
        printCustomPageURL(gettext('Register for this site'), 'register', '', ' | ', '');
    }
    ?>
		<?php 
    if (function_exists('printUserLogin_out') && !in_array($_zp_gallery_page, $exclude_login)) {
        printUserLogin_out(' | ', '', true);
    }
    ?>
		<?php 
    if (function_exists('printLanguageSelector')) {
        ?>
			<br />
			<?php 
        printLanguageSelector();
    } else {
        ?>
			<br />
			<?php 
    }
    ?>
		<?php 
    printZenphotoLink();
    ?>
	</div>
	<?php 
}
コード例 #7
0
ファイル: functions.php プロジェクト: hatone/zenphoto-1.4.1.4
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);
        ?>
 &middot;
						<?php 
        $c = get_subalbum_count();
        echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c);
        ?>
 &middot;
						<?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')) {
            ?>
							&middot;
							<?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();
    }
}
コード例 #8
0
ファイル: inc_header.php プロジェクト: ariep/ZenPhoto20-DEV
	<body>
		<?php 
zp_apply_filter('theme_body_open');
?>

		<div id="page">
			<?php 
if ($_zp_gallery_page != 'image.php' || getOption('show_image_logo_on_image')) {
    ?>
				<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;