catalog/controller/extension/d_blog_module/search.php
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class ControllerExtensionDBlogModuleSearch extends Controller
{
private $id = 'd_blog_module';
private $route = 'extension/d_blog_module/search';
private $sub_versions = array('lite', 'light', 'free');
private $mbooth = '';
private $prefix = '';
private $config_file = '';
private $error = array();
private $debug = false;
private $setting = array();
public function __construct($registry) {
parent::__construct($registry);
if(!isset($this->user)){
if(VERSION >= '2.2.0.0'){
$this->user = new Cart\User($registry);
}else{
$this->user = new User($registry);
}
// $this->theme = $this->config->get($this->config->get('config_theme').'_directory');
}
//fix theme detection
if (VERSION >= '3.0.0.0') {
$this->theme = $this->config->get('theme_' . $this->config->get('config_theme') . '_directory');
} elseif (VERSION >= '2.2.0.0') {
$this->theme = $this->config->get($this->config->get('config_theme') . '_directory');
} else {
$this->theme = $this->config->get('config_template');
}
$this->load->language('extension/d_blog_module/search');
$this->load->model('extension/d_opencart_patch/load');
$this->load->model('extension/module/d_blog_module');
$this->load->model('extension/d_blog_module/category');
$this->load->model('extension/d_blog_module/post');
$this->load->model('tool/image');
$this->session->data['d_blog_module_debug'] = $this->config->get('d_blog_module_debug');
$this->config_file = $this->model_extension_module_d_blog_module->getConfigFile($this->id, $this->sub_versions);
$this->setting = $this->model_extension_module_d_blog_module->getConfigData($this->id, $this->id . '_setting', $this->config->get('config_store_id'), $this->config_file);
}
public function index() {
if(!$this->config->get('d_blog_module_status')){
$this->response->redirect($this->url->link('error/not_found'));
}
if (file_exists(DIR_TEMPLATE . $this->theme . '/stylesheet/d_blog_module/d_blog_module.css')) {
$this->document->addStyle('catalog/view/theme/'.$this->theme.'/stylesheet/d_blog_module/d_blog_module.css');
} else {
$this->document->addStyle('catalog/view/theme/default/stylesheet/d_blog_module/d_blog_module.css');
}
if (file_exists(DIR_TEMPLATE . $this->theme . '/stylesheet/d_blog_module/bootstrap.css')) {
$this->document->addStyle('catalog/view/theme/'.$this->theme.'/stylesheet/d_blog_module/bootstrap.css');
后面还有 168 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
