Do you support api for detect mobile device?

tho
13 years, 3 months ago
I think it's great if you support api.
To developers can detect mobile device and switch features, template of the component for mobile optimization
tho
13 years, 1 month ago
I want to global a var $is_mobile for other component

any one know to generate is_mobile boolse using mobile joomla class?
dryabov
13 years, 1 month ago
tho wrote:
I want to global a var $is_mobile for other component

any one know to generate is_mobile boolse using mobile joomla class?


It's possible to check _MJ constant
if (defined('_MJ')) { mobile } else { desktop }
mmw_canada
13 years ago
This is a good way to integrate moblie joomla with virtuemart.

I used this
if (defined('_MJ')) { $products_per_row = 1; }
in my com_virtuemart/themes/default/templates/browse/includes/browse_layouttable.tpl.php
to limit the product display to one column when using a mobile device.

I also used this
if (defined('_MJ')) { $categories_per_row = 1; } 
in my com_virtuemart/themes/default/templates/common/categoryChildlist.tpl.php
to show only one subcategory image per row

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.