<commit_before><?php
/**
 * @package     Templates.b4blog
 *
 * @copyright   Copyright (c) 2016 <NAME> (neon1ks)
 * @license     MIT License; see LICENSE
 */

defined('_JEXEC') or die;

$app             = JFactory::getApplication();
$doc             = JFactory::getDocument();
$user            = JFactory::getUser();
$this->language  = $doc->language;
$this->direction = $doc->direction;

// Output as HTML5
$doc->setHtml5(true);

// Getting params from template
$params = $app->getTemplate(true)->params;

// 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->get('sitename');

if($task == "edit" || $layout == "form" )
{
	$fullWidth = 1;
}
else
{
	$fullWidth = 0;
}

// Add JavaScript
// jQuery first, then Tether, then Bootstrap JS.
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/jquery-3.1.1.js');
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/tether-1.3.7.js');
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/bootstrap-4.0.0-alpha.5.js');

// Add Stylesheets
$doc->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.css');

// Use of Google Font
if ($this->params->get('googleFont'))
{
	$doc->addStyleSheet('//fonts.googleapis.com/css?family=' . $this->params->get('googleFontName'));
	$doc->addStyleDeclaration("
	h1, h2, h3, h4, h5, h6, .site-title {
		font-family: '" . str_replace('+', ' ', $this->params->get('googleFontName')) . "', sans-serif;
	}");
}

// Template color
if ($this->params->get('templateColor'))
{
	$doc->addStyleDeclaration("
	body.site {
		background-color: " . $this->params->get('templateBackgroundColor') . ";
	}
	a {
		color: " . $this->params->get('templateColor') . ";
	}
	.nav-list > .active > a,
	.nav-list > .active > a:hover,
	.dropdown-menu li > a:hover,
	.dropdown-menu .active > a,
	.dropdown-menu .active > a:hover,
	.nav-pills > .active > a,
	.nav-pills > .active > a:hover,
	.btn-primary {
		background: " . $this->params->get('templateColor') . ";
	}");
}

// Check for a custom CSS file
$userCss = JPATH_SITE . '/templates/' . $this->template . '/css/user.css';

if (file_exists($userCss) && filesize($userCss) > 0)
{
	$this->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/user.css');
}

// Adjusting content width
if ($this->countModules('position-7'))
{
	$classMainWidth = 'col-xl-9 col-lg-9';
}
else
{
	$classMainWidth = 'col-xl-12 col-lg-12';
}

// Logo img file
if ($this->params->get('logoFile'))
{
	$logoImg = '<img src="' . JUri::root() . $this->params->get('logoFile') . '" alt="' . $sitename . '" class="imgCenter" />';
}
else
{
	$logoImg = '<img src="' . $this->baseurl . '/templates/' . $this->template . '/images/logoImg.png' . '" alt="' . $sitename . '" class="imgCenter" />';
}

// Site title param
if ($this->params->get('sitetitle'))
{
	$siteTitle = '<span class="site-title" title="' . $sitename . '">' . htmlspecialchars($this->params->get('sitetitle'), ENT_COMPAT, 'UTF-8') . '</span>';
}
else
{
	$siteTitle = '<span class="site-title" title="' . $sitename . '">' . $sitename . '</span>';
}

// Site description param
if ($this->params->get('sitedescription'))
{
	$siteDescription = '<div class="site-description">' . htmlspecialchars($this->params->get('sitedescription'), ENT_COMPAT, 'UTF-8') . '</div>';
}
else
{
	$siteDescription = '<div class="site-description">Статьи про ОС Ubuntu. Языки программирования Си&nbsp;и&nbsp;C++<br>Инструменты разработки и многое другое.</div>';
}


?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<jdoc:include type="head" />
</head>
<body class="site <?php echo $option
	. ' view-' . $view
	. ($layout ? ' layout-' . $layout : ' no-layout')
	. ($task ? ' task-' . $task : ' no-task')
	. ($itemid ? ' itemid-' . $itemid : '');
	echo ($this->direction == 'rtl' ? ' rtl' : '');
?>">
	<!-- Body --><commit_msg>"ОС Ubuntu" изменил на просто "Ubuntu"<commit_after><?php
/**
 * @package     Templates.b4blog
 *
 * @copyright   Copyright (c) 2016 <NAME> (neon1ks)
 * @license     MIT License; see LICENSE
 */

defined('_JEXEC') or die;

$app             = JFactory::getApplication();
$doc             = JFactory::getDocument();
$user            = JFactory::getUser();
$this->language  = $doc->language;
$this->direction = $doc->direction;

// Output as HTML5
$doc->setHtml5(true);

// Getting params from template
$params = $app->getTemplate(true)->params;

// 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->get('sitename');

if($task == "edit" || $layout == "form" )
{
	$fullWidth = 1;
}
else
{
	$fullWidth = 0;
}

// Add JavaScript
// jQuery first, then Tether, then Bootstrap JS.
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/jquery-3.1.1.js');
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/tether-1.3.7.js');
$doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/bootstrap-4.0.0-alpha.5.js');

// Add Stylesheets
$doc->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.css');

// Use of Google Font
if ($this->params->get('googleFont'))
{
	$doc->addStyleSheet('//fonts.googleapis.com/css?family=' . $this->params->get('googleFontName'));
	$doc->addStyleDeclaration("
	h1, h2, h3, h4, h5, h6, .site-title {
		font-family: '" . str_replace('+', ' ', $this->params->get('googleFontName')) . "', sans-serif;
	}");
}

// Template color
if ($this->params->get('templateColor'))
{
	$doc->addStyleDeclaration("
	body.site {
		background-color: " . $this->params->get('templateBackgroundColor') . ";
	}
	a {
		color: " . $this->params->get('templateColor') . ";
	}
	.nav-list > .active > a,
	.nav-list > .active > a:hover,
	.dropdown-menu li > a:hover,
	.dropdown-menu .active > a,
	.dropdown-menu .active > a:hover,
	.nav-pills > .active > a,
	.nav-pills > .active > a:hover,
	.btn-primary {
		background: " . $this->params->get('templateColor') . ";
	}");
}

// Check for a custom CSS file
$userCss = JPATH_SITE . '/templates/' . $this->template . '/css/user.css';

if (file_exists($userCss) && filesize($userCss) > 0)
{
	$this->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/user.css');
}

// Adjusting content width
if ($this->countModules('position-7'))
{
	$classMainWidth = 'col-xl-9 col-lg-9';
}
else
{
	$classMainWidth = 'col-xl-12 col-lg-12';
}

// Logo img file
if ($this->params->get('logoFile'))
{
	$logoImg = '<img src="' . JUri::root() . $this->params->get('logoFile') . '" alt="' . $sitename . '" class="imgCenter" />';
}
else
{
	$logoImg = '<img src="' . $this->baseurl . '/templates/' . $this->template . '/images/logoImg.png' . '" alt="' . $sitename . '" class="imgCenter" />';
}

// Site title param
if ($this->params->get('sitetitle'))
{
	$siteTitle = '<span class="site-title" title="' . $sitename . '">' . htmlspecialchars($this->params->get('sitetitle'), ENT_COMPAT, 'UTF-8') . '</span>';
}
else
{
	$siteTitle = '<span class="site-title" title="' . $sitename . '">' . $sitename . '</span>';
}

// Site description param
if ($this->params->get('sitedescription'))
{
	$siteDescription = '<div class="site-description">' . htmlspecialchars($this->params->get('sitedescription'), ENT_COMPAT, 'UTF-8') . '</div>';
}
else
{
	$siteDescription = '<div class="site-description">Статьи про Ubuntu. Языки программирования Си&nbsp;и&nbsp;C++<br>Инструменты разработки и многое другое.</div>';
}


?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<jdoc:include type="head" />
</head>
<body class="site <?php echo $option
	. ' view-' . $view
	. ($layout ? ' layout-' . $layout : ' no-layout')
	. ($task ? ' task-' . $task : ' no-task')
	. ($itemid ? ' itemid-' . $itemid : '');
	echo ($this->direction == 'rtl' ? ' rtl' : '');
?>">
	<!-- Body -->
{'fraction_non_alphanumeric': 0.2378415933302455, 'fraction_numerical': 0.00856878184344604, 'mean_word_length': 3.8224455611390287, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3764954', 'n_tokens_mistral': 3209, 'n_tokens_neox': 3138, 'n_words': 584}