-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.xml
50 lines (47 loc) · 1.63 KB
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<modification>
<name>Frontlink</name>
<code>frontlink</code>
<version>1.1.0</version>
<author>Michel Lima</author>
<file path="admin/controller/common/column_left.php">
<operation>
<search>
<![CDATA[return $this->load->view('common/column_left', $data);]]>
</search>
<add position="before">
<![CDATA[
$data['stores'][] = [
'name' => $this->config->get('config_name'),
'href' => HTTP_CATALOG
];
$this->load->model('setting/store');
$results = $this->model_setting_store->getStores();
foreach ($results as $result) {
$data['stores'][] = [
'name' => $result['name'],
'href' => $result['url']
];
}
]]>
</add>
</operation>
</file>
<file path="admin/view/template/common/column_left.twig">
<operation>
<search>
<![CDATA[<ul id="menu">]]>
</search>
<add position="after">
<![CDATA[
{% for store in stores %}
<li class="frontLink">
<a href="{{ store.href }}" target="_blank">
<i class="fa fa-home"></i>{{ store.name }}
</a>
</li>
{% endfor %}
]]>
</add>
</operation>
</file>
</modification>