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); }