diff --git a/language/en-GB/tpl_cassiopeia.sys.ini b/language/en-GB/tpl_cassiopeia.sys.ini index f2b0f2a651100..8c8f79322bed2 100644 --- a/language/en-GB/tpl_cassiopeia.sys.ini +++ b/language/en-GB/tpl_cassiopeia.sys.ini @@ -8,6 +8,7 @@ TPL_CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown" TPL_CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown" TPL_CASSIOPEIA_POSITION_BANNER="Banner" TPL_CASSIOPEIA_POSITION_BELOW-TOP="Below Top" +TPL_CASSIOPEIA_POSITION_BOTTOM="Bottom" TPL_CASSIOPEIA_POSITION_BOTTOM-A="Bottom-a" TPL_CASSIOPEIA_POSITION_BOTTOM-B="Bottom-b" TPL_CASSIOPEIA_POSITION_BREADCRUMBS="Breadcrumbs" @@ -19,6 +20,7 @@ TPL_CASSIOPEIA_POSITION_MENU="Menu" TPL_CASSIOPEIA_POSITION_SEARCH="Search" TPL_CASSIOPEIA_POSITION_SIDEBAR-LEFT="Sidebar-left" TPL_CASSIOPEIA_POSITION_SIDEBAR-RIGHT="Sidebar-right" +TPL_CASSIOPEIA_POSITION_TOP="Top" TPL_CASSIOPEIA_POSITION_TOP-A="Top-a" TPL_CASSIOPEIA_POSITION_TOP-B="Top-b" TPL_CASSIOPEIA_POSITION_TOPBAR="Top Bar" diff --git a/layouts/chromes/html5.php b/layouts/chromes/html5.php index 7e370844d18a7..aa3f5d8ea1ed6 100644 --- a/layouts/chromes/html5.php +++ b/layouts/chromes/html5.php @@ -15,6 +15,7 @@ $module = $displayData['module']; $params = $displayData['params']; +$attribs = $displayData['attribs']; if ((string) $module->content === '') { @@ -23,7 +24,8 @@ $moduleTag = htmlspecialchars($params->get('module_tag', 'div'), ENT_QUOTES, 'UTF-8'); $moduleAttribs = []; -$moduleAttribs['class'] = 'moduletable ' . htmlspecialchars($params->get('moduleclass_sfx'), ENT_QUOTES, 'UTF-8'); +$moduleAttribs['class'] = trim("moduletable $module->position $attribs[class] " + . htmlspecialchars($params->get('moduleclass_sfx'), ENT_QUOTES, 'UTF-8')); $bootstrapSize = (int) $params->get('bootstrap_size', 0); $moduleAttribs['class'] .= $bootstrapSize !== 0 ? ' col-md-' . $bootstrapSize : ''; $headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8'); diff --git a/layouts/chromes/outline.php b/layouts/chromes/outline.php index 1312c50ffc7ee..a469844460788 100644 --- a/layouts/chromes/outline.php +++ b/layouts/chromes/outline.php @@ -17,9 +17,9 @@ ->registerAndUseStyle('layouts.chromes.outline', 'layouts/chromes/outline.css'); $module = $displayData['module']; - +$chromeClass = trim('mod-preview ' . $displayData['attribs']['class']); ?> -
+
position); ?> diff --git a/layouts/chromes/table.php b/layouts/chromes/table.php index 7d0fc8fe5b0e3..7d3a1b68ea47d 100644 --- a/layouts/chromes/table.php +++ b/layouts/chromes/table.php @@ -12,9 +12,10 @@ $module = $displayData['module']; $params = $displayData['params']; +$chromeClass = trim('moduletable ' . $displayData['attribs']['class'] . ' ' . htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8')); ?> + class=""> showtitle) : ?>
diff --git a/libraries/src/Helper/ModuleHelper.php b/libraries/src/Helper/ModuleHelper.php index 83880df3acc65..e5b8a315da639 100644 --- a/libraries/src/Helper/ModuleHelper.php +++ b/libraries/src/Helper/ModuleHelper.php @@ -160,6 +160,11 @@ public static function renderModule($module, $attribs = array()) return ''; } + if (!isset($attribs['class'])) + { + $attribs['class'] = ''; + } + // Get module parameters $params = new Registry($module->params); diff --git a/templates/cassiopeia/error.php b/templates/cassiopeia/error.php index ff62322a5370e..6d757d9da632d 100644 --- a/templates/cassiopeia/error.php +++ b/templates/cassiopeia/error.php @@ -138,6 +138,7 @@
+

@@ -181,7 +182,9 @@
+ + countModules('footer')) : ?>