Ignore:
Timestamp:
05/04/11 15:07:08 (13 years ago)
Author:
niltonneto
Message:

Ticket #1774 - Criado pagina de dicas para dispositivos com android

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/inc/class.mobiletemplate.inc.php

    r4156 r4210  
    1111                * @author Nilton Emilio Buhrer Neto <niltonneto@celepar.pr.gov.br> 
    1212                */               
    13                 function mobiletemplate(){ 
     13                function mobiletemplate() 
     14                { 
    1415                        $this->template = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 
    1516                         
     
    9394                * @author Nilton Emilio Buhrer Neto <niltonneto@celepar.pr.gov.br> 
    9495                */ 
    95                 public function print_page($class, $method){ 
    96                         if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 
     96                public function print_page($class, $method ) 
     97                { 
     98                        if( $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop" ) 
     99                        { 
    97100                                //force to don' t call ui_home.index in a mini desktop version 
    98101                                if($class == "ui_home" && $method == "index") { 
     
    141144                                $this->template->set_var('style_2','position:relative; float: right; display: block'); 
    142145                        } 
    143                          
     146 
     147                        if( isset($_SESSION['mobile']['displayIOS']) && $_SESSION['mobile']['displayIOS'] == "true" ) 
     148                                $this->template->set_var('display_IOS', "none"); 
     149                        else 
     150                                $this->template->set_var('display_IOS', "block"); 
     151                                 
     152                        $this->template->set_var('lang_tips', lang('Tips')); 
    144153                        $this->template->set_var('lang_logout', lang('logout')); 
    145154                        $this->template->set_var('lang_search', lang('search')); 
Note: See TracChangeset for help on using the changeset viewer.