[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/templates/default/ -> head.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare                                                               *
   4    * http://www.egroupware.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    /* $Id: head.inc.php 16305 2004-08-09 12:32:46Z reinerj $ */
  13  
  14      $bodyheader = 'BGCOLOR="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'"';
  15      if($GLOBALS['phpgw_info']['server']['htmlcompliant'])
  16      {
  17          $bodyheader .= ' ALINK="'.$GLOBALS['phpgw_info']['theme']['alink'].'" LINK="'.$GLOBALS['phpgw_info']['theme']['link'].'" VLINK="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"';
  18      }
  19  
  20      $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
  21      $tpl->set_unknowns('remove');
  22      $tpl->set_file(array('_head' => 'head.tpl'));
  23      $tpl->set_block('_head','head');
  24  
  25      if ($GLOBALS['phpgw_info']['flags']['app_header'])
  26      {
  27          $app = $GLOBALS['phpgw_info']['flags']['app_header'];
  28      }
  29      else
  30      {
  31          $app = $GLOBALS['phpgw_info']['flags']['currentapp'];
  32          $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app);
  33      }
  34      $var = Array (
  35          'img_icon'      => PHPGW_IMAGES_DIR . '/favicon.ico',
  36          'img_shortcut'  => PHPGW_IMAGES_DIR . '/favicon.ico',
  37          'charset'       => $GLOBALS['phpgw']->translation->charset(),
  38          'font_family'   => $GLOBALS['phpgw_info']['theme']['font'],
  39          'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] . ($app ? " [$app]" : ''),
  40          'body_tags'     => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(),
  41          'css'           => $GLOBALS['phpgw']->common->get_css(),
  42          'java_script'   => $GLOBALS['phpgw']->common->get_java_script(),
  43      );
  44      $tpl->set_var($var);
  45      $tpl->pfp('out','head');
  46      unset($tpl);
  47  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7