b0y-101 Mini Shell


Current Path : E:/www/risk/administrator/components/com_accordeonmenuck/elements/
File Upload :
Current File : E:/www/risk/administrator/components/com_accordeonmenuck/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;

require_once 'ckformfield.php';

class JFormFieldCklight extends CKFormField {

	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[] = JText::_('ACCORDEONMENUCK_USE_FREE_VERSION');
		$html[] = ' <a href="https://www.joomlack.fr/en/joomla-extensions/accordeonmenu-ck" target="_blank">';
		$html[] = '<span class="cklabel cklabel-info"><i class="fas fa-link"></i> ' . JText::_('ACCORDEONMENUCK_GET_PRO_INFOS') . '</label>';
		$html[] = '</a>';
		$html[] = '</div>';

//		if (! $testparams) {
//			$html[] = 'Mettre ici description de la version pro avec les fonctionnalités et le lien';
//		}

		return implode('', $html);
	}

	// protected function testParams() {
		// if (JFile::exists(JPATH_ROOT.'/plugins/system/accordeonmenuckparams/accordeonmenuckparams.php')) {
			// $this->state = 'green';
			// return JText::_('ACCORDEONMENUCK_USE_PRO_VERSION');
		// }
		// return false;
	// }
}

Copyright © 2019 by b0y-101