| 1: | <?php
|
| 2: | namespace Opencart\Catalog\Controller\Extension\Opencart\Module;
|
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: |
|
| 8: | class HTML extends \Opencart\System\Engine\Controller {
|
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: |
|
| 16: | public function index(array $setting): string {
|
| 17: | if (isset($setting['module_description'][$this->config->get('config_language_id')])) {
|
| 18: | $data['heading_title'] = html_entity_decode($setting['module_description'][$this->config->get('config_language_id')]['title'], ENT_QUOTES, 'UTF-8');
|
| 19: |
|
| 20: | $data['html'] = html_entity_decode($setting['module_description'][$this->config->get('config_language_id')]['description'], ENT_QUOTES, 'UTF-8');
|
| 21: |
|
| 22: | return $this->load->view('extension/opencart/module/html', $data);
|
| 23: | } else {
|
| 24: | return '';
|
| 25: | }
|
| 26: | }
|
| 27: | }
|
| 28: | |