static function get_instance() { if (!(isset(self::$object) && self::$object instanceof Smarty)) { self::$object = new Smarty(); } return isset(self::$object) ? self::$object : null; }
static function media($params, $tpl) { extract($params); $src = isset($src) ? $src : ''; $width = isset($width) ? $width : 600; $height = isset($height) ? $height : 450; $autostart = isset($autostart) ? $autostart : 'true'; $allowfullscreen = isset($allowfullscreen) ? $allowfullscreen : 'true'; $data = compact('src', 'width', 'height', 'autostart', 'allowfullscreen'); return s_smarty::show('plugin/media', $data, $tpl); }
function smarty($group = 'home') { return s_smarty::tpl($group); }