📄 function.posts.php
字号:
<?php function smarty_function_posts($params, &$smarty) { // we can do this since we loaded this value from within // the action $articles = $smarty->get_template_vars("articles"); // go through all the posts foreach( $articles as $article ) { $smarty->assign( "post", $article ); $smarty->display( "default/post.template" ); } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -