forked from outsmartit/foundout6
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathframework.php
More file actions
101 lines (87 loc) · 3.88 KB
/
framework.php
File metadata and controls
101 lines (87 loc) · 3.88 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
defined('_JEXEC') or die;
/* =====================================================================
Template: Based on Foundation 6 for Joomla
Author: outsmartit.be
Version: 1.0
Created: January 2016
Copyright: outsmartit.be - (C) 2016 - All rights reserved
Licenses: GNU/GPL v3 or later http://www.gnu.org/licenses/gpl-3.0.html
DBAD License http://philsturgeon.co.uk/code/dbad-license
Credits: Code taken from the following:
Seth Warburton - https://github.com/nternetinspired/OneWeb
Antony Doyle - https://github.com/antonydoyle/siegeengine2
/* ===================================================================== */
// Define shortcuts for template parameters
$unsetBootstrap = $this->params->get('unsetBootstrap');
//$loadMoo = $this->params->get('loadMoo');
$setGeneratorTag = $this->params->get('setGeneratorTag');
$analytics = $this->params->get('analytics');
$customCSS = $this->params->get('customCSS');
$defaultWidth = '';
$setWidth = $this->params->get('setWidth');
$widthUnit = $this->params->get('widthUnit');
$topbarTitle = $this->params->get('topbarTitle');
$stickyTopMenu = $this->params->get('stickyTopMenu');
$googleWebFonts = $this->params->get('googleWebFonts');
$twitterLink = $this->params->get('twitterLink');
$instagramLink = $this->params->get('instagramLink');
$pinterestLink = $this->params->get('pinterestLink');
$dribbbleLink = $this->params->get('dribbbleLink');
$facebookLink = $this->params->get('facebookLink');
$googleplusLink = $this->params->get('googleplusLink');
$githubLink = $this->params->get('githubLink');
$linkedinLink = $this->params->get('linkedinLink');
$youtubeLink = $this->params->get('youtubeLink');
$logo = $this->params->get('logo');
$sitetitle = $this->params->get('sitetitle');
$disclaimer = $this->params->get('disclaimer');
$disclaimerlink = $this->params->get('disclaimerlink');
$active = JFactory::getApplication()->getMenu()->getActive();
$fixed = "";
if ($stickyTopMenu == 1) {
$fixed = "data-sticky-container";
}
// Do we have social links?
$social = ($twitterLink ? 1 : 0) + ($dribbbleLink ? 1 : 0) + ($facebookLink ? 1 : 0) + ($googleplusLink ? 1 : 0) + ($githubLink ? 1 : 0)
+ ($youtubeLink ? 1 : 0) + ($instagramLink ? 1 : 0) + ($pinterestLink ? 1 : 0);
if ($this->countModules('right') == 0) {
$rightwidth = 0;
} else {
$rightwidth = (int) ($this->params->get('rightwidth'));
}
if ($this->countModules('left') == 0) {
$leftwidth = 0;
} else {
$leftwidth = (int) ($this->params->get('leftwidth'));
}
$colcount = $rightwidth + $leftwidth;
$coltotal = 12 - $colcount;
$mainwidth = 'large-' . $coltotal;
$rightWidth = 'large-' . $rightwidth;
$leftWidth = 'large-' . $leftwidth;
// Modules
$header = (int) ($this->countModules('header') > 0);
$nav = (int) ($this->countModules('nav') > 0);
$top = (int) ($this->countModules('top') > 0);
$above = (int) ($this->countModules('above') > 0);
$abovecontent = (int) ($this->countModules('above-content') > 0);
$left = (int) ($this->countModules('left') > 0);
$right = (int) ($this->countModules('right') > 0);
$belowcontent = (int) ($this->countModules('below-content') > 0);
$below = (int) ($this->countModules('below') > 0);
$bottom = (int) ($this->countModules('bottom') > 0);
$footer = (int) ($this->countModules('footer') > 0);
#----------------------------- Construct Code Snippets-----------------------------#
// GPL code taken from Construct template framework by Matt Thomas http://construct-framework.com/
// To enable use of site configuration
$app = JFactory::getApplication();
$pageParams = $app->getParams();
$sitename = $app->getCfg('sitename');
// Returns a reference to the global document object
$doc = JFactory::getDocument();
// Define relative path to the current template directory
$template = 'templates/' . $this->template;
// Change generator tag
$this->setGenerator($setGeneratorTag);
#-------------End Construct Code--------------------------------------#