public function __construct(array $attributes = array())
 {
     $versions = array(null => '<personnalisé>');
     parent::__construct($attributes + array(self::CHILDREN => array(new Element('div', array(Element::CHILDREN => array('<span class="add-on">Size</span>', 'width' => $this->elements['width'] = new Text(array('class' => 'measure', 'size' => 5)), '<span class="add-on">&times</span>', 'height' => $this->elements['height'] = new Text(array('class' => 'measure', 'size' => 5)), '<span class="add-on">px</span>'), 'class' => 'input-prepend input-append')), 'method' => $this->elements['method'] = new Element('select', array(Form::LABEL => 'Méthode', Element::OPTIONS => array(Image::RESIZE_FILL => 'Remplir', Image::RESIZE_FIT => 'Ajuster', Image::RESIZE_SURFACE => 'Surface', Image::RESIZE_FIXED_HEIGHT => 'Hauteur fixe, largeur ajustée', Image::RESIZE_FIXED_HEIGHT_CROPPED => 'Hauteur fixe, largeur respectée', Image::RESIZE_FIXED_WIDTH => 'Largeur fixe, hauteur ajustée', Image::RESIZE_FIXED_WIDTH_CROPPED => 'Largeur fixe, hauteur respectée', Image::RESIZE_CONSTRAINED => 'Contraindre'))), new Element('div', array(Group::LABEL => 'Format', Element::CHILDREN => array('format' => $this->elements['format'] = new Element('select', array(self::OPTIONS => array('jpeg' => 'JPEG', 'png' => 'PNG', 'gif' => 'GIF'), self::DEFAULT_VALUE => 'jpeg', 'style' => 'width: auto;')), '&nbsp;', 'quality' => $this->elements['quality'] = new Text(array(Text::ADDON => 'Qualité', Text::ADDON_POSITION => 'before', self::DEFAULT_VALUE => 90, 'class' => 'measure', 'size' => 3))), 'class' => 'format-combo')), 'background' => $this->elements['background'] = new Text(array(Group::LABEL => 'Remplissage')), 'lightbox' => $this->elements['lightbox'] = new Element(Element::TYPE_CHECKBOX, array(Element::LABEL => "Afficher l'original en lightbox"))), 'class' => 'widget-adjust-thumbnail-options', 'data-widget-constructor' => 'AdjustThumbnailOptions'));
     $this->tag_name = 'div';
 }
Ejemplo n.º 2
0
 public function __construct(array $attributes = array())
 {
     global $core;
     parent::__construct($attributes + array(Element::CHILDREN => array('image_id' => $this->elements['image_id'] = new PopOrUploadImage(array(Element::REQUIRED => true)), new Group(array(Element::CHILDREN => array('title' => $this->elements['title'] = new Text(array(Text::ADDON => '<i class="icon-pencil"></i>', Text::ADDON_POSITION => 'before')), 'link' => $this->elements['link'] = new Text(array(Text::ADDON => '<i class="icon-link"></i>', Text::ADDON_POSITION => 'before'))), 'name' => 'metas')), 'caption' => $this->elements['caption'] = $core->editors['rte']->from(array(RTEEditorElement::ACTIONS => 'minimal', 'rows' => 5, 'cols' => 32))), Element::WIDGET_CONSTRUCTOR => 'AdjustPhoto', 'class' => 'widget-adjust-photo'));
 }
 public function __construct(array $attributes = array())
 {
     global $core;
     parent::__construct(\ICanBoogie\array_merge_recursive(array(Element::CHILDREN => array(new Element('div', array(Form::LABEL => 'Dimensions', Element::CHILDREN => array('w' => $this->elements['w'] = new Text(array(Text::ADDON => 'px', 'class' => 'measure', 'size' => 5)), ' × ', 'h' => $this->elements['h'] = new Text(array(Text::ADDON => 'px', 'class' => 'measure', 'size' => 5))))), 'method' => $this->elements['method'] = new Element('select', array(Form::LABEL => 'Méthode', Element::OPTIONS => array(Image::RESIZE_FILL => 'Remplir', Image::RESIZE_FIT => 'Ajuster', Image::RESIZE_SURFACE => 'Surface', Image::RESIZE_FIXED_HEIGHT => 'Hauteur fixe, largeur ajustée', Image::RESIZE_FIXED_HEIGHT_CROPPED => 'Hauteur fixe, largeur respectée', Image::RESIZE_FIXED_WIDTH => 'Largeur fixe, hauteur ajustée', Image::RESIZE_FIXED_WIDTH_CROPPED => 'Largeur fixe, hauteur respectée', Image::RESIZE_CONSTRAINED => 'Contraindre'))), 'no-upscale' => $this->elements['no-upscale'] = new Element(Element::TYPE_CHECKBOX, array(Element::LABEL => 'Redimensionner mais ne pas agrandir')), new Element('div', array(Form::LABEL => 'Format de la miniature', self::CHILDREN => array('format' => $this->elements['format'] = new Element('select', array(self::OPTIONS => array('jpeg' => 'JPEG', 'png' => 'PNG', 'gif' => 'GIF'), self::DEFAULT_VALUE => 'jpeg', 'style' => 'vertical-align: middle; width: auto')), '&nbsp;', 'quality' => $this->elements['quality'] = new Text(array(Text::ADDON => 'Qualité', Text::ADDON_POSITION => 'before', self::DEFAULT_VALUE => 80, 'class' => 'measure', 'size' => 3))))), 'background' => $this->elements['background'] = new Text(array(Form::LABEL => 'Remplissage')), 'filter' => $this->elements['filter'] = new Text(array(Form::LABEL => 'Filtre'))), 'class' => 'adjust widget-adjust-thumbnail-version', 'data-widget-constructor' => 'AdjustThumbnailVersion'), $attributes));
 }
Ejemplo n.º 4
0
 public function __construct(array $attributes = array())
 {
     parent::__construct(\ICanBoogie\array_merge_recursive(array(self::CHILDREN => array('from' => new Text(array(Group::LABEL => 'email_from')), 'destination' => new Text(array(Group::LABEL => 'email_destination')), 'bcc' => new Text(array(Group::LABEL => 'email_bcc')), 'subject' => new Text(array(Group::LABEL => 'email_subject')), 'template' => new Element('textarea', array(Group::LABEL => 'email_template')))), $attributes));
 }