Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Bob Meetin Friend
    #170433

    How do I disable the Mobile / Desktop options from displaying – and more specifically disable the mobile auto-detection so that mobile devices only get the Desktop/Standard version? Yes I do have a good reason for doing this. This could apply specifically to Droid or more generally to any T3 Framework templates.

    Manos Moderator
    #424401

    Hi,

    You can go to /…/plugins/system/jat3/jat3/core/template.php file and find that code :


    $mobile = T3Common::mobile_device_detect();
    if ($mobile) {
    //try to find layout render
    $layout_path = T3Path::getPath ("page/$mobile.php");
    if (!$layout_path) {
    $layout_path = T3Path::getPath ("page/handheld.php");
    }
    if (!$layout_path) {
    $layout_path = T3Path::getPath ("page/default.php");
    }
    } else {
    $layout_path = T3Path::getPath ("page/default.php");
    }
    return $layout_path;
    }

    and change it to


    $mobile = T3Common::mobile_device_detect();
    if ($mobile) {
    //try to find layout render
    $layout_path = T3Path::getPath ("page/$mobile.php");
    if (!$layout_path) {
    $layout_path = T3Path::getPath ("page/handheld.php");
    }
    if (!$layout_path) {
    $layout_path = T3Path::getPath ("page/default.php");
    }
    } else {
    $layout_path = T3Path::getPath ("page/default.php");
    }
    $layout_path = T3Path::getPath ("page/default.php"); -> add this line of code so the layout will be always default
    return $layout_path;
    }

    Please let me know if that helps you.

    Regards

    kobenes Friend
    #424407

    You can go to Template Manager > JA Droid > Profiles then click on your profile (which currently you use)

    At the very bottom of the page you will see Layout Settings. Here you can choose Disabled from the dropdown lists for iPhone, Android etc… This will disable mobile layouts.

    Or if you don’t want to choose Disabled option, you can choose Default layout, too.

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

This topic contains 3 replies, has 3 voices, and was last updated by  kobenes 13 years ago.

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