<?php

/* @particles/animatedblock.html.twig */
class __TwigTemplate_4003bfb09000a3aafef3d57b3bd64a711148b6000f5164a7920c3aef26f128bc extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/animatedblock.html.twig", 1);
        $this->blocks = array(
            'particle' => array($this, 'block_particle'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "@nucleus/partials/particle.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_particle($context, array $blocks = array())
    {
        // line 4
        echo "
  ";
        // line 5
        if ($this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "title", array())) {
            echo "<h2 class=\"g-title\">";
            echo $this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "title", array());
            echo "</h2>";
        }
        // line 6
        echo "
  <div class=\"g-animatedblock ";
        // line 7
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "class", array()));
        echo "\">

    <div class=\"g-animatedblock-items ";
        // line 9
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "cols", array()));
        echo "\">
      ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "blocks", array()));
        foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
            // line 11
            echo "      <div class=\"g-animatedblock-item ";
            echo twig_escape_filter($this->env, $this->getAttribute($context["block"], "class", array()));
            echo "\">
        ";
            // line 12
            if ($this->getAttribute($context["block"], "image", array())) {
                // line 13
                echo "        <div class=\"g-animatedblock-image\">
          <img src=\"";
                // line 14
                echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->urlFunc($this->getAttribute($context["block"], "image", array())));
                echo "\" alt=\"image\" />
        </div>
        ";
            }
            // line 17
            echo "
        ";
            // line 18
            if (((($this->getAttribute($context["block"], "tag", array()) || $this->getAttribute($context["block"], "headline", array())) || $this->getAttribute($context["block"], "desc", array())) || $this->getAttribute($context["block"], "readmore", array()))) {
                // line 19
                echo "        <div class=\"g-animatedblock-content\">
          ";
                // line 20
                if (($this->getAttribute($context["block"], "tag", array()) || $this->getAttribute($context["block"], "headline", array()))) {
                    // line 21
                    echo "          <div class=\"g-animatedblock-head\">
            ";
                    // line 22
                    if ($this->getAttribute($context["block"], "tag", array())) {
                        // line 23
                        echo "            <div class=\"g-animatedblock-tag\"><span>";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["block"], "tag", array()));
                        echo "</span></div>
            ";
                    }
                    // line 25
                    echo "      
            ";
                    // line 26
                    if ($this->getAttribute($context["block"], "headline", array())) {
                        // line 27
                        echo "            <h2 class=\"g-animatedblock-title\">
              ";
                        // line 28
                        if ($this->getAttribute($context["block"], "link", array())) {
                            echo "<a href=\"";
                            echo twig_escape_filter($this->env, $this->getAttribute($context["block"], "link", array()));
                            echo "\">";
                        }
                        // line 29
                        echo "              ";
                        echo $this->getAttribute($context["block"], "headline", array());
                        echo "
              ";
                        // line 30
                        if ($this->getAttribute($context["block"], "link", array())) {
                            echo "</a>";
                        }
                        // line 31
                        echo "            </h2>
            ";
                    }
                    // line 33
                    echo "          </div>
          ";
                }
                // line 35
                echo "    
          ";
                // line 36
                if (($this->getAttribute($context["block"], "desc", array()) || $this->getAttribute($context["block"], "readmore", array()))) {
                    // line 37
                    echo "          <div class=\"g-animatedblock-body\">
            ";
                    // line 38
                    if ($this->getAttribute($context["block"], "desc", array())) {
                        // line 39
                        echo "            <div class=\"g-animatedblock-desc\">
              ";
                        // line 40
                        echo $this->getAttribute($context["block"], "desc", array());
                        echo "
            </div>
            ";
                    }
                    // line 43
                    echo "      
            ";
                    // line 44
                    if ($this->getAttribute($context["block"], "readmore", array())) {
                        // line 45
                        echo "            <a href=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["block"], "link", array()));
                        echo "\"><span class=\"g-animatedblock-readmore\">";
                        echo $this->getAttribute($context["block"], "readmore", array());
                        echo "</span></a>
            ";
                    }
                    // line 47
                    echo "          </div>
          ";
                }
                // line 49
                echo "        </div>
        ";
            }
            // line 51
            echo "      
      </div>
      ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 54
        echo "    </div>
    
    ";
        // line 56
        if ($this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "button", array())) {
            // line 57
            echo "    <div class=\"g-animatedblock-button-container\">
      <a href=\"";
            // line 58
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "link", array()));
            echo "\" class=\"g-animatedblock-button\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["particle"]) ? $context["particle"] : null), "button", array()));
            echo "</a>
    </div>
    ";
        }
        // line 61
        echo "  </div>
";
    }

    public function getTemplateName()
    {
        return "@particles/animatedblock.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  189 => 61,  181 => 58,  178 => 57,  176 => 56,  172 => 54,  164 => 51,  160 => 49,  156 => 47,  148 => 45,  146 => 44,  143 => 43,  137 => 40,  134 => 39,  132 => 38,  129 => 37,  127 => 36,  124 => 35,  120 => 33,  116 => 31,  112 => 30,  107 => 29,  101 => 28,  98 => 27,  96 => 26,  93 => 25,  87 => 23,  85 => 22,  82 => 21,  80 => 20,  77 => 19,  75 => 18,  72 => 17,  66 => 14,  63 => 13,  61 => 12,  56 => 11,  52 => 10,  48 => 9,  43 => 7,  40 => 6,  34 => 5,  31 => 4,  28 => 3,  11 => 1,);
    }
}
/* {% extends '@nucleus/partials/particle.html.twig' %}*/
/* */
/* {% block particle %}*/
/* */
/*   {% if particle.title %}<h2 class="g-title">{{ particle.title|raw }}</h2>{% endif %}*/
/* */
/*   <div class="g-animatedblock {{ particle.class|e }}">*/
/* */
/*     <div class="g-animatedblock-items {{ particle.cols|e }}">*/
/*       {% for block in particle.blocks %}*/
/*       <div class="g-animatedblock-item {{ block.class|e }}">*/
/*         {% if block.image %}*/
/*         <div class="g-animatedblock-image">*/
/*           <img src="{{ url(block.image)|e }}" alt="image" />*/
/*         </div>*/
/*         {% endif %}*/
/* */
/*         {% if block.tag or block.headline or block.desc or block.readmore %}*/
/*         <div class="g-animatedblock-content">*/
/*           {% if block.tag or block.headline %}*/
/*           <div class="g-animatedblock-head">*/
/*             {% if block.tag %}*/
/*             <div class="g-animatedblock-tag"><span>{{ block.tag|e }}</span></div>*/
/*             {% endif %}*/
/*       */
/*             {% if block.headline %}*/
/*             <h2 class="g-animatedblock-title">*/
/*               {% if block.link %}<a href="{{ block.link|e }}">{% endif %}*/
/*               {{ block.headline|raw }}*/
/*               {% if block.link %}</a>{% endif %}*/
/*             </h2>*/
/*             {% endif %}*/
/*           </div>*/
/*           {% endif %}*/
/*     */
/*           {% if block.desc or block.readmore %}*/
/*           <div class="g-animatedblock-body">*/
/*             {% if block.desc %}*/
/*             <div class="g-animatedblock-desc">*/
/*               {{ block.desc|raw }}*/
/*             </div>*/
/*             {% endif %}*/
/*       */
/*             {% if block.readmore %}*/
/*             <a href="{{ block.link|e }}"><span class="g-animatedblock-readmore">{{ block.readmore|raw }}</span></a>*/
/*             {% endif %}*/
/*           </div>*/
/*           {% endif %}*/
/*         </div>*/
/*         {% endif %}*/
/*       */
/*       </div>*/
/*       {% endfor %}*/
/*     </div>*/
/*     */
/*     {% if particle.button %}*/
/*     <div class="g-animatedblock-button-container">*/
/*       <a href="{{ particle.link|e }}" class="g-animatedblock-button">{{ particle.button|e }}</a>*/
/*     </div>*/
/*     {% endif %}*/
/*   </div>*/
/* {% endblock %}*/
