Exemplo n.º 1
0
 public static function getApp($site = GCORE_SITE, $thread = 'gcore')
 {
     if (\GCore\C::get('GSITE_PLATFORM') == 'joomla') {
         $app = \GCore\Libs\AppJ::getInstance($site, $thread);
     } else {
         if (\GCore\C::get('GSITE_PLATFORM') == 'wordpress') {
             $app = \GCore\Libs\AppWp::getInstance($site, $thread);
         } else {
             if (\GCore\C::get('GSITE_PLATFORM') == '') {
                 $app = \GCore\Libs\App::getInstance($site, $thread);
             }
         }
     }
     return $app;
 }