source: trunk/phpgwapi/templates/idsociety/head.inc.php @ 2

Revision 2, 2.0 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /**************************************************************************\
3  * phpGroupWare                                                             *
4  * http://www.phpgroupware.org                                              *
5  * --------------------------------------------                             *
6  *  This program is free software; you can redistribute it and/or modify it *
7  *  under the terms of the GNU General Public License as published by the   *
8  *  Free Software Foundation; either version 2 of the License, or (at your  *
9  *  option) any later version.                                              *
10  \**************************************************************************/
11
12
13        $bodyheader = 'bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'" alink="'.$GLOBALS['phpgw_info']['theme']['alink'].'" link="'.$GLOBALS['phpgw_info']['theme']['link'].'" vlink="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"';
14
15        if ($GLOBALS['phpgw_info']['flags']['app_header'])
16        {
17                $app = $GLOBALS['phpgw_info']['flags']['app_header'];
18        }
19        else
20        {
21                $app = $GLOBALS['phpgw_info']['flags']['currentapp'];
22                $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app);
23        }
24        $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
25        $tpl->set_unknowns('remove');
26        $tpl->set_file(array('head' => 'head.tpl'));
27        $var = Array (
28                'img_icon'      => PHPGW_IMAGES_DIR . '/favicon.ico',
29                'img_shortcut'  => PHPGW_IMAGES_DIR . '/favicon.ico',
30                'charset'       => $GLOBALS['phpgw']->translation->charset(),
31                'font_family'   => $GLOBALS['phpgw_info']['theme']['font'],
32                'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] .  ($app ? " [$app]" : ''),
33                'body_tags'     => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(),
34                'css'           => $GLOBALS['phpgw']->common->get_css(),
35                'java_script'   => $GLOBALS['phpgw']->common->get_java_script(),
36        );
37        $tpl->set_var($var);
38        $tpl->pfp('out','head');
39        unset($tpl);
40?>
Note: See TracBrowser for help on using the repository browser.