Friday, October 11, 2013

Footer links and copyright notification in Prestashop

Default blocks: CMS Block & Various Links block


Depending on the version of Prestashop you use the folter links could be found in 2 files.


 


Prestashop 1.4


1. Open tour Prestashop installation directory


2. Open to modules\blockcms\blockcms.tpl file with your HTML/PHP editor


3. Edit the following code:








1

2

3

4

5

6

7

8

9

10

11

12

13

14

15



<!-- MODULE Block footer -->

<ul class="block_various_links" id="block_various_links_footer">

{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" 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.php')}" 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.php')}" 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.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}

<li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" 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}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>

{/if}

{/foreach}

<li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;</li>

</ul>

<!-- /MODULE Block footer -->




Each menu item same as the copyright notification is a separate list item <li>…</li>


 


Prestashop 1.3


1. Open tour Prestashop installation directory


2. Open to modules\blockvariouslinks\blockvariouslinks.tpl file with your HTML/PHP editor


3. Edit the following code:




<!-- MODULE Block various links -->
<ul class="block_various_links" id="block_various_links_footer">
<li class="first_item"><a href="{$base_dir}prices-drop.php" title="">{l s='Specials' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir}new-products.php" title="">{l s='New products' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir}best-sales.php" title="">{l s='Top sellers' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir_ssl}contact-form.php" title="">{l s='Contact us' mod='blockvariouslinks'}</a></li>
{foreach from=$cmslinks item=cmslink}
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
<li class="last_item">{l s='Powered by' mod='blockvariouslinks'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;</li>
</ul>
<!-- /MODULE Block various links -->

 




Each menu item same as the copyright notification is a separate list item <li>…</li>


 


Custom modules


1. Open tour Prestashop installation directory


2. Open to modules\tmfooterlinks\tmfooterlinks.tpl file with your HTML/PHP editor


3. Edit the following code:




<p>&copy;2011 {l s='Powered by' mod='tmfooterlinks'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;. All rights reserved</p>

 





Footer links and copyright notification in Prestashop

No comments:

Post a Comment