Beispiel #1
0
 protected static function render_pjs_for(target $target)
 {
     parent::use_viewlet('pjs');
     ob_start();
     self::do_render_in(view_dir, 'pjs', $target);
     $pjs = ob_get_clean();
     if (config::get_module('view.minify_pps', false)) {
         $pjs = self::minify_pjs($pjs);
     }
     return $pjs;
 }
Beispiel #2
0
 public static function reset()
 {
     parent::use_viewlet('tpl');
     self::$target = visitor::get_target();
     self::$skeleton = config::get_module('view.default_skeleton', false);
     self::$linked_styles = [];
     self::$linked_scripts = ['top' => [], 'bottom' => []];
     self::$linked_psses = [];
     self::$linked_pjses = ['top' => [], 'bottom' => []];
     self::$layout_pss = '';
     self::$layout_pjs = '';
     self::$page_pss = '';
     self::$page_pjs = '';
     self::$block_psses = [];
     self::$block_pjses = [];
     self::$helper_args = [];
 }