OK, so I guess I didn't thoroughly explain.
1 - /includes/classes/Mobile_Detect.php
This was updated to the latest version and IS NOW INCLUDED in v1.5.5, so DO NOT UPLOAD the version included in your template package.
2 - /includes/functions/extra_functions/zca_responsive_functions.php
This was added in v1.5.5, I'm listing this because it's a NEW file that will cause CONFLICT to your template's device specific (mobileDetect) layout.
3 - /includes/auto_loaders/config.display_mode.php
This file was removed in v1.5.5 and replaced with config.zca_layout.php, so DO NOT UPLOAD the version included in your template package.
4 - /includes/init_includes/init.display_mode.php
This file was removed in v1.5.5 and replaced with init.zca_layout.php, so DO NOT UPLOAD the version included in your template package.
5 - /includes/templates/YOUR_TEMPLATE/common/html_header.php
This file needs to be replaced with the v1.5.5 equivalent and the (mobileDetect, javascript) additions from your templates html_header.php should be merged into the v1.5.5 file.
I cannot list all of the templates additions but the following REQUIRED changes need to be made to your existing templates html_header.php code before merging to correctly work in v1.5.5.
find:
PHP Code:
// (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}
// (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)
change to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
$detect = new Mobile_Detect;
$isMobile = $detect->isMobile();
$isTablet = $detect->isTablet();
if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');
the device specific if statements have changed from:
PHP Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}
to:
PHP Code:
if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo $responsive_mobile;
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo $responsive_tablet;
} else if ( $_SESSION['layoutType'] == 'full' ) {
echo '';
} else {
echo $responsive_default;
}
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5 but this file was changed in v1.5.5, so DO NOT UPLOAD the version included in your template package. I provide a download for v1.5.5 via the GIT link in my signature.
7 - As DrByte pointed out
And to work in v155 if your template has an /includes/templates/YOUR_TEMPLATE/jscript/jscript_framework.php file , it needs to be replaced by copying the one from /includes/template_default/jscript/jscript_framework.php in v155
Cheers!
As stated elsewhere, all these templates are getting upgraded, if your still not sure or don't understand. Ask through the respective templates support thread. Someone will help you.
Bookmarks