Skip to content

Commit 5094e96

Browse files
author
dorgan@donaldorgan.com
committed
Moving commands under hero-unit
1 parent e6eb467 commit 5094e96

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

lib/androLib.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9518,19 +9518,13 @@ function DoCommand(e) {
95189518
?>
95199519
</span>
95209520
*/
9521-
?>
9522-
9523-
<div class="btn-group" style="padding-bottom:10px;">
9524-
<?php echo vgfGet('html_buttonbar')?>
9525-
</div>
95269521

9522+
return '<div class="btn-group" style="padding-bottom:10px;">' .vgfGet('html_buttonbar') .'</div>
95279523
<div class="pull-right">
95289524
<div class="btn-group">
9529-
<?php echo vgfGet('html_navbar')?>
9525+
' .vgfGet('html_navbar') .'
95309526
</div>
9531-
</div>
9532-
9533-
<?php
9527+
</div>';
95349528
}
95359529

95369530

lib/x_table2.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,23 @@ function ehMain() {
388388
?>
389389

390390
<div class="hero-unit"><h1><?php echo $this->PageSubtitle?></h1></div>
391-
392391
<?php
393392
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;
394408
if(is_null($this->table_obj_child)) {
395409
echo $this->h['ButtonBar'];
396410
}

templates/bootstrap/index.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function tmpLoadModules($module_name,$var=null) {
1212
case 'left': return tmpModuleLeft();
1313
case 'right': tmpModuleRight(); break;
1414
case 'top': tmpModuleTop(); break;
15-
case 'commands': ehModuleCommands(); break;
15+
case 'commands': return ehModuleCommands(); break;
1616
case 'menuright':fwModuleMenuRight();break;
1717
}
1818
}
@@ -166,22 +166,8 @@ function tmpModuleLeft() {
166166
}
167167
}
168168
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>
180169

181-
182-
<?php
183-
}
184-
echo mosMainBody();
170+
echo str_replace( '--COMMANDS--', $commands, mosMainBody() );
185171
echo '</div>';
186172
?>
187173
</div>

0 commit comments

Comments
 (0)