示例#1
0
/**
 * Prints out the links for login/out, register formular if asked
 */
function printLoginZone()
{
    if (!zp_loggedin() && (function_exists('printUserLogin_out') || function_exists('printUserLogin_out') || function_exists('printRegistrationForm'))) {
        $multi = 0;
        echo '<div id="loginout" class=" push_5 grid_10">';
        if (zp_loggedin() && function_exists('printUserLogin_out')) {
            printUserLogin_out('', '', false);
            $multi++;
        }
        if (!zp_loggedin() && function_exists('printUserLogin_out')) {
            if ($multi) {
                echo ' - ';
            }
            printCustomPageURL(gettext('Login'), 'login', '', '');
            $multi++;
        }
        if (!zp_loggedin() && function_exists('printRegistrationForm')) {
            if ($multi) {
                echo ' - ';
            }
            printCustomPageURL(gettext('Register for this site'), 'register', '', '');
        }
        echo '</div>';
    }
}
示例#2
0
文件: sidebar.php 项目: rb26/zenphoto
    } else {
        $archivlinktext = gettext('Gallery');
    }
    if ($_zp_gallery_page == "archive.php") {
        ?>
				<li class='menu-active'>
					<?php 
        echo $archivlinktext;
        ?>
				</li>
				<?php 
    } else {
        ?>
				<li>
					<?php 
        printCustomPageURL($archivlinktext, "archive");
        ?>
				</li>
				<?php 
    }
    ?>
		</ul>
		<div class="menu_rule"></div>
	</div>

	<?php 
    if (getOption('RSS_album_image') || getOption('RSS_articles')) {
        ?>
		<div class="menu">
			<h3><?php 
        echo gettext("RSS");
示例#3
0
</div>	
					<?php 
    printPasswordForm($hint);
    ?>
					<?php 
} else {
    ?>
					<div class="errorbox">
						<p><?php 
    echo gettext('You are logged in...');
    ?>
</p>
					</div>
					<?php 
}
?>

					<?php 
if (!zp_loggedin() && function_exists('printRegistrationForm') && $_zp_gallery->isUnprotectedPage('register')) {
    printCustomPageURL(gettext('Register for this site'), 'register', '', '<br />');
    echo '<br />';
}
?>
				</div>
			</div>	
		</div>

<?php 
include "inc-footer.php";
?>
	
示例#4
0
<?php 
}
?>

<div class="menu">
<h3><?php 
echo gettext("Archive");
?>
</h3>
	<ul>
	<?php 
if ($_zp_gallery_page == "archive.php") {
    echo "<li class='menu-active'>" . gettext("Gallery And News") . "</li>";
} else {
    echo "<li>";
    printCustomPageURL(gettext("Gallery and News"), "archive") . "</li>";
}
?>
	</ul>
</div>

<div class="menu">
<h3><?php 
echo gettext("RSS");
?>
</h3>
	<ul>
		<li><?php 
printRSSLink('Gallery', '', 'Gallery', '');
?>
</li>
示例#5
0
<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>
示例#6
0
function printFooter($admin = true)
{
    global $_zp_themeroot, $_zp_gallery, $_zp_gallery_page, $_zp_current_zenpage_news, $_zp_current_zenpage_page;
    $h = NULL;
    ?>
	<!-- Footer -->
	<div class="footlinks">
		<?php 
    $h = @call_user_func('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.php') {
        ?>
			<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 
        $photosNumber = db_count('images');
        echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber);
        ?>
					<?php 
        if (function_exists('printCommentForm')) {
            ?>
						&middot;
						<?php 
            $commentsNumber = db_count('comments', " WHERE inmoderation = 0");
            echo sprintf(ngettext("%u Comment", "%u Comments", $commentsNumber), $commentsNumber);
        }
        ?>
				</small>
			</p>
			<?php 
    }
    ?>

		<?php 
    printThemeInfo();
    ?>
		<?php 
    printZenphotoLink();
    ?>
		<br />
		<?php 
    if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') {
        printFavoritesURL(NULL, '', ' | ', '<br />');
    }
    ?>
		<?php 
    if ($_zp_gallery_page == 'gallery.php') {
        if (class_exists('RSS')) {
            printRSSLink('Gallery', '', 'Gallery RSS', '');
        }
        echo '<br />';
    }
    ?>
		<?php 
    @call_user_func('printUserLogin_out', '', '<br />');
    ?>
		<?php 
    if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) {
        printCustomPageURL(gettext('Contact us'), 'contact', '', '');
        echo '<br />';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
        printRegisterURL(gettext('Register for this site'), '');
        echo '<br />';
    }
    ?>
		<?php 
    @call_user_func('mobileTheme::controlLink');
    ?>
	<?php 
    @call_user_func('printLanguageSelector');
    ?>
		<br class="clearall" />
	</div>
	<!-- Administration Toolbox -->
	<?php 
}
示例#7
0
文件: navbar.php 项目: bgenere/negpos
            </a>
            <div class="dropdown-menu">
              <?php 
@call_user_func('printLanguageSelector', "langselector");
?>
            </div>
          </li>   
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
              <span class="glyphicon glyphicon-user"></span>
            </a>
            <ul class="dropdown-menu">
              <li>
                <?php 
if ($_zp_gallery_page != 'contact.php') {
    printCustomPageURL(gettext('Contact us'), 'contact', '', '');
} else {
    echo gettext("Contact us");
}
?>
              </li>
              <?php 
if (function_exists("printUserLogin_out")) {
    echo '<li>';
    printUserLogin_out("", "");
    echo "</li>";
}
?>
            </ul>
         </li>  
         <li class="dropdown">
示例#8
0
					<i class="fa fa-key fa-fw"></i> <?php 
        printCustomPageURL(gettext('Login'), 'password', '');
        ?>
				<?php 
    }
    ?>
				</span>
				<?php 
}
?>
			
				<?php 
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
    ?>
				&middot; <i class="fa fa-users fw"></i> <?php 
    printCustomPageURL(gettext('Register'), 'register', '', '');
    ?>
				<?php 
}
?>
				</div>
				
				<?php 
if (class_exists('RSS')) {
    ?>
				<div id="rsslinks">
					<i class="fa fa-rss fa-fw"></i>
					<?php 
    if ($_zp_gallery_page == 'news.php' && getOption('RSS_articles')) {
        printRSSLink('News', '', gettext('RSS News'), '', false);
    } elseif ($_zp_gallery_page == 'pages.php' && getOption('RSS_pages')) {
示例#9
0
    ?>
				<a href="<?php 
    echo html_encode(getGalleryIndexURL());
    ?>
" title="<?php 
    echo gettext('Albums Index');
    ?>
"><?php 
    echo html_encode(getGalleryTitle());
    ?>
</a>
			<?php 
} else {
    ?>
				<?php 
    printCustomPageURL(getGalleryTitle(), 'gallery');
    ?>
			<?php 
}
?>
			&raquo;&nbsp;<?php 
echo gettext("Object not found");
?>
</h3>
	</div>

	<h4>
		<?php 
print404status();
?>
	</h4>
示例#10
0
function footer()
{
    global $_zp_gallery_page, $_zp_current_category, $_zp_gallery;
    ?>
	<div id="footer">
		<?php 
    if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') {
        printFavoritesURL(NULL, '', ' | ', '<br />');
    }
    if (class_exists('RSS')) {
        $prev = ' | ';
        switch ($_zp_gallery_page) {
            default:
                printRSSLink('Gallery', '', 'RSS', '');
                break;
            case 'album.php':
                printRSSLink('Album', '', 'RSS', '');
                break;
            case 'news.php':
                if (is_NewsCategory()) {
                    printRSSLink('Category', '', 'RSS', '', true, null, '', NULL, $_zp_current_category->getTitlelink());
                } else {
                    printRSSLink('News', '', 'RSS', '');
                }
                break;
            case 'password.php':
                $prev = '';
                break;
        }
    } else {
        $prev = '';
    }
    if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') {
        printCustomPageURL(gettext('Archive View'), 'archive', '', $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) {
        printCustomPageURL(gettext('Contact us'), 'contact', '', $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) {
        printRegisterURL(gettext('Register for this site'), $prev, '');
        $prev = ' | ';
    }
    ?>
		<?php 
    @call_user_func('printUserLogin_out', $prev);
    ?>
		<br />
		<?php 
    @call_user_func('mobileTheme::controlLink');
    ?>
		<br />
		<?php 
    @call_user_func('printLanguageSelector');
    ?>
		<?php 
    printZenphotoLink();
    ?>
	</div>
	<?php 
}
示例#11
0
				<?php 
if (function_exists('printContactForm')) {
    ?>
				<li><?php 
    printCustomPageURL(gettext('Contact'), "contact");
    ?>
</li>
				<?php 
}
?>

				<?php 
if ($zpfocus_show_archive) {
    ?>
				<li><?php 
    printCustomPageURL(gettext('Archive'), "archive");
    ?>
				<?php 
}
?>
			</ul>
			<?php 
if ($zpfocus_allow_search) {
    ?>
			<div>
				<?php 
    printSearchForm('', 'searchform', '', gettext('SEARCH'), "{$_zp_themeroot}/images/search-drop.jpg", null, null, null);
    ?>
			</div>
			<?php 
}
示例#12
0
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 
}
示例#13
0
<div class="wrapper" id="footer">
	<div class="centered">
		<div id="foot-left">
			<div id="copyright">
				<p>&copy; <?php 
echo getBareGalleryTitle();
?>
, <?php 
echo gettext('all rights reserved');
?>
 <?php 
if (function_exists('printContactForm')) {
    ?>
 | <?php 
    printCustomPageURL(gettext("Contact Us"), "contact");
}
?>
</p>
			</div>
				<?php 
if ($zpgal_show_credit) {
    ?>
				<div id="zpcredit">
				<?php 
    printZenphotoLink();
    ?>
				</div>
			<?php 
}
?>
示例#14
0
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();
    }
}
示例#15
0
if (getOption('allow_search')) {
    ?>
					<div class="span6 pull-right">
						<?php 
    printSearchForm();
    ?>
					</div>
					<?php 
}
?>
					<div class="span6 pull-left">
						<div id="copyright">
							<?php 
echo getMainSiteName();
if (getOption('zpB_show_archive')) {
    printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ');
}
if (!zp_loggedin() && extensionEnabled('register_user')) {
    printRegisterURL(gettext('Register'), ' | ');
}
if (extensionEnabled('user_login-out')) {
    printUserLogin_out(' | ', '', 1);
    ?>
								<script type="text/javascript">
									$('.passwordform').before('| <a href="#zpB_login_passwordform" data-toggle="modal" class="zpB_logonlink" title="<?php 
    echo gettext('Login');
    ?>
"><?php 
    echo gettext('Login');
    ?>
</a>');
示例#16
0
echo gettext('Archive/Search');
?>
</a>
			</li>
			<?php 
if (function_exists('printContactForm')) {
    ?>
			<li <?php 
    if ($_zp_gallery_page == "contact.php") {
        ?>
class="active" <?php 
    }
    ?>
>
				<?php 
    printCustomPageURL(gettext('Contact'), "contact");
    ?>
			</li>
			<?php 
}
?>
			<li><span class="gallery-menu-divider"><?php 
echo gettext('Gallery');
?>
</span>
				<?php 
printAlbumMenuList('list', false, '', 'active', 'sub', 'active', '', true);
?>
			</li>
		</ul>
	</nav>
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();
}
示例#18
0
</h3>
		<ul>
		<?php 
    if ($_zp_gallery_page == "archive.php") {
        ?>
		  	<li class='menu-active'>
		  	<?php 
        echo gettext("Gallery and News");
        ?>
		  	</li>
		  	<?php 
    } else {
        ?>
		  	<li>
		  	<?php 
        echo printCustomPageURL(gettext("Gallery and News"), "archive");
        ?>
		  	</li>
		  	<?php 
    }
    ?>
		</ul>
		<div class="menu_rule"></div>
	</div>

	<?php 
    if (getOption('RSS_album_image') || getOption('RSS_articles')) {
        ?>
		<div class="menu">
		<h3><?php 
        echo gettext("RSS");