blogtemplatechooserview.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 29 行
PHP
29 行
<?php
lt_include( PLOG_CLASS_PATH."class/summary/view/summaryview.class.php" );
lt_include( PLOG_CLASS_PATH."class/template/templatesets/templatesets.class.php" );
/**
* shows the final view of the registration process where users get to choose
* a template set for their blog
*/
class BlogTemplateChooserView extends SummaryView
{
function BlogTemplateChooserView()
{
$this->SummaryView( "registerstep3" );
}
function render()
{
// get a list with all the templates so that users can choose
$sets = new TemplateSets();
$templates = $sets->getGlobalTemplateSets();
$this->setValue( "templates", $templates );
// and render the rest of the contents of the view
parent::render();
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?