/** * Prints the titlelin of a news article as a full html link * * @param string $before insert what you want to be show before the titlelink. */ function printNewsTitleLink($before = '') { if (getNewsTitle()) { if (is_NewsType("news")) { echo "<a href=\"" . html_encode(getNewsURL(getNewsTitleLink())) . "\" title=\"" . getBareNewsTitle() . "\">" . $before . getNewsTitle() . "</a>"; } else { if (is_GalleryNewsType()) { echo "<a href=\"" . html_encode(getNewsTitleLink()) . "\" title=\"" . getBareNewsTitle() . "\">" . $before . getNewsTitle() . "</a>"; } } } }
/** * Prints the read more link or if using CombiNews feature also the link to the image.php gallery page as a full html link * * @param string $readmore The readmore text to be shown for the full news article link. If empty the option setting is used. * @return string * @deprecated */ function printNewsReadMoreLink($readmore = '') { deprecated_function_notify(gettext('Functionality is now included in getNewsContent(), printNewsContent() and getContentShorten() to properly cover custom shortening via TinyMCE <pagebreak>.'), E_USER_NOTICE); $readmore = getNewsReadMore($readmore); if (!empty($readmore)) { if (is_NewsType("news")) { $newsurl = getNewsURL(getNewsTitleLink()); } else { $newsurl = html_encode(getNewsTitleLink()); } echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>"; } }
echo zpFormattedDate('%b', $dt); ?> </span> <span class="day"><?php echo date('jS', $dt); ?> </span> </div> <div class="news-info"> <div class="news-title"><?php echo getNewsTitle(); ?> </div> <div class="news-categories">In: <?php printNewsCategories(',', false, false); ?> </div> </div> </div> <div class="news-content"> <?php $c = getNewsContent(); if (defined('CROP_NEWS')) { $c = Utils::crop($c, 200, '<p><a>', '<a href="' . getNewsURL(getNewsTitleLink()) . '">(...)</a>'); } echo $c; ?> </div> </div>