Mobile BLOCKs

tevart

Avatar: tevart

2013-01-30 11:42

Hi!

I'm trying to work on mobile version, but when adding <!-- START MOBILE_HEAD --> to container.tpl it doesn't work. When i load www.sadf.com/mobile.php it only loads mobile.css and header is the same as on normal page. I also tried footer with same results. Is there any other setting i need to enable, for this to work? In config.php i have enabled mobile = true

thank you

» Quick.Cart v5.x

tevart

Avatar: tevart

2013-01-30 13:43

Found a problem

in index.php

change

if( defined( 'MOBILE' ) && $config['mobile'] === true ){
$config['style'] = $config['style_mobile'];
}

to

if( defined( 'MOBILE' ) && $config['mobile'] === true ){
$oTpl->setPrefixBlock( 'MOBILE_', true );
$config['template'] = $config['template_mobile'];
}

Back to top
about us | contact