File tree Expand file tree Collapse file tree 3 files changed +20
-26
lines changed Expand file tree Collapse file tree 3 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -9518,19 +9518,13 @@ function DoCommand(e) {
9518
9518
?>
9519
9519
</span>
9520
9520
*/
9521
- ?>
9522
-
9523
- <div class="btn-group" style="padding-bottom:10px;">
9524
- <?php echo vgfGet ('html_buttonbar ' )?>
9525
- </div>
9526
9521
9522
+ return '<div class="btn-group" style="padding-bottom:10px;"> ' .vgfGet ('html_buttonbar ' ) .'</div>
9527
9523
<div class="pull-right">
9528
9524
<div class="btn-group">
9529
- <?php echo vgfGet ('html_navbar ' )?>
9525
+ ' . vgfGet ('html_navbar ' ) . '
9530
9526
</div>
9531
- </div>
9532
-
9533
- <?php
9527
+ </div> ' ;
9534
9528
}
9535
9529
9536
9530
Original file line number Diff line number Diff line change @@ -388,9 +388,23 @@ function ehMain() {
388
388
?>
389
389
390
390
<div class="hero-unit"><h1><?php echo $ this ->PageSubtitle ?> </h1></div>
391
-
392
391
<?php
393
392
ehErrors ();
393
+
394
+ if (mosCountModules ('commands ' )) {
395
+ $ commands = ehModuleCommands ('commands ' );
396
+
397
+ if ( !empty ($ commands )) {
398
+ $ commands = '
399
+ <div class="container" style="padding-bottom:15px;">
400
+ <div class="span ' .($ left === false ? '12 ' : '9 ' ) .'"> ' .$ commands .'
401
+ </div>
402
+ </div> ' ;
403
+ } else {
404
+ $ commands = '' ;
405
+ }
406
+ }
407
+ echo $ commands ;
394
408
if (is_null ($ this ->table_obj_child )) {
395
409
echo $ this ->h ['ButtonBar ' ];
396
410
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function tmpLoadModules($module_name,$var=null) {
12
12
case 'left ' : return tmpModuleLeft ();
13
13
case 'right ' : tmpModuleRight (); break ;
14
14
case 'top ' : tmpModuleTop (); break ;
15
- case 'commands ' : ehModuleCommands (); break ;
15
+ case 'commands ' : return ehModuleCommands (); break ;
16
16
case 'menuright ' :fwModuleMenuRight ();break ;
17
17
}
18
18
}
@@ -166,22 +166,8 @@ function tmpModuleLeft() {
166
166
}
167
167
}
168
168
echo '<div class=" test span ' .($ left === false ? '12 ' : '9 ' ) .'" style="padding-bottom:15px;"> ' ;
169
-
170
- if (mosCountModules ('commands ' )) {
171
- ?>
172
-
173
- <div class="container" style="padding-bottom:15px;">
174
- <div class="span<?php echo ($ left === false ? '12 ' : '9 ' ) ?> ">
175
- <?php
176
- mosLoadModules ('commands ' );
177
- ?>
178
- </div>
179
- </div>
180
169
181
-
182
- <?php
183
- }
184
- echo mosMainBody ();
170
+ echo str_replace ( '--COMMANDS-- ' , $ commands , mosMainBody () );
185
171
echo '</div> ' ;
186
172
?>
187
173
</div>
You can’t perform that action at this time.
0 commit comments