📄 block.capture.php
字号:
<?php
/**
* template_lite {capture}{/capture} block plugin
*
* Type: block function
* Name: capture
* Purpose: removes content and stores it in a variable
*/
function tpl_block_capture($params, $content, &$tpl)
{
extract($params);
if (isset($name)){
$buffer = $name;
}else{
$buffer = "'default'";
}
$tpl->_templatelite_vars['capture'][$buffer] = $content;
if (isset($assign)){
$tpl->assign($assign, $content);
}
return;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -