Ejemplo n.º 1
0
 public function parse(ttheme $theme)
 {
     $theme->lock();
     $this->checkparent($theme->name);
     $about = $this->getabout($theme->name);
     switch ($about['type']) {
         case 'litepublisher3':
         case 'litepublisher':
             $theme->type = 'litepublisher';
             $ver3 = tthemeparserver3::i();
             $ver3->parse($theme);
             break;
         case 'litepublisher4':
             $theme->type = 'litepublisher';
             $this->parsetheme($theme);
             break;
         case 'wordpress':
             $theme->type = 'wordpress';
             break;
     }
     /*
     //save and restore lang section
     $lang = tlocal::i();
     $sect = $lang->section;
     */
     $this->parsed($theme);
     if ($this->replacelang) {
         $this->doreplacelang($theme);
     }
     //$lang->section = $sect;
     $theme->unlock();
     return true;
 }