Example #1
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('icon', null, $args);
 }
Example #2
0
 function __construct($args)
 {
     parent::__construct($args);
 }
Example #3
0
 protected function parseVars($vars)
 {
     $alignStyle = null;
     switch ($this->align) {
         case 'left':
         case 'right':
             $alignStyle = "float: " . $this->align . ";";
             break;
         case 'center':
             $alignStyle = "display: inline-block;";
             break;
     }
     $this->jsCommand();
     $contentClass = 'task';
     if ($this->ui == 'bootstrap') {
         $contentClass = '';
     }
     return parent::parseVars(array_merge(array('LI_STYLE' => "list-style:none; " . $alignStyle, 'LI_ID' => 'toolbar-' . $this->task, 'CONTENT_CLASS' => $contentClass, 'COMMAND' => $this->link_js ? htmlspecialchars($this->link_js) : "", 'TEXT' => $this->JText($this->text), 'CLASS' => $this->buildDomClass()), $vars));
 }