diff --git a/src/html/mod_articles_category/default.php b/src/html/mod_articles_category/default.php new file mode 100644 index 0000000..a6b4b17 --- /dev/null +++ b/src/html/mod_articles_category/default.php @@ -0,0 +1,75 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_articles_category. + * Adds showtitle support and respects module settings. + */ + +defined('_JEXEC') or die; + +use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; + +if (empty($list)) { + return; +} + +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); +?> +
+ showtitle) : ?> + < class="mod-articles-category__title">title; ?>> + + +
diff --git a/src/html/mod_articles_category/index.html b/src/html/mod_articles_category/index.html new file mode 100644 index 0000000..1a6c6cf --- /dev/null +++ b/src/html/mod_articles_category/index.html @@ -0,0 +1,76 @@ + + + + + + + Redirecting… + + + + + + + + + + + + + + + + + + + +
Redirecting to the site root… If you are not redirected, click here.
+ + diff --git a/src/html/mod_articles_latest/default.php b/src/html/mod_articles_latest/default.php new file mode 100644 index 0000000..4df78bb --- /dev/null +++ b/src/html/mod_articles_latest/default.php @@ -0,0 +1,40 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_articles_latest. + * Adds showtitle support and respects module settings. + */ + +defined('_JEXEC') or die; + +use Joomla\CMS\Language\Text; + +if (empty($list)) { + return; +} + +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); +?> +
+ showtitle) : ?> + < class="mod-articles-latest__title">title; ?>> + + +
diff --git a/src/html/mod_articles_latest/index.html b/src/html/mod_articles_latest/index.html new file mode 100644 index 0000000..1a6c6cf --- /dev/null +++ b/src/html/mod_articles_latest/index.html @@ -0,0 +1,76 @@ + + + + + + + Redirecting… + + + + + + + + + + + + + + + + + + + +
Redirecting to the site root… If you are not redirected, click here.
+ + diff --git a/src/html/mod_articles_news/default.php b/src/html/mod_articles_news/default.php new file mode 100644 index 0000000..aa46eac --- /dev/null +++ b/src/html/mod_articles_news/default.php @@ -0,0 +1,58 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_articles_news (newsflash). + * Adds showtitle support with card-based layout. + */ + +defined('_JEXEC') or die; + +if (empty($list)) { + return; +} + +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); +?> +
+ showtitle) : ?> + < class="mod-articles-news__title">title; ?>> + + +
+ get('item_title')) : ?> +

+ link !== '' && $params->get('link_titles')) : ?> + + + title; ?> + +

+ + + afterDisplayTitle)) : ?> + afterDisplayTitle; ?> + + + get('show_introtext', 1)) : ?> +
+ introtext; ?> +
+ + + readmore) && $item->readmore) : ?> + + +
+ +
diff --git a/src/html/mod_articles_news/index.html b/src/html/mod_articles_news/index.html new file mode 100644 index 0000000..1a6c6cf --- /dev/null +++ b/src/html/mod_articles_news/index.html @@ -0,0 +1,76 @@ + + + + + + + Redirecting… + + + + + + + + + + + + + + + + + + + +
Redirecting to the site root… If you are not redirected, click here.
+ + diff --git a/src/html/mod_articles_popular/default.php b/src/html/mod_articles_popular/default.php new file mode 100644 index 0000000..6d3c6be --- /dev/null +++ b/src/html/mod_articles_popular/default.php @@ -0,0 +1,38 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_articles_popular. + * Adds showtitle support and respects module settings. + */ + +defined('_JEXEC') or die; + +if (empty($list)) { + return; +} + +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); +?> +
+ showtitle) : ?> + < class="mod-articles-popular__title">title; ?>> + + +
diff --git a/src/html/mod_articles_popular/index.html b/src/html/mod_articles_popular/index.html new file mode 100644 index 0000000..1a6c6cf --- /dev/null +++ b/src/html/mod_articles_popular/index.html @@ -0,0 +1,76 @@ + + + + + + + Redirecting… + + + + + + + + + + + + + + + + + + + +
Redirecting to the site root… If you are not redirected, click here.
+ + diff --git a/src/html/mod_breadcrumbs/default.php b/src/html/mod_breadcrumbs/default.php new file mode 100644 index 0000000..8b6782f --- /dev/null +++ b/src/html/mod_breadcrumbs/default.php @@ -0,0 +1,45 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_breadcrumbs. + * Bootstrap 5 breadcrumb with schema.org BreadcrumbList markup. + */ + +defined('_JEXEC') or die; + +use Joomla\CMS\Language\Text; + +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); +?> + diff --git a/src/html/mod_breadcrumbs/index.html b/src/html/mod_breadcrumbs/index.html new file mode 100644 index 0000000..1a6c6cf --- /dev/null +++ b/src/html/mod_breadcrumbs/index.html @@ -0,0 +1,76 @@ + + + + + + + Redirecting… + + + + + + + + + + + + + + + + + + + +
Redirecting to the site root… If you are not redirected, click here.
+ + diff --git a/src/html/mod_custom/default.php b/src/html/mod_custom/default.php new file mode 100644 index 0000000..5e03a50 --- /dev/null +++ b/src/html/mod_custom/default.php @@ -0,0 +1,39 @@ + + * + * This file is part of a Moko Consulting project. + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +/** + * Default layout override for mod_custom. + * Adds showtitle support and respects all module settings. + */ + +defined('_JEXEC') or die; + +use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Uri\Uri; + +$modId = 'mod-custom' . $module->id; +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); + +if ($params->get('backgroundimage')) { + /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ + $wa = $app->getDocument()->getWebAssetManager(); + $wa->addInlineStyle( + '#' . $modId . '{background-image: url("' . Uri::root(true) . '/' . HTMLHelper::_('cleanImageURL', $params->get('backgroundimage'))->url . '");}', + ['name' => $modId] + ); +} +?> +
+ showtitle) : ?> + < class="mod-custom__title">title; ?>> + + content; ?> +
diff --git a/src/html/mod_custom/hero.php b/src/html/mod_custom/hero.php index 75102ed..d7368d6 100644 --- a/src/html/mod_custom/hero.php +++ b/src/html/mod_custom/hero.php @@ -18,8 +18,10 @@ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Uri\Uri; -$modId = 'mod-custom' . $module->id; -$moduleclass = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$modId = 'mod-custom' . $module->id; +$suffix = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_COMPAT, 'UTF-8'); if ($params->get('backgroundimage')) { /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ @@ -30,9 +32,11 @@ if ($params->get('backgroundimage')) { ); } ?> - -