1: <?php
2: namespace Opencart\Catalog\Controller\Event;
3: /**
4: * Class Theme
5: *
6: * @package Opencart\Catalog\Controller\Event
7: */
8: class Theme extends \Opencart\System\Engine\Controller {
9: /**
10: * @param string $route
11: * @param array<int, mixed> $args
12: * @param string $code
13: *
14: * @return void
15: */
16: public function index(string &$route, array &$args, string &$code): void {
17: // If there is a theme override we should get it
18: $this->load->model('design/theme');
19:
20: $theme_info = $this->model_design_theme->getTheme($route, $this->config->get('config_theme'));
21:
22: if ($theme_info) {
23: $code = html_entity_decode($theme_info['code'], ENT_QUOTES, 'UTF-8');
24: }
25: }
26: }
27: