// Small fix on mobile theme
This commit is contained in:
@@ -795,7 +795,7 @@ class FrontControllerCore extends Controller
|
|||||||
'conditions' => Configuration::get('PS_CONDITIONS'),
|
'conditions' => Configuration::get('PS_CONDITIONS'),
|
||||||
'id_cgv' => Configuration::get('PS_CONDITIONS_CMS_ID'),
|
'id_cgv' => Configuration::get('PS_CONDITIONS_CMS_ID'),
|
||||||
'PS_SHOP_NAME' => Configuration::get('PS_SHOP_NAME'),
|
'PS_SHOP_NAME' => Configuration::get('PS_SHOP_NAME'),
|
||||||
'PS_ALLOW_MOBILE_DEVICE' => file_exists(_PS_THEME_MOBILE_DIR_) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE')
|
'PS_ALLOW_MOBILE_DEVICE' => isset($_SERVER['HTTP_USER_AGENT']) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE') && @filemtime(_PS_THEME_MOBILE_DIR_)
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,9 @@
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<div id="footer" class="grid_9 alpha omega clearfix">
|
<div id="footer" class="grid_9 alpha omega clearfix">
|
||||||
{$HOOK_FOOTER}
|
{$HOOK_FOOTER}
|
||||||
<p class="center clearBoth"><a href="{$link->getPageLink('index', true)}?mobile_theme_ok">{l s='Browse the mobile site'}</a></p>
|
{if $PS_ALLOW_MOBILE_DEVICE}
|
||||||
|
<p class="center clearBoth"><a href="{$link->getPageLink('index', true)}?mobile_theme_ok">{l s='Browse the mobile site'}</a></p>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user