From 2c4d55aafd5210b72feadf51496596fc024920ed Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Thu, 29 May 2014 22:08:00 +0200 Subject: Rewrite index.php in object style. Add a way to define an order in the frontpage between routers/commands/parameters/buttons. --- index.php | 280 ++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 170 insertions(+), 110 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 5ad4d74..b2ca721 100644 --- a/index.php +++ b/index.php @@ -19,116 +19,176 @@ */ require_once 'config.php'; -?> - - - - - - - - - <?php echo $config['frontpage']['title']; ?> - - - - - - -
-


- '; - } - ?> -
- -
-
-
- - -
- -
- - -
- -
- - -
- -
-
- -
-
- -
-
-
-
- -
-
-
-
-
-
- -
-

-    
- -
-
- - '; + print '
'; + print '
'; + print '
'; + print '
'; + print '
'; + print '
'; + print '
'; + print '
';
+    print '
'; + print ''; + print '
'; + print '
'; + } + + private function render_footer() { + print ''; + } + + public function render() { + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + $this->render_header(); + $this->render_content(); + $this->render_footer(); + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + } +} + +$looking_glass = new LookingGlass(); +$looking_glass->render(); + +// End of index.php -- cgit v1.2.3