var/cache/dev/twig/34/346ffa24f56977b5610457d43727747b8babaa58f2087bd570a96a9b275af0d8.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/blog.post.html.twig */
  14. class __TwigTemplate_cbbdc11b13f8c8125150bd0127e05aff161ad17cf79e268f90cf859a01658c7f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'css2' => [$this'block_css2'],
  24.             'nav' => [$this'block_nav'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "frontend.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/blog.post.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/blog.post.html.twig"));
  40.         $this->parent $this->loadTemplate("frontend.html.twig""default/blog.post.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_css2($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css2"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css2"));
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 6
  61.     public function block_nav($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""nav"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""nav"));
  68.         // line 7
  69.         echo "<a class=\"black-text-1\" href=\"";
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
  71.         echo "\">Home</a>
  72. <a class=\"black-text-1\" href=\"";
  73.         // line 8
  74.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
  75.         echo "\">Blog</a>
  76. ";
  77.         
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  79.         
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  81.     }
  82.     // line 11
  83.     public function block_body($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  90.         // line 12
  91.         echo "<div class=\"blog-posts\">
  92.     <div class=\"post-list-item\">
  93.         <div style=\"display:none\">";
  94.         // line 14
  95.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'14$this->source); })()), "id", [], "any"falsefalsefalse14), "html"nulltrue);
  96.         echo "</div>
  97.         <div class=\"post-item-wraper\">
  98.             
  99.             <div class=\"post-image\">
  100.                 <a href=\"";
  101.         // line 18
  102.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog-post", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'18$this->source); })()), "url_key", [], "any"falsefalsefalse18)]), "html"nulltrue);
  103.         echo "\">
  104.                     <img class=\"img-responsive\" src=\"";
  105.         // line 19
  106.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'19$this->source); })()), "image", [], "any"falsefalsefalse19), "html"nulltrue);
  107.         echo "\" alt=\"";
  108.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  109.         echo "\" />
  110.                 </a>
  111.             </div>
  112.             
  113.             <div class=\"post-info-wraper\">
  114.                 <h2 class=\"mp-post-title\">
  115.                     <a class=\"post-link-title green-text-1\" title=\"";
  116.         // line 25
  117.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'25$this->source); })()), "name", [], "any"falsefalsefalse25), "html"nulltrue);
  118.         echo "\" href=\"";
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog-post", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'25$this->source); })()), "url_key", [], "any"falsefalsefalse25)]), "html"nulltrue);
  120.         echo "\">
  121.                         ";
  122.         // line 26
  123.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'26$this->source); })()), "name", [], "any"falsefalsefalse26), "html"nulltrue);
  124.         echo "
  125.                     </a>
  126.                 </h2>
  127.                 <div class=\"mp-post-info\">
  128.                     <i class=\"mp-blog-icon mp-blog-calendar-times\"></i> 
  129.                     ";
  130.         // line 31
  131.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'31$this->source); })()), "publish_date", [], "any"falsefalsefalse31), "M j, Y"), "html"nulltrue);
  132.         echo "| Posted in 
  133.                     <a class=\"mp-info green-text-1\" href=\"";
  134.         // line 32
  135.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
  136.         echo "\">
  137.                         ";
  138.         // line 33
  139.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'33$this->source); })()), "category", [], "any"falsefalsefalse33), "name", [], "any"falsefalsefalse33), "html"nulltrue);
  140.         echo "</a>
  141.                     | 
  142.                     <i class=\"mp-blog-icon mp-blog-user\"></i> 
  143.                     <a class=\"mp-info green-text-1\" target=\"_blank\" href=\"";
  144.         // line 36
  145.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'36$this->source); })()), "author_url", [], "any"falsefalsefalse36), "html"nulltrue);
  146.         echo "\">";
  147.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'36$this->source); })()), "author_name", [], "any"falsefalsefalse36), "html"nulltrue);
  148.         echo "</a>
  149.                     | 
  150.                     <i class=\"mp-blog-icon mp-blog-traffic\" aria-hidden=\"true\"></i> 
  151.                     ";
  152.         // line 39
  153.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'39$this->source); })()), "view_traffic", [], "any"falsefalsefalse39), "html"nulltrue);
  154.         echo "
  155.                 </div>
  156.                 <div class=\"post-content\">
  157.                     ";
  158.         // line 42
  159.         echo twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'42$this->source); })()), "post_content", [], "any"falsefalsefalse42);
  160.         echo "
  161.                 </div>
  162.             </div>
  163.         </div>
  164.     </div>
  165. </div>
  166. ";
  167.         
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  169.         
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  171.     }
  172.     public function getTemplateName()
  173.     {
  174.         return "default/blog.post.html.twig";
  175.     }
  176.     public function isTraitable()
  177.     {
  178.         return false;
  179.     }
  180.     public function getDebugInfo()
  181.     {
  182.         return array (  183 => 42,  177 => 39,  169 => 36,  163 => 33,  159 => 32,  155 => 31,  147 => 26,  141 => 25,  130 => 19,  126 => 18,  119 => 14,  115 => 12,  105 => 11,  93 => 8,  88 => 7,  78 => 6,  60 => 3,  37 => 1,);
  183.     }
  184.     public function getSourceContext()
  185.     {
  186.         return new Source("{% extends 'frontend.html.twig' %}
  187. {% block css2 %}
  188. {% endblock %}
  189. {% block nav %}
  190. <a class=\"black-text-1\" href=\"{{ path('index') }}\">Home</a>
  191. <a class=\"black-text-1\" href=\"{{ path('blog') }}\">Blog</a>
  192. {% endblock %}
  193. {% block body %}
  194. <div class=\"blog-posts\">
  195.     <div class=\"post-list-item\">
  196.         <div style=\"display:none\">{{post.id}}</div>
  197.         <div class=\"post-item-wraper\">
  198.             
  199.             <div class=\"post-image\">
  200.                 <a href=\"{{ path('blog-post', {slug:post.url_key}) }}\">
  201.                     <img class=\"img-responsive\" src=\"{{ post.image }}\" alt=\"{{ post.name }}\" />
  202.                 </a>
  203.             </div>
  204.             
  205.             <div class=\"post-info-wraper\">
  206.                 <h2 class=\"mp-post-title\">
  207.                     <a class=\"post-link-title green-text-1\" title=\"{{ post.name }}\" href=\"{{ path('blog-post', {slug:post.url_key}) }}\">
  208.                         {{ post.name }}
  209.                     </a>
  210.                 </h2>
  211.                 <div class=\"mp-post-info\">
  212.                     <i class=\"mp-blog-icon mp-blog-calendar-times\"></i> 
  213.                     {{ post.publish_date|date(\"M j, Y\") }}| Posted in 
  214.                     <a class=\"mp-info green-text-1\" href=\"{{ path('blog') }}\">
  215.                         {{ post.category.name }}</a>
  216.                     | 
  217.                     <i class=\"mp-blog-icon mp-blog-user\"></i> 
  218.                     <a class=\"mp-info green-text-1\" target=\"_blank\" href=\"{{ post.author_url }}\">{{ post.author_name }}</a>
  219.                     | 
  220.                     <i class=\"mp-blog-icon mp-blog-traffic\" aria-hidden=\"true\"></i> 
  221.                     {{ post.view_traffic }}
  222.                 </div>
  223.                 <div class=\"post-content\">
  224.                     {{ post.post_content|raw }}
  225.                 </div>
  226.             </div>
  227.         </div>
  228.     </div>
  229. </div>
  230. {% endblock %}
  231. ""default/blog.post.html.twig""/var/www/tlc/templates/default/blog.post.html.twig");
  232.     }
  233. }