<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* madeshop/template/common/home.twig */
class __TwigTemplate_8149d7056e9674344f4d42422207d1cfbc5934f654855ff609d5b69f7aaa908e extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        if ((($context["madeshop_home"] ?? null) == 0)) {
            // line 2
            echo ($context["formcreator_id49"] ?? null);
            echo "
\t";
            // line 3
            echo ($context["header"] ?? null);
            echo "
\t<div class=\"container\">
\t  <div class=\"row\">";
            // line 5
            echo ($context["column_left"] ?? null);
            echo "
\t\t";
            // line 6
            if ((($context["column_left"] ?? null) && ($context["column_right"] ?? null))) {
                // line 7
                echo "\t\t";
                $context["class"] = "col-sm-6";
                // line 8
                echo "\t\t";
            } elseif ((($context["column_left"] ?? null) || ($context["column_right"] ?? null))) {
                // line 9
                echo "\t\t";
                $context["class"] = "col-sm-9";
                // line 10
                echo "\t\t";
            } else {
                // line 11
                echo "\t\t";
                $context["class"] = "col-sm-12";
                // line 12
                echo "\t\t";
            }
            // line 13
            echo "\t\t<div id=\"content\" class=\"";
            echo ($context["class"] ?? null);
            echo " no-container\">
\t\t";
            // line 14
            echo ($context["content_top"] ?? null);
            echo "
\t\t";
            // line 15
            echo ($context["content_bottom"] ?? null);
            echo "
\t\t</div>
\t\t";
            // line 17
            echo ($context["column_right"] ?? null);
            echo "
\t  </div>
\t</div>
\t";
            // line 20
            echo ($context["footer"] ?? null);
            echo "
";
        } elseif ((        // line 21
($context["madeshop_home"] ?? null) == 1)) {
            // line 22
            echo "\t";
            echo ($context["header"] ?? null);
            echo "
\t<div id=\"content\">
\t";
            // line 24
            echo ($context["content_top"] ?? null);
            echo "
\t";
            // line 25
            echo ($context["content_bottom"] ?? null);
            echo "
\t</div>
\t";
            // line 27
            echo ($context["footer"] ?? null);
            echo "
";
        } else {
            // line 29
            echo "\t";
            echo ($context["header"] ?? null);
            echo "  
    <div id=\"content\">
    <div class=\"section content-top\">";
            // line 31
            echo ($context["content_top"] ?? null);
            echo "</div>
    <div class=\"section content-bottom pp-scrollable\">
\t";
            // line 33
            echo ($context["content_bottom"] ?? null);
            echo "
\t";
            // line 34
            echo ($context["footer"] ?? null);
            echo "
\t<!-- </div></div> end to footer -->   
    <script src=\"catalog/view/theme/madeshop/script/jscompress.js\" type=\"text/javascript\"></script>
    <script src=\"catalog/view/theme/madeshop/script/jquery.pagepiling.min.js\" type=\"text/javascript\"></script>
    <link href=\"catalog/view/theme/madeshop/script/jquery.pagepiling.css\" rel=\"stylesheet\">
\t<script type=\"text/javascript\">
\t\t\$(document).ready(function() {
\t    \tif (screen.width>768){
\t\t\t\$('#content').pagepiling({
\t\t\t    verticalCentered: false,
\t\t\t    scrollingSpeed: 500,
\t\t\t    navigation: false,
            afterLoad: function(anchorLink, index) {
                if(index == 2){
                \$('html').addClass('color2');
                }
            },
            onLeave: function(nextIndex){
                if(nextIndex == 2){
\t\t\t\t\$('html').removeClass('color2');
\t\t\t}
            }
\t\t\t});
\t\t\t\$('.scrollup, span.text-logo').click(function() {
            \$.fn.pagepiling.moveSectionUp();
            \$('.content-bottom').animate({
            scrollTop: 0
            }, 1500);
            });
\t\t\t} else {
\t    \t   \$('html').addClass('mobile');  
\t    \t}
\t\t\t
\t\t\t\$('.content-bottom').scroll(function() {
            if (\$(this).scrollTop() > 500) \$('.f-share').addClass('open');
            else \$('.f-share').removeClass('open');
            });
    
\t\t\t\$('.m-section').viewportChecker({
\t\t\t  classToAdd: 'visible',
\t\t\t  scrollBox:'.content-bottom',
\t\t\t  offset: 300,
\t\t    });
\t    });
    </script>
";
        }
    }

    public function getTemplateName()
    {
        return "madeshop/template/common/home.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  133 => 34,  129 => 33,  124 => 31,  118 => 29,  113 => 27,  108 => 25,  104 => 24,  98 => 22,  96 => 21,  92 => 20,  86 => 17,  81 => 15,  77 => 14,  72 => 13,  69 => 12,  66 => 11,  63 => 10,  60 => 9,  57 => 8,  54 => 7,  52 => 6,  48 => 5,  43 => 3,  39 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "madeshop/template/common/home.twig", "");
    }
}
