<?php
 
		// Make sure SimplePie is included. You may need to change this to match the location of simplepie.inc.
		require_once($_SERVER['DOCUMENT_ROOT'].'/modulos/simplepie.inc');
		 
		// We'll process this feed with all of the default options.
		$feed = new SimplePie();
		 
		// Set which feed to process.
		$feed->set_feed_url(array('http://afterfuture.net/.rss'));
		$feed->set_cache_location($_SERVER['DOCUMENT_ROOT'].'/templates_c/');
		
		$feed->set_item_limit(4);
		
		
		// Run SimplePie.
		$feed->init();
		 
		// This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn't change it).
		$feed->handle_content_type();
		 
		// Let's begin our XHTML webpage code.  The DOCTYPE is supposed to be the very first thing, so we'll keep it on the same line as the closing-PHP tag.
?>
<style>
li.publicacionrss{
	border:0px solid #d4dadb;
	float:left;
	max-width:290px !important;
	height:100px;
	list-style:none;
	margin:1px 1px;
	overflow:hidden;
	display:block;
	}
	
div.newsrss_pic{
	position:relative;
	width:290px !important;
	height:100px;
	border:0px solid #fff;}
	
div.newsrss_pic img{
	overflow:hidden;
	width:290px !important;
	height:100px;
	}
div.newsrss_tit{
	color:#fff;
	margin:4px 4px 0 4px;
	float:left;	
	width:auto;
	max-width:290px !important;
	height:16px;
	border:0px solid #fff;}
	
div.newsrss_tit a{
	font-weight:normal;
	font-family: 'Titillium Web', sans-serif !important;
	font-size:12px !important;
	text-decoration:none;
	color:#fff !important;
	text-shadow:none !important;
	}

div.cont_publicacionrss{
	opacity:0.8;
	filter:alpha(opacity=80); /* For IE8 and earlier */
	background:#171a20;
	width:auto;
	height:100px;
	overflow:hidden;
	position:relative;
	margin:-28px 0 0 0;
	overflow:hidden;
	}
	
div.wrap_publicacionrss{
	overflow:hidden;
	width:<?=TPL_NEWSPREV_WIDTH?>px !important;
	height:100px;
}
</style>    
<ul>
    <?php $i=1; foreach ($feed->get_items() as $item):?>
    
                        <li class="publicacionrss">
                            <div class="wrap_publicacionrss">  
                                <div class="newsrss_pic"><a href="<?=$item->get_permalink()?>" class="overlayed fancybox.iframe"><?=obtener_thumb($item->get_description(), 288, 100, 90, 'previewpromos_rss', '', '', '')?></a></div>
                                <div class="cont_publicacionrss">
                                    <div class="newsrss_tit"><a href="<?=$item->get_permalink()?>" class="overlayed fancybox.iframe"><?=cortar_texto($item->get_title(), 50)?></a></div>
                                </div>
                            </div>
                        </li>    
                 
    <?php $i++; endforeach;?>
</ul>