| Current Path : /home/jcjack6/transformptyoga.com/administrator/components/com_maximenuck/elements/ |
| Current File : /home/jcjack6/transformptyoga.com/administrator/components/com_maximenuck/elements/cklight.php |
<?php
/**
* @copyright Copyright (C) 2017 Cedric KEIFLIN alias ced1870
* https://www.joomlack.fr
* @license GNU/GPL
* */
// no direct access
defined('JPATH_PLATFORM') or die;
class JFormFieldCklight extends \Joomla\CMS\Form\FormField {
protected $type = 'cklight';
protected function getLabel() {
return '';
}
protected function getInput() {
$html = array();
// Add the label text and closing tag.
$html[] = '<div id="' . $this->id . '-lbl" class="ckinfo">';
$html[] = '<i class="fas fa-info" style="color:orange"></i>';
$html[] = \Joomla\CMS\Language\Text::_('MAXIMENUCK_USE_FREE_VERSION');
$html[] = ' <a href="https://www.joomlack.fr/en/joomla-extensions/maximenu-ck" target="_blank">';
$html[] = '<span class="cklabel cklabel-info"><i class="fas fa-link"></i> ' . \Joomla\CMS\Language\Text::_('MAXIMENUCK_GET_PRO_INFOS') . '</label>';
$html[] = '</a>';
$html[] = '</div>';
return implode('', $html);
}
// protected function testParams() {
// if (\Joomla\CMS\Filesystem\File::exists(JPATH_ROOT.'/plugins/system/maximenuckparams/maximenuckparams.php')) {
// $this->state = 'green';
// return \Joomla\CMS\Language\Text::_('MAXIMENUCK_USE_PRO_VERSION');
// }
// return false;
// }
}