Complete module overrides with showtitle for all Joomla core modules
New overrides: mod_articles_archive, mod_articles_categories, mod_banners, mod_languages, mod_random_image, mod_syndicate. Fix mod_stats: replace right-aligned badge layout with definition list (dl/dt/dd) for natural left-aligned display of stat labels and values. Add CSS for the stats definition list. All standard Joomla 5 site modules now have template overrides with showtitle support and BEM-style class names. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,12 +26,10 @@ $headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'U
|
||||
<?php if ($module->showtitle) : ?>
|
||||
<<?php echo $headerTag; ?> class="mod-stats__title<?php echo $headerClass ? ' ' . $headerClass : ''; ?>"><?php echo $module->title; ?></<?php echo $headerTag; ?>>
|
||||
<?php endif; ?>
|
||||
<ul class="mod-stats__list list-group">
|
||||
<dl class="mod-stats__list">
|
||||
<?php foreach ($list as $item) : ?>
|
||||
<li class="mod-stats__item list-group-item d-flex justify-content-between align-items-center">
|
||||
<?php echo $item->title; ?>
|
||||
<span class="badge bg-secondary rounded-pill"><?php echo $item->data; ?></span>
|
||||
</li>
|
||||
<dt class="mod-stats__label"><?php echo $item->title; ?></dt>
|
||||
<dd class="mod-stats__data"><?php echo $item->data; ?></dd>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user