forked from PrestaShop/PrestaShop
/
blockcms.tpl
129 lines (128 loc) · 4.32 KB
/
blockcms.tpl
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $block == 1}
<!-- Block CMS module -->
{foreach from=$cms_titles key=cms_key item=cms_title}
<div id="informations_block_left_{$cms_key}" class="block informations_block_left">
<h2>
<a href="{$cms_title.category_link|escape:'html':'UTF-8'}">
{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}
</a>
</h2>
<div class="block_content list-block">
<ul>
{foreach from=$cms_title.categories item=cms_page}
{if isset($cms_page.link)}
<li class="bullet">
<a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.name|escape:'html':'UTF-8'}">
{$cms_page.name|escape:'html':'UTF-8'}
</a>
</li>
{/if}
{/foreach}
{foreach from=$cms_title.cms item=cms_page}
{if isset($cms_page.link)}
<li>
<a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.meta_title|escape:'html':'UTF-8'}">
{$cms_page.meta_title|escape:'html':'UTF-8'}
</a>
</li>
{/if}
{/foreach}
{if $cms_title.display_store}
<li>
<a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}">
{l s='Our stores' mod='blockcms'}
</a>
</li>
{/if}
</ul>
</div>
</div>
{/foreach}
<!-- /Block CMS module -->
{else}
<!-- MODULE Block footer -->
<div class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer">
<h2>{l s='Information' mod='blockcms'}</h2>
<ul class="toggle-footer">
{if !$PS_CATALOG_MODE}
<li class="first_item">
<a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='Specials' mod='blockcms'}">
{l s='Specials' mod='blockcms'}
</a>
</li>
{/if}
<li class="{if $PS_CATALOG_MODE}first_{/if}item">
<a href="{$link->getPageLink('new-products')|escape:'html':'UTF-8'}" title="{l s='New products' mod='blockcms'}">
{l s='New products' mod='blockcms'}
</a>
</li>
{if !$PS_CATALOG_MODE}
<li class="item">
<a href="{$link->getPageLink('best-sales')|escape:'html':'UTF-8'}" title="{l s='Top sellers' mod='blockcms'}">
{l s='Top sellers' mod='blockcms'}
</a>
</li>
{/if}
{if $display_stores_footer}
<li class="item">
<a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}">
{l s='Our stores' mod='blockcms'}
</a>
</li>
{/if}
<li class="item">
<a href="{$link->getPageLink($contact_url, true)|escape:'html':'UTF-8'}" title="{l s='Contact us' mod='blockcms'}">
{l s='Contact us' mod='blockcms'}
</a>
</li>
{foreach from=$cmslinks item=cmslink}
{if $cmslink.meta_title != ''}
<li class="item">
<a href="{$cmslink.link|addslashes|escape:'html':'UTF-8'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}">
{$cmslink.meta_title|escape:'html':'UTF-8'}
</a>
</li>
{/if}
{/foreach}
<li>
<a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcms'}">
{l s='Sitemap' mod='blockcms'}
</a>
</li>
</ul>
{$footer_text}
</div>
{if $display_poweredby}
<div class="bottom-footer col-xs-12">
<div>
© 2013 {l s='Powered by' mod='blockcms'}
<a class="_blank" href="http://www.prestashop.com">PrestaShop</a>™
</div>
</div>
{/if}
<!-- /MODULE Block footer -->
{/if}