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); } }
/** * CombiNews feature only: returns the raw title of an album if image or movie/audio or false. * * @return string */ function getBareNewsAlbumTitle() { return strip_tags(getNewsAlbumTitle()); }
?> </h3> <div class="newsarticlecredit"><span class="newsarticlecredit-left"><?php printNewsDate(); ?> | <?php echo gettext("Comments:"); ?> <?php echo getCommentCount(); ?> </span> <?php if (is_GalleryNewsType()) { if (!is_NewsType("album")) { echo " | " . gettext("Album:") . "<a href='" . getNewsAlbumURL() . "' title='" . getBareNewsAlbumTitle() . "'> " . getNewsAlbumTitle() . "</a>"; } else { echo "<br />"; } } else { printNewsCategories(", ", gettext("Categories: "), "newscategories"); } ?> </div> <?php printNewsContent(); ?> <?php printCodeblock(1); ?> <?php
/** * CombiNews feature only: returns the raw title of an album if image or movie/audio or false. * * @return string * @deprecated since version 1.4.6 */ function getBareNewsAlbumTitle() { deprecated_functions::notify(gettext('CombiNews is deprecated. See the <a href="http://www.zenphoto.org/news/zenphoto-1.4.6">Zenphoto 1.4.6 release notes</a>.')); return strip_tags(getNewsAlbumTitle()); }