Esempio n. 1
0
 static function head($params, $tpl)
 {
     $data['script'] = $data['group_script'] = $data['style'] = $data['group_style'] = null;
     isset($params['script']) && ($data['script'] = explode('|', $params['script']));
     isset($params['group_script']) && ($data['group_script'] = explode('|', $params['group_script']));
     isset($params['style']) && ($data['style'] = explode('|', $params['style']));
     isset($params['group_style']) && ($data['group_style'] = explode('|', $params['group_style']));
     return tpl::show('plugin/head', $data, $tpl);
 }
Esempio n. 2
0
 static function flv($params, $tpl)
 {
     $data['src'] = isset($params['src']) ? $params['src'] : '';
     $data['width'] = isset($params['width']) ? $params['width'] : 600;
     $data['height'] = isset($params['height']) ? $params['height'] : 450;
     $data['autostart'] = $data['allowfullscreen'] = 'false';
     isset($params['autostart']) && ($data['autostart'] = $params['autostart']);
     isset($params['allowfullscreen']) && ($data['allowfullscreen'] = $params['allowfullscreen']);
     return tpl::show('plugin/flv', $data, $tpl);
 }