|
...
|
...
|
@@ -101,17 +101,17 @@ if($action != "printable") {
|
|
101
|
101
|
if($copy) list($copyright) = dbrow($copy);
|
|
102
|
102
|
$tpl->assign( "footer", $copyright);
|
|
103
|
103
|
$tpl->gotoBlock( "_ROOT" );
|
|
104
|
|
-}
|
|
105
|
|
-foreach($blocks as $block=>$value) {
|
|
106
|
|
- if(empty($value['status']) || ($value['status'] == 2 && $current != "home")) continue;
|
|
107
|
|
- if(empty($value['file'])) continue;
|
|
108
|
|
- if($value['status'] && file_exists(_BASEDIR."blocks/".$value['file'])) {
|
|
109
|
|
- $content = "";
|
|
110
|
|
- $tpl->assignGlobal($block."_title", !empty($value['title']) ? stripslashes($value['title']) : "");
|
|
111
|
|
- if(file_exists(_BASEDIR."blocks/".$value['file'])) include(_BASEDIR."blocks/".$value['file']);
|
|
112
|
|
- $tpl->assignGlobal($block."_content", $content);
|
|
|
104
|
+
|
|
|
105
|
+ foreach($blocks as $block=>$value) {
|
|
|
106
|
+ if(empty($value['status']) || ($value['status'] == 2 && $current != "home")) continue;
|
|
|
107
|
+ if(empty($value['file'])) continue;
|
|
|
108
|
+ if($value['status'] && file_exists(_BASEDIR."blocks/".$value['file'])) {
|
|
|
109
|
+ $content = "";
|
|
|
110
|
+ $tpl->assignGlobal($block."_title", !empty($value['title']) ? stripslashes($value['title']) : "");
|
|
|
111
|
+ if(file_exists(_BASEDIR."blocks/".$value['file'])) include(_BASEDIR."blocks/".$value['file']);
|
|
|
112
|
+ $tpl->assignGlobal($block."_content", $content);
|
|
|
113
|
+ }
|
|
113
|
114
|
}
|
|
114
|
115
|
}
|
|
115
|
|
-
|
|
116
|
116
|
$tpl->gotoBlock( "_ROOT" );
|
|
117
|
117
|
?>
|