Example #1
0
        ?>
			<category><![CDATA[<?php 
        echo $cat['categoria'];
        ?>
]]></category>
			<?php 
    }
    ?>
		<dc:creator><?php 
    echo kGetNewsAuthor();
    ?>
</dc:creator>
		<description><![CDATA[<?php 
    echo trim(kGetNewsPreview());
    ?>
]]></description>
		<content:encoded><![CDATA[<?php 
    echo trim(kGetNewsPreview());
    echo trim(kGetNewsText());
    ?>
]]></content:encoded>
		<slash:comments><?php 
    echo kGetNewsCommentsCount();
    ?>
</slash:comments>
		</item>
	<?php 
}
?>
	</channel>
</rss>
Example #2
0
		
		<?php 
    if (trim(strip_tags(kGetNewsPreview(), "<img>")) != "") {
        ?>
			<div class="excerptBox">
				<?php 
        echo kGetNewsPreview();
        ?>
			</div>
		<?php 
    }
    ?>
		
		<div class="contentsBox">
			<?php 
    echo kGetNewsText();
    ?>
		</div>

		<?php 
    if (count(kGetNewsPhotogallery()) > 0) {
        ?>
			<div id="pageGallery">
			<?php 
        $i = 0;
        $countVerticalImages = 0;
        $phg = kGetNewsPhotogallery();
        foreach ($phg as $i => $img) {
            /* try to arrange couples of vertical images */
            /* first of all find the orientation of the previous, current and next image */
            if (!isset($previousIsVertical)) {