[*] FO : Add mobile detection and mobile theme dispatcher
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13866 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user