<?php
/* Smarty version 4.5.2, created on 2024-08-19 05:46:03
  from '/home/life/public_html/teg.lifestyle.uz/themes/template-ru/index.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_66c2dc1b8a3602_59856935',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8d639d08ee9bdf991c30b4ec88c6babb19f5f00c' => 
    array (
      0 => '/home/life/public_html/teg.lifestyle.uz/themes/template-ru/index.tpl',
      1 => 1724046361,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:modules/slider.tpl' => 1,
    'file:form/feedback-form.tpl' => 1,
    'file:modules/socials.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_66c2dc1b8a3602_59856935 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/smarty_plugins/function.fetch_section.php','function'=>'smarty_function_fetch_section',),1=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/smarty_plugins/function.fetch_articles.php','function'=>'smarty_function_fetch_articles',),2=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),3=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.explode.php','function'=>'smarty_modifier_explode',),));
$_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title'=>$_smarty_tpl->tpl_vars['section']->value['name'],'keywords'=>$_smarty_tpl->tpl_vars['section']->value['keywords'],'description'=>$_smarty_tpl->tpl_vars['section']->value['description']), 0, false);
?>

<main class="main">

		<?php $_smarty_tpl->_subTemplateRender("file:modules/slider.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	

		<?php echo smarty_function_fetch_section(array('assign'=>'aboutSection','section'=>20,'image'=>true,'getContent'=>true),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['aboutSection']->value['status'] == 'V') {?>
	<section class="flex:col pad-tb-50" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['aboutSection']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
		<div class="flex:col-max">

			<div class="block">
				<div class="block__inner">

					<div class="text-tmp title-56 title-dec-36">
						<h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['aboutSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2>

						<h3><?php echo $_smarty_tpl->tpl_vars['aboutSection']->value['alias'];?>
</h3>
					</div>

					<div class="grid:fr-3 g-gap-30 max">
						<?php echo $_smarty_tpl->tpl_vars['aboutSection']->value['content'];?>

					</div>

					<div class="img-container">
						
						<div class="img-container__item">
							<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/common/1.jpg" alt="">
						</div>
						
						<div class="img-container__item">
							<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['aboutSection']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['aboutSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
">
						</div>

					</div>

				</div>
			</div>

		</div>
	</section>
	<?php }?>
	

		<?php echo smarty_function_fetch_section(array('assign'=>'productsSection','section'=>21,'image'=>true,'getContent'=>true),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['productsSection']->value['status'] == 'V') {?>
	<section class="flex:col pad-tb-50" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsSection']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
		<div class="flex:col-max">

			<div class="block">
				<div class="block__inner">

					<div class="text-tmp title-56 all-center">
						<h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2>
					</div>
					
					<?php echo smarty_function_fetch_articles(array('limit'=>36,'assign'=>'productsArticles','section'=>$_smarty_tpl->tpl_vars['productsSection']->value['sectionId'],'image'=>true,'typeContent'=>"articles"),$_smarty_tpl);?>

					<div class="grid:fr-3 max g-gap-column-20 g-gap-row-60">
						<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['productsArticles']->value, 'productsArticle', false, NULL, 'productsArticles', array (
));
$_smarty_tpl->tpl_vars['productsArticle']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['productsArticle']->value) {
$_smarty_tpl->tpl_vars['productsArticle']->do_else = false;
?>
						<div class="product-card" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsArticle']->value['aticleId'], ENT_QUOTES, 'UTF-8', true);?>
">

							<div class="product-card__img">
								<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsArticle']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsArticle']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
">
							</div>

							<div class="product-card__desc">
								<ul>
									<li>Трансформатор</li>
									<li><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsArticle']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</li>
								</ul>

								<a class="btn white full product-btn_js" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['productsArticle']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">ПОДРОБНЕЕ</a>
							</div>

						</div>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

					</div>

					
				</div>
			</div>

		</div>
	</section>
	<?php }?>
		

		<?php echo smarty_function_fetch_section(array('assign'=>'certSection','section'=>24,'image'=>true,'getContent'=>true),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['certSection']->value['status'] == 'V') {?>
	<section class="flex:col pad-t-50 pad-b-100" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['certSection']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
		<div class="flex:col-max">

			<div class="block">
				<div class="block__inner">

					<div class="text-tmp title-56 all-center">
						<h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['certSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2>
					</div>
					
					<?php if ((isset($_smarty_tpl->tpl_vars['certSection']->value['docs']))) {?>
										<div class="grid:fr-2 max g-gap-20">
						<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['certSection']->value['docs'], 'docs');
$_smarty_tpl->tpl_vars['docs']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['docs']->value) {
$_smarty_tpl->tpl_vars['docs']->do_else = false;
?>
						<a class="sert-card" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['docs']->value['original'], ENT_QUOTES, 'UTF-8', true);?>
" target="_blank">

							<div class="sert-card__icon">
								<svg width="90" height="90" viewBox="0 0 90 90" fill="none" xmlns="http://www.w3.org/2000/svg">
									<path
										d="M29.9063 65.85H60.0938V60.15H29.9063V65.85ZM29.9063 49.7H60.0938V44H29.9063V49.7ZM20.625 82C19.125 82 17.8125 81.43 16.6875 80.29C15.5625 79.15 15 77.82 15 76.3V11.7C15 10.18 15.5625 8.85 16.6875 7.71C17.8125 6.57 19.125 6 20.625 6H54.4688L75 26.805V76.3C75 77.82 74.4375 79.15 73.3125 80.29C72.1875 81.43 70.875 82 69.375 82H20.625ZM51.6563 29.37V11.7H20.625V76.3H69.375V29.37H51.6563Z" />
								</svg>
							</div>

							<div class="sert-card__desc">
								<p><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['docs']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
</p>
							</div>

						</a>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

					</div>
					<?php }?>

				</div>
			</div>

		</div>
	</section>
	<?php }?>
	

		<?php echo smarty_function_fetch_section(array('assign'=>'newsSection','section'=>22,'image'=>true,'getContent'=>true),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['newsSection']->value['status'] == 'V') {?>
	<section class="flex:col bg-white" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsSection']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
		<div class="flex:col-max">

			<div class="block">
				<div class="block__inner">

					<div class="text-tmp title-56 all-center">
						<h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2>
					</div>
					
					<?php echo smarty_function_fetch_articles(array('limit'=>5,'assign'=>'newsArticles','section'=>$_smarty_tpl->tpl_vars['newsSection']->value['sectionId'],'image'=>true,'typeContent'=>"news"),$_smarty_tpl);?>

					
					<div class="grid:fr-1 g-gap-40">
						<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['newsArticles']->value, 'newsArticle', false, NULL, 'newsArticles', array (
));
$_smarty_tpl->tpl_vars['newsArticle']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['newsArticle']->value) {
$_smarty_tpl->tpl_vars['newsArticle']->do_else = false;
?>
						<a class="news-card" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsArticle']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">
							<div class="news-card__img">
								<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsArticle']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsArticle']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
">
							</div>

							<div class="news-card__desc">
								<div class="text-tmp txt-accent-2">
									<p><?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['newsArticle']->value['publishedOn'],"%d.%m.%Y"), ENT_QUOTES, 'UTF-8', true);?>
</p>
								</div>

								<div class="text-tmp title-18">
									<h3><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['newsArticle']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</h3>

									<p><?php echo $_smarty_tpl->tpl_vars['newsArticle']->value['summary'];?>
</p>
								</div>

								<span class="news-card__more">
									Читать дальше
								</span>
							</div>
						</a>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

					</div>

					
				</div>
			</div>

		</div>
	</section>
	<?php }?>
	
		<section class="feedback">

		<div class="feedback__content">

			<?php $_smarty_tpl->_subTemplateRender("file:form/feedback-form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

		</div>

		<div class="feedback__img">
			<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/bg/1.jpg" alt="">
		</div>
	</section>
	

		<?php echo smarty_function_fetch_section(array('assign'=>'contactsSection','section'=>23,'image'=>true,'getContent'=>true),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['contactsSection']->value['status'] == 'V') {?>
	<section class="flex:col bg-white" id="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['contactsSection']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
		<div class="flex:col-max">

			<div class="block">
				<div class="block__inner">

					<div class="text-tmp title-56 all-center">
						<h2><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['contactsSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2>
					</div>

					<div class="grid:fr-2 max g-gap-20">

						<div class="contact-card">

							<div class="text-tmp title-18 title-accent-1 title-tt-up">
								<h3>Телефоны:</h3>
							</div>
							<ul>
								<?php $_smarty_tpl->_assignInScope('phones', smarty_modifier_explode(", ",$_smarty_tpl->tpl_vars['config']->value['phone']));?>
								<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['phones']->value, 'phone', false, NULL, 'phones', array (
));
$_smarty_tpl->tpl_vars['phone']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['phone']->value) {
$_smarty_tpl->tpl_vars['phone']->do_else = false;
?>
									<li><a href="tel:<?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'strip_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )), ENT_QUOTES, 'UTF-8', true);?>
</a></li>
								<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
							</ul>

						</div>

						<div class="contact-card">

							<div class="text-tmp title-18 title-accent-1 title-tt-up">
								<h3>Почта:</h3>
							</div>
							<ul>
								<li><a href="mailto:<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
							</ul>

						</div>

						<div class="contact-card">

							<div class="text-tmp title-18 title-accent-1 title-tt-up">
								<h3>Адрес:</h3>
							</div>
							<ul>
								<li><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</li>
							</ul>

						</div>

						<div class="contact-card">

							<div class="text-tmp title-18 title-accent-1 title-tt-up">
								<h3>Соц. Сети:</h3>
							</div>

							<div class="social">
								<?php $_smarty_tpl->_subTemplateRender("file:modules/socials.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('path'=>"/images/icons/social/"), 0, false);
?>
							</div>

						</div>

					</div>

					<div class="map" id="map"></div>

				</div>
			</div>

		</div>
	</section>
	<?php }?>
	
</main>

<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
