[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/templates/probusiness/head.inc.php, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/templates/probusiness/head.inc.php, 1.2 |
Date: |
Thu, 30 Dec 2004 07:47:35 +0100 |
Update of /phpgwapi/templates/probusiness
Added Files:
Branch:
head.inc.php
date: 2004/12/30 06:47:35; author: skwashd; state: Exp; lines: +52 -0
Log Message:
new HEAD
=====================================================================
<?php
/**
* probusiness template set
* @author Philipp Kamps <address@hidden>, Daniel Briegert <address@hidden>
* @copyright Copyright (C) 2003 Free Software Foundation http://www.fsf.org/
* @license http://www.fsf.org/licenses/gpl.html GNU General Public License
* @package template
* @subpackage probusiness
* @version $Id: head.inc.php,v 1.2 2004/12/30 06:47:35 skwashd Exp $
*/
$app_css = $java_script = '';
/*
* css file handling
*/
$css_file = PHPGW_SERVER_ROOT .
'/phpgwapi/templates/probusiness/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
if (file_exists($css_file))
{
$css_ref = $GLOBALS['phpgw_info']['server']['webserver_url'] .
'/phpgwapi/templates/probusiness/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
}
else
{
$css_ref = $GLOBALS['phpgw_info']['server']['webserver_url'] .
'/phpgwapi/templates/probusiness/css/styles.css';
}
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl'));
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
$app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ?
$GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':'';
$var = Array (
'img_icon' => PHPGW_IMAGES_DIR .
'/favicon.ico',
'img_shortcut' => PHPGW_IMAGES_DIR .
'/favicon.ico',
'charset' => lang('charset'),
'font_family' =>
$GLOBALS['phpgw_info']['theme']['font'],
'website_title' =>
$GLOBALS['phpgw_info']['server']['site_title'] . $app,
'theme_css' => $css_ref,
'css' =>
$GLOBALS['phpgw']->common->get_css(),
'java_script' =>
$GLOBALS['phpgw']->common->get_java_script(),
'api_root' =>
$GLOBALS['phpgw_info']['server']['webserver_url'] .
'/phpgwapi/templates/probusiness/',
'phpgw_root' =>
$GLOBALS['phpgw_info']['server']['webserver_url'] . '/'
);
$tpl->set_var($var);
$tpl->pfp('out','head');
unset($tpl);
?>