Changeset 4211
- Timestamp:
- 05/04/11 15:10:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/inc/class.ui_home.inc.php
r4094 r4211 34 34 function dicas() 35 35 { 36 $browser = CreateObject('phpgwapi.browser'); 37 36 38 $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)); 39 42 } 40 43 … … 48 51 $this->template->set_block('home_index','commitment_block'); 49 52 $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"); 50 58 51 59 //langs … … 71 79 72 80 $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)); 74 82 75 83 $this->template->set_var('quota_percent', $total_quota["quota_percent"]); … … 169 177 $p->set_block('home_search_bar','search_bar'); 170 178 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 171 184 $p->set_var('search_param',$params['name']); 172 185 $p->set_var('lang_back',lang('back'));
Note: See TracChangeset
for help on using the changeset viewer.