Add default values and an example file for the css generation
authorMichaël Parienti (magnolia) <mparienti@easter-eggs.com>
Mon, 20 Jul 2009 14:27:57 +0000 (16:27 +0200)
committerMichaël Parienti (magnolia) <mparienti@easter-eggs.com>
Mon, 20 Jul 2009 14:27:57 +0000 (16:27 +0200)
conf/css.php [deleted file]
conf/default-css.php [new file with mode: 0644]
conf/example.com [new file with mode: 0644]
script/generate-main-css.php

diff --git a/conf/css.php b/conf/css.php
deleted file mode 100644 (file)
index fab5c2f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-$config_values = array(
-                       /* body */
-                       'body-width' => '60%',
-                       'body-min-width' => '400px',
-                       'body-background-color' => 'white',
-                       'body-background-image' => array('file_name' => 'bg.png',
-                                                        'first_color' => '#c4c8dd',
-                                                        'second_color' => 'white',
-                                                        'height' => 500) ,
-                       
-                       /* header */
-                       'header-height' => '110px',
-                       'header-background-color' => 'white',
-
-                       /* #content */
-                       'content-background-color' => '#c4c8dd',
-                       'content-background-image' => array('file_name' => 'bg-updown.png',
-                                                           'first_color' => 'white',
-                                                           'second_color' => '#c4c8dd',
-                                                           'height' => 500) ,
-                       );
-?>
\ No newline at end of file
diff --git a/conf/default-css.php b/conf/default-css.php
new file mode 100644 (file)
index 0000000..c98d9bb
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+$config_values = array(
+                       /* body */
+                       'body-width' => '60%',
+                       'body-min-width' => '400px',
+                       'body-background-color' => 'white',
+                       'body-background-image' => array('file_name' => 'bg.png',
+                                                        'first_color' => 'red',
+                                                        'second_color' => 'white',
+                                                        'height' => 500) ,
+                       
+                       /* header */
+                       'header-height' => '110px',
+                       'header-background-color' => 'white',
+
+                       /* #content */
+                       'content-background-color' => 'red',
+                       'content-background-image' => array('file_name' => 'bg-updown.png',
+                                                           'first_color' => 'white',
+                                                           'second_color' => 'red',
+                                                           'height' => 500) ,
+                       );
+?>
\ No newline at end of file
diff --git a/conf/example.com b/conf/example.com
new file mode 100644 (file)
index 0000000..2ee08d2
--- /dev/null
@@ -0,0 +1,2 @@
+ssh: username@serveur.example.com
+wikipath: /var/www/wiki/
index 6a5109a..709b095 100644 (file)
@@ -2,7 +2,9 @@
 
 $project_dir = dirname(__FILE__).'/../';
 
-require( $project_dir . 'conf/css.php' );
+require( $project_dir . 'conf/default-css.php' );
+if (file_exists($project_dir . 'conf/css.php')) 
+  require( $project_dir . 'conf/css.php' );
                                 
 $main_css = file_get_contents( $project_dir . 'src/le/main-template.css');