forked from mdik/dokuwiki-template-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtpl_global.php
executable file
·72 lines (65 loc) · 3.16 KB
/
tpl_global.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* DokuWiki Bootstrap3 Template: Global Configurations
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
global $ID;
// Get the template info (useful for debug)
$template_info = confToHash(dirname(__FILE__).'/template.info.txt');
$showTools = bootstrap3_conf('showTools');
$showSearchForm = bootstrap3_conf('showSearchForm');
$showPageTools = bootstrap3_conf('showPageTools');
$individualTools = bootstrap3_conf('individualTools');
$showIndividualTool = bootstrap3_conf('showIndividualTool');
$showAdminMenu = bootstrap3_conf('showAdminMenu');
$showUserHomeLink = bootstrap3_conf('showUserHomeLink');
$showLoginOnFooter = bootstrap3_conf('showLoginOnFooter');
$showLoginLink = bootstrap3_conf('hideLoginLink');
$showSidebar = bootstrap3_conf('showSidebar');
$sidebarPosition = bootstrap3_conf('sidebarPosition');
$showRightSidebar = bootstrap3_conf('showRightSidebar');
$rightSidebar = bootstrap3_conf('rightSidebar');
$showCookieLawBanner = bootstrap3_conf('showCookieLawBanner');
$cookieLawBannerPage = bootstrap3_conf('cookieLawBannerPage');
$cookieLawPolicyPage = bootstrap3_conf('cookieLawPolicyPage');
$browserTitle = bootstrap3_conf('browserTitle');
$showThemeSwitcher = bootstrap3_conf('showThemeSwitcher');
$fixedTopNavbar = bootstrap3_conf('fixedTopNavbar');
$inverseNavbar = bootstrap3_conf('inverseNavbar');
$bootstrapTheme = bootstrap3_conf('bootstrapTheme');
$customTheme = bootstrap3_conf('customTheme');
$bootswatchTheme = bootstrap3_conf('bootswatchTheme');
$pageOnPanel = bootstrap3_conf('pageOnPanel');
$fluidContainer = bootstrap3_conf('fluidContainer');
$fluidContainerBtn = bootstrap3_conf('fluidContainerBtn');
$showPageInfo = bootstrap3_conf('showPageInfo');
$showBadges = bootstrap3_conf('showBadges');
$semantic = bootstrap3_conf('semantic');
$schemaOrgType = bootstrap3_conf('schemaOrgType');
$leftSidebarGrid = bootstrap3_conf('leftSidebarGrid');
$rightSidebarGrid = bootstrap3_conf('rightSidebarGrid');
$useGravatar = bootstrap3_conf('useGravatar');
$showLandingPage = bootstrap3_conf('showLandingPage');
$hideInThemeSwitcher = bootstrap3_conf('hideInThemeSwitcher');
$useLocalBootswatch = bootstrap3_conf('useLocalBootswatch');
$contentGrid = bootstrap3_container_grid();
$bootstrapStyles = array();
$tplConfigJSON = array(
'tableFullWidth' => (int) bootstrap3_conf('tableFullWidth'),
'tableStyle' => bootstrap3_conf('tableStyle'),
);
if($fluidContainerBtn) {
$fluidContainer = bootstrap3_fluid_container_button();
}
// Display a landing page (set the pageOnPanel and showSidebar config to "off")
if ($showLandingPage && (bool) preg_match_all(bootstrap3_conf('landingPages'), $ID)) {
$showSidebar = false;
$pageOnPanel = false;
}
$bootstrapStyles[] = DOKU_TPL.'assets/cryptostrap/css/bootstrap.min.css';
$bootstrapStyles[] = DOKU_TPL.'assets/cryptostrap/css/bootstrap-theme.min.css';