We created a source in the back-end of easy blog, now we only need to call the source in the blog.archive.list.php file.
Since the code :
<?php echo $row->getImage()->getSource('archive');?>
Doesn´t works, maybe we need to call a helper.
The code in the file thats produce the output list is:
<?php if( $data ){ ?>
<?php foreach ( $data as $row ) { ?>
<li id="entry-<?php echo $row->id; ?>" class="post-wrapper<?php echo !empty( $row->source ) ? ' micro-' . $row->source : ' micro-post';?>">
<time datetime="<?php echo $this->formatDate( '%Y-%m-%d' , $row->created ); ?>">
<?php echo $this->formatDate( $system->config->get('layout_dateformat') , $row->created ); ?>
</time>
<img class="m-archive-image" data-src="<?php echo $row->getImage()->getSource('archive');?>" alt="<?php echo $row->title;?>" />
<a href="/<?php echo EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id='.$row->id); ?>"><?php echo $row->title; ?></a>
</li>
<?php } ?>
<?php } else { ?>
<li>
<div class="eblog-message info mtm"><?php echo $emptyPostMsg;?></div>
</li>
<?php } ?>
</ul>
Note: the data-img is for asyc load images, nothing more.
As always thanks for all.