Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
systemcss.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Concatenation of the 2 css file : style and size
9  *
10  * @author Anakeen 2000
11  * @version $Id: systemcss.php,v 1.1 2006/07/27 16:04:19 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage CORE
15  */
16 /**
17  */
18 
19 function systemcss(&$action)
20 {
21  $style = $action->getParam("STYLE", "DEFAULT");
22  $file = GetParam("CORE_PUBDIR") . "/STYLE/$style/Layout/gen.css";
23 
24  $tstyle = file_get_contents($file);
25 
26  $size = $action->getParam("FONTSIZE", "normal");
27 
28  $file = $action->GetParam("CORE_PUBDIR") . "/WHAT/Layout/size-$size.css";
29 
30  $tsize = file_get_contents($file);
31 
32  $action->lay->template = $tstyle . "\n" . $tsize;
33 }
34 ?>
← centre documentaire © anakeen - published under CC License - Dynacase