<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_latest
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined( '_JEXEC' ) or die;
$count = count( $list );
?>
<div class="latestnews <?php echo $moduleclass_sfx; ?> services_page">
	<div class="row">
		<?php
		foreach ($list as $item) {
			?>
			<div class="col-sm-4">
				<article class="item column-1" itemprop="blogPost" itemscope="" itemtype="http://schema.org/BlogPosting">
					<div class="entry-image featured-image ">
						<div class="scale_animation">
							<div class="hover_animate">
								<?php
								//if($post_format=='standard') {
								echo JLayoutHelper::render('joomla.content.intro_image', $item);
								//} else {
								//	echo JLayoutHelper::render('joomla.content.post_formats.post_' . $post_format, array('params' => $post_attribs, 'item' => $item));
								//}
								?>
							</div>
						</div>
					</div>
					<div class="info_article">
						<div class="entry-header">
							<h2 itemprop="name">
								<a href="<?php echo $item->link; ?>" itemprop="url">
									<?php echo $item->title;?></a>
							</h2>
						</div>
						<div class="entry-content">
							<?php echo $item->introtext; ?>
							<div class="jcomments-links"><a class="readmore-link" href="<?php echo $item->link; ?>" title="<?php echo $item->title;?>">Read more ...</a>  </div>
						</div>
					</div>
				</article>
			</div>
			<?php
		}
		?>
	</div>
</div>
