本文整理汇总了PHP中tpl::show方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::show方法的具体用法?PHP tpl::show怎么用?PHP tpl::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tpl
的用法示例。
在下文中一共展示了tpl::show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: head
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);
}
示例2: flv
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);
}