Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • carlucci Friend
    #152962

    I modifying following file:
    plugins/system/jat3/base-themes/default/blocks/usertools/layout-switcher.php

    code:

    <? Php
    / *
    # ————————————————- ———————–
    # JA T3v2 Plugin – Template for Joomla 1.5 framework
    # ————————————————- ———————–
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @ License – GNU / GPL V2, http://www.gnu.org/licenses/gpl2.html. For details
    # On licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com.
    # ————————————————- ———————–
    * /
    ?>
    <? Php
    $ Handheld_view = $ this-> getParam (‘ui’);
    $ Switch_to = $ handheld_view == ‘desktop’? ‘Mobile’: ‘desktop’;
    $ Text = $ handheld_view == ‘desktop’? ‘Mobile Version’, ‘Desktop Version’;
    ?>
    <A class = “ja-tool-switchlayout ‘href =’ <? Php echo JURI:: base ()?>? ui = <? Php echo $ switch_to?>” Title = “<php echo JText:: _ ( $ text )?>”>< span> <? php echo JText text ::_($ )?></ span> </ a>

    It does not work.
    The same procedure I did with Ja Norite and it works.

    Khanh Le Moderator
    #352445

    Currently, layout switcher is only loaded into footer of handheld device. It is loaded in block handheld/footer (plugins/system/jat3/base-themes/default/blocks/handheld/footer.php)
    [php]
    <?php $this->showBlock(‘usertools/layout-switcher’) ?>
    [/php]

    You can add that code into footer block to display the layout switcher tool in default device.

    carlucci Friend
    #353282

    <em>@khanh le 189991 wrote:</em><blockquote>Currently, layout switcher is only loaded into footer of handheld device. It is loaded in block handheld/footer (plugins/system/jat3/base-themes/default/blocks/handheld/footer.php)
    [php]
    <?php $this->showBlock(‘usertools/layout-switcher’) ?>
    [/php]
    You can add that code into footer block to display the layout switcher tool in default device.</blockquote>
    I do not understand what you mean. This line of code:
    <? Php $ this-> showBlock (‘usertools / layout-switcher’)?>
    already exists in footer.php
    You can make an example. please?

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

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

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