Exemplo n.º 1
0
 public function gettitle()
 {
     if ($this->name == 'edit' && $this->idget() != 0) {
         return $this->lang->edit;
     }
     return parent::gettitle();
 }
 protected function create()
 {
     parent::create();
     $this->showcolumns = array();
     //tfilestorage::loadvar(litepublisher::$paths->data . 'commentscolumns.php', $this->showcolumns);
     if (isset($_COOKIE['tablecolumns'])) {
         $this->showcolumns = unserialize($_COOKIE['tablecolumns']);
     }
     if (!in_array(true, $this->showcolumns)) {
         $this->showcolumns = array();
     }
 }
Exemplo n.º 3
0
 public function gethead()
 {
     $result = parent::gethead();
     if (!empty($_GET['plugin'])) {
         $name = $_GET['plugin'];
         if (in_array($name, $this->names)) {
             if ($admin = $this->getadminplugin($name)) {
                 if (method_exists($admin, 'gethead')) {
                     $result .= $admin->gethead();
                 }
             }
         }
     }
     return $result;
 }
Exemplo n.º 4
0
 public function gethead()
 {
     return parent::gethead() . tuitabs::gethead();
 }
Exemplo n.º 5
0
 public static function i($id = 0)
 {
     return parent::iteminstance(__CLASS__, $id);
 }
Exemplo n.º 6
0
 public function gettitle()
 {
     if ($this->idpost == 0) {
         return parent::gettitle();
     } else {
         if (isset(tlocal::admin()->ini[$this->name]['editor'])) {
             return tlocal::get($this->name, 'editor');
         }
         return tlocal::get('editor', 'editor');
     }
 }