public function __construct(array $attributes = array())
 {
     parent::__construct('a', $attributes + array('class' => 'spinner'));
 }
示例#2
0
 public function __construct(array $attributes = [])
 {
     $attributes += [self::T_SLUG_NAME => null, Element::LABEL => null, Element::LABEL_POSITION => 'before'];
     $label = $attributes[Element::LABEL];
     parent::__construct('div', $attributes + [Element::CHILDREN => [$this->title_el = new Text([Element::LABEL_POSITION => $attributes[Element::LABEL_POSITION], Element::REQUIRED => true]), $this->slug_tease = new Element('span', [self::INNER_HTML => '&nbsp;', 'class' => 'slug-reminder small']), '<a href="#slug-collapse" class="small">' . I18n\t('fold', [], ['scope' => 'titleslugcombo.element']) . '</a>', '<div class="slug">', $this->slug_el = new Text([Element::LABEL => 'slug', Element::LABEL_POSITION => 'above', Element::DESCRIPTION => 'slug', 'name' => $attributes[self::T_SLUG_NAME]]), '</div>'], 'data-auto-label' => '<em>' . I18n\t('auto', [], ['scope' => 'titleslugcombo.element']) . '</em>']);
 }
示例#3
0
 public function __construct(array $attributes = [])
 {
     parent::__construct('div', $attributes + [self::T_CONSTRUCTOR => 'nodes', 'placeholder' => 'Sélectionner un enregistrement', 'class' => 'spinner', 'data-adjust' => 'adjust-node', 'tabindex' => 0]);
 }
示例#4
0
 public function __construct(array $attributes = array())
 {
     parent::__construct('div', $attributes + array(Element::CHILDREN => array($this->adjust_image = new AdjustImage(), $this->adjust_thumbnail_options = new AdjustThumbnailOptions()), 'data-widget-constructor' => 'AdjustThumbnail'));
 }