-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexamples.tpl
25 lines (24 loc) · 1.04 KB
/
examples.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
[{* example to insert anywhere in smarty templates of the shop *}]
[{if $oViewConf->get_cms_pages_by_cms_folder("CMSFOLDER_MOREABOUTUS")}]
<div class="footer-link-box">
<h4>[{oxmultilang ident="CMSFOLDER_MOREABOUTUS"}]</h4>
<ul>
[{foreach from=$oViewConf->get_cms_pages_by_cms_folder("CMSFOLDER_MOREABOUTUS") item="content_ident"}]
[{oxifcontent ident=$content_ident object="oCont"}]
<li><a href="[{ $oCont->getLink() }]">[{ $oCont->oxcontents__oxtitle->rawValue }]</a></li>
[{/oxifcontent}]
[{/foreach}]
</ul>
<div class="clear"></div>
</div>
[{/if}]
[{* another example code *}]
[{if $oViewConf->get_cms_pages_by_cms_folder("CMSFOLDER_MOREABOUT")}]
<ul>
[{foreach from=$oViewConf->get_cms_pages_by_cms_folder("CMSFOLDER_MOREABOUT") item="content_ident"}]
[{oxifcontent ident=$content_ident object="oCont"}]
<li><a href="[{ $oCont->getLink() }]">[{ $oCont->oxcontents__oxtitle->rawValue }]</a></li>
[{/oxifcontent}]
[{/foreach}]
</ul>
[{/if}]