HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/administrator/components/com_jevents/fields/jevbreak.php
<?php
/**
 * @package     Joomla.Platform
 * @subpackage  Form
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 *
 * thanks to RokNavMenu for the ideas
 */

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Version;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\Factory;

/**
 * Form Field class for the Joomla Platform.
 * Supports a one line text field.
 *
 * @package     Joomla.Platform
 * @subpackage  Form
 * @link        http://www.w3.org/TR/html-markup/input.text.html#input.text
 * @since       11.1
 */
class FormFieldJevbreak extends FormField
{
	/**
	 * @var string
	 */
	protected $type = 'Jevbreak';

	/**
	 * @return string
	 */
	protected function getLabel()
	{

		$doc     = Factory::getDocument();
		$version = new Version();
		$doc->addStyleDeclaration(".jev-break {border-bottom:1px solid #eee;font-size:16px;color:#0088CC;margin-top:15px;padding:2px 0;width:100%}");

		if (isset($this->element['label']) && !empty($this->element['label']))
		{
			$label   = Text::_((string) $this->element['label']);
			$css     = (string) $this->element['class'];
			$version = new Version();
			if (version_compare($version->getShortVersion(), '3.0', '>='))
			{
				return '<div class="jev-break ' . $css . '">' . $label . '</div>';
			}
			else
			{
				return '<label class="jev-break ' . $css . '">' . $label . '</label>';
			}
		}
		else
		{
			return;
		}

	}

	/**
	 * @return mixed
	 */
	protected function getInput()
	{

		return;
	}

}