-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix mega menu position issue, 🎨 update the module chrome
- Loading branch information
Showing
13 changed files
with
2,432 additions
and
2,375 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
templates/shaper_helixultimate/html/layouts/chromes/sp_xhtml.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Site | ||
* @subpackage Templates.cassiopeia | ||
* | ||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
$module = $displayData['module']; | ||
$params = $displayData['params']; | ||
$attribs = $displayData['attribs']; | ||
|
||
if ($module->content === null || $module->content === '') | ||
{ | ||
return; | ||
} | ||
|
||
$moduleTag = htmlspecialchars($params->get('module_tag', 'div'), ENT_QUOTES, 'UTF-8'); | ||
$bootstrapSize = (int) $params->get('bootstrap_size', 0); | ||
$moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize : ''; | ||
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8'); | ||
$headerClass = htmlspecialchars($params->get('header_class', 'sp-module-title'), ENT_COMPAT, 'UTF-8'); | ||
|
||
if ($module->content) { | ||
echo '<' . $moduleTag . ' class="sp-module ' . htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8') . $moduleClass . '">'; | ||
|
||
if ($module->showtitle) { | ||
echo '<' . $headerTag . ' class="' . $headerClass . '">' . $module->title . '</' . $headerTag . '>'; | ||
} | ||
|
||
echo '<div class="sp-module-content">'; | ||
echo $module->content; | ||
echo '</div>'; | ||
echo '</' . $moduleTag . '>'; | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.