Example #1
0
 /**
  *
  * @param string $identifier the id
  */
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     $this->tagName = "ul";
     $this->_template = '<%tagName% id="%identifier%" class="nav navbar-nav %class%">%elements%</%tagName%>';
     $this->elements = array();
 }
Example #2
0
 /**
  *
  * @param string $identifier the id
  */
 public function __construct($identifier, $brand = "Brand", $brandHref = "#")
 {
     parent::__construct($identifier);
     $this->_template = (include 'templates/tplNavbar.php');
     $this->navZones = array();
     $this->class = "navbar-default";
     $this->brand = $brand;
     $this->brandHref = $brandHref;
 }
Example #3
0
 public function __construct($identifier, $images = NULL)
 {
     parent::__construct($identifier);
     $this->_template = (include 'templates/tplCarousel.php');
     if ($images != NULL) {
         if (is_array($images)) {
             $this->fromArray($images);
         }
     }
 }
Example #4
0
 /**
  *
  * @param string $identifier the id
  */
 public function __construct($identifier, $title = "", $content = "", $buttonCaptions = array())
 {
     parent::__construct($identifier);
     $this->_template = (include 'templates/tplModal.php');
     $this->buttons = array();
     $this->title = $title;
     $this->content = $content;
     foreach ($buttonCaptions as $button) {
         $this->addButton($button);
     }
 }
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     $this->_template = (include __DIR__ . '/../templates/tplCarouselItem.php');
 }
 public function __construct($identifier, $tagName = "br")
 {
     parent::__construct($identifier);
     $this->tagName = $tagName;
     $this->_template = "<%tagName% id='%identifier%' %properties%/>";
 }