| Current Path : /home/w/u/e/wuectly/www/03cbe/ |
| Current File : /home/w/u/e/wuectly/www/03cbe/elements.zip |
PK �#]$��� � ckradio.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
defined('JPATH_PLATFORM') or die;
class JFormFieldCkradio extends JFormField {
protected $type = 'Ckradio';
protected function getInput() {
$html = array();
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
$icon = $this->element['icon'];
// Start the radio field output.
$html[] = $icon ? '<div style="display:inline-block;vertical-align:top;margin-top:5px;width:20px;"><img src="' . $this->getPathToElements() . '/images/' . $icon . '" style="margin-right:5px;" /></div>' : '<div style="display:inline-block;width:20px;"></div>';
$html[] = '<fieldset id="' . $this->id . '-fieldset"' . $class . ' style="display:inline-block;">';
$html[] = '<input type="hidden" isradio="1" id="' . $this->id . '" class="' . $this->element['class'] . '" value="' . $this->value . '" />';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
if (stristr($option->text, "img:"))
$option->text = '<img src="' . $this->getPathToElements() . '/images/' . str_replace("img:", "", $option->text) . '" style="margin:0; float:none;" />';
// Initialize some option attributes.
$checked = ((string) $option->value == (string) $this->value) ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$onclick = ' onclick="$(\'' . $this->id . '\').setProperty(\'value\',this.value);"';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="'
. htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>'
. JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)) . '</label>';
}
// End the radio field output.
$html[] = '</fieldset>';
return implode($html);
}
protected function getPathToElements() {
$localpath = dirname(__FILE__);
$rootpath = JPATH_ROOT;
$httppath = trim(JURI::root(), "/");
$pathtoelements = str_replace("\\", "/", str_replace($rootpath, $httppath, $localpath));
return $pathtoelements;
}
/**
* Method to get the field options for radio buttons.
*
* @return array The field option objects.
*
* @since 11.1
*/
protected function getOptions() {
$options = array();
foreach ($this->element->children() as $option) {
// Only add <option /> elements.
if ($option->getName() != 'option') {
continue;
}
// Create a new option object based on the <option /> element.
$tmp = JHtml::_(
'select.option', (string) $option['value'], trim((string) $option), 'value', 'text',
((string) $option['disabled'] == 'true')
);
// Set some option attributes.
$tmp->class = (string) $option['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $option['onclick'];
// Add the option object to the result set.
$options[] = $tmp;
}
reset($options);
return $options;
}
/**
* Method to get the field label markup.
*
* @return string The field label markup.
*
* @since 11.1
*/
protected function getLabel() {
$label = '';
if ($this->hidden) {
return $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 = $this->translateLabel ? JText::_($text) : $text;
// Build the class for the label.
$class = !empty($this->description) ? 'hasTip hasTooltip' : '';
$class = $this->required == true ? $class . ' required' : $class;
$class = !empty($this->labelClass) ? $class . ' ' . $this->labelClass : $class;
// Add the opening label tag and main attributes attributes.
$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 />' . ($this->translateDescription ? JText::_($this->description) : $this->description),
ENT_COMPAT, 'UTF-8'
) . '"';
}
$width = $this->element['labelwidth'] ? $this->element['labelwidth'] : '150px';
$styles = ' style="min-width:' . $width . ';max-width:' . $width . ';width:' . $width . ';"';
// Add the label text and closing tag.
if ($this->required) {
$label .= $styles . '>' . $text . '<span class="star"> *</span></label>';
} else {
$label .= $styles . '>' . $text . '</label>';
}
return $label;
}
}
PK �#]LŗZ ckspacer.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
class JFormFieldCkspacer extends JFormField {
protected $type = 'ckspacer';
protected function getInput() {
return ' ';
}
protected function getLabel() {
$html = array();
$class = $this->element['class'] ? (string) $this->element['class'] : '';
$style = $this->element['style'];
$styles = '';
if ($style == 'title')
$styles = ' style="display:block;background:#666;padding:5px;color:#eee;min-width:350px;text-transform:uppercase;font-size:14px;border-radius:3px;text-shadow:1px 1px 2px #000;text-indent: 10px;"';
if ($style == 'link')
$styles = ' style="display:block;background:#efefef;padding:5px;color:#000;min-width:350px;line-height:25px;border-radius:3px;"';
$html[] = '<span class="spacer">';
$html[] = '<span class="before"></span>';
$html[] = '<span class="' . $class . '">';
if ((string) $this->element['hr'] == 'true') {
$html[] = '<hr class="' . $class . '" />';
} else {
$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 = $this->translateLabel ? JText::_($text) : $text;
// Test to see if the patch is installed
$testpatch = $this->element['testpatch'] ? $this->testPatch($this->element['testpatch']) : null;
$text = $testpatch ? $testpatch : $text;
// set the icon
$icon = $this->element['icon'];
// Build the class for the label.
$class = !empty($this->description) ? 'hasTip hasTooltip' : '';
$class = $this->required == true ? $class . ' required' : $class;
// Add the opening label tag and main attributes attributes.
$label .= '<label id="' . $this->id . '-lbl" class="' . $class . '"';
// If a description is specified, use it to build a tooltip.
if (!empty($this->description)) {
$label .= ' title="' . htmlspecialchars(trim($text, ':') . '<br />' .
($this->translateDescription ? JText::_($this->description) : $this->description), ENT_COMPAT, 'UTF-8') . '"';
}
// Add the label text and closing tag.
$label .= $styles . '>';
$label .= $icon ? '<img src="' . $this->getPathToImages() . '/images/' . $icon . '" style="margin-right:5px;" />' : '';
$label .= $text . '</label>';
$html[] = $label;
}
$html[] = '</span>';
$html[] = '<span class="after"></span>';
$html[] = '</span>';
return implode('', $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 getTitle() {
return $this->getLabel();
}
protected function testPatch($component) {
if (JFile::exists(JPATH_ROOT.'/modules/mod_maximenuck/helper_'.$component.'.php')) {
$this->element['icon'] = 'accept.png';
return JText::_('MOD_MAXIMENUCK_SPACER_'.strtoupper($component).'_PATCH_INSTALLED');
}
return false;
}
}
PK �#]��(O O cktestslideshowparamsplugin.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
class JFormFieldCktestslideshowparamsplugin extends JFormField {
protected $type = 'cktestslideshowparamsplugin';
protected function getInput() {
return ' ';
}
protected function getLabel() {
$html = array();
$class = $this->element['class'] ? (string) $this->element['class'] : '';
$style = $this->element['style'];
$styles = '';
if ($style == 'title')
$styles = ' style="display:block;background:#666;padding:5px;color:#eee;min-width:300px;text-transform:uppercase;font-size:14px;"';
if ($style == 'link')
$styles = ' style="display:block;background:#efefef;padding:5px;color:#000;min-width:300px;line-height:25px;"';
$html[] = '<span class="spacer">';
$html[] = '<span class="before"></span>';
$html[] = '<span class="' . $class . '">';
if ((string) $this->element['hr'] == 'true') {
$html[] = '<hr class="' . $class . '" />';
} else {
$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 = $this->translateLabel ? JText::_($text) : $text;
// Test to see if the patch is installed
$testpatch = $this->testPatch('slideshowckparams');
$text = $testpatch ? $testpatch : $text;
// set the icon
$icon = $this->element['icon'];
// Build the class for the label.
$class = !empty($this->description) ? 'hasTip hasTooltip' : '';
$class = $this->required == true ? $class . ' required' : $class;
// Add the opening label tag and main attributes attributes.
$label .= '<label id="' . $this->id . '-lbl" class="' . $class . '"';
// If a description is specified, use it to build a tooltip.
if (!empty($this->description)) {
$label .= ' title="' . htmlspecialchars(trim($text, ':') . '<br />' .
($this->translateDescription ? JText::_($this->description) : $this->description), ENT_COMPAT, 'UTF-8') . '"';
}
// Add the label text and closing tag.
$label .= $styles . '>';
$label .= $icon ? '<img src="' . $this->getPathToImages() . '/images/' . $icon . '" style="margin-right:5px;" />' : '';
$label .= $text . '</label>';
$html[] = $label;
}
$html[] = '</span>';
$html[] = '<span class="after"></span>';
$html[] = '</span>';
return implode('', $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 getTitle() {
return $this->getLabel();
}
protected function testPatch($component) {
if (JFile::exists(JPATH_ROOT . '/plugins/system/' . $component .'/'. $component . '.php')
&& JPluginHelper::isEnabled('system',$component)) {
$this->element['icon'] = 'accept.png';
return JText::_('MOD_SLIDESHOWCK_SPACER_' . strtoupper($component) . '_PATCH_INSTALLED');
}
return false;
}
}
PK �#]GD��� � ckfolderlist.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* Module Maximenu CK
* @license GNU/GPL
* */
defined('JPATH_PLATFORM') or die;
jimport('joomla.html.html');
jimport('joomla.filesystem.folder');
jimport('joomla.form.formfield');
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('cklist');
class JFormFieldCkfolderList extends JFormFieldCklist
{
public $type = 'CkfolderList';
protected function getOptions()
{
// Initialize variables.
$options = array();
// Initialize some field attributes.
$filter = (string) $this->element['filter'];
$exclude = (string) $this->element['exclude'];
$hideNone = (string) $this->element['hide_none'];
$hideDefault = (string) $this->element['hide_default'];
// Get the path in which to search for file options.
$path = (string) $this->element['directory'];
if (!is_dir($path)) {
$path = JPATH_ROOT.'/'.$path;
}
// Prepend some default options based on field attributes.
if (!$hideNone) {
$options[] = JHtml::_('select.option', '-1', JText::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
}
if (!$hideDefault) {
$options[] = JHtml::_('select.option', '', JText::alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
}
// Get a list of folders in the search path with the given filter.
$folders = JFolder::folders($path, $filter);
// Build the options list from the list of folders.
if (is_array($folders)) {
foreach($folders as $folder) {
// Check to see if the file is in the exclude mask.
if ($exclude) {
if (preg_match(chr(1).$exclude.chr(1), $folder)) {
continue;
}
}
$options[] = JHtml::_('select.option', $folder, $folder);
}
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
}
PK �#]�0 0
ckvotejed.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2015 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.form.form');
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
class JFormFieldCkvotejed extends JFormField {
protected $type = 'ckvotejed';
protected function getLabel() {
$styles = 'background:#efefef;';
$styles .= 'border: none;';
$styles .= 'border-radius: 3px;';
$styles .= 'color: #333;';
$styles .= 'font-weight: normal;';
$styles .= 'line-height: 24px;';
$styles .= 'padding: 5px;';
$styles .= 'margin: 3px 0;';
$styles .= 'text-align: left;';
$styles .= 'text-decoration: none;';
$styles .= 'min-width: 400px;';
// 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 = $this->translateLabel ? JText::_($text) : $text;
$html = '<div style="' . $styles . '"><img src="' . $this->getPathToElements() . '/images/emoticon_smile.png" style="margin: 0 10px 0 0;" /><a href="' . $this->element['url'] . '" target="_blank">' . $text . '</a></div>';
return $html;
}
protected function getPathToElements() {
$localpath = dirname(__FILE__);
$rootpath = JPATH_ROOT;
$httppath = trim(JURI::root(), "/");
$pathtoimages = str_replace("\\", "/", str_replace($rootpath, $httppath, $localpath));
return $pathtoimages;
}
protected function getInput() {
return '';
}
}
PK �#]���3� � ckbackground.phpnu &1i� <?php
/**
* @copyright Copyright (C) 2011 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
class JFormFieldCkbackground extends JFormField {
protected $type = 'ckbackground';
protected function getInput() {
$styles = $this->element['styles'];
$background = $this->element['background'] ? 'background: url('.$this->getPathToElements() . '/images/' . $this->element['background'].') left top no-repeat;' : '';
$html = '<p style="'.$background.$styles.'" ></p>';
return $html;
}
protected function getLabel() {
return '';
}
protected function getPathToElements() {
$localpath = dirname(__FILE__);
$rootpath = JPATH_ROOT;
$httppath = trim(JURI::root(), "/");
$pathtoimages = str_replace("\\", "/", str_replace($rootpath, $httppath, $localpath));
return $pathtoimages;
}
}
PK �#]�#o, , ckradio2/index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK �#]7�'�� � ckradio2/ckradio2.jsnu &1i� window.addEvent('domready', function() {
$$('.radioClass').each(function(el2){el2.setStyle('opacity','0'); });
var monimage = $$('.boutonRadio');
monimage.each(function(el) {
el.addEvent('click',function(){
monimage.removeClass('coche');
el.addClass('coche');
var moninput = el.getFirst();
// test
var identifier = el.getProperty('identifier');
if ($(identifier)) $(identifier).value = moninput.value;
$$('.radioClass').each(function(el2){el2.removeAttribute("checked","checked"); });
moninput.setAttribute("checked","checked");
});
});
});PK �#]�{0� � ckradio2/ckradio2.cssnu &1i� fieldset.ckradio2 {
background : url(../images/ckradio2_fieldset_bg.png) left top repeat-x;
height: 16px;
border: 1px solid silver !important;
border-radius: 3px;
-moz-border-radius: 3px;
padding: 0;
margin-top: 5px !important;
}
.radioClass {
display:none;
height: 0;
width: 0;
}
.boutonRadio {
display : block;
float: left;
min-width : 20px;
height : 16px;
/*border-right: 1px solid white;*/
background : url(../images/ckradio2_fieldset_bg_separator.png) right top no-repeat;
cursor: pointer;
text-align: center;
padding: 0px;
}
.coche {
background : url(../images/ckradio2_fieldset_bg_active.png) left top repeat-x;
}
.radioClass {
position : absolute;
}PK �#]�t� � '