К сожалению, не знаю, как прикрепить файл.
Пришлось скопировать его содержимое.
Заранее благодарен.
<?php
/**
* @package Joomla.Administrator
* @subpackage Templates.protostar
*
*
@copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Getting params from template
$params = JFactory::getApplication()->getTemplate(true)->params;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->getCfg('sitename');
if($task == "edit" || $layout == "form" )
{
$fullWidth = 1;
}
else
{
$fullWidth = 0;
}
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// Add Stylesheets
$doc->addStyleSheet('templates/'.$this->template.'/css/template.css');
$doc->addScript('templates/'.$this->template.'/js/custom.js');
// Load optional rtl Bootstrap CSS and Bootstrap bugfixes
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);
// Add current user information
$user = JFactory::getUser();
// Adjusting content width
if ($this->countModules('position-7') && $this->countModules('position-8'))
{
$span = "span6";
}
elseif ($this->countModules('position-7') && !$this->countModules('position-8'))
{
$span = "span9";
}
elseif (!$this->countModules('position-7') && $this->countModules('position-8'))
{
$span = "span9";
}
else
{
$span = "span12";
}
// Logo file or site title param
if ($this->params->get('logoFile'))
{
$logo = '<img src="'. JURI::root(). $this->params->get('logoFile').'" alt="'. $sitename .'" />';
}
elseif ($this->params->get('sitetitle'))
{
$logo = '<span class="site-title" title="'. $sitename .'">'. htmlspecialchars($this->params->get('sitetitle')).'</span>';
}
else
{
$logo = '<span class="site-title" title="'. $sitename .'">'. $sitename .'</span>';
}
?>
<!DOCTYPE html>
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<jdoc:include type="head" />
<?php
// Use of Google Font
if ($this->params->get('googleFont'))
{
?>
<link href='
http://fonts.googleapis.com/css?family=<?php echo $this->params->get('googleFontName');?>' rel='stylesheet' type='text/css' />
<style type="text/css">
h1,h2,h3,h4,h5,h6,.site-title{
font-family: '<?php echo str_replace('+', ' ', $this->params->get('googleFontName'));?>', sans-serif;
}
</style>
<?php
}
?>
<?php
// Template color
if ($this->params->get('templateColor'))
{
?>
<?php
}
?>
<!--[if lt IE 9]>
<script src="<?php echo $this->baseurl ?>/media/jui/js/html5.js"></script>
<![endif]-->
</head>
<body class="site <?php echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ($params->get('fluidContainer')? ' fluid' : '');
?>">
<div class="line_top">
<div class="line_top_into">
<div class="left_line_top">
<?php if ($this->countModules('adres')) : ?>
<jdoc:include type="modules" name="adres" />
<?php endif; ?>
</div>
<div class="center_line_top">
<?php if ($this->countModules('telmail')) : ?>
<jdoc:include type="modules" name="telmail" />
<?php endif; ?>
</div>
<div class="right_line_top">
<p class="btn_callback">
<?php if ($this->countModules('callback')) : ?>
<jdoc:include type="modules" name="callback" />
<?php endif; ?>
</p></div>
</div>
</div>
<div class="header">
<div class="menu">
<?php if ($this->countModules('menu')) : ?>
<div class="menu_into">
<div class="logo">
<?php if ($this->countModules('logo')) : ?>
<jdoc:include type="modules" name="logo" />
<?php endif; ?>
</div>
<jdoc:include type="modules" name="menu" style="none" />
</div>
<?php endif; ?>
</div>
<div class="header_into">
<div class="ramka"></div>
<div class="textbunner">
<?php if ($this->countModules('textbunner')) : ?>
<jdoc:include type="modules" name="textbunner" />
<?php endif; ?>
</div>
</div>
</div>
<div class="caruselnashaprod">
<div class="caruselnashaprod_into">
<?php if ($this->countModules('carus')) : ?>
<div class="carus"><jdoc:include type="modules" name="carus" style="xhtml" /></div>
<?php endif; ?>
</div>
</div>
<div class="pagecontent">
<table class="tabcontent">
<tr>
<td class="lefttd">
<div class="leftblock">
<?php if ($this->countModules('leftmenu')) : ?>
<div class="carus"><jdoc:include type="modules" name="leftmenu" /></div>
<?php endif; ?>
</div>
</td>
<td class="righttd">
<div class="rightblock">
<jdoc:include type="component" />
</div>
</td>
</tr>
</table>
</div>
<div class="footer">
<div class="footer_into">
<div class="logofoot"><a href="/index.php"><img src="templates/protostar/images/logo2.png"></a></div>
<?php if ($this->countModules('menufooter')) : ?>
<div class="menufooter"><jdoc:include type="modules" name="menufooter" style="none" /></div>
<?php endif; ?>
<div class="kontchet">
<table>
<tr>
<td>
<?php if ($this->countModules('telfoter')) : ?>
<jdoc:include type="modules" name="telfoter" />
<?php endif; ?>
</td>
<td>
<?php if ($this->countModules('metrik')) : ?>
<jdoc:include type="modules" name="metrik" />
<?php endif; ?>
</td>
</tr>
</table>
</div>
</div>
<div class="copyright"><div class="copyright_into">
<?php if ($this->countModules('copyright')) : ?>
<jdoc:include type="modules" name="copyright" />
<?php endif; ?>
</div></div>
</div>
</body>
</html>