adminsimpleresourceslistview.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 42 行
PHP
42 行
<?php lt_include( PLOG_CLASS_PATH."class/view/admin/adminresourceslistview.class.php" ); lt_include( PLOG_CLASS_PATH."class/data/stringutils.class.php" ); lt_include( PLOG_CLASS_PATH."class/data/timestamp.class.php" ); /** * \ingroup View * @private */ class AdminSimpleResourcesListView extends AdminResourcesListView { function AdminSimpleResourcesListView( $blogInfo, $params = Array()) { $this->AdminResourcesListView( $blogInfo, $params ); // change the template, the one chosen by the view above is not // exactly the one we needed $this->_templateName = "chooser/resourcelist"; } function render() { $config =& Config::getConfig(); $this->setValue( "blogname", StringUtils::text2url( $this->_blogInfo->getBlog() )); $this->setValue( "requestformat", $config->getValue( "request_format_mode")); $this->setValue( "baseurl", $config->getValue( "base_url" )); // whether resources are enabled or not $this->setValue( "resources_enabled", $config->getValue( "resources_enabled", true )); // check if htmlarea is enabled $blogSettings = $this->_blogInfo->getSettings(); $this->setValue( "htmlarea", $blogSettings->getValue( "htmlarea_enabled", false )); $this->_pagerUrl = "?op=resourceList&page="; parent::render(); } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?