test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • coroebus Friend
    #184744

    Hello,

    can anybody tell me how to detect current layout ?
    to detect current Template i use this


    $kunena_app =& JFactory::getApplication();

    if($kunena_app->getTemplate() == 'beez_20'){
    $kunena_config->template = 'jtouch25kunena';
    }

    I am tring to change Kunena Template with iPhone layout

    Thank for your help

    Wall Crasher Developer
    #482861

    Hi coroebus,

    $device = T3Common::mobile_device_detect();
    if ($device == ‘iphone’ || $device == ‘handheld’)

    I am not clear with your request.
    If you want to detect the template then your code is correct.

    For the the layout based on device, in JA T3v2 we use browser class to detect the browser.
    http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/

    For T3 (T3v3) we use responsive css to handle website layout change.
    For most modern template, we use responsive design to handle and does not need to detect layout.

    About Kunena Template, please contact with Kunena’s creator for more information.

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Wall Crasher 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum