Changeset 3500


Ignore:
Timestamp:
11/11/10 16:43:49 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1398 - possibilita a carga do login.css do template e do tema.

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

Legend:

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

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

    r3496 r3500  
    367367        $tmpl->set_var('template_set', $template); 
    368368 
    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'; 
     369        // loads the template's login.css 
     370        // and then the theme's login.css (if any) 
     371        $template_dir = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/' . $template; 
     372        $login_dir = $template_dir . '/login.css'; 
     373        $login_css = "<link href='" . $login_dir . "' rel='stylesheet' type='text/css' />"; 
     374        $login_dir = $template_dir . '/themes/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] . '/login.css'; 
     375        if(file_exists('./'.$login_dir)) 
     376        { 
     377                $login_css .= "<link href='" . $login_dir . "' rel='stylesheet' type='text/css' />"; 
    376378        } 
    377379        $tmpl->set_var('login_css',$login_css); 
Note: See TracChangeset for help on using the changeset viewer.