Example #1
0
 /**
  * @param Button $button
  * @param array $attributes
  */
 function __construct(Button $button, array $attributes = array())
 {
     $attributes = array_merge_recursive(array('role' => 'presenation'), $attributes);
     $button->removeClass('btn');
     $this->button = $button;
     parent::__construct($attributes);
 }
 /**
  * Construct.
  *
  * @param array             $item       Current navigation item.
  * @param \FrontendTemplate $template   Parent template.
  * @param array             $attributes Additional attributes.
  */
 public function __construct(array $item, \FrontendTemplate $template, $attributes = array())
 {
     $this->item = $item;
     $this->template = $template;
     parent::__construct($attributes);
     $this->initialize();
 }
Example #3
0
 /**
  * @param array $attributes
  * @param string|null $template
  */
 function __construct(array $attributes = array(), $template = null)
 {
     $attributes = array_merge(array('class' => array('modal', 'fade')), $attributes);
     if ($template) {
         $this->template = $template;
     }
     parent::__construct($attributes);
 }
Example #4
0
 /**
  * Construct.
  *
  * @param array $attributes Html attributes.
  */
 public function __construct(array $attributes = array())
 {
     $attributes = array_merge_recursive(array('role' => 'presentation', 'class' => array('divider')), $attributes);
     parent::__construct($attributes);
 }
Example #5
0
 /**
  * Construct.
  *
  * @param array $attributes Html attributes.
  */
 public function __construct(array $attributes = array())
 {
     $attributes = array_merge_recursive(array('class' => array('btn')), $attributes);
     parent::__construct($attributes);
 }
Example #6
0
 /**
  * @param string $tag
  * @param array $attributes
  */
 function __construct($tag, $attributes = array())
 {
     parent::__construct($attributes);
     $this->tag = $tag;
 }