Files
conservatorio-tomadini/modules/mod_highlights/mod_highlights.php
2024-12-31 11:07:09 +01:00

24 lines
772 B
PHP

<?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'));