Skip to content
This repository was archived by the owner on Oct 30, 2021. It is now read-only.

Commit 50a662a

Browse files
committed
Minimal layout example
1 parent 20372cb commit 50a662a

File tree

1 file changed

+145
-0
lines changed

1 file changed

+145
-0
lines changed

layouts/simple.php

+145
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<?php defined('_JEXEC') or die;
2+
/**
3+
* @package Template Framework for Joomla!+
4+
* @author Cristina Solana http://nightshiftcreative.com
5+
* @author Matt Thomas http://construct-framework.com | http://betweenbrain.com
6+
* @copyright Copyright (C) 2009 - 2012 Matt Thomas. All rights reserved.
7+
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
8+
*/
9+
10+
?>
11+
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="<?php echo substr($this->language, 0, 2) ?>" dir="<?php echo $this->direction ?>"> <![endif]-->
12+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="<?php echo substr($this->language, 0, 2) ?>" dir="<?php echo $this->direction ?>"> <![endif]-->
13+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="<?php echo substr($this->language, 0, 2) ?>" dir="<?php echo $this->direction ?>"> <![endif]-->
14+
<!--[if gt IE 8]> <!-->
15+
<html class="no-js" lang="<?php echo substr($this->language, 0, 2) ?>" dir="<?php echo $this->direction ?>"> <!--<![endif]-->
16+
<head>
17+
<jdoc:include type="head" />
18+
</head>
19+
20+
<body id="page-top" class="<?php if ($useStickyFooter) {
21+
echo ' sticky-footer';
22+
} echo ' ' . $currentComponent; if ($articleId) {
23+
echo ' article-' . $articleId;
24+
} if ($itemId) {
25+
echo ' item-' . $itemId;
26+
} if ($catId) {
27+
echo ' category-' . $catId;
28+
} if ($default) {
29+
echo ' default';
30+
} ?>">
31+
32+
<div id="footer-push">
33+
<?php if ($this->countModules('nav')) : ?>
34+
<div class="navbar">
35+
<div class="navbar-inner">
36+
<div class="container">
37+
<a type="button" class="btn btn-navbar" href="<?php $url->setFragment('nav'); echo $url->toString() ?>"
38+
<span class="icon-bar"></span>
39+
<span class="icon-bar"></span>
40+
<span class="icon-bar"></span>
41+
<span class="icon-bar"></span>
42+
</a>
43+
<a class="brand" href="<?php echo $this->baseurl ?>/" title="<?php echo htmlspecialchars($app->getCfg('sitename')) ?>"><?php echo htmlspecialchars($app->getCfg('sitename')) ?></a>
44+
</div>
45+
</div>
46+
</div>
47+
<?php endif ?>
48+
49+
<header id="header" class="clear clearfix">
50+
<div class="gutter clearfix">
51+
<?php if ($this->countModules('header')) : ?>
52+
<jdoc:include type="modules" name="header" style="header" />
53+
<?php endif ?>
54+
</div>
55+
</header>
56+
57+
<section id="body-container" class="container row-fluid">
58+
<?php if ($this->countModules('breadcrumbs')) : ?>
59+
<jdoc:include type="module" name="breadcrumbs" />
60+
<?php endif ?>
61+
62+
<div id="content-container" class="clear clearfix">
63+
<div id="load-first" class="clearfix span<?php echo $firstSpan ?>">
64+
<a id="content" name="content"></a>
65+
66+
<div id="content-main" class="span<?php echo $mainSpan ?> pull-right">
67+
<div class="gutter">
68+
<?php if (!empty($messageQueue)) : ?>
69+
<jdoc:include type="message" />
70+
<?php endif ?>
71+
<jdoc:include type="component" />
72+
</div>
73+
</div>
74+
75+
<?php if ($columnGroupAlphaCount) : ?>
76+
<div id="column-group-alpha" class="clearfix span<?php echo $alphaSpan ?>">
77+
<?php if ($this->countModules('column-1')) : ?>
78+
<div id="column-1" class="span<?php echo $groupAlphaSpan ?>">
79+
<div class="gutter clearfix">
80+
<jdoc:include type="modules" name="column-1" style="div" />
81+
</div>
82+
</div>
83+
<?php endif ?>
84+
<?php if ($this->countModules('column-2')) : ?>
85+
<div id="column-2" class="span<?php echo $groupAlphaSpan ?>">
86+
<div class="gutter clearfix">
87+
<jdoc:include type="modules" name="column-2" style="div" />
88+
</div>
89+
</div>
90+
<?php endif ?>
91+
</div>
92+
<?php endif ?>
93+
</div>
94+
95+
<?php if ($columnGroupBetaCount) : ?>
96+
<div id="column-group-beta" class="clearfix span<?php echo $betaSpan ?>">
97+
<?php if ($this->countModules('column-3')) : ?>
98+
<div id="column-3" class="span<?php echo $groupBetaSpan ?>">
99+
<div class="gutter clearfix">
100+
<jdoc:include type="modules" name="column-3" style="div" />
101+
</div>
102+
</div>
103+
<?php endif ?>
104+
<?php if ($this->countModules('column-4')) : ?>
105+
<div id="column-4" class="span<?php echo $groupBetaSpan ?>">
106+
<div class="gutter clearfix">
107+
<jdoc:include type="modules" name="column-4" style="div" />
108+
</div>
109+
</div>
110+
<?php endif ?>
111+
</div>
112+
<?php endif ?>
113+
</div>
114+
115+
<?php if ($this->countModules('nav')) : ?>
116+
<div class="navbar" id="primary-nav">
117+
<div class="navbar-inner">
118+
<div class="container">
119+
<nav id="nav" class="clear clearfix">
120+
<jdoc:include type="modules" name="nav" style="raw" />
121+
</nav>
122+
<a class="brand" href="<?php echo $this->baseurl ?>/" title="<?php echo htmlspecialchars($app->getCfg('sitename')) ?>"><?php echo htmlspecialchars($app->getCfg('sitename')) ?></a>
123+
</div>
124+
</div>
125+
</div>
126+
<?php endif ?>
127+
</div>
128+
</section>
129+
</div>
130+
131+
<footer id="footer" class="clear clearfix">
132+
<div class="gutter clearfix">
133+
<a id="to-page-top" href="<?php $url->setFragment('page-top'); echo $url->toString() ?>" class="to-additional">Back to Top</a>
134+
<?php if ($this->countModules('footer')) : ?>
135+
<jdoc:include type="modules" name="footer" style="div" />
136+
<?php endif ?>
137+
</div>
138+
</footer>
139+
140+
<?php if ($this->countModules('analytics')) : ?>
141+
<jdoc:include type="modules" name="analytics" />
142+
<?php endif ?>
143+
144+
</body>
145+
</html>

0 commit comments

Comments
 (0)