예제 #1
0
/**
 * Stub for term_description.
 */
function term_description()
{
    WordpressHelper::stub('term_description', func_get_args());
}
 private function render($templatefile, $globals = [])
 {
     $app = ResourceManager::getApp();
     $globals['app'] = $app;
     $globals['currentuser'] = $app['users']->getCurrentUser();
     foreach ($globals as $key => $value) {
         $GLOBALS[$key] = $value;
     }
     ob_start();
     require_once $templatefile;
     wp_scripts();
     do_action('wp_enqueue_scripts');
     $html = ob_get_clean();
     $html = WordpressHelper::outputQueue($html);
     return $html;
 }