Exemplo n.º 1
0
			<div class="news-preview">
				<div class="news-preview-title">
					<span><?php 
    printNewsTitle();
    ?>
</span>
				</div>
				<div class="news-preview-content">
					<?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
				</div>
			</div>
		</div>
	<?php 
    ThemeUtil::$script .= 'news.push({' . '	"titleLink": \'' . $_zp_current_zenpage_news->getTitleLink() . '\',' . '	"title": \'' . ThemeUtil::clean(getNewsTitle(), FALSE) . '\',' . '	"content": \'' . ThemeUtil::clean(getNewsContent()) . '\',' . '	"date": ' . zpFormattedDate("{day: %d, month:  '%b', year: %Y}", strtotime($_zp_current_zenpage_news->getDateTime())) . ', ' . '	"categories": \'' . ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE) . '\', ' . '    "commentson": ' . (NewsUtil::commentsAllowed() ? "true" : "false") . "," . '	"commentCount": ' . $_zp_current_zenpage_news->getCommentCount() . '}); ';
    $u++;
}
ThemeUtil::$script .= $sel;
?>
	</div>

	<?php 
echo isset($prevNext['next']) ? $prevNext['next'] : "<div id='news-nav-next' class='proxy'></div>";
?>
	
	<div id="page-filler" class="opa20">&nbsp;</div>

</div>

<div id="workaround-non-xml-comment-crap" style="display: none;"></div>
Exemplo n.º 2
0
			<div class='date' day="<?php 
    echo zpFormattedDate('%e', $dt);
    ?>
"
				  month="<?php 
    echo zpFormattedDate('%b', $dt);
    ?>
"
			      year="<?php 
    echo zpFormattedDate('%Y', $dt);
    ?>
"/>
			<div class='content'><?php 
    echo getNewsContent();
    ?>
</div>
			<div class='categories'><?php 
    echo ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE);
    ?>
</div>
			<div class='preview'><?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
</div>
		</div>
	<?php 
    $u++;
}
?>
</div>
Exemplo n.º 3
0
			<div id="latest-news" class="left">
			<?php 
$n = getOption('simplicity2_home_news_number');
if (!isset($n) || !is_numeric($n)) {
    $n = 2;
}
$news = getLatestNews($n);
foreach ($news as $n) {
    $link = getNewsURL($n['titlelink']);
    ?>
			
				<div class="news home">
					<div class="news-header home"> 
						<!--
						<div id="news-categories-placeholder" class="right">In: <?php 
    NewsUtil::printNewsCategories();
    ?>
</div>
						-->
						<div class="news-date-placeholder">
							<span class="left"><a href="<?php 
    echo $link;
    ?>
"><?php 
    echo $n['title'];
    ?>
</a></span>
							<span class="right" style="margin-top: 2px;text-align: right">
								<a href="<?php 
    echo $link;
    ?>