var/cache/dev/twig/d2/d2b2447fd07a3191b39d618fbaf455a0.php line 42

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. /* __string_template__e7d324ebf520c6a5a8887d58b7cc27ca */
  14. class __TwigTemplate_7f3ae3f192e4a585dd3108a9b01ad580 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 4
  33.         return "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""__string_template__e7d324ebf520c6a5a8887d58b7cc27ca"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__e7d324ebf520c6a5a8887d58b7cc27ca"));
  42.         // line 6
  43.         $context["body_class"] = "registration_page";
  44.         // line 4
  45.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__e7d324ebf520c6a5a8887d58b7cc27ca"4);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 8
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 9
  61.         echo "    <style>
  62.     .line_replace,.line_replace_disabled {
  63.         width: 320px;
  64.         margin: auto;
  65.     }
  66.     .line_btn_outer {
  67.         margin-bottom: 24px;
  68.         margin-top: 4px;
  69.     }
  70.     .line_replace img {
  71.         width: 320px;
  72.     }
  73.     .ig_browser_alert {
  74.         width: 265px;
  75.         right: 2px;
  76.         position: absolute;
  77.         top: 0px;
  78.     }
  79.     .login-msg {
  80.         text-align: center;
  81.         margin-bottom: 20px;
  82.         font-size: 14px;
  83.         font-weight: 400;
  84.         color: #000;
  85.     }
  86.     .login-msg a {
  87.         font-weight: 800;
  88.         color: #1F9FCB;
  89.     }
  90.     </style>
  91. ";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.     }
  97.     // line 42
  98.     public function block_javascript($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  105.         // line 43
  106.         echo "
  107.     <script>
  108.         \$(function() {
  109.             var userAgent = navigator.userAgent.toLowerCase();
  110.             var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
  111.             ";
  112.         // line 50
  113.         $context["current_domain"] = twig_get_attribute($this->env$this->sourcetwig_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.'50$this->source); })()), "request", [], "any"falsefalsetrue50), "getHost", [], "method"falsefalsetrue50);
  114.         // line 51
  115.         echo "            ";
  116.         $context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'51$this->source); })()));
  117.         // line 52
  118.         echo "            ";
  119.         $context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'52$this->source); })()));
  120.         // line 53
  121.         echo "
  122.             // 会員情報入力画面の表示イベント
  123.             ";
  124.         // line 55
  125.         if ((isset($context["is_prod"]) || array_key_exists("is_prod"$context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.'55$this->source); })())) {
  126.             // line 56
  127.             echo "
  128.                 fbq('trackCustom', 'ce_show_entry_before', {
  129.                     content_type: \"ShowEntryBefore\",
  130.                     value: 60
  131.                 });
  132.                 window.dataLayer.push({
  133.                     event: 'ce_show_entry_before',
  134.                     custom_event_name: 'ce_show_entry_before',
  135.                     custom_customer_id: '',
  136.                     custom_user_agent: \$(\"#user_agent\").val(),
  137.                     custom_is_ig: \$(\"#is_ig\").val(),
  138.                     custom_is_line: \$(\"#is_line\").val(),
  139.                     custom_referer: \$(\"#referer\").val(),
  140.                     custom_real_ip: \$(\"#real_ip\").val(),
  141.                 });
  142.                 _lt('send', 'cv', {
  143.                     type: 'ce_show_entry_before'
  144.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  145.                 // Line登録ボタンクリック
  146.                 \$('.line-button').click(function() {
  147.               
  148.                     fbq('trackCustom', 'ce_click_line_entry', {
  149.                         content_type: \"ClickLineEntry\",
  150.                         value: 65
  151.                     });
  152.                     window.dataLayer.push({
  153.                         event: 'ce_click_line_entry',
  154.                         custom_event_name: 'ce_click_line_entry',
  155.                         custom_customer_id: '',
  156.                         custom_user_agent: \$(\"#user_agent\").val(),
  157.                         custom_is_ig: \$(\"#is_ig\").val(),
  158.                         custom_is_line: \$(\"#is_line\").val(),
  159.                         custom_referer: \$(\"#referer\").val(),
  160.                         custom_real_ip: \$(\"#real_ip\").val(),
  161.                     });
  162.                     _lt('send', 'cv', {
  163.                         type: 'ce_click_line_entry'
  164.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  165.                 });
  166.                 // メアド登録ボタンクリック
  167.                 \$('.entryByMailBtn').click(function() {
  168.                     fbq('trackCustom', 'ce_click_mail_entry', {
  169.                         content_type: \"ClickMailEntry\",
  170.                         value: 65
  171.                     });
  172.                     window.dataLayer.push({
  173.                         event: 'ce_click_mail_entry',
  174.                         custom_event_name: 'ce_click_mail_entry',
  175.                         custom_customer_id: '',
  176.                         custom_user_agent: \$(\"#user_agent\").val(),
  177.                         custom_is_ig: \$(\"#is_ig\").val(),
  178.                         custom_is_line: \$(\"#is_line\").val(),
  179.                         custom_referer: \$(\"#referer\").val(),
  180.                         custom_real_ip: \$(\"#real_ip\").val(),
  181.                     });
  182.                     _lt('send', 'cv', {
  183.                         type: 'ce_click_mail_entry'
  184.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  185.                 });
  186.             ";
  187.         }
  188.         // line 125
  189.         echo "
  190.         });
  191.     </script>
  192.     
  193. ";
  194.         
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196.         
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  198.     }
  199.     // line 131
  200.     public function block_main($context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  207.         // line 132
  208.         echo "    ";
  209.         $context["sendto"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'132$this->source); })()), "request", [], "any"falsefalsetrue132), "query", [], "any"falsefalsetrue132), "get", [=> "sendto"], "method"falsefalsetrue132);
  210.         // line 133
  211.         echo "    ";
  212.         $context["param"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'133$this->source); })()), "request", [], "any"falsefalsetrue133), "query", [], "any"falsefalsetrue133), "get", [=> "param"], "method"falsefalsetrue133);
  213.         // line 134
  214.         echo "    ";
  215.         $context["login_query"] = [];
  216.         // line 135
  217.         echo "    ";
  218.         if ((isset($context["sendto"]) || array_key_exists("sendto"$context) ? $context["sendto"] : (function () { throw new RuntimeError('Variable "sendto" does not exist.'135$this->source); })())) {
  219.             // line 136
  220.             echo "        ";
  221.             $context["login_query"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["login_query"]) || array_key_exists("login_query"$context) ? $context["login_query"] : (function () { throw new RuntimeError('Variable "login_query" does not exist.'136$this->source); })()), 136$this->source), ["sendto" => (isset($context["sendto"]) || array_key_exists("sendto"$context) ? $context["sendto"] : (function () { throw new RuntimeError('Variable "sendto" does not exist.'136$this->source); })())]);
  222.             // line 137
  223.             echo "    ";
  224.         }
  225.         // line 138
  226.         echo "    ";
  227.         if ((isset($context["param"]) || array_key_exists("param"$context) ? $context["param"] : (function () { throw new RuntimeError('Variable "param" does not exist.'138$this->source); })())) {
  228.             // line 139
  229.             echo "        ";
  230.             $context["login_query"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["login_query"]) || array_key_exists("login_query"$context) ? $context["login_query"] : (function () { throw new RuntimeError('Variable "login_query" does not exist.'139$this->source); })()), 139$this->source), ["param" => (isset($context["param"]) || array_key_exists("param"$context) ? $context["param"] : (function () { throw new RuntimeError('Variable "param" does not exist.'139$this->source); })())]);
  231.             // line 140
  232.             echo "    ";
  233.         }
  234.         // line 141
  235.         echo "    ";
  236.         $context["login_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login"$this->sandbox->ensureToStringAllowed((isset($context["login_query"]) || array_key_exists("login_query"$context) ? $context["login_query"] : (function () { throw new RuntimeError('Variable "login_query" does not exist.'141$this->source); })()), 141$this->source));
  237.         // line 142
  238.         echo "    ";
  239.         $context["user_agent"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'142$this->source); })()), "request", [], "any"falsefalsetrue142), "headers", [], "any"falsefalsetrue142), "get", [=> "User-Agent"], "method"falsefalsetrue142);
  240.         // line 143
  241.         echo "    ";
  242.         $context["ref"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruetrue143), "headers", [], "any"falsetruetrue143), "get", [=> "Referer"], "method"truetruetrue143)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruetrue143), "headers", [], "any"falsetruetrue143), "get", [=> "Referer"], "method"falsefalsetrue143), 143$this->source), "")) : (""));
  243.         // line 144
  244.         echo "    ";
  245.         $context["from"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'144$this->source); })()), "request", [], "any"falsefalsetrue144), "query", [], "any"falsefalsetrue144), "get", [=> "from"], "method"falsefalsetrue144)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'144$this->source); })()), "request", [], "any"falsefalsetrue144), "query", [], "any"falsefalsetrue144), "get", [=> "from"], "method"falsefalsetrue144)) : (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'144$this->source); })()), "request", [], "any"falsefalsetrue144), "cookies", [], "any"falsefalsetrue144), "get", [=> "from_param"], "method"falsefalsetrue144)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'144$this->source); })()), "request", [], "any"falsefalsetrue144), "cookies", [], "any"falsefalsetrue144), "get", [=> "from_param"], "method"falsefalsetrue144)) : (""))));
  246.         // line 145
  247.         echo "
  248.     ";
  249.         // line 146
  250.         $context["isFromX"] = (((preg_match("/twitter/i",         // line 148
  251. (isset($context["user_agent"]) || array_key_exists("user_agent"$context) ? $context["user_agent"] : (function () { throw new RuntimeError('Variable "user_agent" does not exist.'148$this->source); })())) || preg_match("/https?:\\/\\/t\\.co\\//i",         // line 149
  252. (isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'149$this->source); })()))) || preg_match("/https?:\\/\\/(www\\.)?x\\.com\\//i",         // line 150
  253. (isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'150$this->source); })()))) || (is_string($__internal_compile_0 =         // line 151
  254. (isset($context["from"]) || array_key_exists("from"$context) ? $context["from"] : (function () { throw new RuntimeError('Variable "from" does not exist.'151$this->source); })())) && is_string($__internal_compile_1 "x_") && ('' === $__internal_compile_1 || === strpos($__internal_compile_0$__internal_compile_1))));
  255.         // line 153
  256.         echo "    ";
  257.         $context["is_in_app_browser"] = ((preg_match("/instagram/i", (isset($context["user_agent"]) || array_key_exists("user_agent"$context) ? $context["user_agent"] : (function () { throw new RuntimeError('Variable "user_agent" does not exist.'153$this->source); })())) || preg_match("/facebook/i", (isset($context["user_agent"]) || array_key_exists("user_agent"$context) ? $context["user_agent"] : (function () { throw new RuntimeError('Variable "user_agent" does not exist.'153$this->source); })()))) || (isset($context["isFromX"]) || array_key_exists("isFromX"$context) ? $context["isFromX"] : (function () { throw new RuntimeError('Variable "isFromX" does not exist.'153$this->source); })()));
  258.         // line 154
  259.         echo "    ";
  260.         // line 155
  261.         echo "    ";
  262.         if ((isset($context["is_in_app_browser"]) || array_key_exists("is_in_app_browser"$context) ? $context["is_in_app_browser"] : (function () { throw new RuntimeError('Variable "is_in_app_browser" does not exist.'155$this->source); })())) {
  263.             // line 156
  264.             echo "    <div>
  265.         <img class=\"ig_browser_alert\" src=\"";
  266.             // line 157
  267.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ig_browser_alert.png""user_data"), "html"nulltrue);
  268.             echo "\">
  269.     </div>
  270.     ";
  271.         }
  272.         // line 160
  273.         echo "
  274.     <div class=\"ec-registerRole\">
  275.         <div class=\"ec-pageHeader\">
  276.             <h1 style=\"margin-top: 10px; margin-bottom: 20px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
  277.         </div>
  278.         ";
  279.         // line 165
  280.         if ((isset($context["invalidCode"]) || array_key_exists("invalidCode"$context) ? $context["invalidCode"] : (function () { throw new RuntimeError('Variable "invalidCode" does not exist.'165$this->source); })())) {
  281.             // line 166
  282.             echo "        <div
  283.             style=\"font-size: 13px; color: #e76675; margin: 12px auto; width: 320px;\"
  284.         ><span>紹介リンクが不正です。正しい紹介リンクからやり直してください。</span></div>
  285.         ";
  286.         }
  287.         // line 170
  288.         echo "        <div style=\"max-width: 430px; margin: auto;\">
  289.             <div class=\"ec-off1Grid\">
  290.                 <div class=\"ec-off1Grid__cell\" style=\"text-align: center;\">
  291.                     <div style=\"margin-bottom: 8px;\">
  292.                         <span style=\"font-size: 14px; color: #000;\">入力項目は2つだけ!約1分で完了!</span>
  293.                     </div>
  294.                     ";
  295.         // line 177
  296.         echo "                    ";
  297.         if ((isset($context["is_in_app_browser"]) || array_key_exists("is_in_app_browser"$context) ? $context["is_in_app_browser"] : (function () { throw new RuntimeError('Variable "is_in_app_browser" does not exist.'177$this->source); })())) {
  298.             // line 178
  299.             echo "                    <div class=\"line_replace_disabled\"><img src=\"";
  300.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_line_disabled.png""user_data"), "html"nulltrue);
  301.             echo "\" alt=\"Lineログイン\" style=\"max-width: 100%; border-radius: 10px;\">
  302. <div class=\"line_btn_outer\">
  303. <img src=\"";
  304.             // line 180
  305.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/line_relate_3000.png""user_data"), "html"nulltrue);
  306.             echo "\" alt=\"メールログイン\" style=\"width: 277px;\">
  307. </div>
  308.                     ";
  309.             // line 184
  310.             echo "                    </div>
  311.                     ";
  312.         } else {
  313.             // line 186
  314.             echo "                    <div class=\"line_replace\"><a href=\"https://web-order-stg.shikomel.com/plugin_line_login\" class=\"line-button\"><img src=\"";
  315.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_line.png""user_data"), "html"nulltrue);
  316.             echo "\" alt=\"Lineログイン\" style=\"max-width: 100%; border-radius: 10px;\"></a>
  317. <div class=\"line_btn_outer\">
  318. <img src=\"";
  319.             // line 188
  320.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/line_relate_3000.png""user_data"), "html"nulltrue);
  321.             echo "\" alt=\"メールログイン\" style=\"width: 277px;\">
  322. </div>
  323.                     ";
  324.             // line 192
  325.             echo "                    </div>
  326.                     ";
  327.         }
  328.         // line 194
  329.         echo "                </div>
  330.             </div>
  331.             <div style=\"max-width: 320px; margin: auto;\">
  332.                 <img src=\"";
  333.         // line 197
  334.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_before_parts1.png""user_data"), "html"nulltrue);
  335.         echo "\">
  336.             </div>
  337.             <div class=\"ec-off1Grid\">
  338.                 <div class=\"ec-off1Grid__cell\">
  339.                     <div style=\"color: #525263; text-align: left; margin-top: 20px; margin-bottom: 60px; font-size: 14px;letter-spacing: 1.5px; line-height: 30px;\">
  340.                         <div style=\"max-width: 320px; margin: auto;\">
  341.                             <a href=\"";
  342.         // line 203
  343.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  344.         echo "\" class=\"entryByMailBtn\"><img src=\"";
  345.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_mail.png""user_data"), "html"nulltrue);
  346.         echo "\" alt=\"メールとパスワードで登録\" style=\"max-width: 100%;\"></a>
  347.                         </div>
  348.                     </div>
  349.                 </div>
  350.             </div>
  351.             <div class=\"login-msg\"><span>すでに登録済みですか? 
  352.                 <a href=\"";
  353.         // line 209
  354.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["login_url"]) || array_key_exists("login_url"$context) ? $context["login_url"] : (function () { throw new RuntimeError('Variable "login_url" does not exist.'209$this->source); })()), 209$this->source), "html"nulltrue);
  355.         echo "\">ログイン</a></span></div>
  356.         </div>
  357.     </div>
  358. ";
  359.         
  360.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  361.         
  362.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  363.     }
  364.     public function getTemplateName()
  365.     {
  366.         return "__string_template__e7d324ebf520c6a5a8887d58b7cc27ca";
  367.     }
  368.     public function isTraitable()
  369.     {
  370.         return false;
  371.     }
  372.     public function getDebugInfo()
  373.     {
  374.         return array (  392 => 209,  381 => 203,  372 => 197,  367 => 194,  363 => 192,  357 => 188,  351 => 186,  347 => 184,  341 => 180,  335 => 178,  332 => 177,  324 => 170,  318 => 166,  316 => 165,  309 => 160,  303 => 157,  300 => 156,  297 => 155,  295 => 154,  292 => 153,  290 => 151,  289 => 150,  288 => 149,  287 => 148,  286 => 146,  283 => 145,  280 => 144,  277 => 143,  274 => 142,  271 => 141,  268 => 140,  265 => 139,  262 => 138,  259 => 137,  256 => 136,  253 => 135,  250 => 134,  247 => 133,  244 => 132,  234 => 131,  220 => 125,  149 => 56,  147 => 55,  143 => 53,  140 => 52,  137 => 51,  135 => 50,  126 => 43,  116 => 42,  75 => 9,  65 => 8,  54 => 4,  52 => 6,  39 => 4,);
  375.     }
  376.     public function getSourceContext()
  377.     {
  378.         return new Source("{#
  379. カスタマイズTwig
  380. #}
  381. {% extends 'default_frame.twig' %}
  382. {% set body_class = 'registration_page' %}
  383. {% block stylesheet %}
  384.     <style>
  385.     .line_replace,.line_replace_disabled {
  386.         width: 320px;
  387.         margin: auto;
  388.     }
  389.     .line_btn_outer {
  390.         margin-bottom: 24px;
  391.         margin-top: 4px;
  392.     }
  393.     .line_replace img {
  394.         width: 320px;
  395.     }
  396.     .ig_browser_alert {
  397.         width: 265px;
  398.         right: 2px;
  399.         position: absolute;
  400.         top: 0px;
  401.     }
  402.     .login-msg {
  403.         text-align: center;
  404.         margin-bottom: 20px;
  405.         font-size: 14px;
  406.         font-weight: 400;
  407.         color: #000;
  408.     }
  409.     .login-msg a {
  410.         font-weight: 800;
  411.         color: #1F9FCB;
  412.     }
  413.     </style>
  414. {% endblock %}
  415. {% block javascript %}
  416.     <script>
  417.         \$(function() {
  418.             var userAgent = navigator.userAgent.toLowerCase();
  419.             var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
  420.             {% set current_domain = app.request.getHost() %}
  421.             {% set is_prod = 'web-order.shikomel.com' in current_domain %}
  422.             {% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
  423.             // 会員情報入力画面の表示イベント
  424.             {% if is_prod %}
  425.                 fbq('trackCustom', 'ce_show_entry_before', {
  426.                     content_type: \"ShowEntryBefore\",
  427.                     value: 60
  428.                 });
  429.                 window.dataLayer.push({
  430.                     event: 'ce_show_entry_before',
  431.                     custom_event_name: 'ce_show_entry_before',
  432.                     custom_customer_id: '',
  433.                     custom_user_agent: \$(\"#user_agent\").val(),
  434.                     custom_is_ig: \$(\"#is_ig\").val(),
  435.                     custom_is_line: \$(\"#is_line\").val(),
  436.                     custom_referer: \$(\"#referer\").val(),
  437.                     custom_real_ip: \$(\"#real_ip\").val(),
  438.                 });
  439.                 _lt('send', 'cv', {
  440.                     type: 'ce_show_entry_before'
  441.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  442.                 // Line登録ボタンクリック
  443.                 \$('.line-button').click(function() {
  444.               
  445.                     fbq('trackCustom', 'ce_click_line_entry', {
  446.                         content_type: \"ClickLineEntry\",
  447.                         value: 65
  448.                     });
  449.                     window.dataLayer.push({
  450.                         event: 'ce_click_line_entry',
  451.                         custom_event_name: 'ce_click_line_entry',
  452.                         custom_customer_id: '',
  453.                         custom_user_agent: \$(\"#user_agent\").val(),
  454.                         custom_is_ig: \$(\"#is_ig\").val(),
  455.                         custom_is_line: \$(\"#is_line\").val(),
  456.                         custom_referer: \$(\"#referer\").val(),
  457.                         custom_real_ip: \$(\"#real_ip\").val(),
  458.                     });
  459.                     _lt('send', 'cv', {
  460.                         type: 'ce_click_line_entry'
  461.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  462.                 });
  463.                 // メアド登録ボタンクリック
  464.                 \$('.entryByMailBtn').click(function() {
  465.                     fbq('trackCustom', 'ce_click_mail_entry', {
  466.                         content_type: \"ClickMailEntry\",
  467.                         value: 65
  468.                     });
  469.                     window.dataLayer.push({
  470.                         event: 'ce_click_mail_entry',
  471.                         custom_event_name: 'ce_click_mail_entry',
  472.                         custom_customer_id: '',
  473.                         custom_user_agent: \$(\"#user_agent\").val(),
  474.                         custom_is_ig: \$(\"#is_ig\").val(),
  475.                         custom_is_line: \$(\"#is_line\").val(),
  476.                         custom_referer: \$(\"#referer\").val(),
  477.                         custom_real_ip: \$(\"#real_ip\").val(),
  478.                     });
  479.                     _lt('send', 'cv', {
  480.                         type: 'ce_click_mail_entry'
  481.                     },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  482.                 });
  483.             {% endif %}
  484.         });
  485.     </script>
  486.     
  487. {% endblock javascript %}
  488. {% block main %}
  489.     {% set sendto = app.request.query.get('sendto') %}
  490.     {% set param = app.request.query.get('param') %}
  491.     {% set login_query = {} %}
  492.     {% if sendto %}
  493.         {% set login_query = login_query|merge({'sendto': sendto}) %}
  494.     {% endif %}
  495.     {% if param %}
  496.         {% set login_query = login_query|merge({'param': param}) %}
  497.     {% endif %}
  498.     {% set login_url = url('mypage_login', login_query) %}
  499.     {% set user_agent = app.request.headers.get('User-Agent') %}
  500.     {% set ref = app.request.headers.get('Referer')|default('') %}
  501.     {% set from =  app.request.query.get('from') ?: app.request.cookies.get('from_param') ?: '' %}
  502.     {% set isFromX = (
  503.         user_agent matches '/twitter/i'
  504.             or ref matches '/https?:\\\\/\\\\/t\\\\.co\\\\//i'
  505.             or ref matches '/https?:\\\\/\\\\/(www\\\\.)?x\\\\.com\\\\//i'
  506.             or from starts with 'x_'
  507.     ) %}
  508.     {% set is_in_app_browser = user_agent matches '/instagram/i' or user_agent matches '/facebook/i' or isFromX %}
  509.     {# IGブラウザの場合 #}
  510.     {% if is_in_app_browser %}
  511.     <div>
  512.         <img class=\"ig_browser_alert\" src=\"{{ asset(\"assets/img/common/ig_browser_alert.png\", \"user_data\") }}\">
  513.     </div>
  514.     {% endif %}
  515.     <div class=\"ec-registerRole\">
  516.         <div class=\"ec-pageHeader\">
  517.             <h1 style=\"margin-top: 10px; margin-bottom: 20px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
  518.         </div>
  519.         {% if invalidCode %}
  520.         <div
  521.             style=\"font-size: 13px; color: #e76675; margin: 12px auto; width: 320px;\"
  522.         ><span>紹介リンクが不正です。正しい紹介リンクからやり直してください。</span></div>
  523.         {% endif %}
  524.         <div style=\"max-width: 430px; margin: auto;\">
  525.             <div class=\"ec-off1Grid\">
  526.                 <div class=\"ec-off1Grid__cell\" style=\"text-align: center;\">
  527.                     <div style=\"margin-bottom: 8px;\">
  528.                         <span style=\"font-size: 14px; color: #000;\">入力項目は2つだけ!約1分で完了!</span>
  529.                     </div>
  530.                     {# IGブラウザの場合 #}
  531.                     {% if is_in_app_browser %}
  532.                     <div class=\"line_replace_disabled\"><img src=\"{{ asset(\"assets/img/common/entry_line_disabled.png\", \"user_data\") }}\" alt=\"Lineログイン\" style=\"max-width: 100%; border-radius: 10px;\">
  533. <div class=\"line_btn_outer\">
  534. <img src=\"{{ asset(\"assets/img/common/line_relate_3000.png\", \"user_data\") }}\" alt=\"メールログイン\" style=\"width: 277px;\">
  535. </div>
  536.                     {# Line連携ボタンをPHPで埋め込み #}
  537.                     </div>
  538.                     {% else %}
  539.                     <div class=\"line_replace\"><a href=\"https://web-order-stg.shikomel.com/plugin_line_login\" class=\"line-button\"><img src=\"{{ asset(\"assets/img/common/entry_line.png\", \"user_data\") }}\" alt=\"Lineログイン\" style=\"max-width: 100%; border-radius: 10px;\"></a>
  540. <div class=\"line_btn_outer\">
  541. <img src=\"{{ asset(\"assets/img/common/line_relate_3000.png\", \"user_data\") }}\" alt=\"メールログイン\" style=\"width: 277px;\">
  542. </div>
  543.                     {# Line連携ボタンをPHPで埋め込み #}
  544.                     </div>
  545.                     {% endif %}
  546.                 </div>
  547.             </div>
  548.             <div style=\"max-width: 320px; margin: auto;\">
  549.                 <img src=\"{{ asset(\"assets/img/common/entry_before_parts1.png\", \"user_data\") }}\">
  550.             </div>
  551.             <div class=\"ec-off1Grid\">
  552.                 <div class=\"ec-off1Grid__cell\">
  553.                     <div style=\"color: #525263; text-align: left; margin-top: 20px; margin-bottom: 60px; font-size: 14px;letter-spacing: 1.5px; line-height: 30px;\">
  554.                         <div style=\"max-width: 320px; margin: auto;\">
  555.                             <a href=\"{{ url('entry') }}\" class=\"entryByMailBtn\"><img src=\"{{ asset(\"assets/img/common/entry_mail.png\", \"user_data\") }}\" alt=\"メールとパスワードで登録\" style=\"max-width: 100%;\"></a>
  556.                         </div>
  557.                     </div>
  558.                 </div>
  559.             </div>
  560.             <div class=\"login-msg\"><span>すでに登録済みですか? 
  561.                 <a href=\"{{ login_url }}\">ログイン</a></span></div>
  562.         </div>
  563.     </div>
  564. {% endblock %}
  565. ""__string_template__e7d324ebf520c6a5a8887d58b7cc27ca""");
  566.     }
  567.     
  568.     public function checkSecurity()
  569.     {
  570.         static $tags = array("set" => 6"if" => 55);
  571.         static $filters = array("merge" => 136"default" => 143"escape" => 157);
  572.         static $functions = array("url" => 141"asset" => 157);
  573.         try {
  574.             $this->sandbox->checkSecurity(
  575.                 ['set''if'],
  576.                 ['merge''default''escape'],
  577.                 ['url''asset']
  578.             );
  579.         } catch (SecurityError $e) {
  580.             $e->setSourceContext($this->source);
  581.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  582.                 $e->setTemplateLine($tags[$e->getTagName()]);
  583.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  584.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  585.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  586.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  587.             }
  588.             throw $e;
  589.         }
  590.     }
  591. }