本文整理匯總了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);
}