<?php

/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_news
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;

if (!$list) {
    return;
}

$header = $module->title;

?>
<div class="sect-portfolio outer-page-sect mod-portfolio-main page-sect">
	<div class="mdl-header">
		<?php echo $header; ?>
		<div class="portfolio-inner-carousel-arrows outer-arrows-box"></div>
	</div>
	<div class="mod-articles-flash mod-portfolio">
		<div class="minus-row row row-portfolio-main portfolio-inner-carousel">
			<?php foreach ($list as $item) : ?>
				<div class="minus-col col-12">
					<div class="item-content item-content-portfolio" itemscope itemtype="https://schema.org/Article">
						<?php require ModuleHelper::getLayoutPath('mod_articles_news', '_portfoliomain'); ?>
					</div>
				</div>
			<?php endforeach; ?>
		</div>
	</div>
</div>
