Example #1
0
 static function getAll()
 {
     return rMenu::sort_menus(0, 0, '', 0);
 }
Example #2
0
 static function wrapper($html, $title = "", $slug = "")
 {
     f3()->set('canonical', $slug);
     $page = fOption::load('page');
     if (!f3()->exists('page')) {
         f3()->set('page', $page);
     }
     f3()->set('page.title', $title . ($title != '' ? ' | ' : '') . $page['title']);
     f3()->set('social', fOption::load('social'));
     f3()->set('menus', rMenu::sort_menus(0, 0, '', 0));
     $tp = \Template::instance();
     $tp->filter('nl2br', '\\F3CMS\\Outfit::nl2br');
     $tp->filter('crop', '\\F3CMS\\Outfit::crop');
     $tp->filter('date', '\\F3CMS\\Outfit::date');
     $tp->filter('str2tbl', '\\F3CMS\\Outfit::str2tbl');
     echo self::minify($tp->render($html));
 }