Your IP : 216.73.216.174


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/JAxhtml.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'];

$badge = '';
if ($params->get('moduleclass_sfx') != null && preg_match('/badge/', $params->get('moduleclass_sfx'))){
	$badge = '<span class="badge">&nbsp;</span>';
}
$moduleTag      = htmlspecialchars($params->get('module_tag', 'div'));
$headerTag      = htmlspecialchars($params->get('header_tag', 'h4'));
$headerClass    = $params->get('header_class');
$bootstrapSize  = $params->get('bootstrap_size');
$moduleClass    = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
$moduleClassSfx = $params->get('moduleclass_sfx') != null
	? htmlspecialchars($params->get('moduleclass_sfx')) : '';

if (!empty ($module->content)) {
	$html = "<{$moduleTag} class=\"t4-module module{$moduleClassSfx} {$moduleClass}\" id=\"Mod{$module->id}\">" .
				"<div class=\"module-inner\">" . $badge;

	if ($module->showtitle != 0) {
		$html .= "<{$headerTag} class=\"module-title {$headerClass}\"><span>{$module->title}</span></{$headerTag}>";
	}

	$html .= "<div class=\"module-ct\">{$module->content}</div></div></{$moduleTag}>";

	echo $html;
}