test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • veeco Friend
    #155423

    Hello,
    i would like to build the mobile version but since i’m using several override, i think i need different themes to override some desktop’s css..

    as far as i know T3 able to handle different block layout for mobile version and iphone… does it also applied with different core themes ?

    veeco Friend
    #359658

    To make my question more understandable…

    i would like to set different themes if a visitor access my site via iphone… hope this is possible..

    Saguaros Moderator
    #359674

    Hello

    at the t3 version 2 framework, in the mobile layout uses same theme of desktop, it would not be possible to have different profile than the default set in your settings.

    veeco Friend
    #359782

    ok.. so an alternative solution would be, using T3 Object to detect on block level…

    so ‘the hack’ would be some thing like this (in module.php)

    <?php
    $mobilecustomstyle=&T3BrowserObject::ismobile();
    if($mobilecustomestyle){
    ?>
    <jdoc:include type=”module” name=”<?php echo $module ?>” style=”<?php echo $style ?> mobileOnlyStyle” class=”mobileOnlyClass”/>
    <?php }else{?>
    <jdoc:include type=”module” name=”<?php echo $module ?>” style=”<?php echo $style ?>” />
    <?php }?>

    note:
    &T3BrowserObject::ismobile(); is T3Object/Class/Function that do the mobile detection that i can use in block level
    mobileOnlyStyle is inline-css style for mobile (optional)
    mobileOnlyClass is css class style for mobile (optional)

    now… is there any T3Object/Class/Function that doing mobile detection that i can use in block level

    i believe this is the possible solution…

    veeco Friend
    #360295

    Any ja team notice this ?

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

This topic contains 5 replies, has 2 voices, and was last updated by  veeco 14 years, 2 months ago.

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