⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 core.display_debug_console.php

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 PHP
字号:
<?php/** * Smarty plugin * @package Smarty * @subpackage plugins *//** * Smarty debug_console function plugin * * Type:     core<br> * Name:     display_debug_console<br> * Purpose:  display the javascript debug console window * @param array Format: null * @param Smarty */function smarty_core_display_debug_console($params, &$smarty){    // we must force compile the debug template in case the environment    // changed between separate applications.    if(empty($smarty->debug_tpl)) {        // set path to debug template from SMARTY_DIR        $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';        if($smarty->security && is_file($smarty->debug_tpl)) {            $smarty->secure_dir[] = realpath($smarty->debug_tpl);        }        $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';    }    $_ldelim_orig = $smarty->left_delimiter;    $_rdelim_orig = $smarty->right_delimiter;    $smarty->left_delimiter = '{';    $smarty->right_delimiter = '}';    $_compile_id_orig = $smarty->_compile_id;    $smarty->_compile_id = null;    $_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);    if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path))    {        ob_start();        $smarty->_include($_compile_path);        $_results = ob_get_contents();        ob_end_clean();    } else {        $_results = '';    }    $smarty->_compile_id = $_compile_id_orig;    $smarty->left_delimiter = $_ldelim_orig;    $smarty->right_delimiter = $_rdelim_orig;    return $_results;}/* vim: set expandtab: */?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -