var/cache/dev/twig/a5/a5d0dda10dfac012ecc33bb00f9a80fc.php line 72

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. /* @user_data/news_article.twig */
  14. class __TwigTemplate_a1f41d56f8278b93629a05b2e1d2cda5 extends \Eccube\Twig\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. 'title' => [$this, 'block_title'],
  24. 'content' => [$this, 'block_content'],
  25. 'js' => [$this, 'block_js'],
  26. ];
  27. $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28. $this->checkSecurity();
  29. }
  30. protected function doGetParent(array $context)
  31. {
  32. // line 1
  33. return "@user_data/layout/default_frame.twig";
  34. }
  35. protected function doDisplay(array $context, array $blocks = [])
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/news_article.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/news_article.twig"));
  42. $this->parent = $this->loadTemplate("@user_data/layout/default_frame.twig", "@user_data/news_article.twig", 1);
  43. $this->parent->display($context, array_merge($this->blocks, $blocks));
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46. }
  47. // line 2
  48. public function block_title($context, array $blocks = [])
  49. {
  50. $macros = $this->macros;
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  55. // line 3
  56. echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, true, 3), 3, $this->source), "html", null, true);
  57. echo " | オリジナル缶バッジ/カンバッチ製作【個人小ロットから業務用OEMまで激安印刷】ZEAMI Goods
  58. ";
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61. }
  62. // line 5
  63. public function block_content($context, array $blocks = [])
  64. {
  65. $macros = $this->macros;
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  70. // line 6
  71. echo "<!-- ▼▼ MAIN CONTENTS __________________________________________________________________________________________________ ▼▼ -->
  72. <main id=\"mainContents\">
  73. <!-- // ++ パンクズ ++ //////////////////////////////////////////////////////////// // -->
  74. <div id=\"bread_crumbBloc\" class=\"fades\">
  75. <ul id=\"breadCrumb\" class=\"fades\">
  76. <li class=\"up\"><a href=\"/\"><img src=\"";
  77. // line 13
  78. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/icon_home.png"), "html", null, true);
  79. echo "\" alt=\"ホーム\"></a></li>
  80. <li class=\"up\"><a href=\"/news\">お知らせ</a></li>
  81. <li class=\"up\">お知らせ 詳細</li>
  82. </ul><!-- ///// #breadCrumb +++++ ///// -->
  83. <!-- ///// +++++ #bread_crumbBloc +++++ ///// --></div>
  84. <!-- // == MAIN ================================================================================ // -->
  85. <section id=\"News\" class=\"section_basic article\">
  86. <figure id=\"news_mainVisual\" class=\"fades\"><img src=\"";
  87. // line 22
  88. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 22, $this->source); })()), "image", [], "any", false, false, true, 22), 22, $this->source)), "save_image"), "html", null, true);
  89. echo "\" alt=\"\"></figure>
  90. <!-- // ++ お知らせ タイトル ++ /////////////////////////////////////////////////////////////// -->
  91. <div id=\"section_titleBloc\" class=\"fades center\">
  92. <h2 class=\"section_title up\">";
  93. // line 26
  94. echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
  95. echo "</h2>
  96. <p class=\"title_cap up\">";
  97. // line 27
  98. echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 27, $this->source); })()), "publish_date", [], "any", false, false, true, 27), 27, $this->source), "Y.m.d D"), "html", null, true);
  99. echo "</p>
  100. <!-- ///// #section_titleBloc +++++ ///// --></div>
  101. <!-- // ++ お知らせ 詳細 ++ /////////////////////////////////////////////////////////////// -->
  102. <article id=\"news_mainContainer\" class=\"up\">
  103. ";
  104. // line 33
  105. echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 33, $this->source); })()), "description", [], "any", false, false, true, 33), 33, $this->source);
  106. echo "
  107. <!-- //// ++++ #news_mainContainer ++++ //// --></article>
  108. ";
  109. // line 38
  110. $context["url"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 38, $this->source); })()), "request", [], "any", false, false, true, 38), "uri", [], "any", false, false, true, 38);
  111. // line 39
  112. echo "<ul id=\"article_snsList\" class=\"fades\">
  113. <li class=\"up\"><a href=\"https://twitter.com/intent/tweet?text=https://x.com/ZEAMI_Goods\" target=\"_blank\"><img src=\"";
  114. // line 40
  115. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/icon_x_gr.png"), "html", null, true);
  116. echo "\" alt=\"X\"></a></li>
  117. <li class=\"up\">
  118. <a href=\"https://line.me/R/msg/text/?";
  119. // line 42
  120. echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 42, $this->source); })()), 42, $this->source), "html", null, true);
  121. echo "\" target=\"_blank\"><img src=\"";
  122. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/icon_line_gr.png"), "html", null, true);
  123. echo "\" alt=\"LINE\"></a>
  124. </li>
  125. <li class=\"up\"><a href=\"https://www.facebook.com/sharer/sharer.php?u=https://www.facebook.com/ZEAMIGoods\" target=\"_blank\"><img src=\"";
  126. // line 44
  127. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/icon_facebook_gr.png"), "html", null, true);
  128. echo "\" alt=\"facebook\"></a></li>
  129. <!-- ///// #article_snsList +++++ ///// --></ul>
  130. <p id=\"pageBack\" class=\"up\"><a href=\"/news\">一覧を見る</a></p>
  131. </section><!-- ///// #News +++++ ///// -->
  132. <!-- ///// +++++ #mainContents +++++ ///// --></main>
  133. ";
  134. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136. }
  137. // line 53
  138. public function block_js($context, array $blocks = [])
  139. {
  140. $macros = $this->macros;
  141. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
  143. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
  145. // line 54
  146. echo "<script src=\"https://www.line-website.com/social-plugins/js/thirdparty/loader.min.js\" async=\"async\" defer=\"defer\"></script>
  147. ";
  148. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150. }
  151. public function getTemplateName()
  152. {
  153. return "@user_data/news_article.twig";
  154. }
  155. public function isTraitable()
  156. {
  157. return false;
  158. }
  159. public function getDebugInfo()
  160. {
  161. return array ( 189 => 54, 179 => 53, 160 => 44, 153 => 42, 148 => 40, 145 => 39, 143 => 38, 135 => 33, 126 => 27, 122 => 26, 115 => 22, 103 => 13, 94 => 6, 84 => 5, 72 => 3, 62 => 2, 39 => 1,);
  162. }
  163. public function getSourceContext()
  164. {
  165. return new Source("{% extends '@user_data/layout/default_frame.twig' %}
  166. {% block title %}
  167. {{news.title}} | オリジナル缶バッジ/カンバッチ製作【個人小ロットから業務用OEMまで激安印刷】ZEAMI Goods
  168. {% endblock %}
  169. {% block content %}
  170. <!-- ▼▼ MAIN CONTENTS __________________________________________________________________________________________________ ▼▼ -->
  171. <main id=\"mainContents\">
  172. <!-- // ++ パンクズ ++ //////////////////////////////////////////////////////////// // -->
  173. <div id=\"bread_crumbBloc\" class=\"fades\">
  174. <ul id=\"breadCrumb\" class=\"fades\">
  175. <li class=\"up\"><a href=\"/\"><img src=\"{{ asset('assets/img/icon_home.png') }}\" alt=\"ホーム\"></a></li>
  176. <li class=\"up\"><a href=\"/news\">お知らせ</a></li>
  177. <li class=\"up\">お知らせ 詳細</li>
  178. </ul><!-- ///// #breadCrumb +++++ ///// -->
  179. <!-- ///// +++++ #bread_crumbBloc +++++ ///// --></div>
  180. <!-- // == MAIN ================================================================================ // -->
  181. <section id=\"News\" class=\"section_basic article\">
  182. <figure id=\"news_mainVisual\" class=\"fades\"><img src=\"{{ asset(news.image|no_image_product, 'save_image') }}\" alt=\"\"></figure>
  183. <!-- // ++ お知らせ タイトル ++ /////////////////////////////////////////////////////////////// -->
  184. <div id=\"section_titleBloc\" class=\"fades center\">
  185. <h2 class=\"section_title up\">{{news.title}}</h2>
  186. <p class=\"title_cap up\">{{ news.publish_date|date('Y.m.d D') }}</p>
  187. <!-- ///// #section_titleBloc +++++ ///// --></div>
  188. <!-- // ++ お知らせ 詳細 ++ /////////////////////////////////////////////////////////////// -->
  189. <article id=\"news_mainContainer\" class=\"up\">
  190. {{ news.description|raw }}
  191. <!-- //// ++++ #news_mainContainer ++++ //// --></article>
  192. {% set url = app.request.uri %}
  193. <ul id=\"article_snsList\" class=\"fades\">
  194. <li class=\"up\"><a href=\"https://twitter.com/intent/tweet?text=https://x.com/ZEAMI_Goods\" target=\"_blank\"><img src=\"{{ asset('assets/img/icon_x_gr.png') }}\" alt=\"X\"></a></li>
  195. <li class=\"up\">
  196. <a href=\"https://line.me/R/msg/text/?{{ url }}\" target=\"_blank\"><img src=\"{{ asset('assets/img/icon_line_gr.png') }}\" alt=\"LINE\"></a>
  197. </li>
  198. <li class=\"up\"><a href=\"https://www.facebook.com/sharer/sharer.php?u=https://www.facebook.com/ZEAMIGoods\" target=\"_blank\"><img src=\"{{ asset('assets/img/icon_facebook_gr.png') }}\" alt=\"facebook\"></a></li>
  199. <!-- ///// #article_snsList +++++ ///// --></ul>
  200. <p id=\"pageBack\" class=\"up\"><a href=\"/news\">一覧を見る</a></p>
  201. </section><!-- ///// #News +++++ ///// -->
  202. <!-- ///// +++++ #mainContents +++++ ///// --></main>
  203. {% endblock %}
  204. {% block js %}
  205. <script src=\"https://www.line-website.com/social-plugins/js/thirdparty/loader.min.js\" async=\"async\" defer=\"defer\"></script>
  206. {% endblock %}", "@user_data/news_article.twig", "/home/gamedev/demo-dev.xyz/public_html/zeamiec/app/template/user_data/news_article.twig");
  207. }
  208. public function checkSecurity()
  209. {
  210. static $tags = array("set" => 38);
  211. static $filters = array("escape" => 3, "no_image_product" => 22, "date" => 27, "raw" => 33);
  212. static $functions = array("asset" => 13);
  213. try {
  214. $this->sandbox->checkSecurity(
  215. ['set'],
  216. ['escape', 'no_image_product', 'date', 'raw'],
  217. ['asset'],
  218. $this->source
  219. );
  220. } catch (SecurityError $e) {
  221. $e->setSourceContext($this->source);
  222. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  223. $e->setTemplateLine($tags[$e->getTagName()]);
  224. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  225. $e->setTemplateLine($filters[$e->getFilterName()]);
  226. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  227. $e->setTemplateLine($functions[$e->getFunctionName()]);
  228. }
  229. throw $e;
  230. }
  231. }
  232. }