| Current Path : /home/wuectly/www/03cbe/ |
| Current File : /home/wuectly/www/03cbe/elements.zip |
PK �2$]��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 �2$]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 �2$]�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 �2$]~
�� � 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 �2$]�#o, ,
index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK �X$]�Z��e e title.phpnu &1i� <?php
/*------------------------------------------------------------------------
# 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 JFormFieldTitle extends JFormField
{
protected $type = 'Title';
protected function getInput()
{
return ' ';
}
protected function getLabel()
{
$html = array();
// texte a afficher
$label = $this->element['label'];
$label = $this->translateLabel ? JText::_($label) : $label;
// param�tre 'style' pour remplacer le style par d�faut
// a indiquer dans le xml sous la forme :
// style="margin:5px;border:1px dotted red"
// style="REDBOX" qui retourne le contenu de la cl� REDBOOX="margin:5px;border:1px dotted red"
$style = $this->element['style'];
$style = $this->translateLabel ? JText::_($style) : $style;
// contruction de la chaine retour
$html[] = "<div style='";
$html[] = $style;
$html[] = "display:block;clear:both;'>";
$html[] = $label;
$html[] = "</div>";
return implode('',$html);
}
}
PK �2$]��I�f f
xtitle.phpnu &1i� PK �2$]x�� �
� custom.cssnu &1i� PK �2$]�d2 2 �
xnote.phpnu &1i� PK �2$]~
�� � folderlistmakedir.phpnu &1i� PK �2$]�#o, ,
index.htmlnu &1i� PK �X$]�Z��e e j title.phpnu &1i� PK � !