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; }
protected static function link_script($script_file, $in_place = false, $at_top = false) { if (self::$skeleton !== false) { if ($in_place) { self::echo_js_link(parent::static_url($script_file, null, false)); } else { $linked_scripts =& self::$linked_scripts[$at_top ? 'top' : 'bottom']; if (!array_key_exists($script_file, $linked_scripts)) { $linked_scripts[$script_file] = $script_file; } } } }