HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/biologia/components/com_jevents/views/default/helpers/defaulteventslegend.php
<?php 
defined('_JEXEC') or die('Restricted access');

function DefaultEventsLegend($view){
	$cfg = JEVConfig::getInstance();
	
	if ($cfg->get('com_calShowLegend', 1) == 1) {
	
	$theme = JEV_CommonFunctions::getJEventsViewName();	
		
	$modpath = JModuleHelper::getLayoutPath('mod_jevents_legend',$theme.'/'."legend");
	if (!file_exists($modpath) || !file_exists(JPATH_SITE.'/modules/mod_jevents_legend/helper.php'))  return;


	// load the helper class
	require_once (JPATH_SITE.'/modules/mod_jevents_legend/helper.php');
	require_once($modpath);

	$viewclass = ucfirst($theme)."ModLegendView";

	$module = JModuleHelper::getModule("mod_jevents_legend",false);
	$params = new JRegistry( $module->params );

	$modview = new $viewclass($params, $module->id);
	echo $modview->displayCalendarLegend("block");

	echo "<br style='clear:both;height:0px;line-height:0px;'/>";
	} else {
		//Do nothing
	}
}