Merge pull request #447 from joomdonation/small_fixes

[4.0] Few small fixes
This commit is contained in:
Tuan Pham Ngoc 2021-08-18 12:12:07 +07:00 committed by GitHub
commit ac0bee47a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -413,7 +413,7 @@
type="radio"
label="JGLOBAL_CUSTOM_FIELDS_ENABLE_LABEL"
layout="joomla.form.field.radio.switcher"
default="0"
default="1"
>
<option value="0">JNO</option>
<option value="1">JYES</option>

View File

@ -27,7 +27,7 @@ use Joomla\CMS\HTML\HTMLHelper;
<?php endif; ?>
<?php endforeach; ?>
<?php if ($cols > 1) :?>
<?php if ($k % $cols == 0) :?>
<?php if ($k % $cols == 0) : ?>
<div class="row row-fluid">
<?php endif; ?>
<div class="col-' . 12 / $cols . '">
@ -36,7 +36,7 @@ use Joomla\CMS\HTML\HTMLHelper;
<strong> <?php echo htmlspecialchars($cat['title'], ENT_COMPAT, 'UTF-8'); ?></strong>
<?php endif; ?>;
<ul class="mod-list weblinks ' . $moduleclass_sfx . '">
<?php foreach ($items as $item) :?>
<?php foreach ($items as $item) : ?>
<li><div class="d-flex flex-wrap">
<div class="col flex-sm-grow-1">
<?php $link = $item->link; ?>
@ -76,7 +76,7 @@ use Joomla\CMS\HTML\HTMLHelper;
}
?>
</div>
<?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : '';?>
<?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : ''; ?>
<?php if ($params->get('hits', 0)) : ?>
<div class="col flex-sm-grow-1">
<span class="badge bg-info float-md-end"> <?php echo $item->hits . ' ' . Text::_('MOD_WEBLINKS_HITS'); ?></span>
@ -134,7 +134,7 @@ use Joomla\CMS\HTML\HTMLHelper;
}
?>
</div>
<?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : '';?>
<?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : ''; ?>
<?php if ($params->get('hits', 0)) : ?>
<div class="col flex-sm-grow-1">
<span class="badge bg-info float-md-end"><?php echo $item->hits . ' ' . Text::_('MOD_WEBLINKS_HITS'); ?></span>