コード例 #1
0
 /**
  * @param ChameleonTemplate $template
  * @param \DOMElement|null $domElement
  * @param int $indent
  */
 public function __construct(ChameleonTemplate $template, \DOMElement $domElement = null, $indent = 0)
 {
     parent::__construct($template, $domElement, $indent);
     // add classes for the normal case where the page tools are displayed as a first class element;
     // these classes should be removed if the page tools are part of another element, e.g. nav bar
     $this->addClasses('list-inline text-center');
 }
コード例 #2
0
 public function __construct(ChameleonTemplate $template, \DOMElement $domElement = null, $indent = 0)
 {
     parent::__construct($template, $domElement, $indent);
     $this->addClasses('list-unstyled small');
 }
コード例 #3
0
 /**
  * @param Component   $component
  * @param \DOMElement $domElement
  */
 public function __construct(Component $component, \DOMElement $domElement = null)
 {
     $this->component = $component;
     parent::__construct($component->getSkinTemplate(), $domElement, $component->getIndent());
 }