$errors
$errors :
2007-2015 PrestaShop
NOTICE OF LICENSE
This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@prestashop.com so we can send you a copy immediately.
DISCLAIMER
Do not edit or add to this file if you wish to upgrade PrestaShop to newer versions in the future. If you wish to customize PrestaShop for your needs please refer to http://www.prestashop.com for more information.
None found |
None found |
None found |
None found |
None found |
setMobileMedia()
Specific medias for mobile device.
if autoload directory is present in the mobile theme, these files will not be loaded
None found |
addMedia( $media_uri, $css_media_type = null, $offset = null, $remove = false, $check_path = true)
$media_uri | ||
$css_media_type | ||
$offset | ||
$remove | ||
$check_path |
None found |
removeMedia( $media_uri, $css_media_type = null, $check_path = true)
$media_uri | ||
$css_media_type | ||
$check_path |
None found |
addCSS( $css_uri, string $css_media_type = 'all', integer $offset = null, boolean $check_path = true)
Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory
$css_uri | ||
string | $css_media_type | |
integer | $offset | |
boolean | $check_path |
None found |
removeCSS( $css_uri, $css_media_type = 'all', $check_path = true)
$css_uri | ||
$css_media_type | ||
$check_path |
None found |
addJS( $js_uri, boolean $check_path = true)
Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory
$js_uri | ||
boolean | $check_path |
None found |
setTemplate( $default_template)
This is overrided to manage is behaviour if a customer access to the site with mobile device.
$default_template |
None found |
getOverrideTemplate() : boolean
Returns the template corresponding to the current page.
By default this method return false but could easily be overridden in a specific controller
since | 1.5 |
---|
getLayout() : boolean|string
Returns the layout corresponding to the current page by using the override system Ex: On the url: http://localhost/index.php?id_product=1&controller=product, this method will check if the layout exists in the following files (in that order), and return the first found: - /themes/default/override/layout-product-1.tpl - /themes/default/override/layout-product.tpl - /themes/default/layout.tpl
since | 1.5 |
---|
setMobileTemplate( $template)
This checks if the template set is available for mobile themes, otherwise the front template is choosen.
$template |
None found |
initLogoAndFavicon() : array
Return an array with specific logo and favicon, if mobile device
since | 1.5 |
---|
None found |
None found |