Your IP : 216.73.217.13


Current Path : /home/p/o/n/poneycluc/www/plugins/system/t4/themes/base/html/layouts/chromes/
Upload File :
Current File : /home/p/o/n/poneycluc/www/plugins/system/t4/themes/base/html/layouts/chromes/card.php

<?php
/**
 * @package     Joomla.Site
 * @subpackage  Layout
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 *
 * html5 (chosen html5 tag and font header tags)
 */

defined('_JEXEC') or die;

$module  = $displayData['module'];
$params  = $displayData['params'];
$attribs  = $displayData['attribs'];

$modulePos	   = $module->position;
$moduleTag     = $params->get('module_tag', 'div');
$headerTag     = htmlspecialchars($params->get('header_tag', 'h4'));
$headerClass   = htmlspecialchars($params->get('header_class', ''));
$moduleClassSfx = $params->get('moduleclass_sfx') != null
	? htmlspecialchars($params->get('moduleclass_sfx')) : '';

if ($module->content)
{
	echo '<' . $moduleTag . ' class="' . $modulePos . ' card t4-card ' . $moduleClassSfx . '">';
	if ($module->showtitle && $headerClass !== 'card-title')
	{
		echo '<' . $headerTag . ' class="card-header' . $headerClass . '">' . $module->title . '</' . $headerTag . '>';
	}
	echo '<div class="card-body">';
	if ($module->showtitle && $headerClass === 'card-title')
	{
		echo '<' . $headerTag . ' class="' . $headerClass . '">' . $module->title . '</' . $headerTag . '>';
	}
	echo $module->content;
	echo '</div>';
	echo '</' . $moduleTag . '>';
}