Changeset 4211


Ignore:
Timestamp:
05/04/11 15:10:15 (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.ui_home.inc.php

    r4094 r4211  
    3434        function dicas() 
    3535        { 
     36                $browser = CreateObject('phpgwapi.browser'); 
     37 
    3638                $this->template->set_file(array('dicas' => 'dicas.tpl')); 
    37                 $this->template->set_block('dicas','page');      
    38                 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 
     39                $plataform = ( ( $browser->get_platform() ) === "Android" ) ? "android" : "iphone"; 
     40                $this->template->set_block('dicas',$plataform); 
     41                $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', $plataform)); 
    3942        } 
    4043         
     
    4851                $this->template->set_block('home_index','commitment_block');     
    4952                $this->template->set_block('home_search_bar','search_bar'); 
     53 
     54                if( isset($_SESSION['mobile']['displayIOS']) && $_SESSION['mobile']['displayIOS'] == "true" ) 
     55                        $this->template->set_var('display_IOS', "none"); 
     56                else 
     57                        $this->template->set_var('display_IOS', "block"); 
    5058                 
    5159                //langs 
     
    7179                 
    7280                $personal_folders = $this->imap_functions->get_folders_list(array('noSharedFolders' => true, 'folderType' => 'personal', 'noQuotaInfo' => true)); 
    73                 $this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 
     81                //$this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 
    7482                 
    7583                $this->template->set_var('quota_percent', $total_quota["quota_percent"]); 
     
    169177                        $p->set_block('home_search_bar','search_bar'); 
    170178                         
     179                        if( isset($_SESSION['mobile']['displayIOS']) && $_SESSION['mobile']['displayIOS'] == "true" ) 
     180                                $p->set_var('display_IOS', "none"); 
     181                        else 
     182                                $p->set_var('display_IOS', "block"); 
     183                                 
    171184                        $p->set_var('search_param',$params['name']); 
    172185                        $p->set_var('lang_back',lang('back')); 
Note: See TracChangeset for help on using the changeset viewer.