Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
я несколько не это имел ввиду, мне нужно было вместо карты и статистики сделать ссылки на товары, категории, статьи и курсы валютПункты ссылок для боковой панели находятся в "admin => controller => common => column_left"
<?php
class ControllerCommonDashboard extends Controller {
public function index() {
$this->load->language('common/dashboard');
$this->document->setTitle($this->language->get('heading_title'));
$data['heading_title'] = $this->language->get('heading_title');
$data['text_sale'] = $this->language->get('text_sale');
$data['text_map'] = $this->language->get('text_map');
$data['text_activity'] = $this->language->get('text_activity');
$data['text_recent'] = $this->language->get('text_recent');
$data['breadcrumbs'] = array();
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL')
);
$data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL')
);
// Check install directory exists
if (is_dir(dirname(DIR_APPLICATION) . '/install')) {
$data['error_install'] = $this->language->get('error_install');
} else {
$data['error_install'] = '';
}
$data['settings_link'] = $this->url->link('localisation/currency', 'token=' . $this->session->data['token'], 'SSL');
$data['articles_link'] = $this->url->link('catalog/information', 'token=' . $this->session->data['token'], 'SSL');
$data['contact_link'] = $this->url->link('marketing/contact', 'token=' . $this->session->data['token'], 'SSL');
$data['product_link'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'], 'SSL');
$data['backup_link'] = $this->url->link('tool/backup', 'token=' . $this->session->data['token'], 'SSL');
$data['shipping_link'] = $this->url->link('extension/shipping', 'token=' . $this->session->data['token'], 'SSL');
$data['catalog_link'] = $this->url->link('catalog/category', 'token=' . $this->session->data['token'], 'SSL');
$data['payment_link'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');
$data['customer_link'] = $this->url->link('sale/customer', 'token=' . $this->session->data['token'], 'SSL');
$data['order_link'] = $this->url->link('sale/order', 'token=' . $this->session->data['token'], 'SSL');
$data['token'] = $this->session->data['token'];
$data['header'] = $this->load->controller('common/header');
$data['column_left'] = $this->load->controller('common/column_left');
$data['order'] = $this->load->controller('dashboard/order');
$data['sale'] = $this->load->controller('dashboard/sale');
$data['customer'] = $this->load->controller('dashboard/customer');
$data['online'] = $this->load->controller('dashboard/online');
$data['map'] = $this->load->controller('dashboard/map');
$data['chart'] = $this->load->controller('dashboard/chart');
$data['activity'] = $this->load->controller('dashboard/activity');
$data['recent'] = $this->load->controller('dashboard/recent');
$data['footer'] = $this->load->controller('common/footer');
$this->response->setOutput($this->load->view('common/dashboard.tpl', $data));
}
}
<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<h1><?php echo $heading_title; ?></h1>
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="container-fluid">
<?php if ($error_install) { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_install; ?>
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
<?php } ?>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6"><div class="tile">
<div class="tile-heading">Товары</div>
<div class="tile-body"><a href="<?php echo $product_link; ?>"><i class="fa fa-database fa-fw"></i></a></div>
</div></div>
<div class="col-lg-3 col-md-3 col-sm-6"><div class="tile">
<div class="tile-heading">Категории</div>
<div class="tile-body"><a href="<?php echo $catalog_link; ?>"><i class="fa fa-folder-open"></i></a></div>
</div></div>
<div class="col-lg-3 col-md-3 col-sm-6"><div class="tile">
<div class="tile-heading">Новости</div>
<div class="tile-body"><a href="<?php echo $articles_link; ?>"><i class="fa fa-pencil fa-fw"></i></a></div>
</div></div>
<div class="col-lg-3 col-md-3 col-sm-6"><div class="tile">
<div class="tile-heading">Курс валюты</div>
<div class="tile-body"><a href="<?php echo $settings_link; ?>"><i class="fa fa-cog fa-fw"></i></a></div>
</div></div>
</div>
</div>
</div>
<?php echo $footer; ?>