openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ec355ff572234809c117de8f8405cdf66d1a95a0
parent 49d89da049cb89bc0bb97d02dbc236f092c85a93
Author: dankert <devnull@localhost>
Date:   Wed, 10 Oct 2007 22:01:44 +0200

Kommentar-Zeilen in Templates erm?glichen.

Diffstat:
serviceClasses/TemplateEngine.class.php | 5++++-
themes/default/include/html/else-end.inc.php | 7+++----
themes/default/include/html/else.inc.php | 8+++-----
themes/default/include/html/if-end.inc.php | 8+++-----
themes/default/include/html/if.inc.php | 5+++--
themes/default/include/html/list-end.inc.php | 1+
themes/default/include/html/list.inc.php | 3+++
7 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/serviceClasses/TemplateEngine.class.php b/serviceClasses/TemplateEngine.class.php @@ -220,7 +220,10 @@ class TemplateEngine $file = file( $inFileName ); foreach( $file as $line ) - { + { + if ( substr(ltrim($line),0,2)=='//' || + substr(ltrim($line),0,2)=='/*' ) + continue; // echo $attr.$hash; $line = str_replace('$attr','$attr'.$hash,$line); // echo '<pre>'; diff --git a/themes/default/include/html/else-end.inc.php b/themes/default/include/html/else-end.inc.php @@ -1,3 +1,2 @@ -<?php - } -?>- \ No newline at end of file +/* Ignore: */ <?php { ?> +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/else.inc.php b/themes/default/include/html/else.inc.php @@ -1,4 +1,2 @@ -<?php - if ( !$last_exec ) - { -?>- \ No newline at end of file +<?php if (!$last_exec) { ?> +/* Ignore: */ <?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/if-end.inc.php b/themes/default/include/html/if-end.inc.php @@ -1,4 +1,2 @@ -<?php - } - -?>- \ No newline at end of file +/* Ignore: */ <?php { ?> +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/if.inc.php b/themes/default/include/html/if.inc.php @@ -88,4 +88,5 @@ if ( $exec ) { -?>- \ No newline at end of file +?> +/* Ignore: */ <?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/list-end.inc.php b/themes/default/include/html/list-end.inc.php @@ -1 +1,2 @@ +/* Ignore: */ <?php { ?> <?php } ?> \ No newline at end of file diff --git a/themes/default/include/html/list.inc.php b/themes/default/include/html/list.inc.php @@ -1,4 +1,5 @@ <?php +//-- $attr_list_tmp_key = $attr_key; $attr_list_tmp_value = $attr_value; $attr_list_extract = $attr_extract; @@ -17,4 +18,6 @@ } extract($$attr_list_tmp_value); } + + /* Diese Zeile wird ignoriert */ } ?> \ No newline at end of file