35 lines
3.5 KiB
PHP
35 lines
3.5 KiB
PHP
<?php
|
|
namespace Opencart\Catalog\Controller\Extension\Opencart\Module;
|
|
/**
|
|
* Class Account
|
|
*
|
|
* @package
|
|
*/
|
|
class Account extends \Opencart\System\Engine\Controller {
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function index(): string {
|
|
$this->load->language('extension/opencart/module/account');
|
|
|
|
$data['logged'] = $this->customer->isLogged();
|
|
$data['register'] = $this->url->link('account/register', 'language=' . $this->config->get('config_language'));
|
|
$data['login'] = $this->url->link('account/login', 'language=' . $this->config->get('config_language'));
|
|
$data['logout'] = $this->url->link('account/logout', 'language=' . $this->config->get('config_language'));
|
|
$data['forgotten'] = $this->url->link('account/forgotten', 'language=' . $this->config->get('config_language'));
|
|
$data['account'] = $this->url->link('account/account', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['edit'] = $this->url->link('account/edit', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['password'] = $this->url->link('account/password', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['address'] = $this->url->link('account/address', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['wishlist'] = $this->url->link('account/wishlist', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['order'] = $this->url->link('account/order', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['download'] = $this->url->link('account/download', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['reward'] = $this->url->link('account/reward', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['return'] = $this->url->link('account/returns', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['transaction'] = $this->url->link('account/transaction', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['newsletter'] = $this->url->link('account/newsletter', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
$data['subscription'] = $this->url->link('account/subscription', 'language=' . $this->config->get('config_language') . (isset($this->session->data['customer_token']) ? '&customer_token=' . $this->session->data['customer_token'] : ''));
|
|
|
|
return $this->load->view('extension/opencart/module/account', $data);
|
|
}
|
|
} |