Ejemplo n.º 1
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->state = $this->get('State');
     $this->pagination = $this->get('Pagination');
     DeviceHelper::addSubmenu('devices');
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     DeviceHelper::addSubmenu('preview');
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     $j3css = "\n\t\tdiv#toolbar div#toolbar-back button.btn span.icon-back::before{\n\t\t\tcontent: \"\";\n\t\t}\n\t\t.device_title{\n\t\t\tcolor: #555555;\n\t\t\tfont-family: 'Titillium Maps',Arial;\n\t\t\tfont-size: 14pt;\n\t\t}\n\t\t.mydevice{\n\t\t\tpadding-bottom: 20px;\n\t\t\tfloat:left;\n\t\t\tpadding-right:20px;\n\t\t}\n\t\t.device_element{\n\t\t\twidth: 150px;\n\t\t\tpadding-top: 2px;\n\t\t}";
     JFactory::getDocument()->addStyleDeclaration($j3css);
     //$this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }