From 6d404ea8e93a74b96a1845b77b14a9b8e4003a91 Mon Sep 17 00:00:00 2001 From: Eric Maeker Date: Fri, 19 Aug 2016 16:17:35 +0200 Subject: [PATCH 1/2] add open graph url property --- main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/main.php b/main.php index 76f5eb2f..c440328a 100755 --- a/main.php +++ b/main.php @@ -20,6 +20,7 @@ <?php echo bootstrap3_page_browser_title() ?> + "> From c8192092b655f51d0755ff22949c7f2992076635 Mon Sep 17 00:00:00 2001 From: Eric Maeker Date: Fri, 19 Aug 2016 16:18:56 +0200 Subject: [PATCH 2/2] Create a jumbotron hook Using a jumbotron.txt hook to make cleaner presentation. See in action here: https://www.maeker.fr/ --- main.php | 1 + tpl_jumbotron.php | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tpl_jumbotron.php diff --git a/main.php b/main.php index c440328a..e6aa8ef3 100755 --- a/main.php +++ b/main.php @@ -34,6 +34,7 @@
+ diff --git a/tpl_jumbotron.php b/tpl_jumbotron.php new file mode 100644 index 00000000..afe6f62b --- /dev/null +++ b/tpl_jumbotron.php @@ -0,0 +1,30 @@ + + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ + + // must be run from within DokuWiki + if (!defined('DOKU_INC')) die(); + + // This jumbotron hook allow users to include full view jumbotron to their + // landing pages. Config vars: showLandingPage and landingPages must be defined accordingly. + // On landing pages, the jumbotron is included before the dokuwiki page. This allow user + // to create a beautifull "one picture" landing page to their website. + + // Show jumbotron on landing pages only + if (bootstrap3_conf('showLandingPage') + && (bool) preg_match(bootstrap3_conf('landingPages'), $ID)) { + // Do not include jumbotron on administratives panels + if ($_GET['do'] == '') { + tpl_include_page('jumbotron', 1, 1); + } else { + // Here you can add a padding-top empty div + } + } else { + // Here you can add a padding-top empty div + } +?>