Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/elements.zip
Назад
PK �k!]��I�f f xtitle.phpnu &1i� <?php /* ------------------------------------------------------------------------ # mod_bgmax - Custom parameter Joomla! 1.6 for bgMax # Displays a title on the total width of the column parameter # type=title # label="text to display" (translatable) # style="color=red" (translatable)(optional) # 20-10-17: ajout class et chargement feuille de style custom.css # ------------------------------------------------------------------------ # author lomart # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved. # @license : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website : http://lomart.fr # Technical Support: Forum - http://forum.joomla.fr ------------------------------------------------------------------------- */ // no direct access defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); class JFormFieldxTitle extends JFormField { protected $type = 'xTitle'; protected function getInput() { return ''; } protected function getLabel() { // AJOUT FEUILLE CSS $cssPath = substr(__dir__, strlen(JPATH_ROOT) + 1) . '/custom.css'; JHtml::stylesheet($cssPath); $class = $this->element['class'] ? (string) $this->element['class'] : "param-title-default"; $style = $this->element['style'] ? (string) $this->element['style'] : ""; $style = $this->translateLabel ? JText::_($style) : $style; $label = $this->element['title'] ? (string) $this->element['title'] : (string) $this->element['name']; $label = $this->translateLabel ? JText::_($label) : $label; $desc = $this->element['subtitle']; $desc = $this->translateLabel ? JText::_($desc) : $desc; $html = array(); $html[] = '</div>'; // on ferme le control-label pour creer un bloc sur la largeur totale if ($this->element['label']) $html[] = '<span style="color:red">Dont use LABEL, but TITLE and SUBTITLE'; $out = '<div id="' . $this->id . '-lbl" class="' . $class . '"'; if ($style) $out .= ' style="' . $style . '"'; $html[] = $out . '>'; $html[] = ($label) ? ' <h3>' . $label . '</h3>' : ''; $html[] = ($desc) ? '<small>' . $desc . '</small>' : ''; // $html[] = '</div>'; // inutile, on récupère celui fermé au début return implode('', $html); } /** * Method to get the field title. * * @return string The field title. * * @since 11.1 */ protected function getTitle() { return $this->getLabel(); } } PK �k!]x�� � custom.cssnu &1i� .param-title-default { padding: 10px; background-color: #1A466B; border-left: red 10px solid; color: white; } .param-title-default h3 { margin:5px 0; } .param-title-note { padding: 10px 0; }PK �k!]�d2 2 xnote.phpnu &1i� <?php /* ------------------------------------------------------------------------ # mod_bgmax - Custom parameter Joomla! 1.6 for bgMax # Displays a title on the total width of the column parameter # type=title # label="text to display" (translatable) # style="color=red" (translatable)(optional) # 20-10-17: ajout class et chargement feuille de style custom.css # ------------------------------------------------------------------------ # author lomart # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved. # @license : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website : http://lomart.fr # Technical Support: Forum - http://forum.joomla.fr ------------------------------------------------------------------------- */ // no direct access defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); class JFormFieldxNote extends JFormField { protected $type = 'xNote'; protected function getInput() { return ''; } protected function getLabel() { // AJOUT FEUILLE CSS $cssPath = substr(__dir__, strlen(JPATH_ROOT) + 1) . '/custom.css'; JHtml::stylesheet($cssPath); $class = $this->element['class'] ? (string) $this->element['class'] : "param-title-note"; $style = $this->element['style'] ? (string) $this->element['style'] : ""; $style = $this->translateLabel ? JText::_($style) : $style; $hx = $this->element['heading'] ? (string) $this->element['heading'] : "p"; $note = $this->element['note'] ? (string) $this->element['note'] : (string) $this->element['name']; $note = $this->translateLabel ? JText::_($note) : $note; $html = array(); $html[] = '</div>'; // on ferme le control-label pour creer un bloc sur la largeur totale if ($this->element['label'] || $this->element['title']) $html[] = '<span style="color:red">Dont use LABEL, but TITLE and SUBTITLE'; $out = '<div id="' . $this->id . '-lbl" class="' . $class . '"'; if ($style) $out .= ' style="' . $style . '"'; $html[] = $out . '>'; $html[] = ($note) ? ' <'.$hx.'>' . $note . '</'.$hx.'>' : ''; // $html[] = '</div>'; // inutile, on récupère celui fermé au début return implode('', $html); } /** * Method to get the field title. * * @return string The field title. * * @since 11.1 */ protected function getTitle() { return $this->getLabel(); } } PK �k!]~ �� � folderlistmakedir.phpnu &1i� <?php /* ------------------------------------------------------------------------ # mod_bgmax - Custom parameter for bgMax # Create directory define by parameter 'directory' if no exist # ------------------------------------------------------------------------ # author lomart # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved. # @license : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website : http://lomart.fr # Technical Support: Forum - http://forum.joomla.fr ------------------------------------------------------------------------- */ // no direct access defined('JPATH_BASE') or die; jimport('joomla.html.html'); jimport('joomla.form.formfield'); jimport('joomla.form.helper'); JFormHelper::loadFieldClass('folderlist'); /** * Supports an HTML select list of image * * @package Joomla.Framework * @subpackage Form * @since 1.6 */ class JFormFieldFolderListMakeDir extends JFormFieldFolderList { /** * The form field type. * * @var string * @since 1.6 */ public $type = 'FolderListMakeDir'; /** * Method to get the field options. * * @return array The field option objects. * @since 1.6 */ protected function getOptions() { //-- dossier $folder = $this->element['directory']; $folder = strtr($folder, "\\", DIRECTORY_SEPARATOR); //-- Controle existence folder bgmax if (!JFolder::exists(JPATH_ROOT . DIRECTORY_SEPARATOR . $folder)) { if (!JFolder::create(JPATH_ROOT . DIRECTORY_SEPARATOR . $folder, 0755)) { print_r('Error, fail to create folder: ' . $folder); $folder = 'images/stories'; // Pour �viter erreur } } // Get the field options. return parent::getOptions(); } } PK �k!]�#o, , index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK Zt!]$��� � 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 Zt!]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 Zt!]��(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 Zt!]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 Zt!]л��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 Zt!]���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 Zt!]�#o, , ckradio2/index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK Zt!]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 Zt!]�{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 Zt!]�t� � '