Skip to content

Commit

Permalink
replace hard coded icon for fa-plus by JLayout iconclass for icon new
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Sep 11, 2020
1 parent f2d3667 commit 509265d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\LanguageHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Session\Session;
use Joomla\Database\ParameterType;

Expand Down Expand Up @@ -178,7 +179,8 @@ protected function getInput()
. ' data-toggle="modal"'
. ' type="button"'
. ' data-target="#ModalNew' . $modalId . '">'
. '<span class="fas fa-plus" aria-hidden="true"></span> ' . Text::_('JACTION_CREATE')
. LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'new'])
. ' ' . Text::_('JACTION_CREATE')
. '</button>';
}

Expand Down

0 comments on commit 509265d

Please sign in to comment.