__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* https://www.joomlack.fr
* Module Maximenu CK
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
class JFormFieldCkcolor extends JFormField {
protected $type = 'ckcolor';
protected function getInput() {
$path = 'modules/mod_sliderck/elements/jscolor/';
JHTML::_('script', $path.'jscolor.js');
$html = '<img src="' . $this->getPathToImages() . '/images/color.png" /><input class="color {';
$html.= 'required:false,'; // empty possible
$html.= 'pickerPosition:\'top\','; // or left / right / top
$html.= 'pickerBorder:2,pickerInset:3,'; // or right / top
$html.= 'hash:true'; // # behind value
$html.= '}" type="text" value="' . $this->value . '" name="' . $this->name . '" style="width:100px;border-radius:3px;-moz-border-radius:3px;" />';
return $html;
}
protected function getPathToImages() {
$localpath = dirname(__FILE__);
$rootpath = JPATH_ROOT;
$httppath = trim(JURI::root(), "/");
$pathtoimages = str_replace("\\", "/", str_replace($rootpath, $httppath, $localpath));
return $pathtoimages;
}
protected function getLabel() {
$label = '';
// Get the label text from the XML element, defaulting to the element name.
$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];
$text = JText::_($text);
// Build the class for the label.
$class = !empty($this->description) ? 'hasTip hasTooltip' : '';
$label .= '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="' . $class . '"';
// If a description is specified, use it to build a tooltip.
if (!empty($this->description)) {
$label .= ' title="' . htmlspecialchars(trim($text, ':') . '<br />' .
JText::_($this->description), ENT_COMPAT, 'UTF-8') . '"';
}
$label .= ' style="min-width:150px;max-width:150px;width:150px;display:block;float:left;padding:1px;">' . $text . '</label>';
return $label;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ckbackground.php | File | 633 B | 0664 |
|
| ckcolor.php | File | 2.18 KB | 0664 |
|
| ckdocumentation.php | File | 763 B | 0664 |
|
| ckfolderlist.php | File | 1.9 KB | 0664 |
|
| ckformfield.php | File | 1.67 KB | 0664 |
|
| ckheight.php | File | 3.4 KB | 0664 |
|
| ckinfo.php | File | 2.46 KB | 0664 |
|
| cklayout.php | File | 3.77 KB | 0664 |
|
| cklight.php | File | 1.21 KB | 0664 |
|
| cklist.php | File | 2.22 KB | 0664 |
|
| ckmigrate.php | File | 4.64 KB | 0664 |
|
| ckpro.php | File | 917 B | 0664 |
|
| ckproducts.php | File | 2.65 KB | 0664 |
|
| ckproonly.php | File | 1.14 KB | 0664 |
|
| ckradio.php | File | 2.26 KB | 0664 |
|
| ckslidesmanager.php | File | 3.56 KB | 0664 |
|
| cksource.php | File | 2.13 KB | 0664 |
|
| ckspacer.php | File | 1.56 KB | 0664 |
|
| ckstyle.php | File | 3.22 KB | 0664 |
|
| cktext.php | File | 1.91 KB | 0664 |
|
| sliderckcolor.php | File | 901 B | 0664 |
|
| sliderckinterface.php | File | 1.89 KB | 0664 |
|
| slidercklist.php | File | 951 B | 0664 |
|
| sliderckradio.php | File | 1.09 KB | 0664 |
|
| sliderckspacer.php | File | 1.55 KB | 0664 |
|
| slidercktext.php | File | 843 B | 0664 |
|