CSS classes formed to ids and command LocalHome finished
authorRoland Häder <roland@mxchange.org>
Sun, 20 Apr 2008 20:28:50 +0000 (20:28 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 20 Apr 2008 20:28:50 +0000 (20:28 +0000)
Doxyfile
application/selector/templates/de/code/selector_main.ctp
application/ship-simu/templates/de/code/shipsimu_main.ctp
application/ship-simu/templates/de/html/home.tpl
application/ship-simu/templates/de/html/selector_ship-simu.tpl
inc/classes/main/commands/local/class_LocalHomeCommand.php
inc/classes/main/template/class_TemplateEngine.php

index 0312e4b..ea284c5 100644 (file)
--- a/Doxyfile
+++ b/Doxyfile
@@ -1282,7 +1282,7 @@ DOT_GRAPH_MAX_NODES    = 50
 # code bases. Also note that the size of a graph can be further restricted by 
 # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
 
-MAX_DOT_GRAPH_DEPTH    = 0
+MAX_DOT_GRAPH_DEPTH    = 1000
 
 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 
 # background. This is disabled by default, which results in a white background. 
index a834a9b..ff75745 100644 (file)
@@ -1,15 +1,15 @@
 <!-- A compileable template for the application selector //-->
 
-{?header:title=[--WELCOME_APPLICATION_SELECTOR--]?}
+{?header:title=[WELCOME_APPLICATION_SELECTOR]?}
 
 {?navigation:nav_row=home;imprint;contact?}
 
-<div class="selector_header">
-       [--HEADER_APPLICATION_SELECTOR--]
+<div id="main_header">
+       [HEADER_APPLICATION_SELECTOR]
 </div>
 
-<div class="selector_list_apps">
+<div id="main_content">
        {?selector_apps?}
 </div>
 
-{?footer_msg:footer_msg=[--FOOTER_APPLICATION_SELECTOR--]?}
+{?footer_msg:footer_msg=[FOOTER_APPLICATION_SELECTOR]?}
index 12429ff..7e00108 100644 (file)
@@ -1,19 +1,21 @@
 <!-- The compileable main template for the ship simulator //-->
 
-{?header:title=[--WELCOME_SHIP_SIMU--]?}
+{?header:title=[WELCOME_SHIP_SIMU]?}
 
+<div id="navigation">
 {?navigation:nav_row=home;imprint;contact?}
+</div>
 
-<div class="shipsimu_header">
-       [--HEADER_SHIP_SIMU--]
+<div id="main_header">
+       [HEADER_SHIP_SIMU]
 </div>
 
-<div class="shipsimu_content">
+<div id="main_content">
        {?content?}
 </div>
 
-<div class="shipsimu_content">
-       [--FOOTER_SHIP_SIMU--]
+<div id="main_footer">
+       [FOOTER_SHIP_SIMU]
 </div>
 
-{?footer_msg:footer_msg=[--FOOTER_SHIP_SIMU--]?}
+{?footer_msg:footer_msg=[FOOTER_SHIP_SIMU]?}
index 6845ef1..2523adf 100644 (file)
@@ -1,9 +1,9 @@
-<div class="home_content">
-       <div class="content_header">
+<div id="home_content">
+       <div id="content_header">
                Willkommen zum Schiffsimulator &quot;Ship-Simu&quot;!
        </div>
 
-       <div class="news_frame">
+       <div id="news_frame">
                {?ship_simu_news?}
        </div>
 </div>
index d56a95f..b96640e 100644 (file)
@@ -1,4 +1,4 @@
-<div class="selector_content">
+<div id="selector_content">
        <div style="text-align: left; padding-top: 15px; padding-left: 10px; padding-right: 10px">
                Gr&uuml;nden Sie eine virtuelle Reederei an den bedeutestens
                Welth&auml;fen! Oder treten Sie einer Reederei als Angestellter bei und
index 02f0928..24ef746 100644 (file)
@@ -94,7 +94,9 @@ class LocalHomeCommand extends BaseCommand implements Commandable {
                // to make things easier. A cache mechanism should be added between
                // these two calls to cache compiled templates.
                $templateInstance->compileVariables();
-               die("<pre>".print_r($templateInstance, true)."</pre>");
+
+               // Get the content back from the template engine and put it in the response class
+               $templateInstance->transferToResponse($responseInstance);
        }
 }
 
index 20984c2..980f56c 100644 (file)
@@ -1106,6 +1106,17 @@ class TemplateEngine extends BaseFrameworkSystem implements CompileableTemplate
                // Purge raw content
                $this->setRawTemplateData("");
        }
+
+       /**
+        * Transfers the content of this template engine to a given response instance
+        *
+        * @param       $responseInstance       An instance of a response class
+        * @return      void
+        */
+       public function transferToResponse (Responseable $responseInstance) {
+               // Get the content and set it in the response class
+               $responseInstance->writeToBody($this->getCompiledData());
+       }
 }
 
 // [EOF]