[ 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\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 use Joomla\CMS\Router\Route; 17 18 $textPrefix = $displayData['textPrefix'] ?? ''; 19 20 if (!$textPrefix) { 21 $textPrefix = strtoupper(Factory::getApplication()->input->get('option')); 22 } 23 24 $formURL = $displayData['formURL'] ?? ''; 25 $createURL = $displayData['createURL'] ?? ''; 26 $helpURL = $displayData['helpURL'] ?? ''; 27 $title = $displayData['title'] ?? Text::_($textPrefix . '_EMPTYSTATE_TITLE'); 28 $content = $displayData['content'] ?? Text::_($textPrefix . '_EMPTYSTATE_CONTENT'); 29 $icon = $displayData['icon'] ?? 'icon-copy article'; 30 $append = $displayData['formAppend'] ?? ''; 31 $btnadd = $displayData['btnadd'] ?? Text::_($textPrefix . '_EMPTYSTATE_BUTTON_ADD'); 32 ?> 33 34 <form action="<?php echo Route::_($formURL); ?>" method="post" name="adminForm" id="adminForm"> 35 36 <div class="px-4 py-5 my-5 text-center"> 37 <span class="fa-8x mb-4 <?php echo $icon; ?>" aria-hidden="true"></span> 38 <h1 class="display-5 fw-bold"><?php echo $title; ?></h1> 39 <div class="col-lg-6 mx-auto"> 40 <p class="lead mb-4"> 41 <?php echo $content; ?> 42 </p> 43 <div class="d-grid gap-2 d-sm-flex justify-content-sm-center"> 44 <?php if ($createURL && Factory::getApplication()->input->get('tmpl') !== 'component') : ?> 45 <a href="<?php echo Route::_($createURL); ?>" 46 id="confirmButton" class="btn btn-primary btn-lg px-4 me-sm-3 emptystate-btnadd"><?php echo $btnadd; ?></a> 47 <?php endif; ?> 48 <?php if ($helpURL) : ?> 49 <a href="<?php echo $helpURL; ?>" target="_blank" 50 class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('JGLOBAL_LEARN_MORE'); ?></a> 51 <?php endif; ?> 52 </div> 53 </div> 54 </div> 55 56 <?php 57 // Allow appending any modals (Eg: Bulk Import on com_redirect). 58 echo $append; 59 ?> 60 61 <input type="hidden" name="task" value=""> 62 <input type="hidden" name="boxchecked" value="0"> 63 <?php echo HTMLHelper::_('form.token'); ?> 64 </form>
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 |