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/administrator/components/com_jevents/fields/jevcolor.php
<?php
/**
 * JEvents Component for Joomla 1.5.x
 *
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();


include_once(JPATH_SITE."/libraries/joomla/form/fields/color.php");

class JFormFieldJevcolor extends JFormFieldColor
{
	protected function getInput()
	{
		$cfg = JEVConfig::getInstance();

		$hideColour = false;
		if (($cfg->get('com_calForceCatColorEventForm', 0) == 1) && (!JFactory::getApplication()->isAdmin()))
		{
			$hideColour = true;
		}
		else if ($cfg->get('com_calForceCatColorEventForm', 0) == 2)
		{
			$hideColour = true;
		}
		else {
			$hideColour = false;
		}

		if (!$hideColour)
		{

			return parent::getInput();
		}
		return "";
	}

	protected function getLabel()
	{
		if ($this->getInput())
		{
			return parent::getLabel();
		}
		return "";

	}

}