Skip to content

Commit

Permalink
Task techjoomla#208 chore: made changes in list field layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pravinTek committed Nov 20, 2019
1 parent b38134e commit e3ca0ee
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions site/layouts/fields/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// No direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Language\Text;

if (!key_exists('field', $displayData) || !key_exists('fieldXml', $displayData))
{
return;
Expand Down Expand Up @@ -40,7 +42,12 @@
if (isset($options[$field->value]))
{
$options[$field->value] = htmlspecialchars($options[$field->value], ENT_COMPAT, 'UTF-8');
echo JText::_(ucfirst($options[$field->value]));
echo Text::_(ucfirst($options[$field->value]));
}
elseif ($field->value != Text::_('COM_TJFIELDS_TJLIST_OTHER_OPTION_VALUE'))
{
echo Text::_(ucfirst(str_replace($field->type . ':-', '', $field->value)));
echo "<br>";
}
}
else
Expand All @@ -51,9 +58,14 @@
if (isset($options[$value]))
{
$options[$value] = htmlspecialchars($options[$value], ENT_COMPAT, 'UTF-8');
echo JText::_(ucfirst($options[$value]));
echo Text::_(ucfirst($options[$value]));
echo "<br>";
}
elseif ($value != Text::_('COM_TJFIELDS_TJLIST_OTHER_OPTION_VALUE'))
{
echo Text::_(ucfirst(str_replace($field->type . ':-', '', $value)));
echo "<br>";
}
}
}
}
}

0 comments on commit e3ca0ee

Please sign in to comment.