/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/cache/twig/f7/f701ea986a6593f32ccaa7cbb7f0334fafd71ca08737b12637a7109e519f0fac.php
// line 3
echo "<section class=\"type-section-with-nav type-section-with-nav_single-post js-sticky-block-wrap\">
<div class=\"show-nav js-call-filter\">
<div class=\"btn-close\"></div>
<p class=\"show-nav__text middle\">";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("Блог"), "html", null, true);
echo "</p>
</div>
<div class=\"type-section-with-nav__col type-section-with-nav__col_nav js-sticky-block\">
<div class=\"type-section-with-nav__title-wrapper\">
<h2 class=\"type-section-with-nav__title\">";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("Блог"), "html", null, true);
echo "</h2>
</div>
<div class=\"type-section-with-nav__title-link-wrapper\">
<a class=\"back-blog\" href=\"";
// line 13
echo twig_escape_filter($this->env, get_term_link(twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "pterm", [], "any", false, false, false, 13)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("Назад"), "html", null, true);
echo "\">
<span class=\"back-blog__icon\">
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 119.7 119.7\" width=\"119.7\" height=\"119.7\"><style>.arrow-btn0, .arrow-btn1 {
fill: none;
stroke: #000;
stroke-width: 6.935;
stroke-linecap: round;
stroke-linejoin: round;
stroke-miterlimit: 10
}
.arrow-btn1 {
stroke-width: 7
}</style><path class=\"arrow-btn0\" d=\"M114.1 59.8H3.5\" /><path class=\"arrow-btn1\" d=\"M3.5 59.833L59.856 3.477l56.356 56.356-56.356 56.356z\" /></svg>
</span>
<span class=\"back-blog__text\">";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("теги"), "html", null, true);
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
{
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false, $templateContext ?? $this);
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/cache/twig/f9/f9bd78ff26e67a648885b97f18b7689f4830ef8b56b412e9ec692ff230a70104.php
$this->displayBlock('body_attr', $context, $blocks);
echo ">
";
// line 15
$this->displayBlock('body_before', $context, $blocks);
// line 16
echo " <div class=\"content\">
";
// line 17
$this->loadTemplate("@template/particles/left-navigation.twig", "@template/layouts/page.twig", 17)->display($context);
// line 18
echo " ";
$this->loadTemplate("@template/particles/header.twig", "@template/layouts/page.twig", 18)->display($context);
// line 19
echo " ";
// line 25
echo " <div class=\"main js-main\">
";
// line 26
$this->displayBlock('content', $context, $blocks);
// line 27
echo " <footer class=\"footer\">
";
// line 28
$this->loadTemplate("@template/sections/footer.twig", "@template/layouts/page.twig", 28)->display($context);
// line 29
echo " ";
$this->loadTemplate("@template/particles/footer-nav.twig", "@template/layouts/page.twig", 29)->display($context);
// line 30
echo " </footer>
</div>
<div class=\"page-up js-page-up\"><i class=\"page-up__icon fa fa-angle-up\"></i>
</div>
";
// line 34
$this->displayBlock('body_after', $context, $blocks);
// line 37
echo " <script>
Share = {
vkontakte: function(purl, ptitle, pimg, text, id) {
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/cache/twig/f7/f701ea986a6593f32ccaa7cbb7f0334fafd71ca08737b12637a7109e519f0fac.php
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@template/layouts/page.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$this->parent = $this->loadTemplate("@template/layouts/page.twig", "@template/single.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
// line 3
echo "<section class=\"type-section-with-nav type-section-with-nav_single-post js-sticky-block-wrap\">
<div class=\"show-nav js-call-filter\">
<div class=\"btn-close\"></div>
<p class=\"show-nav__text middle\">";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("Блог"), "html", null, true);
echo "</p>
</div>
<div class=\"type-section-with-nav__col type-section-with-nav__col_nav js-sticky-block\">
<div class=\"type-section-with-nav__title-wrapper\">
<h2 class=\"type-section-with-nav__title\">";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Sau\WP\Theme\Extension\WP\Twig']->__("Блог"), "html", null, true);
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/Template.php
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/vendor/twig/twig/src/TemplateWrapper.php
* directly (use Twig\Environment::load() instead).
*
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_get_args()[1] ?? []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*/
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/core/Extension/Twig/SauTwig.php
TemplateException::render( $exception );
}
}
/**
* Render twig template
*
* @param string|array|stdClass $template Name twig-template or array names
* @param array $var Vars for template
*
* @return string
* @throws \Twig_Error_Loader
* @throws \Twig_Error_Runtime
* @throws \Twig_Error_Syntax
*/
public static function render( $template, $var = [] ) {
$var = apply_filters( 'twig_template_vars', $var );
$template = self::$twig->load( $template );
return $template->render( $var );
}
/**
* Bind vars in global space
*
* @param string $name
* @param mixed $var
*/
public static function bind( $name, $var ) {
TwigFilter::twigTemplateVars( function ( $vars ) use ( $name, $var ) {
$vars[ $name ] = $var;
return $vars;
} );
}
/**
* Display twig template
*
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/core/Extension/Twig/SauTwig.php
TwigFilter::twigTemplateVars( function ( $vars ) use ( $name, $var ) {
$vars[ $name ] = $var;
return $vars;
} );
}
/**
* Display twig template
*
* @param string|array|stdClass $template Name twig-template or array names
* @param array $var Vars for template
*
* @throws \Twig_Error_Loader
* @throws \Twig_Error_Runtime
* @throws \Twig_Error_Syntax
*/
public static function display( $template, $var = [] ) {
echo self::render( $template, $var );
}
}
/home/c/cf24606/tutmee.ru/public_html/wp-content/themes/tutmee-business/single.php
$post->user_avatar = wp_get_attachment_image_url( carbon_get_user_meta( $post->post_author, 'avatar' ) );
// $post->tags = get_the_tags();
$data[ 'post' ] = $post;
$posts_menu = new WP_Query();
$data[ 'post_menu' ] = $posts_menu->query( [
'cat' => $post->pterm->term_id,
'numberposts' => 0
] );
endwhile;
if ( $prev = get_adjacent_post( true, '', true ) ) {
$data[ 'footer_nav' ][ 'prev' ][ 'url' ] = get_permalink( $prev );
$data[ 'footer_nav' ][ 'prev' ][ 'title' ] = __('Предыдущая статья',THEME_LANG);
}
if ( $next = get_adjacent_post( true, '', false ) ) {
$data[ 'footer_nav' ][ 'next' ][ 'url' ] = get_permalink( $next );
$data[ 'footer_nav' ][ 'next' ][ 'title' ] = __('Следующая статья',THEME_LANG);
}
SauTwig::display( '@template/single.twig', $data );
} else {
\Sau\WP\Theme\Extension\WP\WP::set404header( true );
}
/home/c/cf24606/tutmee.ru/public_html/wp-includes/template-loader.php
elseif ( is_single() && $template = get_single_template() ) :
elseif ( is_page() && $template = get_page_template() ) :
elseif ( is_singular() && $template = get_singular_template() ) :
elseif ( is_category() && $template = get_category_template() ) :
elseif ( is_tag() && $template = get_tag_template() ) :
elseif ( is_author() && $template = get_author_template() ) :
elseif ( is_date() && $template = get_date_template() ) :
elseif ( is_archive() && $template = get_archive_template() ) :
else :
$template = get_index_template();
endif;
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
if ( $template = apply_filters( 'template_include', $template ) ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
endif;
/home/c/cf24606/tutmee.ru/public_html/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once( dirname(__FILE__) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
/home/c/cf24606/tutmee.ru/public_html/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );