示例#1
0
 public function render()
 {
     $this->setContent('_align', $this->_align);
     $this->setContent('_css_classes', $this->renderCssClasses());
     $this->setContent('_data', $this->renderDataAttributes());
     return parent::render();
 }
示例#2
0
 public function render()
 {
     if ($this->_sorter) {
         $this->setContent('_sorter', "sorter-{$this->_sorter}");
     } else {
         $this->setContent('_sorter', "");
     }
     $this->setContent('_label', $this->_label);
     return parent::render();
 }
示例#3
0
 public function render()
 {
     $this->setContent("_css_classes", $this->renderCssClasses());
     $this->setContent("_data", $this->renderDataAttributes());
     return parent::render();
 }
 public function render()
 {
     // 'Hidden' items are simply not rendered at all
     if ($this->_display == "hidden") {
         return "";
     }
     $this->setContent('_label', $this->_label);
     $this->setContent('_url', $this->_url);
     $this->setContent('_active', $this->_active ? "active" : "");
     $this->setContent('_display', $this->_display == "disabled" ? "disabled" : "");
     $this->setContent('_css_classes', $this->renderCssClasses());
     $this->setContent('_data', $this->renderDataAttributes());
     return parent::render();
 }
示例#5
0
 public function render()
 {
     if (defined('Bootsole\\URI_JS_ROOT')) {
         $site_path = URI_JS_ROOT;
     } else {
         $site_path = "";
     }
     $this->_content['_js_includes'] = "";
     // Ok, either load list of JS files if JS_DEV is enabled, or the minified JS file if we are in production mode
     if (!defined('Bootsole\\JS_DEV') || JS_DEV) {
         foreach ($this->_js_includes['js'] as $include) {
             $this->_content['_js_includes'] .= "<script src='{$site_path}{$include}'></script>\n";
         }
     } else {
         $this->_content['_js_includes'] .= "<script src='{$site_path}{$this->_js_includes['min_js']}'></script>\n";
     }
     return parent::render();
 }