use colums und rows from theme style

This commit is contained in:
Uwe Steinmann 2021-04-19 08:34:40 +02:00
parent 08e2c2d5ef
commit 70985572dc

View File

@ -35,16 +35,24 @@ class SeedDMS_View_AdminTools extends SeedDMS_Theme_Style {
return self::startRow().$content.self::endRow(); return self::startRow().$content.self::endRow();
} /* }}} */ } /* }}} */
static function startRow() { /* {{{ */ public function startRow() { /* {{{ */
return '<div class="row-fluid">'; ob_start();
$this->rowStart();
return ob_get_clean();
} /* }}} */ } /* }}} */
static function endRow() { /* {{{ */ public function endRow() { /* {{{ */
return '</div>'; ob_start();
$this->rowEnd();
return ob_get_clean();
} /* }}} */ } /* }}} */
static function rowButton($link, $icon, $label) { /* {{{ */ public function rowButton($link, $icon, $label) { /* {{{ */
return '<a href="'.$link.'" class="span2 btn btn-medium"><i class="fa fa-'.$icon.'"></i><br />'.getMLText($label).'</a>'; ob_start();
$this->columnStart(2);
echo '<a href="'.$link.'" class="btn btn-medium btn-light btn-block btn-md"><i class="fa fa-'.$icon.'"></i><br />'.getMLText($label).'</a>';
$this->columnEnd();
return ob_get_clean();
} /* }}} */ } /* }}} */
function show() { /* {{{ */ function show() { /* {{{ */
@ -58,7 +66,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Theme_Style {
$this->contentStart(); $this->contentStart();
$this->pageNavigation(getMLText("admin_tools"), "admin_tools"); $this->pageNavigation(getMLText("admin_tools"), "admin_tools");
// $this->contentHeading(getMLText("admin_tools")); // $this->contentHeading(getMLText("admin_tools"));
$this->contentContainerStart(); // $this->contentContainerStart();
?> ?>
<div id="admin-tools"> <div id="admin-tools">
<?php echo $this->callHook('beforeRows'); ?> <?php echo $this->callHook('beforeRows'); ?>
@ -126,7 +134,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Theme_Style {
<?php echo $this->callHook('afterRows'); ?> <?php echo $this->callHook('afterRows'); ?>
</div> </div>
<?php <?php
$this->contentContainerEnd(); // $this->contentContainerEnd();
$this->contentEnd(); $this->contentEnd();
$this->htmlEndPage(); $this->htmlEndPage();
} /* }}} */ } /* }}} */