At site I have one module, which loooks good only on wide and normal screen.
stroyprom.by
Site used one sidebar. Module have position user-15. In tempate options i cant hide this module for tablets and mobiles - there are no eye (attached). Is it possible to hide him only for some devices?
code looks like
$layout_config = json_decode ('{
"two_sidebars": {
"default" : [ "span6 offset3" , "span3 offset-9" , "span3" ],
"wide" : [],
"xtablet" : [],
"tablet" : [ "span12" , "span6 spanfirst" , "span6" ]
},
"one_sidebar1": {
"default" : [ "span9 pull-right" , "span3" ],
"wide" : [],
"xtablet" : [ "span8 pull-right" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"one_sidebar2": {
"default" : [ "span9" , "span3" ],
"wide" : [],
"xtablet" : [ "span8" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"no_sidebar": {
"default" : [ "span12" ]
}
}');
// positions configuration
$sidebar1 = 'sidebar-1';
$sidebar2 = 'sidebar-2';
$content = 'content';
$prod = 'user-15';
$prod2 = 'user-16';
$prod3 = 'user-17';
$prod4 = 'user-18';
// Detect layout
if ($this->countModules("$sidebar1 and $sidebar2")) {
$layout = 'two_sidebars';
} elseif ($this->countModules($sidebar1)) {
$layout = 'one_sidebar1';
} elseif ($this->countModules($sidebar2)) {
$layout = 'one_sidebar2';
} else {
$layout = 'no_sidebar';
}
$layout = $layout_config->$layout;
$col = 0;
?>
div i="t3-content" class="t3-content getClass($layout, $col) ?>" getData ($layout, $col++) ?>>
hasMessage()):?>
jdoc:iclude type="modules" name="_p($content) ?>" style="T3Xhtml" />
" style="T3Xhtml" />
" style="T3Xhtml" />
" style="T3Xhtml" />
" style="T3Xhtml" />
countModules($sidebar1)) : ?>
div cass="t3-sidebar t3-sidebar-1 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar1)?>" getData ($layout, $col++) ?>>
" style="T3Xhtml" />
In templateDetails.xml this position look the same all another positions.
Thanks! Sorry for the bad english.