fc9da10888
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 9s
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
23 lines
741 B
PHP
23 lines
741 B
PHP
<?php
|
|
/**
|
|
* @package DPCalendar
|
|
* @copyright Copyright (C) 2018 Digital Peak GmbH. <https://www.digital-peak.com>
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
|
*/
|
|
|
|
\defined('_JEXEC') or die();
|
|
|
|
// Load the required modal JS libraries
|
|
if ($params->get('show_as_popup') || $params->get('show_map')) {
|
|
$document->loadScriptFile('default.js', 'mod_dpcalendar_upcoming');
|
|
$translator->translateJS('COM_DPCALENDAR_CLOSE');
|
|
}
|
|
|
|
if ($params->get('show_map')) {
|
|
$layoutHelper->renderLayout('block.map', $displayData);
|
|
}
|
|
|
|
// Load the stylesheet
|
|
$document->loadStyleFile(str_replace('_:', '', (string)$params->get('layout', 'default')) . '.css', 'mod_dpcalendar_upcoming');
|
|
$document->addStyle($params->get('custom_css', ''));
|