Results 1 to 2 of 2

Thread: Contao 3 - Mobile page layout

  1. #1

    Default Contao 3 - Mobile page layout

    Hi,
    can anyone tells how Mobile page layout works? Which techinch uses to recognize the mobile device / os.

    Tnx
    Web design agency - EDsolution.si Izdelava spletnih strani

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    It's done by detecting the user agent:

    \system\modules\core\library\Contao\Environment.ph p
    https://github.com/contao/core/blob/...nment.php#L498

    \system\config\agents.php
    https://github.com/contao/core/blob/...fig/agents.php

    If mobile, then the mobile layout gets used if available. You also can see the class "mobile" in the BODY tag.
    Last edited by Andreas; 05/30/2016 at 03:05.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •