<?php
			$query = "SELECT * FROM publicaciones ORDER BY publicaciones.id DESC LIMIT 3";
			$news = $engine->DB->QueryToArray($query);
?>

<style>

li.publicacion{
	overflow:hidden;
	float:left;
	width:280px !important;
	border-radius:0px;
	height:100px;
	list-style:none;
	margin:5px 18px;
	border:2px solid #cdd2da;}
	
div.cont_publicacion{
	background:url('{$TEMPLATE_URL}/img/layer_bg_1.png');
	position:absolute;
	width:280px;
	height:100px;
	overflow:hidden;
}	

div.news_pic{
	position:absolute;
	width:280px;
	height:100px;
	float:left;	
	border:0px solid #fff;}
	
div.news_pic img{
	border-radius:0px;
	width:280px;
	height:100px;
	}

div.news_tit{
	font-family:Tahoma, Geneva, sans-serif;
	font-size:8pt;
	font-weight:normal;
	color:#900;
	margin:4px 4px 0 4px;
	float:left;	
	width:300px;
	height:16px;
	border:0px solid #fff;}
	
div.news_tit a{
	text-decoration:none;
		color:#ff2426;
	}


div.news_desc{
	font-family:Tahoma, Geneva, sans-serif;
	font-size:8pt;
	font-weight:normal;
	color:#900;
	margin:4px 4px 0 4px;
	float:left;	
	width:300px;
	height:15px;
	border:0px solid #fff;}
	
div.news_desc a{
	text-decoration:none;
		color:#666;
		
	}

.cont_publicacion{
	border-radius:0px;
	display:none;}
</style>
    
        <ul>
                <?php if(isset($news)): $i=1; foreach ($news as $new):?>
                
                    	<li class="publicacion">
                            
                            <div class="news_pic"><a href="{$SITE_URL}/publicaciones/<?=$new['id']?>-<?=$new['seo']?>"><?=obtiener_thumb($new['contenido'], 280, 100, 85)?></a></div>
                        	<div class="cont_publicacion">
                                <div class="news_tit"><a href="{$SITE_URL}/publicaciones/<?=$new['id']?>-<?=$new['seo']?>"><?=cortar_texto($new['titulo'], 180)?></a></div>
   		                        <div class="news_desc"><a href="{$SITE_URL}/publicaciones/<?=$new['id']?>-<?=$new['seo']?>"><?=cortar_texto($new['contenido'], 180)?></a></div>
                            </div>

                        </li>
                
                <?php $i++; endforeach; endif;?>
        </ul>

{literal}
	<script>
	
$('.publicacion').hover(function(){
			$('.cont_publicacion', this).fadeIn()
	},
	function(){
			$('.cont_publicacion', this).fadeOut()
	}
);	
	
   
    </script>
{/literal}