[ 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 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\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Uri\Uri; 16 17 $modId = 'mod-custom' . $module->id; 18 19 if ($params->get('backgroundimage')) { 20 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 21 $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); 22 $wa->addInlineStyle(' 23 #' . $modId . '{background-image: url("' . Uri::root(true) . '/' . HTMLHelper::_('cleanImageURL', $params->get('backgroundimage'))->url . '");} 24 ', ['name' => $modId]); 25 } 26 27 ?> 28 29 <div id="<?php echo $modId; ?>" class="mod-custom custom"> 30 <?php echo $module->content; ?> 31 </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 |