示例#1
0
 public function addFooter($content)
 {
     $footer = new HtmlBsDoubleElement("footer-" . $this->identifier);
     $footer->setTagName("div");
     $footer->setClass("panel-footer");
     $footer->setContent($content);
     $this->footer = $footer;
     return $this;
 }
示例#2
0
 public function createSpan($text, $position = "left")
 {
     $id = $position . "-" . $this->identifier;
     $span = new HtmlBsDoubleElement($id);
     $span->setTagName("span");
     $this->setProperty("aria-describedby", $id);
     $span->setContent($text);
     $span->setClass("input-group-addon");
     if (strtolower($position) === "left") {
         $this->addonLeft = $span;
     } else {
         $this->addonRight = $span;
     }
     return $span;
 }
 public function setHeadingAndContent($title, $content = "", $niveau = "1")
 {
     if (is_array($title)) {
         $array = $title;
         $title = JArray::getValue($array, "title", 0);
         $content = JArray::getValue($array, "content", 1);
         $niveau = JArray::getValue($array, "niveau", 2);
     }
     $elementHeader = new HtmlBsDoubleElement("", "h" . $niveau);
     $elementHeader->setContent($title);
     $elementHeader->setClass("list-group-item-heading");
     $element = new HtmlBsDoubleElement("", "p");
     $element->setContent($content);
     $element->setClass("list-group-item-text");
     $this->element->setContent(array($elementHeader, $element));
     return $this->element;
 }
示例#4
0
 public function addGroup($identifier = "")
 {
     if ($identifier === "") {
         $identifier = "form-" . $this->identifier;
     }
     $group = new HtmlBsDoubleElement($identifier);
     $group->setTagName("div");
     $group->setClass("form-group");
     $this->formGroups[] = $group;
     return $group;
 }
 public function setActive($index = null)
 {
     if (!isset($index)) {
         $index = sizeof($this->content) - 1;
     }
     $li = new HtmlBsDoubleElement("", "li");
     $li->setClass("active");
     $li->setContent($this->content[$index]->getContent());
     $this->content[$index] = $li;
 }