<?php
	$e = $this->item;
	$params = $this->params;
	$articleClass  = $this->articleClass ;

$link =  $this->baseUrl( $e->url );
$img = null;
//
//if( Alfred_Hod::isAdmin()){
//    Zend_Debug::dump( $e->toArray());
//}

if( !empty($e->image) && $tn = $this->smallImage( $e->image,array('xsize'=>360,'ysize'=>360,'prefix'=>'newsimage') )):
//		$img = 	'<a href="'. ($params['imglink']?$link:$e->image).'" '. ($params['imglink']?'':'rel="lightbox"') .' class="image"><img src="'.$tn .'" alt="'. $e->title .'" /></a>';
		$img = 	"background-image: url( $tn )";
endif;

$topMeta = '<time datetime="'.$e->date( 'validFrom' )->get( Zend_Date::ISO_8601 ).'">'. $e->date( 'validFrom' )->get( $params['dateFormat'] ) .'</time>';

	?>
<article class="<?php echo $e->scope.' '.($img?' hasImage':'noImage') ?>" >
    <a href="<?php echo $this->baseUrl( $link ); ?>" class="newscontent" style="<?php echo $img ?>">
        <header>
           <h2 class="<?= $articleClass ?>"><?php echo $e->title; ?></h2>
        </header>
    </a>



		<?php /* if($params['footer']): ?>
            <footer><a class="more" href="<?php echo $link; ?>" title="<?php echo $e->title; ?>"><?= $this->translate('#see more#')?> <span>&raquo;</span></a></footer>
		<?php endif; */?>
</article>
