1: | <?php
2: | namespace Opencart\Catalog\Controller\Product;
3: | /**
4: | * Class Thumb
5: | *
6: | * @package Opencart\Catalog\Controller\Product
7: | */
8: | class Thumb extends \Opencart\System\Engine\Controller {
9: | /**
10: | * @param array<string, mixed> $data
11: | *
12: | * @return string
13: | */
14: | public function index(array $data): string {
15: | $this->load->language('product/thumb');
16: |
17: | $data['cart'] = $this->url->link('common/cart.info', 'language=' . $this->config->get('config_language'));
18: |
19: | $data['cart_add'] = $this->url->link('checkout/cart.add', 'language=' . $this->config->get('config_language'));
20: | $data['wishlist_add'] = $this->url->link('account/wishlist.add', 'language=' . $this->config->get('config_language'));
21: | $data['compare_add'] = $this->url->link('product/compare.add', 'language=' . $this->config->get('config_language'));
22: |
23: | $data['review_status'] = (int)$this->config->get('config_review_status');
24: |
25: | return $this->load->view('product/thumb', $data);
26: | }
27: | }
28: |

OpenCart API API documentation generated by ApiGen dev-master