Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<fieldset
name="advanced">

<field
name="modulecss_id"
type="text"
label="COM_MODULES_FIELD_MODULECSS_ID_LABEL"
description="COM_MODULES_FIELD_MODULECSS_ID_DESC"
/>

<field
name="module_tag"
type="moduletag"
Expand Down
2 changes: 2 additions & 0 deletions administrator/language/en-GB/en-GB.com_modules.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ COM_MODULES_FIELD_SHOWTITLE_DESC="Show or hide module title on display. Effect w
COM_MODULES_FIELD_SHOWTITLE_LABEL="Show Title"
COM_MODULES_FIELD_TITLE_DESC="Module must have a title."
COM_MODULES_FIELD_VALUE_NOCACHING="No caching"
COM_MODULES_FIELD_MODULECSS_ID_LABEL="Module CSS Id"
COM_MODULES_FIELD_MODULECSS_ID_DESC="The CSS ID for module."
COM_MODULES_FIELD_MODULE_TAG_LABEL="Module Tag"
COM_MODULES_FIELD_MODULE_TAG_DESC="The HTML tag for module."
COM_MODULES_FIELD_BOOTSTRAP_SIZE_LABEL="Bootstrap Size"
Expand Down
7 changes: 7 additions & 0 deletions components/com_config/model/form/modules_advanced.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<fieldset
name="advanced">

<field
name="modulecss_id"
type="text"
label="COM_MODULES_FIELD_MODULECSS_ID_LABEL"
description="COM_MODULES_FIELD_MODULECSS_ID_DESC"
/>

<field
name="module_tag"
type="moduletag"
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_articles_archive/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
defined('_JEXEC') or die;
?>
<?php if (!empty($list)) : ?>
<ul class="archive-module<?php echo $moduleclass_sfx; ?>">
<ul class="archive-module<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<li>
<a href="<?php echo $item->link; ?>">
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_articles_categories/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

defined('_JEXEC') or die;
?>
<ul class="categories-module<?php echo $moduleclass_sfx; ?>">
<ul class="categories-module<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php require JModuleHelper::getLayoutPath('mod_articles_categories', $params->get('layout', 'default') . '_items'); ?>
</ul>
2 changes: 1 addition & 1 deletion modules/mod_articles_category/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
defined('_JEXEC') or die;

?>
<ul class="category-module<?php echo $moduleclass_sfx; ?>">
<ul class="category-module<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($grouped) : ?>
<?php foreach ($list as $group_name => $group) : ?>
<li>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_articles_latest/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<ul class="latestnews<?php echo $moduleclass_sfx; ?>">
<ul class="latestnews<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<li itemscope itemtype="https://schema.org/Article">
<a href="<?php echo $item->link; ?>" itemprop="url">
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_articles_news/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<div class="newsflash<?php echo $moduleclass_sfx; ?>">
<div class="newsflash<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item'); ?>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_articles_popular/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<ul class="mostread<?php echo $moduleclass_sfx; ?>">
<ul class="mostread<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<li itemscope itemtype="https://schema.org/Article">
<a href="<?php echo $item->link; ?>" itemprop="url">
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_banners/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
JLoader::register('BannerHelper', JPATH_ROOT . '/components/com_banners/helpers/banner.php');
$baseurl = JUri::base();
?>
<div class="bannergroup<?php echo $moduleclass_sfx ?>">
<div class="bannergroup<?php echo $moduleclass_sfx ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($headerText) : ?>
<?php echo $headerText; ?>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_breadcrumbs/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
JHtml::_('bootstrap.tooltip');
?>

<ul itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb<?php echo $moduleclass_sfx; ?>">
<ul itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($params->get('showHere', 1)) : ?>
<li>
<?php echo JText::_('MOD_BREADCRUMBS_HERE'); ?>&#160;
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_custom/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
?>


<div class="custom<?php echo $moduleclass_sfx ?>" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?> >
<div class="custom<?php echo $moduleclass_sfx ?>"<?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?><?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php echo $module->content;?>
</div>
2 changes: 1 addition & 1 deletion modules/mod_feed/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
$iUrl = isset($feed->image) ? $feed->image : null;
$iTitle = isset($feed->imagetitle) ? $feed->imagetitle : null;
?>
<div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>; text-align: <?php echo $rssrtl ? 'right' :'left'; ?> ! important" class="feed<?php echo $moduleclass_sfx; ?>">
<div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>; text-align: <?php echo $rssrtl ? 'right' :'left'; ?> ! important" class="feed<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php
// Feed description
if (!is_null($feed->title) && $params->get('rsstitle', 1))
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_finder/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
JFactory::getDocument()->addScriptDeclaration($script);
?>

<form id="mod-finder-searchform<?php echo $module->id; ?>" action="<?php echo JRoute::_($route); ?>" method="get" class="form-search">
<form id="mod-finder-searchform<?php echo $module->id; ?>" action="<?php echo JRoute::_($route); ?>" method="get" class="form-search"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<div class="finder<?php echo $suffix; ?>">
<?php
// Show the form fields.
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_languages/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
JHtml::_('formbehavior.chosen');
}
?>
<div class="mod-languages<?php echo $moduleclass_sfx; ?>">
<div class="mod-languages<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($headerText) : ?>
<div class="pretext"><p><?php echo $headerText; ?></p></div>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_random_image/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<div class="random-image<?php echo $moduleclass_sfx ?>">
<div class="random-image<?php echo $moduleclass_sfx ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($link) : ?>
<a href="<?php echo $link; ?>">
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_related_items/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<ul class="relateditems<?php echo $moduleclass_sfx; ?>">
<ul class="relateditems<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<li>
<a href="<?php echo $item->route; ?>">
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_search/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$width = '';
}
?>
<div class="search<?php echo $moduleclass_sfx ?>">
<div class="search<?php echo $moduleclass_sfx ?>" <?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
<?php
$output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> ';
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_stats/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;
?>
<dl class="stats-module<?php echo $moduleclass_sfx ?>">
<dl class="stats-module<?php echo $moduleclass_sfx ?>" <?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($list as $item) : ?>
<dt><?php echo $item->title;?></dt>
<dd><?php echo $item->data;?></dd>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_syndicate/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
defined('_JEXEC') or die;

?>
<a href="<?php echo $link ?>" class="syndicate-module<?php echo $moduleclass_sfx ?>">
<a href="<?php echo $link ?>" class="syndicate-module<?php echo $moduleclass_sfx ?>" <?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php echo JHtml::_('image', 'system/livemarks.png', 'feed-image', null, true); ?>
<?php if ($params->get('display_text', 1)) : ?>
<span>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_tags_popular/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

?>
<?php JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php'); ?>
<div class="tagspopular<?php echo $moduleclass_sfx; ?>">
<div class="tagspopular<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if (!count($list)) : ?>
<div class="alert alert-no-items"><?php echo JText::_('MOD_TAGS_POPULAR_NO_ITEMS_FOUND'); ?></div>
<?php else : ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_tags_similar/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

?>
<?php JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php'); ?>
<div class="tagssimilar<?php echo $moduleclass_sfx; ?>">
<div class="tagssimilar<?php echo $moduleclass_sfx; ?>"<?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($list) : ?>
<ul>
<?php foreach ($list as $i => $item) : ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_users_latest/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
defined('_JEXEC') or die;
?>
<?php if (!empty($names)) : ?>
<ul class="latestusers<?php echo $moduleclass_sfx ?>" >
<ul class="latestusers<?php echo $moduleclass_sfx ?>" <?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php foreach ($names as $name) : ?>
<li>
<?php echo $name->username; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_whosonline/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<?php endif; ?>

<?php if (($showmode > 0) && count($names)) : ?>
<ul class="whosonline<?php echo $moduleclass_sfx ?>" >
<ul class="whosonline<?php echo $moduleclass_sfx ?>" <?php if ($params->get('modulecss_id')) : ?> id="<?php echo $params->get('module_id'); ?>"<?php endif;?>>
<?php if ($params->get('filter_groups')):?>
<p><?php echo JText::_('MOD_WHOSONLINE_SAME_GROUP_MESSAGE'); ?></p>
<?php endif;?>
Expand Down