first commit
This commit is contained in:
26
catalog/controller/event/theme.php
Normal file
26
catalog/controller/event/theme.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Opencart\Catalog\Controller\Event;
|
||||
/**
|
||||
* Class Theme
|
||||
*
|
||||
* @package Opencart\Catalog\Controller\Event
|
||||
*/
|
||||
class Theme extends \Opencart\System\Engine\Controller {
|
||||
/**
|
||||
* @param string $route
|
||||
* @param array $args
|
||||
* @param string $code
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function index(string &$route, array &$args, string &$code): void {
|
||||
// If there is a theme override we should get it
|
||||
$this->load->model('design/theme');
|
||||
|
||||
$theme_info = $this->model_design_theme->getTheme($route, $this->config->get('config_theme'));
|
||||
|
||||
if ($theme_info) {
|
||||
$code = html_entity_decode($theme_info['code'], ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user