printAlbumDate(); ?> </small> </div> <p style="clear: both;"></p> </div> <?php } printPageListWithNav(gettext("« prev"), gettext("next »")); ?> </div><!-- album --> <?php ?> <p style="clear: both;"></p> <?php printCodeblock(2); ?> <?php footer(); ?> </div><!-- main --> <span class="clear"></span> </div><!-- left corner --> </div><!-- right corner --> </div><!-- squeeze --> </div><!-- center --> <div class="sidebar"> <div id="rightsidebar"> <?php if (function_exists('printLatestImages')) { ?>
if (getNewsExtraContent()) { ?> <div class="extra-content clearfix"> <?php printNewsExtraContent(); ?> </div> <?php } ?> <div class="clearfix"> <?php printNewsContent(); ?> <?php printCodeblock(1); ?> </div> <?php if (getOption('show_tag')) { ?> <div class="headline-tags"><?php printTags('links', '', 'hor-list'); ?> </div> <?php } ?> </div> <?php
<?php if (getPrevPageURL() || getNextPageURL()) { printPageListWithNav('« ' . gettext('Prev'), gettext('Next') . ' »', false, 'true', 'page-nav', '', true, '5'); } ?> <?php if (function_exists('printGoogleMap')) { ?> <div class="gmap"> <?php setOption('gmap_width', 600, false); printGoogleMap(); ?> </div> <?php } ?> <?php printCodeblock(); ?> <?php if (function_exists('printCommentForm')) { printCommentForm(); } ?> </div> <?php include "inc-footer.php";
function commonNewsLoop($paged) { $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news')); while (next_news()) { $newstypedisplay = gettext('news'); if (stickyNews()) { $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>'; } ?> <div class="newsarticle<?php if (stickyNews()) { echo ' sticky'; } ?> "> <h3><?php printNewsURL(); echo " <span class='newstype'>[" . $newstypedisplay . "]</span>"; ?> </h3> <div class="newsarticlecredit"> <span class="newsarticlecredit-left"> <?php $count = @call_user_func('getCommentCount'); $cat = getNewsCategories(); printNewsDate(); if ($count > 0) { echo ' | '; printf(gettext("Comments: %d"), $count); } ?> </span> <?php if (!empty($cat)) { echo ' | '; printNewsCategories(", ", gettext("Categories: "), "newscategories"); } ?> </div> <!-- newsarticlecredit --> <?php printCodeblock(1); ?> <?php printNewsContent(); ?> <?php printCodeblock(2); ?> <br class="clearall" /> </div> <?php } if ($paged) { printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true); } }
function commonNewsLoop($paged) { $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news')); while (next_news()) { $newstype = getNewsType(); $newstypedisplay = $newstypes[$newstype]; if (stickyNews()) { $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>'; } ?> <div class="newsarticle<?php if (stickyNews()) { echo ' sticky'; } ?> "> <h3><?php printNewsTitleLink(); echo " <span class='newstype'>[" . $newstypedisplay . "]</span>"; ?> </h3> <div class="newsarticlecredit"> <span class="newsarticlecredit-left"> <?php $count = getCommentCount(); $cat = getNewsCategories(); printNewsDate(); if ($count > 0) { echo ' | '; printf(gettext("Comments: %d"), $count); } ?> </span> <?php if (is_GalleryNewsType()) { echo ' | ' . gettext("Album:") . " <a href='" . getNewsAlbumURL() . "' title='" . getBareNewsAlbumTitle() . "'>" . getNewsAlbumTitle() . "</a>"; } else { if (!empty($cat) && !in_context(ZP_ZENPAGE_NEWS_CATEGORY)) { echo ' | '; printNewsCategories(", ", gettext("Categories: "), "newscategories"); } } ?> </div> <!-- newsarticlecredit --> <br clear="all" /> <?php printCodeblock(1); ?> <?php printNewsContent(); ?> <?php printCodeblock(2); ?> <br clear="all" /> </div> <?php } if ($paged) { printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true); } }
/** * Displays a list of all news in zenphoto * */ function newsListDisplay() { while (next_news()) { ?> <div class="newslist_article"> <div class="newslist_title"> <span class="italic date_news"><?php printNewsDate(); ?> </span> <h4><?php printNewsURL(); ?> </h4> <div class="newslist_detail"> <div class="italic newslist_type"> <?php $cat = getNewsCategories(); if (!empty($cat)) { printNewsCategories(", ", gettext("Categories: "), "newslist_categories"); } ?> </div> </div> </div> <div class="newslist_content"> <?php printCodeblock(1); ?> <?php printNewsContent(); ?> <?php printCodeblock(2); ?> <?php if (getNewsReadMore()) { ?> <p class="italic newslist_readmore"> <?php $readmore = getNewsReadMore($readmore); if (!empty($readmore)) { $newsurl = getNewsURL(); echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>"; } ?> </p> <?php } ?> </div> </div> <?php } }
/** * Displays a list of all news in zenphoto * */ function newsListDisplay() { while (next_news()) { ?> <div class="newslist_article"> <div class="newslist_title"> <span class="italic date_news"><?php printNewsDate(); ?> </span> <h4><?php printNewsURL(); ?> </h4> <div class="newslist_detail"> <div class="italic newslist_type"> <?php $cat = getNewsCategories(); if (!empty($cat)) { printNewsCategories(", ", gettext("Categories: "), "newslist_categories"); } ?> </div> </div> </div> <div class="newslist_content"> <?php printCodeblock(1); ?> <?php printNewsContent(); ?> <?php printCodeblock(2); ?> </div> </div> <?php } }