catalog/controller/extension/d_blog_module/review.php

(开头部分) 26KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

class ControllerExtensionDBlogModuleReview extends Controller {
    private $id = 'd_blog_module';
    private $route = 'extension/d_blog_module/review';
    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->model('extension/d_opencart_patch/load');
        $this->load->language('extension/d_blog_module/review');
        $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('extension/d_blog_module/review');
        $this->load->model('tool/image');
        $this->load->model('account/customer');

        $this->session->data['d_blog_module_debug'] = $this->config->get('d_blog_module_debug');

        //$this->mbooth = $this->model_extension_module_d_blog_module->getMboothFile($this->id, $this->sub_versions);

        $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() {

        $this->document->addStyle('catalog/view/javascript/d_fileinput/fileinput.css');
        $this->document->addScript('catalog/view/javascript/d_fileinput/fileinput.js');
        $this->document->addScript('catalog/view/javascript/d_fileinput/canvas-to-blob.js');

        $this->document->addStyle('catalog/view/javascript/d_bootstrap_rating/bootstrap-rating.css');
        $this->document->addScript('catalog/view/javascript/d_bootstrap_rating/bootstrap-rating.js');


后面还有 547 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。