[*] FO : Add mobile detection and mobile theme dispatcher

This commit is contained in:
nPellicari
2012-03-06 09:00:25 +00:00
parent e35581f8d9
commit f7b97fee7a
7 changed files with 197 additions and 22 deletions
+10 -2
View File
@@ -23,14 +23,22 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{assign var='header_file' value='./header.tpl'}
{assign var='footer_file' value='./footer.tpl'}
{if $mobile_device != false}
{assign var='header_file' value='./mobile/header.tpl'}
{assign var='footer_file' value='./mobile/footer.tpl'}
{assign var='HOOK_HEADER' value=''}
{/if}
{if !empty($display_header)}
{include file='./header.tpl' HOOK_HEADER=$HOOK_HEADER}
{include file=$header_file HOOK_HEADER=$HOOK_HEADER}
{/if}
{if !empty($template)}
{$template}
{/if}
{if !empty($display_footer)}
{include file='./footer.tpl'}
{include file=$footer_file}
{/if}
{if !empty($live_edit)}
{$live_edit}