From 87fad1fb778362b8c101bb3d1caa3151835bdd17 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 8 Jan 2017 09:40:13 +0100 Subject: [PATCH] DRYed templates --- tpl/bootstrap-compact-page.php | 3 + tpl/bootstrap-compact.php | 365 +-------------------------------- tpl/bootstrap-dark-page.php | 359 +------------------------------- tpl/bootstrap-dark.php | 360 +------------------------------- tpl/bootstrap-page.php | 359 +------------------------------- tpl/bootstrap.php | 165 ++++++++++++--- tpl/page.php | 2 +- 7 files changed, 154 insertions(+), 1459 deletions(-) create mode 100644 tpl/bootstrap-compact-page.php diff --git a/tpl/bootstrap-compact-page.php b/tpl/bootstrap-compact-page.php new file mode 100644 index 0000000..6290f3b --- /dev/null +++ b/tpl/bootstrap-compact-page.php @@ -0,0 +1,3 @@ + - - - - - - - - <?php echo I18n::_($NAME); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
-
- - - -

-
-
-
- -
-
- -
- - - - +$tpl = 'bootstrap-compact'; +include 'bootstrap.php'; diff --git a/tpl/bootstrap-dark-page.php b/tpl/bootstrap-dark-page.php index fd0515b..7e835c1 100644 --- a/tpl/bootstrap-dark-page.php +++ b/tpl/bootstrap-dark-page.php @@ -1,358 +1,3 @@ - - - - - - - - <?php echo I18n::_($NAME); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
-
- - - -

-
-
-
- -
-
- -
- - - - +$tpl = 'bootstrap-dark-page'; +include 'bootstrap.php'; diff --git a/tpl/bootstrap-dark.php b/tpl/bootstrap-dark.php index b30b68d..14d1cd8 100644 --- a/tpl/bootstrap-dark.php +++ b/tpl/bootstrap-dark.php @@ -1,359 +1,3 @@ - - - - - - - - <?php echo I18n::_($NAME); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
-
- - - -

-
-
-
- -
-
- -
- - - - +$tpl = 'bootstrap-dark'; +include 'bootstrap.php'; diff --git a/tpl/bootstrap-page.php b/tpl/bootstrap-page.php index f9bd932..a2b9b01 100644 --- a/tpl/bootstrap-page.php +++ b/tpl/bootstrap-page.php @@ -1,358 +1,3 @@ - - - - - - - - <?php echo I18n::_($NAME); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
-
- - - -

-
-
-
- -
-
- -
- - - - +$tpl = 'bootstrap-page'; +include 'bootstrap.php'; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 38a948e..4344de2 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -1,5 +1,9 @@ @@ -9,8 +13,21 @@ use PrivateBin\I18n; <?php echo I18n::_($NAME); ?> + + + + + - + class="navbar-spacing"> -
hidden alert alert-danger"> - + -