[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\Language\Text; 15 16 $icon = $displayData['icon'] ?? 'icon-copy article'; 17 $textPrefix = $displayData['textPrefix'] ?? ''; 18 $textSuffix = $displayData['textSuffix'] ?? ''; 19 $title = $displayData['title'] ?? ''; 20 $componentLangString = $textPrefix . '_EMPTYSTATE_TITLE' . $textSuffix; 21 $moduleLangString = $textPrefix . '_EMPTYSTATE_MODULE_TITLE' . $textSuffix; 22 23 // Did we have a definitive title provided to the view? If not, let's find one! 24 if (!$title) { 25 // Can we find a *_EMPTYSTATE_MODULE_TITLE translation, Else use the components *_EMPTYSTATE_TITLE string 26 $title = Factory::getApplication()->getLanguage()->hasKey($moduleLangString) ? $moduleLangString : $componentLangString; 27 } 28 ?> 29 <div class="mb-4"> 30 <p class="fw-bold text-center text-muted"> 31 <span class="<?php echo $icon; ?>" aria-hidden="true"></span> <?php echo Text::_($title); ?> 32 </p> 33 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |