<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* layouts/page/gallery/index.twig */
class __TwigTemplate_2dc89f4b3d5d1509251918fc96ee7db2c8899485fc10e7305960c85e7e2fc143 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "        ";
        $this->loadTemplate((("layouts/page/" . ($context["session"] ?? null)) . "/banner.twig"), "layouts/page/gallery/index.twig", 1)->display($context);
        // line 2
        echo "    <section id=\"gallery-section\">
        <div class=\"container vision-text-content\">
            <div class=\"row\">
                <div class=\"col-11 mx-auto\">
                    ";
        // line 6
        $this->loadTemplate("layouts/breadcrumb.twig", "layouts/page/gallery/index.twig", 6)->display($context);
        // line 7
        echo "
                      ";
        // line 8
        $context["countgallery"] = 0;
        // line 9
        echo "                        ";
        if ((($context["countgallery"] ?? null) == 0)) {
            // line 10
            echo "                             <div class=\"row vision-bottom-padding float-left\">
                          ";
        }
        // line 11
        echo " 
                        ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["gallerycatlist"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["gallerycatdata"]) {
            // line 13
            echo "                        
                            <div class=\"col-md-2 col-6 justify-content-center\"><a href=\"/gallery/details/";
            // line 14
            echo twig_escape_filter($this->env, $this->getAttribute($context["gallerycatdata"], "cp_cat_name", []), "html", null, true);
            echo "\"><img class=\"img-fluid grow5\" src=\"../upload/newalbum_images/";
            echo twig_escape_filter($this->env, $this->getAttribute($context["gallerycatdata"], "ep_pic", []), "html", null, true);
            echo "\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">";
            // line 15
            echo twig_escape_filter($this->env, $this->getAttribute($context["gallerycatdata"], "ep_date", []), "html", null, true);
            echo "</p>
                            <p class=\"vision-text-color-blue \"><a href=\"/gallery/details/";
            // line 16
            echo twig_escape_filter($this->env, $this->getAttribute($context["gallerycatdata"], "cp_cat_name", []), "html", null, true);
            echo "\" class=\"changeText\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["gallerycatdata"], "cp_cat_name", []), "html", null, true);
            echo "</a></p>
                        
                            </div>
                         ";
            // line 19
            $context["countgallery"] = (($context["countgallery"] ?? null) + 1);
            // line 20
            echo "                         ";
            // line 26
            echo "                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallerycatdata'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 27
        echo "
                       


                    ";
        // line 32
        echo "                            </div>
                    ";
        // line 34
        echo "                     ";
        // line 124
        echo "                </div>
            </div>
        </div>
    </section>
";
    }

    public function getTemplateName()
    {
        return "layouts/page/gallery/index.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  102 => 124,  100 => 34,  97 => 32,  91 => 27,  85 => 26,  83 => 20,  81 => 19,  73 => 16,  69 => 15,  63 => 14,  60 => 13,  56 => 12,  53 => 11,  49 => 10,  46 => 9,  44 => 8,  41 => 7,  39 => 6,  33 => 2,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("        {% include 'layouts/page/' ~ session ~ '/banner.twig' %}
    <section id=\"gallery-section\">
        <div class=\"container vision-text-content\">
            <div class=\"row\">
                <div class=\"col-11 mx-auto\">
                    {% include 'layouts/breadcrumb.twig' %}

                      {% set countgallery = 0 %}
                        {% if countgallery == 0 %}
                             <div class=\"row vision-bottom-padding float-left\">
                          {% endif %} 
                        {% for gallerycatdata in gallerycatlist %}
                        
                            <div class=\"col-md-2 col-6 justify-content-center\"><a href=\"/gallery/details/{{gallerycatdata.cp_cat_name}}\"><img class=\"img-fluid grow5\" src=\"../upload/newalbum_images/{{gallerycatdata.ep_pic}}\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">{{gallerycatdata.ep_date}}</p>
                            <p class=\"vision-text-color-blue \"><a href=\"/gallery/details/{{gallerycatdata.cp_cat_name}}\" class=\"changeText\">{{gallerycatdata.cp_cat_name}}</a></p>
                        
                            </div>
                         {% set countgallery = countgallery +1 %}
                         {# {% if countgallery == 6 %}
                             </div>   
                          {% endif %}  
                        {% if countgallery == 6 %}
                             {% set countgallery = 0 %}
                        {% endif %} #}
                        {% endfor %}

                       


                    {# {% if countgallery != 0 %} #}
                            </div>
                    {# {% endif %} #}
                     {# <div class=\"row vision-bottom-padding\"> 
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-01.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/西貢崇真天主教學校\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-02.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.01.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/西貢崇真天主教學校\">西貢崇真天主教學校</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-03.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\">利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-04.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-05.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\">第11屆香港貿發局「創業日」參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-06.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\">澳門利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-07.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                    </div>
                    <div class=\"row vision-bottom-padding\">
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-01.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/西貢崇真天主教學校\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-02.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.01.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/西貢崇真天主教學校\">西貢崇真天主教學校</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-03.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\">利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-04.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-05.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\">第11屆香港貿發局「創業日」參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-06.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\">澳門利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-07.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                    </div>
                    <div class=\"row vision-bottom-padding\">
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-01.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/西貢崇真天主教學校\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-02.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.01.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/西貢崇真天主教學校\">西貢崇真天主教學校</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-03.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/利瑪竇中學課堂參觀\">利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-04.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-05.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/第11屆香港貿發局「創業日」參觀\">第11屆香港貿發局「創業日」參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-06.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2017.06.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/澳門利瑪竇中學課堂參觀\">澳門利瑪竇中學課堂參觀</a></p>
                        </div>
                        <div class=\"col justify-content-center\"><a href=\"/gallery/details/12天澳洲交流團\"><img class=\"img-fluid\" src=\"{{ path.image }}gallery/gallery-07.png\"></a>
                            <p class=\"vision-text-color-grey gallery-no-bottom-margin\">2019.02.22</p>
                            <p class=\"vision-text-color-blue\"><a href=\"/gallery/details/12天澳洲交流團\">12天澳洲交流團</a></p>
                        </div>
                    </div>  #}
                </div>
            </div>
        </div>
    </section>
", "layouts/page/gallery/index.twig", "/home/artechsy/public_html/vision.artech-system.com/application/views/layouts/page/gallery/index.twig");
    }
}
