summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index cf4c64aa..33044fad 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -251,11 +251,17 @@ function page($elements)
*
* @param string $title
* @param string[] $elements
+ * @param bool $container
* @return string
*/
-function page_with_title($title, $elements)
+function page_with_title($title, $elements, bool $container = false)
{
- return '<div class="col-md-12"><h1>' . $title . '</h1>' . join($elements) . '</div>';
+ if ($container) {
+ $html = '<div class="container">';
+ } else {
+ $html = '<div class="col-md-12">';
+ }
+ return $html . '<h1>' . $title . '</h1>' . join($elements) . '</div>';
}
/**