Example #1
0
/**
 * @deprecated
 * @since 1.4.5
 */
function printZenpageRSSLink($option = 'News', $categorylink = '', $prev = '', $linktext = '', $next = '', $printIcon = true, $class = null, $lang = NULL)
{
    deprecated_functions::notify(gettext('use printRSSLink($option, $prev, $linktext, $next, $printIcon, $class, $lang, $categoryLink).'));
    if (class_exists('RSS')) {
        printRSSLink($option, $prev, $linktext, $next, $printIcon, $class, $lang, $categoryLink);
    }
}
Example #2
0
    }
    ?>
			</head>
			<body>
				<?php 
    zp_apply_filter('theme_body_open');
    ?>
				<?php 
    printGalleryTitle();
    ?>
				<?php 
    printContactForm();
    // the contact form plugin function
    ?>
				<?php 
    if (class_exists('RSS')) {
        printRSSLink('Gallery', '', 'RSS', ' | ');
    }
    ?>
				<?php 
    printZenphotoLink();
    ?>
				<?php 
    zp_apply_filter('theme_body_close');
    ?>
			</body>
		</html>
	<?php 
} else {
    include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
Example #3
0
if (extensionEnabled('rss') && (getOption('RSS_album_image') || $_zenpage_enabled && getOption('RSS_articles'))) {
    ?>
			<div id="rsslinks">
				<?php 
    $rss = false;
    if (getOption('RSS_album_image')) {
        printRSSLink('Gallery', '', gettext('Latest images'), '', false, 'rss');
        $rss = true;
    }
    if ($_zenpage_enabled && getOption('RSS_articles') && getNumNews(true)) {
        if ($rss) {
            $separ = ' | ';
        } else {
            $separ = '';
        }
        printRSSLink('News', $separ, gettext('Latest news'), '', false, 'rss');
    }
    ?>
				<script type="text/javascript">
					//<![CDATA[
					$('.rss').prepend('<img alt="RSS Feed" src="<?php 
    echo $_zp_themeroot;
    ?>
/images/rss.png">&nbsp;');
					//]]>
				</script>
			</div>
		<?php 
}
?>
Example #4
0
if (function_exists('printSlideShowLink')) {
    echo "<p align=\"center\">";
    printSlideShowLink(gettext('View Slideshow'));
    echo "</p>";
}
if ($c == 0) {
    echo "<p>" . gettext("Sorry, no image matches. Try refining your search.") . "</p>";
}
echo '<br clear="all" />';
printPageListWithNav("« " . gettext('prev'), gettext('next') . " »");
?>


		<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));
Example #5
0
/**
 * Prints a form for posting comments
 *
 * @param bool $showcomments defaults to true for showing list of comments
 * @param string $addcommenttext alternate text for "Add a comment:"
 * @param bool $addheader set true to display comment count header
 * @param string $comment_commententry_mod use to add styles, classes to the comment form div
 * @param bool $desc_order default false, set to true to change the comment order to descending ( = newest to oldest)
 */
function printCommentForm($showcomments = true, $addcommenttext = NULL, $addheader = true, $comment_commententry_mod = '', $desc_order = false)
{
    global $_zp_gallery_page, $_zp_current_admin_obj, $_zp_current_comment, $_zp_captcha, $_zp_authority, $_zp_HTML_cache, $_zp_current_image, $_zp_current_album, $_zp_current_page, $_zp_current_article;
    if (getOption('email_new_comments')) {
        $email_list = $_zp_authority->getAdminEmail();
        if (empty($email_list)) {
            setOption('email_new_comments', 0);
        }
    }
    if (is_null($addcommenttext)) {
        $addcommenttext = '<h3>' . gettext('Add a comment:') . '</h3>';
    }
    switch ($_zp_gallery_page) {
        case 'album.php':
            if (!getOption('comment_form_albums')) {
                return;
            }
            $obj = $_zp_current_album;
            break;
        case 'image.php':
            if (!getOption('comment_form_images')) {
                return;
            }
            $obj = $_zp_current_image;
            break;
        case 'pages.php':
            if (!getOption('comment_form_pages')) {
                return;
            }
            $obj = $_zp_current_page;
            break;
        case 'news.php':
            if (!getOption('comment_form_articles') || !is_NewsArticle()) {
                return;
            }
            $obj = $_zp_current_article;
            break;
        default:
            return;
            break;
    }
    $comments_open = $obj->getCommentsAllowed();
    ?>
	<!-- printCommentForm -->
	<div id="commentcontent">
		<?php 
    $num = getCommentCount();
    if ($showcomments) {
        if ($num == 0) {
            if ($addheader) {
                echo '<h3 class="empty">' . gettext('No Comments') . '</h3>';
            }
            $display = '';
        } else {
            if ($addheader) {
                echo '<h3>' . sprintf(ngettext('%u Comment', '%u Comments', $num), $num) . '</h3>';
            }
            if (getOption('comment_form_toggle')) {
                ?>
					<div id="comment_toggle"><!-- place holder for toggle button --></div>
					<script type="text/javascript">
						// <!-- <![CDATA[
						function toggleComments(hide) {
							if (hide) {
								$('div.comment').hide();
								$('.Pagination').hide();
								$('#comment_toggle').html('<button class="button buttons" onclick="toggleComments(false);"><?php 
                echo gettext('show comments');
                ?>
</button>');
							} else {
								$('div.comment').show();
								$('.Pagination').show();
								$('#comment_toggle').html('<button class="button buttons" onclick="toggleComments(true);"><?php 
                echo gettext('hide comments');
                ?>
</button>');
							}
						}
						$(document).ready(function () {
							toggleComments(window.location.hash.search(/#zp_comment_id_/));
						});
						// ]]> -->
					</script>
					<?php 
                $display = ' style="display:none"';
            } else {
                $display = '';
            }
        }
        $hideoriginalcomments = '';
        if (getOption('comment_form_pagination') && COMMENTS_PER_PAGE < $num) {
            $hideoriginalcomments = ' style="display:none"';
            // hide original comment display to be replaced by jQuery pagination
        }
        if (getOption('comment_form_pagination') && COMMENTS_PER_PAGE < $num) {
            ?>
				<div class="Pagination"></div><!-- this is the jquery pagination nav placeholder -->
				<div id="Commentresult"></div>
				<?php 
        }
        ?>
			<div id="comments"<?php 
        echo $hideoriginalcomments;
        ?>
>
				<?php 
        while (next_comment($desc_order)) {
            if (!getOption('comment_form_showURL')) {
                $_zp_current_comment['website'] = '';
            }
            ?>
					<div class="comment" <?php 
            echo $display;
            ?>
>
						<div class="commentinfo">
							<h4 id="zp_comment_id_<?php 
            echo $_zp_current_comment['id'];
            ?>
"><?php 
            printCommentAuthorLink();
            ?>
: <?php 
            echo gettext('on');
            ?>
 <?php 
            echo getCommentDateTime();
            printEditCommentLink(gettext('Edit'), ', ', '');
            ?>
</h4>
						</div><!-- class "commentinfo" -->
						<div class="commenttext"><?php 
            echo html_encodeTagged(getCommentBody(), false);
            ?>
</div><!-- class "commenttext" -->
					</div><!-- class "comment" -->
					<?php 
        }
        ?>
			</div><!-- id "comments" -->
			<?php 
    }
    if (getOption('comment_form_pagination') && COMMENTS_PER_PAGE < $num) {
        ?>
			<div class="Pagination"></div><!-- this is the jquery pagination nav placeholder -->
			<?php 
    }
    ?>
		<!-- Comment Box -->
		<?php 
    if ($comments_open) {
        if (MEMBERS_ONLY_COMMENTS && !zp_loggedin(POST_COMMENT_RIGHTS)) {
            echo gettext('Only registered users may post comments.');
        } else {
            $disabled = array('name' => '', 'website' => '', 'anon' => '', 'private' => '', 'comment' => '', 'street' => '', 'city' => '', 'state' => '', 'country' => '', 'postal' => '');
            $stored = array_merge(array('email' => '', 'custom' => ''), $disabled, getCommentStored());
            $custom = getSerializedArray($stored['custom']);
            foreach ($custom as $key => $value) {
                if (!empty($value)) {
                    $stored[$key] = $value;
                }
            }
            foreach ($stored as $key => $value) {
                $disabled[$key] = false;
            }
            if (zp_loggedin()) {
                if (extensionEnabled('userAddressFields')) {
                    $address = userAddressFields::getCustomData($_zp_current_admin_obj);
                    foreach ($address as $key => $value) {
                        if (!empty($value)) {
                            $disabled[$key] = true;
                            $stored[$key] = $value;
                        }
                    }
                }
                $name = $_zp_current_admin_obj->getName();
                if (!empty($name)) {
                    $stored['name'] = $name;
                    $disabled['name'] = ' disabled="disabled"';
                } else {
                    $user = $_zp_current_admin_obj->getUser();
                    if (!empty($user)) {
                        $stored['name'] = $user;
                        $disabled['name'] = ' disabled="disabled"';
                    }
                }
                $email = $_zp_current_admin_obj->getEmail();
                if (!empty($email)) {
                    $stored['email'] = $email;
                    $disabled['email'] = ' disabled="disabled"';
                }
                if (!empty($address['website'])) {
                    $stored['website'] = $address['website'];
                    $disabled['website'] = ' disabled="disabled"';
                }
            }
            $data = zp_apply_filter('comment_form_data', array('data' => $stored, 'disabled' => $disabled));
            $disabled = $data['disabled'];
            $stored = $data['data'];
            foreach ($data as $check) {
                foreach ($check as $v) {
                    if ($v) {
                        $_zp_HTML_cache->disable();
                        //	shouldn't cache partially filled in pages
                        break 2;
                    }
                }
            }
            if (!empty($addcommenttext)) {
                echo $addcommenttext;
            }
            ?>
				<div id="commententry" <?php 
            echo $comment_commententry_mod;
            ?>
>
					<?php 
            $theme = getCurrentTheme();
            $form = getPlugin('comment_form/comment_form.php', $theme);
            require $form;
            ?>
				</div><!-- id="commententry" -->
				<?php 
        }
    } else {
        ?>
			<div id="commententry">
				<h3><?php 
        echo gettext('Closed for comments.');
        ?>
</h3>
			</div><!-- id="commententry" -->
			<?php 
    }
    ?>
	</div><!-- id="commentcontent" -->
	<?php 
    if (getOption('comment_form_rss') && getOption('RSS_comments')) {
        ?>
		<br clear="all" />
		<?php 
        if (class_exists('RSS')) {
            switch ($_zp_gallery_page) {
                case "image.php":
                    printRSSLink("Comments-image", "", gettext("Subscribe to comments"), "");
                    break;
                case "album.php":
                    printRSSLink("Comments-album", "", gettext("Subscribe to comments"), "");
                    break;
                case "news.php":
                    printRSSLink("Comments-news", "", gettext("Subscribe to comments"), "");
                    break;
                case "pages.php":
                    printRSSLink("Comments-page", "", gettext("Subscribe to comments"), "");
                    break;
            }
        }
    }
    ?>
	<!-- end printCommentForm -->
	<?php 
}
Example #6
0
        ?>
" ><span class="next"></span></a>
			<?php 
    } else {
        ?>
				<span class="next-disabled"></span>		
			<?php 
    }
}
?>
		</div>
	</div>
</div>

<div id="credit"><?php 
printRSSLink('News', '', 'News RSS', '', false);
?>
 | <a href="<?php 
echo getCustomPageURL("archive");
?>
">Archives</a> | <a href="<?php 
echo getPageURL('credits');
?>
">Credits</a> | Powered by <a href="http://www.zenphoto.org" title="A simpler web photo album">zenphoto</a></div>

<?php 
zp_apply_filter('theme_body_close');
?>
</body>
</html>
Example #7
0
if (getOption('RSS_items_albums') || getOption('RSS_zenpage_items')) {
    ?>
			<div id="rsslinks">
				<span><?php 
    echo gettext('Subscribe: ');
    ?>
</span>
				<?php 
    if (in_context(ZP_ALBUM) && getOption('RSS_album_image')) {
        printRSSLink("Collection", "", gettext('This Album'), "  |  ", false, "rsslink");
    }
    if (getOption('RSS_items_albums')) {
        printRSSLink("Gallery", "", gettext('Gallery Images'), "", false, "rsslink");
    }
    if (function_exists('getBarePageTitle') && getOption('RSS_zenpage_items')) {
        printRSSLink("News", ' | ', gettext('News'), '', false);
    }
    ?>
			</div>
			<br />
			<?php 
}
?>
			<?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector("langselector");
}
?>
		</div>
	</div>
	<?php 
Example #8
0
	<h3><?php 
    echo gettext("RSS");
    ?>
</h3>
		<ul>
		<?php 
    if (!is_null($_zp_current_album)) {
        ?>
		<?php 
        printRSSLink('Album', '<li>', gettext('Album RSS'), '</li>');
        ?>
		<?php 
    }
    ?>
			<?php 
    printRSSLink('Gallery', '<li>', 'Gallery', '</li>');
    ?>
			<?php 
    if (function_exists("printZenpageRSSLink")) {
        ?>
			<?php 
        printZenpageRSSLink("News", "", "<li>", gettext("News"), '</li>');
        ?>
			<?php 
        printZenpageRSSLink("NewsWithImages", "", "<li>", gettext("News and Gallery"), '</li>');
        ?>
			<?php 
    }
    ?>
		</ul>
	</div>
Example #9
0
    ?>
					<li><?php 
    printRSSLink('News', '', gettext('News'), '', false);
    ?>
</li>
						<?php 
    if (function_exists('printCommentForm') && getOption('RSS_article_comments')) {
        ?>
<li><?php 
        printRSSLink('Comments-all', '', gettext('Comments'), '', false);
        ?>
</li><?php 
    }
    ?>
					<?php 
} else {
    ?>
	<?php 
    if (function_exists('printCommentForm') && getOption('RSS_comments')) {
        ?>
<li><?php 
        printRSSLink('Comments', '', gettext('Comments'), '', false);
        ?>
</li><?php 
    }
}
?>
			</ul>
		</div>
	</div>
</div>
Example #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();
    }
}
Example #11
0

  <div id="feature">
    
    <img alt="Jerry Blow" src="/gallery/themes/dad/images/jerry_bw_small.jpg" />
    <p>Jerry and his associates have worked strictly with A/E/C clients in the mid-Atlantic for over twenty-five years. They have been published nationally and won awards for their clients.</p>
  </div>
</div>
<?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector();
}
?>

<div id="credit"><?php 
printRSSLink('', '', 'RSS', '');
?>
</div>

<?php 
if (function_exists('printAdminToolbox')) {
    printAdminToolbox();
}
?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-171277-5");
Example #12
0
        ?>
<div class="jump-menu"><?php 
        printAlbumMenu('jump');
        ?>
</div><?php 
    }
    ?>
				<?php 
    if (extensionEnabled('rss')) {
        ?>
					<ul class="taglist rss">
						<?php 
        if (function_exists('printCommentForm') && getOption('RSS_article_comments')) {
            ?>
<li><?php 
            printRSSLink('Comments-news', '', '', gettext('Comments of this article'), '', false);
            ?>
</li><?php 
        }
        ?>
					</ul>
				<?php 
    }
    ?>
			</div>
		</div>
	</div>
	<?php 
    if (function_exists('printRating') || function_exists('printCommentForm')) {
        ?>
		<div class="wrapper">
Example #13
0
			<a href="<?php 
    echo htmlspecialchars(getPageURL($np, $np));
    ?>
" style="background:#fff;"><?php 
    echo gettext('Next page');
    ?>
</a></em></span></li>
		<?php 
}
?>
		</ul>

			<div class="galleryinfo">
				<br />
				<p><?php 
printRSSLink('Album', '', gettext('Album RSS feed') . ' ', '', true, 'i');
?>
</p>
				<br />
				<p>
				<?php 
if (!is_null($firstImage)) {
    echo '<em class="count">';
    printf(gettext('photos %1$u-%2$u of %3$u'), $firstImage, $lastImage, getNumImages());
    echo "</em>";
}
?>
				<?php 
if (function_exists('printSlideShowLink') && isImagePage()) {
    printSlideShowLink(gettext('View Slideshow'));
}
Example #14
0
    ?>
"><span class="next"></span></a>
		<?php 
} else {
    ?>
			<span class="next-disabled"></span>		
		<?php 
}
?>
	</div>
		
	</div>
	</div>
</div>

<div id="credit"><?php 
printRSSLink('Album', '', 'Album RSS', '', false);
?>
 | <a href="<?php 
echo getCustomPageURL("archive");
?>
">Archives</a> | <a href="<?php 
echo getPageURL('credits');
?>
">Credits</a> | Powered by <a href="http://www.zenphoto.org" title="A simpler web photo album">zenphoto</a></div>

<?php 
zp_apply_filter('theme_body_close');
?>
</body>
</html>
Example #15
0
				<?php 
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
if (function_exists('printAddToFavorites')) {
    printAddToFavorites($_zp_current_album);
}
printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', '');
@call_user_func('printGoogleMap');
@call_user_func('printSlideShowLink');
@call_user_func('printRating');
@call_user_func('printCommentForm');
?>
			</div>
		</div>
		<div id="credit">
			<?php 
if (function_exists('printFavoritesURL')) {
    printFavoritesURL(NULL, '', ' | ', '<br />');
}
if (class_exists('RSS')) {
    printRSSLink('Album', '', gettext('Album RSS'), ' | ');
}
printCustomPageURL(gettext("Archive View"), "archive", '', '', ' | ');
printSoftwareLink();
@call_user_func('printUserLogin_out', " | ");
?>
		</div>
		<?php 
zp_apply_filter('theme_body_close');
?>
	</body>
</html>
Example #16
0
 					<?php 
if (function_exists('printCommentForm')) {
    ?>
 						<tr>
							<th><?php 
    echo gettext('Comments');
    ?>
</th>
							<td><?php 
    $commentsArray = query_single_row("SELECT count(*) FROM " . prefix('comments') . " WHERE inmoderation = 0");
    $commentsNumber = array_shift($commentsArray);
    echo $commentsNumber;
    ?>
</td>
							<td><?php 
    printRSSLink('Comments', '', '', '', true, 'i');
    ?>
</td>
							</tr>
						<?php 
}
?>
				</table>
			</div>
		</div>
	</div>
	<p id="path">
		<?php 
printHomeLink('', ' > ');
?>
		<?php 
Example #17
0
    }
    ?>
					<?php 
    if (getOption('RSS_album_image')) {
        ?>
<li><?php 
        printRSSLink('Collection', '', gettext('Latest Images of this Album'), '', false);
        ?>
</li><?php 
    }
    ?>
					<?php 
    if (function_exists('printCommentForm') && getOption('RSS_comments')) {
        ?>
<li><?php 
        printRSSLink('Comments-album', '', gettext('Latest Comments of this Album'), '', false);
        ?>
</li><?php 
    }
    ?>
				</ul>
			<?php 
}
?>
		</div>
	</div>
</div>
			<?php 
if (function_exists('printRating') || function_exists('printCommentForm')) {
    ?>
	<div class="wrapper">
Example #18
0
if (function_exists('printSlideShowLink') && getNumImages() > 1) {
    ?>
<hr /><div class="slideshow-link"><i class="fa fa-play fa-fw"></i> <?php 
    printSlideShowLink();
    ?>
</div><?php 
}
?>
					<hr />
					
					<?php 
if ($_zp_gallery_page == 'album.php') {
    if (class_exists('RSS') && getOption('RSS_album_image')) {
        ?>
					<div><i class="fa fa-rss fa-fw"></i> <?php 
        printRSSLink('Collection', '', gettext('Album RSS'), '', false);
        ?>
</div>
					<?php 
    }
    if (getOption('libratus_social')) {
        include 'inc-socialshare.php';
    }
}
?>
					
					<?php 
printCodeblock();
?>

					<?php 
Example #19
0
printCurrentNewsArchive();
?>
 | <?php 
echo getBareGalleryTitle();
?>
</title>
	<meta http-equiv="content-type" content="text/html; charset=<?php 
echo LOCAL_CHARSET;
?>
" />
	<link rel="stylesheet" href="<?php 
echo $_zp_themeroot;
?>
/style.css" type="text/css" />
	<?php 
printRSSLink("News", "", "Zenpage news", "");
?>
	<?php 
zp_apply_filter('theme_head');
?>
</head>

<body>
<?php 
zp_apply_filter('theme_body_open');
?>

<div id="main">

	<div id="header">
			<h1><?php 
Example #20
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 
}
Example #21
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 
}
Example #22
0
		<?php 
} else {
    ?>
			<span class="next-disabled"></span>		
		<?php 
}
?>
	</div>
        
        
	</div>
	</div>
</div>

<div id="credit"><?php 
printRSSLink('Gallery', '', 'Gallery RSS', ' | ', false);
?>
 <a href="<?php 
echo getCustomPageURL("archive");
?>
">Archives</a> | <a href="<?php 
echo getPageURL('credits');
?>
">Credits</a> | Powered by <a href="http://www.zenphoto.org" title="A simpler web photo album">zenphoto</a></div>

<?php 
zp_apply_filter('theme_body_close');
?>
</body>
</html>
Example #23
0
} 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>
		<?php 
if (function_exists("printZenpageRSSLink")) {
    ?>
		<li><?php 
    printZenpageRSSLink("News", "", "", "News");
    ?>
</li>
		<li><?php 
    printZenpageRSSLink("NewsWithImages", "", "", "News and Gallery");
    ?>
</li>
		<?php 
}
Example #24
0
/images/moreslide_next.gif');">
			<a href="<?php 
    echo htmlspecialchars(getPageURL($np, $np));
    ?>
" style="background:#fff;"><?php 
    echo gettext('Next page');
    ?>
</a></em></span></li>
		<?php 
}
?>
	</ul>

	<div class="galleryinfo">
		<p>Feed for this album: <?php 
printRSSLink('Album', '', '', '', true, 'i');
?>
</p>
		<?php 
$params = $_zp_current_search->getSearchParams();
if (!empty($params)) {
    if ($results != "0") {
        if ($firstImage + $lastImage != 0) {
            echo '<em class="count">';
            printf(gettext('Photos %1$u-%2$u of %3$u'), $firstImage, $lastImage, getNumImages());
            echo "</em>";
            if (function_exists('printSlideShowLink')) {
                printSlideShowLink(gettext('View Slideshow'));
            }
        }
        ?>
Example #25
0
        ?>
				</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");
        ?>
</h3>
			<ul>
				<?php 
        if (class_exists('RSS')) {
            printRSSLink('Gallery', '<li>', gettext('Gallery'), '</li>');
            if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
                printRSSLink("News", "<li>", gettext("News"), '</li>');
            }
        }
        ?>
			</ul>
		</div>
		<?php 
    }
}
Example #26
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 
}
Example #27
0
    printGalleryDesc();
    ?>
</div><?php 
}
?>
					<div id="object-menu">
						<?php 
if (getOption('zpbase_social')) {
    include 'socialshare.php';
}
?>
						<?php 
if (class_exists('RSS') && getOption('RSS_album_image')) {
    ?>
						<span><?php 
    printRSSLink('Gallery', '', gettext('Gallery RSS'), '', false);
    ?>
</span>
						<?php 
}
?>
					</div>
				</div>
				
				<?php 
if ($zpbase_newsstyle == 'masonry-style') {
    ?>
<div id="spinner"></div><?php 
}
?>
				<div id="<?php 
Example #28
0
if (!is_null($_zp_current_album)) {
    ?>
			<?php 
    printRSSLink('Album', '<li>', gettext('Album RSS feed'), '</li>', false);
    ?>
		<?php 
}
?>
		<?php 
printRSSLink('Gallery', '<li>', 'Gallery RSS feed', '</li>', false);
?>
		<?php 
if (function_exists("printRSSLink")) {
    ?>
			<?php 
    printRSSLink("News", "<li>", gettext("Notes RSS feed"), '</li>', false);
}
?>
	</ul>
</div>



<?php 
if (getOption("zenpage_contactpage") && function_exists('printContactForm')) {
    ?>
	<div class="menu">
		<ul>
			<li>
				<?php 
    if ($_zp_gallery_page != 'contact.php') {
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();
}
Example #30
0
								<a class="addthis_button_google_plusone_badge"></a>
								<!--<a class="addthis_button_favorites"></a>-->
								<a class="addthis_button_compact"></a>
							</div>
							<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
							<!-- AddThis Button END -->
							<?php 
}
$rss = false;
if (extensionEnabled('rss')) {
    if ($_zenpage_enabled && getOption('RSS_articles')) {
        printRSSLink('News', '', '', '', false, 'rss');
        $rss = true;
    } else {
        if (getOption('RSS_album_image')) {
            printRSSLink('Gallery', '', '', '', false, 'rss');
            $rss = true;
        }
    }
}
if ($rss) {
    ?>
							<script type="text/javascript">
						//<![CDATA[
						$('.rss').prepend('<img alt="RSS Feed" src="<?php 
    echo $_zp_themeroot;
    ?>
/images/feed_icon.png">');
						//]]>
							</script>
<?php