HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /home/temp/yarusvl.ru/compiled/orienta/5ac31dad47b62ab361bc8ef25d564a89a4cef64e_0.file.main.tpl.php
<?php
/* Smarty version 3.1.34-dev-7, created on 2023-06-21 17:58:35
  from '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/main.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_6492adabc37838_18665031',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '5ac31dad47b62ab361bc8ef25d564a89a4cef64e' => 
    array (
      0 => '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/main.tpl',
      1 => 1687334286,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:product_list.tpl' => 3,
  ),
),false)) {
function content_6492adabc37838_18665031 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('canonical', '' ,false ,2);?>

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['categories']->value, 'cats');
$_smarty_tpl->tpl_vars['cats']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['cats']->value) {
$_smarty_tpl->tpl_vars['cats']->do_else = false;
?>
    <?php $_tmp_array = isset($_smarty_tpl->tpl_vars['ncats']) ? $_smarty_tpl->tpl_vars['ncats']->value : array();
if (!(is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess)) {
settype($_tmp_array, 'array');
}
$_tmp_array[$_smarty_tpl->tpl_vars['cats']->value->list_main][] = $_smarty_tpl->tpl_vars['cats']->value;
$_smarty_tpl->_assignInScope('ncats', $_tmp_array);
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>


    <style>
        .yarus-icons {display: flex; flex-wrap: wrap; justify-content: center; padding: 0; list-style-type: none}
        .yarus-icons li {max-width: 36%; margin-left: 1.6665%; margin-right: 1.6665%; display: flex; justify-content: center; align-items: center;}
        .yarus-icons .y-ic {margin-right: 10px}
        @media (max-width:1199px) { .yarus-icons li {max-width: 33%;} }
        @media (max-width:991px) { .yarus-icons li {max-width: 50%;} }
        @media (max-width:767px) { .yarus-icons li {max-width: 100%; margin-left: 0; margin-right: 0} .yarus-icons {justify-content:flex-start;} }
    </style>

<ul class="yarus-icons">
    <li><object style="width: 38px; height: 38px" class="y-ic" data="/i/Icon-1.svg" type="image/svg+xml"></object>
        Работаем с 1997 года</li>
    <li><object style="width: 38px; height: 38px" class="y-ic" data="/i/Icon-2.svg" type="image/svg+xml"></object>
        Огромный ассортимент товаров в наличии</li>
    <li><object style="width: 38px; height: 38px" class="y-ic" data="/i/Icon-3.svg" type="image/svg+xml"></object>
        Поддержка отечественного производителя мебели</li>
    <li><object style="width: 38px; height: 38px" class="y-ic" data="/i/Icon-4.svg" type="image/svg+xml"></object>
        Необходимые товары для каждого дома</li>
    <li><object style="width: 38px; height: 38px" class="y-ic" data="/i/Icon-5.svg" type="image/svg+xml"></object>
        Лучшее соотношение цены и качества</li>
</ul>








<div class="this-is">
    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_featured_products'][0], array( array('var'=>'featured_products','limit'=>8),$_smarty_tpl ) );?>

    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_new_products'][0], array( array('var'=>'new_products','limit'=>8),$_smarty_tpl ) );?>

    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_discounted_products'][0], array( array('var'=>'discounted_products','limit'=>8),$_smarty_tpl ) );?>


    <ul class="nav nav-tabs main-tabs" role="tablist">
        <?php if ($_smarty_tpl->tpl_vars['new_products']->value) {?><li class="active"><a href="#main_new" aria-controls="main_new" role="tab"
                data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_new_products;?>
</a></li><?php }?>
        <?php if ($_smarty_tpl->tpl_vars['featured_products']->value) {?><li><a href="#main_recommended" aria-controls="main_recommended" role="tab"
                data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_recommended_products;?>
</a></li><?php }?>
        <?php if ($_smarty_tpl->tpl_vars['discounted_products']->value) {?><li><a href="#main_discount" aria-controls="main_discount" role="tab"
                data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_discount_products;?>
</a></li><?php }?>
    </ul>


    <div class="tab-content">

        <div role="tabpanel" class="tab-pane" id="main_recommended">
            
                        <?php if ($_smarty_tpl->tpl_vars['featured_products']->value) {?>
                <div class="col-xs-12" style="display: none">
                    <div class="h2">
                        <span data-language="main_recommended_products"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_recommended_products;?>
</span>
                    </div>
                </div>

                <div class="main_products clearfix">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['featured_products']->value, 'product');
$_smarty_tpl->tpl_vars['product']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->do_else = false;
?>
                        <div class="products_item no_padding col-sm-4 col-lg-3">
                            <?php $_smarty_tpl->_subTemplateRender("file:product_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        </div>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

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


        <div role="tabpanel" class="tab-pane active" id="main_new">
                                    <?php if ($_smarty_tpl->tpl_vars['new_products']->value) {?>
                <div class="col-xs-12" style="display: none">
                    <div class="h2">
                        <span data-language="main_new_products"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_new_products;?>
</span>
                    </div>
                </div>

                <div class="main_products clearfix">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['new_products']->value, 'product');
$_smarty_tpl->tpl_vars['product']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->do_else = false;
?>
                        <div class="products_item no_padding col-sm-4 col-lg-3">
                            <?php $_smarty_tpl->_subTemplateRender("file:product_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        </div>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </div>
            <?php }?>
        </div>

        <div role="tabpanel" class="tab-pane" id="main_discount">
            
                        <?php if ($_smarty_tpl->tpl_vars['discounted_products']->value) {?>
                <div class="col-xs-12" style="display: none">
                    <div class="h2">
                        <span data-language="main_discount_products"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_discount_products;?>
</span>
                    </div>
                </div>

                <div class="main_products clearfix">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['discounted_products']->value, 'product');
$_smarty_tpl->tpl_vars['product']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->do_else = false;
?>
                        <div class="products_item no_padding col-sm-4 col-lg-3">
                            <?php $_smarty_tpl->_subTemplateRender("file:product_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        </div>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

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

    </div><!-- //.tab-content -->

    <div class="look_all col-xs-12" style="margin-top:20px">
        <a class="button" style="text-decoration: none; border:2px solid #e5e5e5" href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
bestsellers"
            data-language="main_look_all">Все хиты</a>
        <a class="button" style="text-decoration: none; border:2px solid #e5e5e5" href="/newest"
            data-language="main_look_all">Все новинки</a>
        <a class="button" style="text-decoration: none; border:2px solid #e5e5e5" href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
discounted"
            data-language="main_look_all">Все скидки</a>
    </div>

</div>
</div><!-- this-is -->


<div class="row" style="margin: 0">
    <div class="col-xs-12">
                <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_brands'][0], array( array('var'=>'all_brands','visible_brand'=>1),$_smarty_tpl ) );?>

        <?php if ($_smarty_tpl->tpl_vars['all_brands']->value) {?>

            <div class="h2">
                <span data-language="main_brands"><?php echo $_smarty_tpl->tpl_vars['lang']->value->main_brands;?>
</span>
            </div>

            <div class="owl-carousel owl-theme brand-carousel">
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['all_brands']->value, 'b');
$_smarty_tpl->tpl_vars['b']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['b']->value) {
$_smarty_tpl->tpl_vars['b']->do_else = false;
?>
                    <a class="item" href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
brands/<?php echo $_smarty_tpl->tpl_vars['b']->value->url;?>
" data-brand="<?php echo $_smarty_tpl->tpl_vars['b']->value->id;?>
">

                        <?php if ($_smarty_tpl->tpl_vars['b']->value->image) {?>
                            <img src="http://via.placeholder.com/250x250" data-src="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'resize' ][ 0 ], array( $_smarty_tpl->tpl_vars['b']->value->image,250,250,false,$_smarty_tpl->tpl_vars['config']->value->resized_brands_dir ));?>
" 
                                width="250" height="250" class="lazy" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->name, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->name, ENT_QUOTES, 'UTF-8', true);?>
">
                        <?php } else { ?>
                            <h4><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->name, ENT_QUOTES, 'UTF-8', true);?>
</h4>
                        <?php }?>
                    </a>
                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            </div>
        </div>

        <?php echo '<script'; ?>
>
            $('.brand-carousel').owlCarousel({
                loop: true,
                margin: 30,
                nav: false,
                dots: true,
                autoplay: true,
                autoplayTimeout: 5000,
                autoplayHoverPause: true,
                responsive: {
                    0: {
                        items: 3
                    },
                    600: {
                        items: 5
                    },
                    1000: {
                        items: 7
                    }
                }
            })
        <?php echo '</script'; ?>
>

    <?php }?>
</div>




<div class="row this-is" style="margin: 0">




    <?php if ($_smarty_tpl->tpl_vars['page']->value->description || $_smarty_tpl->tpl_vars['last_posts']->value) {?>
        <div class="wrap_block clearfix">
            <?php if ($_smarty_tpl->tpl_vars['page']->value->description) {?>
                <div class="no_padding<?php if ($_smarty_tpl->tpl_vars['last_posts']->value) {?> col-lg-12<?php } else { ?> col-lg-12<?php }?>">
                    <div class="block padding">
                        <div class="main_text" style="padding-left: 15px; padding-right: 15px"><?php echo $_smarty_tpl->tpl_vars['page']->value->description;?>
</div>
                    </div>
                </div>
            <?php }?>



        <?php }?>
    </div>


</div>
<!--- .... --->


<div style="background: #fff; padding-bottom: 20px">
    <div class="container this-is2">

        <div class="h2" style="margin-bottom: 30px">
            Статьи
        </div>

                <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_posts'][0], array( array('var'=>'last_posts','limit'=>12,'type_post'=>"blog"),$_smarty_tpl ) );?>

        <?php if (!empty($_smarty_tpl->tpl_vars['last_posts']->value)) {?>
            <div class="row">
                <div class="col-xs-12">

                    <div class="owl-carousel owl-theme post-carousel">

                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['last_posts']->value, 'post');
$_smarty_tpl->tpl_vars['post']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['post']->value) {
$_smarty_tpl->tpl_vars['post']->do_else = false;
?>
                            <div class="item">

                                <a class="news_image" href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;
echo $_smarty_tpl->tpl_vars['post']->value->type_post;?>
/<?php echo $_smarty_tpl->tpl_vars['post']->value->url;?>
">
                                    <?php if ($_smarty_tpl->tpl_vars['post']->value->image) {?>
                                        <img class="news_img lazy" src="http://via.placeholder.com/360x360" 
                                            width="360" height="360"
                                            data-src="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'resize' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value->image,360,360,false,$_smarty_tpl->tpl_vars['config']->value->resized_blog_dir ));?>
" 
                                            alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
" />
                                    <?php }?>
                                </a>

                                <div class="news_content nm">

                                                                        <div class="h5">
                                        <a href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;
echo $_smarty_tpl->tpl_vars['post']->value->type_post;?>
/<?php echo $_smarty_tpl->tpl_vars['post']->value->url;?>
"
                                            data-post="<?php echo $_smarty_tpl->tpl_vars['post']->value->id;?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
</a>
                                    </div>

                                                                        <div class="news_date"><span><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value->date ));?>
</span></div>

                                                                        <?php if ($_smarty_tpl->tpl_vars['post']->value->annotation) {?>
                                        <div class="news_annotation"><?php echo $_smarty_tpl->tpl_vars['post']->value->annotation;?>
</div>
                                    <?php }?>

                                </div>

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

                    </div>

                    <?php echo '<script'; ?>
>
                        $('.post-carousel').owlCarousel({
                            loop: true,
                            margin: 30,
                            nav: false,
                            dots: true,
                            autoplay: true,
                            autoplayTimeout: 5000,
                            autoplayHoverPause: true,
                            responsive: {
                                0: {
                                    items: 1
                                },
                                600: {
                                    items: 2
                                },
                                1000: {
                                    items: 4
                                }
                            }
                        })
                    <?php echo '</script'; ?>
>


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

        <div class="row">
            <div class="look_all col-xs-12" style="margin-top:20px">
                <a class="button" style="text-decoration: none; border:2px solid #e5e5e5" href="/blog">Все статьи</a>
            </div>
        </div>

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