[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/modules/mod_custom/ -> mod_custom.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  mod_custom
   6   *
   7   * @copyright   (C) 2009 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\Helper\ModuleHelper;
  14  use Joomla\CMS\HTML\HTMLHelper;
  15  use Joomla\CMS\Plugin\PluginHelper;
  16  
  17  if ($params->def('prepare_content', 1)) {
  18      PluginHelper::importPlugin('content');
  19      $module->content = HTMLHelper::_('content.prepare', $module->content, '', 'mod_custom.content');
  20  }
  21  
  22  // Replace 'images/' to '../images/' when using an image from /images in backend.
  23  $module->content = preg_replace('*src\=\"(?!administrator\/)images/*', 'src="../images/', $module->content);
  24  
  25  require ModuleHelper::getLayoutPath('mod_custom', $params->get('layout', 'default'));


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer