Changeset 3652
- Timestamp:
- 12/30/10 15:51:05 (13 years ago)
- Location:
- branches/2.2/mobile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3645 r3652 65 65 public function print_page($class, $method){ 66 66 $this->print_header(); 67 $class=='ui_home' && $method=='index'? '':$this->print_navbar();67 $class=='ui_home' && $method=='index'?$this->print_logout():$this->print_navbar(); 68 68 $filename = 'inc/class.'.$class.'.inc.php'; 69 69 include_once($filename); … … 72 72 $this->template->pfp('out', 'mobile_home'); 73 73 } 74 74 75 /* 76 * @function print_logout 77 * @abstract Exibe label e link para Logout 78 * @author Diego Moreno 79 */ 80 public function print_logout(){ 81 $this-> template->set_var('lang_logout', lang('logout')); 82 $this-> template->set_var('href_logout', 'login.php?cd=1'); 83 } 84 75 85 /* 76 86 * @function print_navbar … … 85 95 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 86 96 87 88 $this-> template->set_var('lang_logout', lang('logout'));97 98 $this-> print_logout(); 89 99 $this-> template->set_var('lang_back', lang('Back')); 90 100 $this-> template->set_var('lang_home', lang('home')); … … 92 102 $this-> template->set_var('lang_contacts', lang('Contact Center')); 93 103 $this-> template->set_var('lang_calendar', lang('Calendar')); 94 $this-> template->set_var('href_logout', 'login.php?cd=1');95 104 $this-> template->set_var('href_back', 'javascript:history.back()'); 96 105 $this-> template->set_var('href_cc', 'index.php?menuaction=mobile.ui_mobilecc.init_cc'); -
branches/2.2/mobile/templates/default/template.tpl
r3603 r3652 13 13 <div class="topo"> 14 14 <h1>Expresso Mini</h1> 15 <span> 16 <a href="{href_logout}">{lang_logout}</a> 17 </span> 15 18 </div> 16 19 … … 26 29 <p><a href="{href_cc}">{lang_contacts}</a></p> 27 30 <p><a href="{href_calendar}">{lang_calendar}</a></p> 28 <p><a href="{href_logout}">{lang_logout}</a></p>29 31 </div> 30 32 <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</div>
Note: See TracChangeset
for help on using the changeset viewer.