Changeset 3494


Ignore:
Timestamp:
11/10/10 17:35:31 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1398 - habilita o uso de temas na tela de login.

Location:
branches/2.2/phpgwapi/templates/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/templates/default/login.tpl

    r3486 r3494  
    88<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> 
    99<META NAME="keywords" CONTENT="{website_title} login screen, eGroupWare, groupware, groupware suite"> 
    10 <link href="phpgwapi/templates/default/login.css" rel="stylesheet" type="text/css"> 
     10<link href="{login_css}" rel="stylesheet" type="text/css" /> 
    1111<TITLE>{website_title} - {lang_login}</TITLE> 
    1212<script language="Javascript"> 
  • branches/2.2/phpgwapi/templates/default/login_default.php

    r3486 r3494  
    349349        } 
    350350 
    351         $GLOBALS['phpgw_info']['server']['template_set'] = $GLOBALS['phpgw_info']['login_template_set']; 
     351        $template = $GLOBALS['phpgw_info']['login_template_set']; 
     352        $GLOBALS['phpgw_info']['server']['template_set'] = $template; 
    352353 
    353354        $tmpl->set_var('register_link',$reg_link); 
     
    364365 
    365366        $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']); 
    366         $tmpl->set_var('template_set',$GLOBALS['phpgw_info']['login_template_set']); 
     367        $tmpl->set_var('template_set', $template); 
     368 
     369        // if there is a login.css for the theme, use it 
     370        // otherwise use login.css from the template 
     371        $login_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/' . $template 
     372                                . '/themes/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] . '/login.css'; 
     373        if(!file_exists('./'.$login_css)) 
     374        { 
     375                $login_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/' .$template. '/login.css'; 
     376        } 
     377        $tmpl->set_var('login_css',$login_css); 
    367378 
    368379        $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']); 
Note: See TracChangeset for help on using the changeset viewer.