PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/beez3/index.php

https://bitbucket.org/eternaware/joomus
PHP | 233 lines | 164 code | 58 blank | 11 comment | 25 complexity | 262f084c64ddc1b88f0509806814520f MD5 | raw file
Possible License(s): LGPL-2.1
  1<?php
  2/**
  3 * @package     Joomla.Site
  4 * @subpackage  Templates.beez3
  5 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
  6 * @license     GNU General Public License version 2 or later; see LICENSE.txt
  7 */
  8
  9// No direct access.
 10defined('_JEXEC') or die;
 11
 12jimport('joomla.filesystem.file');
 13
 14
 15// check modules
 16$showRightColumn	= ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
 17$showbottom			= ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
 18$showleft			= ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
 19
 20if ($showRightColumn == 0 and $showleft == 0) {
 21	$showno = 0;
 22}
 23
 24JHtml::_('behavior.framework', true);
 25
 26// get params
 27$color				= $this->params->get('templatecolor');
 28$logo				= $this->params->get('logo');
 29$navposition		= $this->params->get('navposition');
 30$headerImage		= $this->params->get('headerImage');
 31$app				= JFactory::getApplication();
 32$doc				= JFactory::getDocument();
 33$templateparams		= $app->getTemplate(true)->params;
 34$config = JFactory::getConfig();
 35
 36// Pull in the Bootstrap styles from jui
 37$doc->addStyleSheet('media/jui/css/bootstrap.css');
 38// If Right-to-Left
 39if ($this->direction == 'rtl')
 40{
 41	$doc->addStyleSheet('media/jui/css/bootstrap-rtl.css');
 42}
 43
 44
 45$doc->addStyleSheet(JURI::base().'/templates/system/css/system.css');
 46$doc->addStyleSheet(JURI::base().'/templates/'.$this->template.'/css/position.css', $type = 'text/css', $media = 'screen,projection');
 47$doc->addStyleSheet(JURI::base().'/templates/'.$this->template.'/css/layout.css', $type = 'text/css', $media = 'screen,projection');
 48$doc->addStyleSheet(JURI::base().'/templates/'.$this->template.'/css/print.css', $type = 'text/css', $media = 'print');
 49$doc->addStyleSheet(JURI::base().'/templates/'.$this->template.'/css/general.css', $type = 'text/css', $media = 'screen,projection');
 50
 51$doc->addStyleSheet(JURI::base().'templates/'.$this->template.'/css/'.htmlspecialchars($color).'.css', $type = 'text/css', $media = 'screen,projection');
 52if ($this->direction == 'rtl') {
 53	$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/template_rtl.css');
 54	if (file_exists(JPATH_SITE . '/templates/' . $this->template . '/css/' . $color . '_rtl.css')) {
 55		$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/'.htmlspecialchars($color).'_rtl.css');
 56	}
 57}
 58JHtml::_('bootstrap.framework');
 59$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript');
 60$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/hide.js', 'text/javascript');
 61$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/respond.src.js', 'text/javascript');
 62
 63?>
 64
 65<!DOCTYPE html>
 66<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
 67<head><?php require(__DIR__  . '/jsstrings.php');?>
 68
 69<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
 70<meta name="HandheldFriendly" content="true" />
 71<meta name="apple-touch-fullscreen" content="YES" />
 72
 73<jdoc:include type="head" />
 74
 75<!--[if IE 7]>
 76<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
 77<![endif]-->
 78</head>
 79
 80<body id="shadow">
 81<?php if ($color == 'image'):?>
 82	<style type="text/css">
 83			.logoheader
 84			{
 85				background:url('<?php echo $this->baseurl . '/' . htmlspecialchars($headerImage); ?>') no-repeat right;
 86			}
 87			body 
 88			{
 89				background: <?php echo $templateparams->get('backgroundcolor'); ?>;
 90			}
 91
 92	</style>
 93<?php endif; ?>
 94
 95<div id="all">
 96        <div id="back">
 97                <header id="header">
 98                                <div class="logoheader">
 99                                        <h1 id="logo">
100
101                                        <?php if ($logo): ?>
102                                        <img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($logo); ?>"  alt="<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>" />
103                                        <?php endif;?>
104                                        <?php if (!$logo AND $templateparams->get('sitetitle')): ?>
105											<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>
106										<?php elseif (!$logo AND $config->get('sitename')): ?>
107											<?php echo htmlspecialchars($config->get('sitename'));?>
108                                        <?php endif; ?>
109                                        </span></h1>
110                                        <span class="header1">
111                                        <?php echo htmlspecialchars($templateparams->get('sitedescription'));?>
112
113                                </div><!-- end logoheader -->
114                                        <ul class="skiplinks">
115                                                <li><a href="#main" class="u2"><?php echo JText::_('TPL_BEEZ3_SKIP_TO_CONTENT'); ?></a></li>
116                                                <li><a href="#nav" class="u2"><?php echo JText::_('TPL_BEEZ3_JUMP_TO_NAV'); ?></a></li>
117                                            <?php if($showRightColumn ):?>
118                                            <li><a href="#additional" class="u2"><?php echo JText::_('TPL_BEEZ3_JUMP_TO_INFO'); ?></a></li>
119                                           <?php endif; ?>
120                                        </ul>
121                                        <h2 class="unseen"><?php echo JText::_('TPL_BEEZ3_NAV_VIEW_SEARCH'); ?></h2>
122                                        <h3 class="unseen"><?php echo JText::_('TPL_BEEZ3_NAVIGATION'); ?></h3>
123                                        <jdoc:include type="modules" name="position-1" />
124                                        <div id="line">
125                                        <div id="fontsize"></div>
126                                        <h3 class="unseen"><?php echo JText::_('TPL_BEEZ3_SEARCH'); ?></h3>
127                                        <jdoc:include type="modules" name="position-0" />
128                                        </div> <!-- end line -->
129
130
131                        </header><!-- end header -->
132                        <div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
133                                        <div id="breadcrumbs">
134
135                                                        <jdoc:include type="modules" name="position-2" />
136
137                                        </div>
138
139                                        <?php if ($navposition == 'left' and $showleft) : ?>
140
141
142                                                        <nav class="left1 <?php if ($showRightColumn == null){ echo 'leftbigger';} ?>" id="nav">
143                                                   <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
144                                                                <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
145                                                                <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />
146
147
148                                                        </nav><!-- end navi -->
149               <?php endif; ?>
150
151                                        <div id="<?php echo $showRightColumn ? 'wrapper' : 'wrapper2'; ?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>>
152
153                                                <div id="main">
154
155                                                <?php if ($this->countModules('position-12')): ?>
156                                                        <div id="top"><jdoc:include type="modules" name="position-12"   />
157                                                        </div>
158                                                <?php endif; ?>
159
160                                                        <jdoc:include type="message" />
161                                                        <jdoc:include type="component" />
162
163                                                </div><!-- end main -->
164
165                                        </div><!-- end wrapper -->
166
167                                <?php if ($showRightColumn) : ?>
168                                        <h2 class="unseen">
169                                                <?php echo JText::_('TPL_BEEZ3_ADDITIONAL_INFORMATION'); ?>
170                                        </h2>
171                                        <div id="close">
172                                                <a href="#" onclick="auf('right')">
173                                                        <span id="bild">
174                                                                <?php echo JText::_('TPL_BEEZ3_TEXTRIGHTCLOSE'); ?></span></a>
175                                        </div>
176
177
178                                        <aside id="right">
179                                                <a id="additional"></a>
180                                                <jdoc:include type="modules" name="position-6" style="beezDivision" headerLevel="3"/>
181                                                <jdoc:include type="modules" name="position-8" style="beezDivision" headerLevel="3"  />
182                                                <jdoc:include type="modules" name="position-3" style="beezDivision" headerLevel="3"  />
183                                        </aside><!-- end right -->
184                                        <?php endif; ?>
185
186                        <?php if ($navposition == 'center' and $showleft) : ?>
187
188                                        <nav class="left <?php if ($showRightColumn == null){ echo 'leftbigger';} ?>" id="nav" >
189
190                                                <jdoc:include type="modules" name="position-7"  style="beezDivision" headerLevel="3" />
191                                                <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
192                                                <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />
193
194
195                                        </nav><!-- end navi -->
196                   <?php endif; ?>
197
198                                <div class="wrap"></div>
199
200                                </div> <!-- end contentarea -->
201
202                        </div><!-- back -->
203
204                </div><!-- all -->
205
206                <div id="footer-outer">
207                        <?php if ($showbottom) : ?>
208                        <div id="footer-inner" >
209
210                                <div id="bottom">
211                                        <div class="box box1"> <jdoc:include type="modules" name="position-9" style="beezDivision" headerlevel="3" /></div>
212                                        <div class="box box2"> <jdoc:include type="modules" name="position-10" style="beezDivision" headerlevel="3" /></div>
213                                        <div class="box box3"> <jdoc:include type="modules" name="position-11" style="beezDivision" headerlevel="3" /></div>
214                                </div>
215
216
217                        </div>
218                        <?php endif; ?>
219
220                        <div id="footer-sub">
221                                <footer id="footer">
222
223                                        <jdoc:include type="modules" name="position-14" />
224                                        
225
226                                </footer><!-- end footer -->
227
228                        </div>
229
230                </div>
231				<jdoc:include type="modules" name="debug" />
232        </body>
233</html>