Hello
A)
yes it is a bug,
1. the mobile usage is always ON
2. when mobile is detected then the URL variable that is used is:
clayout_mobile
it was not reported so far, because when it is disabled in Component parameters then the mobile layout PARAMETER does not appear, thus it cannot be save, thus the bug does not manifest in frontend
but in case of custom layout via parameter, it does manifest
HOT FIX:
in file
components/com_flexicontent/views/category/view.html.php
Replace:
Code:
// (a) Decide to use mobile or normal category template layout
$use_mobile_layouts = $params->get('use_mobile_layouts', 0 );
$force_desktop_layout = $params->get('force_desktop_layout', 0 );
$mobileDetector = flexicontent_html::getMobileDetector();
$isMobile = $mobileDetector->isMobile();
$isTablet = $mobileDetector->isTablet();
$useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;
$_clayout = $useMobile ? 'clayout_mobile' : 'clayout';
with:
Code:
// (a) Decide to use mobile or normal category template layout
$useMobile = $params->get('use_mobile_layouts', 0 );
if ($useMobile) {
$force_desktop_layout = $params->get('force_desktop_layout', 0 );
$mobileDetector = flexicontent_html::getMobileDetector();
$isMobile = $mobileDetector->isMobile();
$isTablet = $mobileDetector->isTablet();
$useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;
}
$_clayout = $useMobile ? 'clayout_mobile' : 'clayout';
similar for item view:
components/com_flexicontent/views/item/view.html.php
replace:
Code:
// (a) Decide to use mobile or normal item template layout
$use_mobile_layouts = $params->get('use_mobile_layouts', 0 );
$force_desktop_layout = $params->get('force_desktop_layout', 0 );
$mobileDetector = flexicontent_html::getMobileDetector();
$isMobile = $mobileDetector->isMobile();
$isTablet = $mobileDetector->isTablet();
$useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;
$_ilayout = $useMobile ? 'ilayout_mobile' : 'ilayout';
with:
Code:
// (a) Decide to use mobile or normal item template layout
$useMobile = $params->get('use_mobile_layouts', 0 );
if ($useMobile) {
$force_desktop_layout = $params->get('force_desktop_layout', 0 );
$mobileDetector = flexicontent_html::getMobileDetector();
$isMobile = $mobileDetector->isMobile();
$isTablet = $mobileDetector->isTablet();
$useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;
}
$_ilayout = $useMobile ? 'ilayout_mobile' : 'ilayout';
Finally:
since this is a development site i suggest that you use v2.2.0 BETA (now stable enough for usage in DEV website) which also fixes CSS in J3.2 among many other important improvements and even greater speed for large web-sites (e.g. 20,000 web-sites many time faster than Joomla itself)
also i think that addressint field frontend view is broken, i did have time to look at it yet, though