Ejemplo n.º 1
0
function printThemeFooter()
{
    echo '<ul class="menu footer">';
    if (function_exists('printRegistrationForm') or function_exists('printUserLogin_out')) {
        if (zp_loggedin() and function_exists('printUserLogin_out')) {
            echo '<li>';
            printUserLogin_out();
            echo '</li>';
        } else {
            echo '<li><a href="' . getCustomPageURL('login') . '">';
            if (function_exists('printRegistrationForm')) {
                echo gettext('Register');
            }
            if (function_exists('printRegistrationForm') and function_exists('printUserLogin_out')) {
                echo ' / ';
            }
            if (function_exists('printUserLogin_out')) {
                echo gettext('Login');
            }
            echo '</a></li>';
        }
    }
    if (function_exists('printContactForm')) {
        echo '<li><a href="' . getCustomPageURL('contact') . '">' . gettext('Contact') . '</a></li>';
    }
    echo '</ul>';
}
Ejemplo n.º 2
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>';
    }
}
Ejemplo n.º 3
0
function zp_footer()
{
    ?>
<div id="credit"><?php 
    if (zp_loggedin()) {
        printUserLogin_out($before = '', $after = '| ', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL);
    } else {
        printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin | ');
    }
    printZenphotoLink();
    ?>
 <?php 
    printVersion();
    ?>
</a> |  Using "Side Of Chili Theme" by: <a href="http://www.chilifrei.net" title="How Do You Like Your Chili?">ChiliFrei64</a></div>
<?php 
}
Ejemplo n.º 4
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>';
    }
}
Ejemplo n.º 5
0
							<span><?php 
    echo getAlbumTitle() . '<br />(' . getAlbumDate(getOption('date_format')) . ')';
    ?>
</span>
							</a>
						</li>
<?php 
}
?>
					</ul>
				</div>
				<div id="rightbox">
					<div id="login">
<?php 
if (!zp_loggedin() && function_exists('printUserLogin_out')) {
    printUserLogin_out();
}
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
    printCustomPageURL(gettext('Register for this site'), 'register');
}
?>
					</div>
					<?php 
if (zp_loggedin()) {
    echo '<div class="tagcloud">';
    echo '<p>' . gettext('Popular Tags') . '</p>';
    printAllTagsAs('cloud', 'tags');
    echo '</div>';
}
?>
				</div>
Ejemplo n.º 6
0
					<li>
						<?php 
        if ($_zp_gallery_page != 'register.php') {
            printCustomPageURL(gettext('Register for this site'), 'register', '', '');
        } else {
            echo gettext("Register for this site");
        }
        ?>
					</li>
					<?php 
    }
    if (function_exists("printUserLogin_out")) {
        ?>
					<li>
					<?php 
        printUserLogin_out("", "", 2);
        ?>
					</li>
					<?php 
    }
    ?>
			</ul>
		</div>
		<?php 
}
?>
<!--<?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector("langselector");
}
?>
Ejemplo n.º 7
0
?>


		<div id="credit">
			<?php 
printRSSLink('Gallery', '', gettext('Gallery RSS'), ' | ');
?>
		<?php 
printZenphotoLink();
?>
			 | <?php 
printCustomPageURL(gettext("Archive View"), "archive");
?>
		<?php 
if (function_exists('printUserLogin_out')) {
    printUserLogin_out(" | ");
}
?>
		<br />
			<?php 
printf(gettext("%s seconds"), round(array_sum(explode(" ", microtime())) - $startTime, 4));
?>
	</div>
</div>

<?php 
zp_apply_filter('theme_body_close');
?>

</body>
</html>
Ejemplo n.º 8
0
        echo gettext('Register');
        ?>
"><?php 
        echo gettext('Register');
        ?>
</a></li>
						<?php 
    }
    ?>
					
						<?php 
    if (function_exists("printUserLogin_out")) {
        if (zp_loggedin()) {
            ?>
						<li><?php 
            printUserLogin_out('', '');
            ?>
</li>
						<?php 
        } else {
            ?>
						<li <?php 
            if ($_zp_gallery_page == "login.php") {
                ?>
class="active" <?php 
            }
            ?>
><a href="<?php 
            echo getCustomPageURL('login');
            ?>
" title="<?php 
Ejemplo n.º 9
0
/**
 * Prints the footer
 */
function jqm_printFooterNav()
{
    global $_zp_gallery_page, $_zp_current_album;
    ?>
	<div id="footer" data-role="footer">
		<?php 
    @call_user_func('printLanguageSelector', "langselector");
    ?>
		<ul id="footerlist">
			<li><?php 
    echo gettext('Powered by');
    ?>
 <a href="http://www.zenphoto.org">Zenphoto</a> and <a href="http://jquerymobile.com">jQueryMobile</a></li>
			<li><?php 
    echo gettext('zpMobile theme by');
    ?>
 <a href="http://www.maltem.de">Malte Müller</a></li>
		</ul>
		<?php 
    $adminlink = '';
    $favoriteslink = '';
    if (!zp_loggedin() && function_exists('printRegisterURL')) {
        if ($_zp_gallery_page != 'register.php') {
            $_linktext = get_language_string(getOption('register_user_page_link'));
            $adminlink = '<li><a rel="external" href="' . html_encode(register_user::getLink()) . '">' . $_linktext . '</a></li>';
        }
    }
    if (function_exists('printFavoritesURL')) {
        $favoriteslink = '<li><a rel="external" href="' . html_encode(getFavoritesURL()) . '">' . gettext('Favorites') . '</a></li>';
    }
    if ($adminlink || $favoriteslink) {
        ?>
			<div data-role="navbar">
				<ul id="footernav">
					<?php 
        echo $adminlink . $favoriteslink;
        if (function_exists("printUserLogin_out")) {
            echo "<li>";
            printUserLogin_out("", "", 0);
            echo "</li>";
        }
        ?>
				</ul>
			</div>
			<!-- /navbar -->
	<?php 
    }
    ?>
	</div><!-- footer -->
	<?php 
}
Ejemplo n.º 10
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();
    }
}
Ejemplo n.º 11
0
<?php

/*	zpBase login.php 
*	This theme page shows the login form when the login link is accessed from the user login-out plugin (login link shown in footer).
*	http://www.oswebcreations.com
================================================== */
if (function_exists('printUserLogin_out')) {
    include 'inc/header.php';
    ?>
			
	<div class="container" id="middle">
		<div class="row">
			<div id="content">
				<h1><?php 
    echo gettext('Login');
    ?>
</h1>
				<?php 
    printUserLogin_out('', '', true);
    ?>
			</div>				
		</div>
	</div>

<?php 
    include 'inc/footer.php';
} else {
    include dirname(__FILE__) . '/404.php';
}
Ejemplo n.º 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 
}
Ejemplo n.º 13
0
?>
">
		<?php 
echo getGalleryTitle();
?>
</a> &gt;
		<?php 
echo "<em>" . gettext('Search') . "</em>";
?>
	</p>

	<div id="footer">
		<hr />
		<?php 
if (function_exists('printUserLogin_out')) {
    printUserLogin_out("");
}
?>
		<p>
		<?php 
printZenphotoLink();
?>
		</p>
	</div>
	<?php 
printAdminToolbox();
zp_apply_filter('theme_body_close');
?>
</body>
</html>
Ejemplo n.º 14
0
<?php

include "inc-header.php";
?>
	<div class="wrapper contrast top">
		<div class="container">	
			<div class="sixteen columns">
				<?php 
include "inc-search.php";
?>
				<h1><?php 
echo gettext("Login");
?>
</h1>
			</div>
		</div>
	</div>
	<div class="wrapper">
		<div class="container">
			<div class="sixteen columns">
				<?php 
printUserLogin_out("", "", true);
?>
			</div>
		</div>
	</div>	
<?php 
include "inc-bottom.php";
include "inc-footer.php";
Ejemplo n.º 15
0
				<li>
					<?php 
        if ($_zp_gallery_page != 'register.php') {
            printRegisterURL(gettext('Register for this site'));
        } else {
            echo gettext("Register for this site");
        }
        ?>
				</li>
				<?php 
    }
    if (function_exists('printFavoritesURL')) {
        printFavoritesURL(NULL, '<li>', '</li><li>', '</li>');
    }
    if (function_exists("printUserLogin_out")) {
        printUserLogin_out("<li>", "</li>");
    }
    if (class_exists('mobileTheme')) {
        ?>
				<li>
					<?php 
        mobileTheme::controlLink(NULL, '', '');
        ?>
				</li>
				<?php 
    }
    ?>
		</ul>
	</div>
	<?php 
}
Ejemplo n.º 16
0
					</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>');
									$('#zpB_login_passwordform').modal({
										show: true
									});
								</script>
							<?php 
}
Ejemplo n.º 17
0
}
?>
	</div>

	<div id="text">&nbsp;</div>

	<div id="footer">
		<div id="logo">
			<?php 
printZenphotoLink();
?>
		</div>
		<div id="options">
<?php 
if (zp_loggedin()) {
    printUserLogin_out($before = '', $after = '|', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL);
} else {
    printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin');
}
?>
		</div>
		<div id="info">
			<?php 
echo round(array_sum(explode(" ", microtime())) - $startTime, 4) . ' seconds';
echo '. Pink Clouds 1.0 . ';
echo 'ZenPhoto ';
printVersion();
?>
		</div>
	</div>
Ejemplo n.º 18
0
<!-- Footer -->
<div class="footlinks">

<?php 
if (getOption('Use_Simpleviewer') && !MOD_REWRITE) {
    /* display missing css file error */
    echo '<div class="errorbox" id="message">';
    echo "<h2>" . gettext('Simpleviewer requires <em>mod_rewrite</em> to be set. Simpleviewer is disabled.') . "</h2>";
    echo '</div>';
}
?>

<?php 
printThemeInfo();
printZenphotoLink();
if (function_exists('printUserLogin_out')) {
    printUserLogin_out('<br />', '', true);
}
?>

</div> <!-- footerlinks -->


<?php 
printFooter();
zp_apply_filter('theme_body_close');
?>

</body>
</html>