acf
This commit is contained in:
23
modules/mod_highlights/mod_highlights.php
Normal file
23
modules/mod_highlights/mod_highlights.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @version CVS: 1.0.0
|
||||
* @package com_highlights
|
||||
* @subpackage mod_highlights
|
||||
* @author Eddy Prosperi <eddy.prosperi@protocollicreativi.it>
|
||||
* @copyright 2024 Eddy Prosperi
|
||||
* @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Helper\ModuleHelper;
|
||||
use Pcrt\Module\Highlights\Site\Helper\HighlightsHelper;
|
||||
|
||||
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
|
||||
$wr = $wa->getRegistry();
|
||||
$wr->addRegistryFile('media/mod_highlights/joomla.asset.json');
|
||||
$wa->useStyle('mod_highlights.style')
|
||||
->useScript('mod_highlights.script');
|
||||
|
||||
require ModuleHelper::getLayoutPath('mod_highlights', $params->get('content_type', 'blank'));
|
||||
Reference in New Issue
Block a user