[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage mod_latest 6 * 7 * @copyright (C) 2005 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\Component\ComponentHelper; 14 use Joomla\CMS\Helper\ModuleHelper; 15 use Joomla\CMS\Layout\LayoutHelper; 16 use Joomla\Module\Latest\Administrator\Helper\LatestHelper; 17 18 $model = $app->bootComponent('com_content')->getMVCFactory()->createModel('Articles', 'Administrator', ['ignore_request' => true]); 19 $list = LatestHelper::getList($params, $model); 20 $workflow_enabled = ComponentHelper::getParams('com_content')->get('workflow_enabled'); 21 22 if ($workflow_enabled) { 23 $app->getLanguage()->load('com_workflow'); 24 } 25 26 if ($params->get('automatic_title', 0)) { 27 $module->title = LatestHelper::getTitle($params); 28 } 29 30 if (count($list)) { 31 require ModuleHelper::getLayoutPath('mod_latest', $params->get('layout', 'default')); 32 } else { 33 $app->getLanguage()->load('com_content'); 34 35 echo LayoutHelper::render('joomla.content.emptystate_module', [ 36 'textPrefix' => 'COM_CONTENT', 37 'icon' => 'icon-copy', 38 ]); 39 }
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 |