• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

calendar/includes/inc.output.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                                                                                       |
00005         |       Dateplaner Modul                                                                                                                  |                                                                                                     
00006         +-----------------------------------------------------------------------------+
00007         | Copyright (c) 2004 ILIAS open source & University of Applied Sciences Bremen|
00008         |                                                                             |
00009         | This program is free software; you can redistribute it and/or               |
00010         | modify it under the terms of the GNU General Public License                 |
00011         | as published by the Free Software Foundation; either version 2              |
00012         | of the License, or (at your option) any later version.                      |
00013         |                                                                             |
00014         | This program is distributed in the hope that it will be useful,             |
00015         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00016         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00017         | GNU General Public License for more details.                                |
00018         |                                                                             |
00019         | You should have received a copy of the GNU General Public License           |
00020         | along with this program; if not, write to the Free Software                 |
00021         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00022         +-----------------------------------------------------------------------------+
00023 */
00024 
00042 function doOutput($template) {
00043                 global $templatefolder, $actualtemplate ,$PAGETITLE, $DP_StyleFname, $DP_Style, $DP_language, $_SESSION;
00044                         
00045                 if($_SESSION[DP_JSscript] != "1" ) {
00046                         $jsscriptIn                     = "<!-- ";
00047                         $jsscriptOut            = " -->";
00048                         $template       = str_replace("{jsscriptIn}","$jsscriptIn",$template);
00049                         $template       = str_replace("{jsscriptOut}","$jsscriptOut",$template);
00050                 }else {
00051                         $template       = str_replace("{jsscriptIn}","",$template);
00052                         $template       = str_replace("{jsscriptOut}","",$template);
00053                 }
00054 
00055                 $template       = str_replace("{TITLE}","$DP_language[title]",$template);
00056                 $template       = str_replace("{PAGETITLE}","$PAGETITLE",$template);
00057                 
00058                 $template       = str_replace("{DATEPLANER_ROOT_DIR}",DATEPLANER_ROOT_DIR,$template);
00059                 $template       = str_replace("{ILIAS_HTTP_PATH}",ILIAS_HTTP_PATH,$template);
00060 
00061                 $css_ilias      = '<LINK href="'.$DP_StyleFname.'" type="text/css" rel="stylesheet" />';
00062         $template       = str_replace("{css_ilias}","$css_ilias",$template);
00063                 
00064                 $template       = str_replace("{css_ilias_cont}",
00065                         '<LINK href="'.ilUtil::getNewContentStyleSheetLocation().'" type="text/css" rel="stylesheet" />',
00066                         $template);
00067 
00068                 //$template     = str_replace("{p3p_link}",
00069                 //      '<LINK href="'.ilUtil::getP3PLocation().'" rel="P3Pv1" />',
00070                 //      $template);
00071                 if(@!file_exists('.'.DATEPLANER_ROOT_DIR.$templatefolder.'/'.$actualtemplate.'/'.$DP_Style.'.css'))
00072                 {
00073                         $css            = '<LINK href=".'.DATEPLANER_ROOT_DIR.$templatefolder."/".$actualtemplate."/".$DP_Style.'.css" type="text/css" rel="stylesheet" />';
00074                         $template       = str_replace("{css}","$css",$template);
00075                 }
00076                 else
00077                 {
00078                         $css            = '<LINK href=".'.DATEPLANER_ROOT_DIR.$templatefolder."/".$actualtemplate.'/delos.css" type="text/css" rel="stylesheet" />';
00079                         $template       = str_replace("{css}","$css",$template);
00080                 }
00081 
00082             echo $template;
00083         }
00084 ?>

Generated on Fri Dec 13 2013 17:56:47 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1