var/cache/dev/twig/79/7920b288c457f69d794eaf0196a55669.php line 33

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. /* elements/popout-ad.html.twig */
  14. class __TwigTemplate_9319b3dfed190841feeca7dc5dc6fe65 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements/popout-ad.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements/popout-ad.html.twig"));
  33.         // line 1
  34.         echo "<style>
  35.     .popout-ad {
  36.         max-height: 400px;
  37.         min-height: 200px;
  38.         position: fixed;
  39.         right: -510px;
  40.         display: flex;
  41.         flex-direction: row;
  42.         z-index: 15;
  43.         background: white;
  44.         bottom: 15%;
  45.         padding-right: 20px;
  46.         /*height: 120px;*/
  47.         box-shadow: -4px 9px 20px 0px #00000078;
  48.         transition: 1s ease-in-out;
  49.         cursor: pointer;
  50.         width: 565px;
  51.         max-height: 400px;
  52.         overflow: hidden;
  53.     }
  54.     .popout-ad:hover {
  55.         right: 0;
  56.     }
  57.     #rc-wrapper {
  58.         top: 0;
  59.         bottom: 0;
  60.         left: 0;
  61.         right: 0;
  62.         overflow: auto;
  63.         position: absolute;
  64.         display: flex;
  65.     }
  66.     #rc-center {
  67.         /*width: 300px;
  68.         height: 300px;*/
  69.         /*background-color: yellow;*/
  70.         /*margin: auto;*/
  71.     }
  72.     
  73.     @media (max-width: 767px) {
  74.         .popout-ad {
  75.             display: none;
  76.         }
  77.     }
  78. </style>
  79. ";
  80.         // line 50
  81.         if ((isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'50$this->source); })())) {
  82.             // line 51
  83.             echo "
  84.     <div class=\"popout-ad\" id=\"poa-container\">
  85.         <p class=\"standard-bg-dark\" style=\"writing-mode:vertical-rl; transform: rotate(180deg); text-align:center; margin:0; padding:15px; color:white\">
  86.             ";
  87.             // line 54
  88.             if (twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'54$this->source); })()), "getDisplayTitle", [], "method"falsefalsefalse54)) {
  89.                 // line 55
  90.                 echo "                ";
  91.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'55$this->source); })()), "getDisplayTitle", [], "method"falsefalsefalse55), "html"nulltrue);
  92.                 echo "
  93.             ";
  94.             } else {
  95.                 // line 57
  96.                 echo "                ";
  97.                 if ((isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'57$this->source); })())) {
  98.                     // line 58
  99.                     echo "                    ";
  100.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'58$this->source); })()), "getTitle", [], "method"falsefalsefalse58), "html"nulltrue);
  101.                     echo "
  102.                 ";
  103.                 }
  104.                 // line 60
  105.                 echo "            ";
  106.             }
  107.             // line 61
  108.             echo "        </p>
  109.         <div class=\"row\" style=\"width:100%\">
  110.             <div class=\"col-sm-4\">
  111.                 <div style=\"height:100%; display: flex; flex-direction: column; justify-content: center; align-items: center;\">
  112.                     ";
  113.             // line 65
  114.             if (twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'65$this->source); })()), "getMedia", [], "method"falsefalsefalse65)) {
  115.                 // line 66
  116.                 echo "                        ";
  117.                 echo twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'66$this->source); })()), "getMediaImageTag", ["""width: 100%; margin: 15px 5px; height: fit-content;"], "method"falsefalsefalse66);
  118.                 echo "
  119.                     ";
  120.             } elseif ((            // line 67
  121. (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'67$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'67$this->source); })()), "getMedia", [], "method"falsefalsefalse67))) {
  122.                 // line 68
  123.                 echo "
  124.                         ";
  125.                 // line 69
  126.                 if (twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'69$this->source); })()), "getExternalUrl", [], "method"falsefalsefalse69)) {
  127.                     // line 70
  128.                     echo "                            <a href=\"";
  129.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'70$this->source); })()), "getExternalUrl", [], "method"falsefalsefalse70), "html"nulltrue);
  130.                     echo "\" data-mitem-id=\"";
  131.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'70$this->source); })()), "getId", [], "method"falsefalsefalse70), "html"nulltrue);
  132.                     echo "\">
  133.                         ";
  134.                 }
  135.                 // line 72
  136.                 echo "                        ";
  137.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'72$this->source); })()), "getMedia", [], "method"falsefalsefalse72), "getImageTag", ["""width: 100%; margin: 15px 5px; height: fit-content"twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'72$this->source); })()), "getId", [], "method"falsefalsefalse72)], "method"falsefalsefalse72);
  138.                 echo "
  139.                         ";
  140.                 // line 73
  141.                 if (twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'73$this->source); })()), "getExternalUrl", [], "method"falsefalsefalse73)) {
  142.                     // line 74
  143.                     echo "                            </a>
  144.                         ";
  145.                 }
  146.                 // line 76
  147.                 echo "                    ";
  148.             }
  149.             // line 77
  150.             echo "                </div>
  151.             </div>
  152.             <div class=\"col-sm-8\">
  153.                 <div id=\"rc-wrapper\">
  154.                     <div id=\"rc-center\">
  155.                         ";
  156.             // line 82
  157.             if ((twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'82$this->source); })()), "getPopOutPoll", [], "method"falsefalsefalse82) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'82$this->source); })()), "getPopOutPoll", [], "method"falsefalsefalse82), "isReallyActive", [], "method"falsefalsefalse82))) {
  158.                 // line 83
  159.                 echo "                            ";
  160.                 // line 84
  161.                 echo "                            <div id=\"home-poll\" class=\"home-poll home-poll-rcs\" style=\"margin-bottom:15px;\">
  162.                                 ";
  163.                 // line 85
  164.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress((("[poll site='RoofCoffeeShop' id='" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'85$this->source); })()), "getPopOutPoll", [], "method"falsefalsefalse85), "getId", [], "method"falsefalsefalse85)) . "' directory='yes']"));
  165.                 echo "
  166.                             </div>
  167.                             <div id=\"pollReplacementAd\" style=\"display:none;\">
  168.                                 <p>";
  169.                 // line 88
  170.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'88$this->source); })()), "getDescription", [], "method"falsefalsefalse88));
  171.                 echo "</p>
  172.                             </div>
  173.                         ";
  174.             } else {
  175.                 // line 91
  176.                 echo "                            <p>";
  177.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->source, (isset($context["popout"]) || array_key_exists("popout"$context) ? $context["popout"] : (function () { throw new RuntimeError('Variable "popout" does not exist.'91$this->source); })()), "getDescription", [], "method"falsefalsefalse91));
  178.                 echo "</p>
  179.                             ";
  180.                 // line 95
  181.                 echo "                        ";
  182.             }
  183.             // line 96
  184.             echo "                    </div>
  185.                 </div>
  186.             </div>
  187.         </div>
  188.     </div>
  189. ";
  190.         } else {
  191.             // line 103
  192.             echo "
  193.     
  194. ";
  195.             // line 183
  196.             echo "
  197. ";
  198.         }
  199.         // line 185
  200.         echo "
  201.  <script>
  202.     (function (\$) {
  203.         \$(function () {
  204.             //Adjust height of pop-out ad
  205.             \$('#poa-container').height(\$('#rc-center').height()) ;
  206.         });
  207.     }(jQuery));
  208. </script>";
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.         
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  213.     }
  214.     public function getTemplateName()
  215.     {
  216.         return "elements/popout-ad.html.twig";
  217.     }
  218.     public function isTraitable()
  219.     {
  220.         return false;
  221.     }
  222.     public function getDebugInfo()
  223.     {
  224.         return array (  214 => 185,  210 => 183,  206 => 103,  197 => 96,  194 => 95,  189 => 91,  183 => 88,  177 => 85,  174 => 84,  172 => 83,  170 => 82,  163 => 77,  160 => 76,  156 => 74,  154 => 73,  149 => 72,  141 => 70,  139 => 69,  136 => 68,  134 => 67,  129 => 66,  127 => 65,  121 => 61,  118 => 60,  112 => 58,  109 => 57,  103 => 55,  101 => 54,  96 => 51,  94 => 50,  43 => 1,);
  225.     }
  226.     public function getSourceContext()
  227.     {
  228.         return new Source("<style>
  229.     .popout-ad {
  230.         max-height: 400px;
  231.         min-height: 200px;
  232.         position: fixed;
  233.         right: -510px;
  234.         display: flex;
  235.         flex-direction: row;
  236.         z-index: 15;
  237.         background: white;
  238.         bottom: 15%;
  239.         padding-right: 20px;
  240.         /*height: 120px;*/
  241.         box-shadow: -4px 9px 20px 0px #00000078;
  242.         transition: 1s ease-in-out;
  243.         cursor: pointer;
  244.         width: 565px;
  245.         max-height: 400px;
  246.         overflow: hidden;
  247.     }
  248.     .popout-ad:hover {
  249.         right: 0;
  250.     }
  251.     #rc-wrapper {
  252.         top: 0;
  253.         bottom: 0;
  254.         left: 0;
  255.         right: 0;
  256.         overflow: auto;
  257.         position: absolute;
  258.         display: flex;
  259.     }
  260.     #rc-center {
  261.         /*width: 300px;
  262.         height: 300px;*/
  263.         /*background-color: yellow;*/
  264.         /*margin: auto;*/
  265.     }
  266.     
  267.     @media (max-width: 767px) {
  268.         .popout-ad {
  269.             display: none;
  270.         }
  271.     }
  272. </style>
  273. {% if popout %}
  274.     <div class=\"popout-ad\" id=\"poa-container\">
  275.         <p class=\"standard-bg-dark\" style=\"writing-mode:vertical-rl; transform: rotate(180deg); text-align:center; margin:0; padding:15px; color:white\">
  276.             {% if popout.getDisplayTitle() %}
  277.                 {{ popout.getDisplayTitle() }}
  278.             {% else %}
  279.                 {% if customer %}
  280.                     {{ customer.getTitle() }}
  281.                 {% endif %}
  282.             {% endif %}
  283.         </p>
  284.         <div class=\"row\" style=\"width:100%\">
  285.             <div class=\"col-sm-4\">
  286.                 <div style=\"height:100%; display: flex; flex-direction: column; justify-content: center; align-items: center;\">
  287.                     {% if popout.getMedia() %}
  288.                         {{ popout.getMediaImageTag(\"\", \"width: 100%; margin: 15px 5px; height: fit-content;\")|raw }}
  289.                     {% elseif customer and customer.getMedia() %}
  290.                         {% if popout.getExternalUrl() %}
  291.                             <a href=\"{{popout.getExternalUrl()}}\" data-mitem-id=\"{{popout.getId()}}\">
  292.                         {% endif %}
  293.                         {{ customer.getMedia().getImageTag(\"\", \"width: 100%; margin: 15px 5px; height: fit-content\", popout.getId())|raw }}
  294.                         {% if popout.getExternalUrl() %}
  295.                             </a>
  296.                         {% endif %}
  297.                     {% endif %}
  298.                 </div>
  299.             </div>
  300.             <div class=\"col-sm-8\">
  301.                 <div id=\"rc-wrapper\">
  302.                     <div id=\"rc-center\">
  303.                         {% if popout.getPopOutPoll() and popout.getPopOutPoll().isReallyActive() %}
  304.                             {#<div id=\"popout-poll\" class=\"home-poll home-poll-rcs\" style=\"margin-bottom:15px;\">#}
  305.                             <div id=\"home-poll\" class=\"home-poll home-poll-rcs\" style=\"margin-bottom:15px;\">
  306.                                 {{ \"[poll site='RoofCoffeeShop' id='#{popout.getPopOutPoll().getId()}' directory='yes']\" | wordpress | raw }}
  307.                             </div>
  308.                             <div id=\"pollReplacementAd\" style=\"display:none;\">
  309.                                 <p>{{popout.getDescription() | wordpress | raw}}</p>
  310.                             </div>
  311.                         {% else %}
  312.                             <p>{{popout.getDescription() | wordpress | raw}}</p>
  313.                             {#{% if customer.getDirectoryContent() %}
  314.                                 <a href=\"{{customer.getDirectoryContent().getURL()}}\">Learn More</a>
  315.                             {% endif %}#}
  316.                         {% endif %}
  317.                     </div>
  318.                 </div>
  319.             </div>
  320.         </div>
  321.     </div>
  322. {% else %}
  323.     
  324. {#
  325.     <div class=\"popout-ad\" id=\"poa-container\">
  326.         <p style=\"writing-mode:vertical-rl; transform: rotate(180deg); padding-bottom:10px; text-align:center;\">RoofersCoffeeShop®</p>
  327.         <div  class=\"row\">
  328.             <div class=\"col-md-5\">
  329.                 <img src=\"https://www.rooferscoffeeshop.com/assets/img/Roofers-Coffee-Shop-Logo-R.png\" alt=\"\" style=\"margin-top:60px\" />
  330.             </div>
  331.             <div class=\"col-md-7\">
  332.                 <div id=\"part1\" style=\"margin-top:25px;\">
  333.                     <p>How likely are you to recommend us to a friend or colleague?</p>
  334.                     <p><input id=\"pi_input\" type=\"range\" class=\"slider\" min=\"0\" max=\"10\" step=\"1\" style=\"width:100%;\"/></p>
  335.                     <div  class=\"row\">
  336.                         <div class=\"col-md-6\" style=\"font-size:16px;padding-left:40px;\">
  337.                             Rating: <output id=\"value\"></output>
  338.                         </div>
  339.                         <div class=\"col-md-6\">
  340.                             <input type=\"buttom\" class=\"button\" value=\"Submit\" id=\"popSubmit\" style=\"width:100px;\">
  341.                         </div>
  342.                     </div>
  343.                 </div>
  344.                 <div id=\"part2\" style=\"display:none\">
  345.                     <div style=\"margin-top:50px;\">
  346.                         <h3>Thank you for your feedback!</h3>
  347.                         <p>Visit the <a href=\"/our-directory\">RCS Directory</a> to see more from our partners!</p>
  348.                     </div>
  349.                 </div>
  350.             </div>
  351.         </div>
  352.     </div>
  353. <style>
  354. .slider {
  355.   -webkit-appearance: none;
  356.   width: 100%;
  357.   height: 10px;
  358.   background: #d3d3d3;
  359.   outline: none;
  360.   opacity: 0.7;
  361.   -webkit-transition: .2s;
  362.   transition: opacity .2s;
  363. }
  364. .slider:hover {
  365.   opacity: 1;
  366. }
  367. .slider::-webkit-slider-thumb {
  368.   -webkit-appearance: none;
  369.   appearance: none;
  370.   width: 20px;
  371.   height: 20px;
  372.   background: #a41822;
  373.   cursor: pointer;
  374. }
  375. </style>
  376.     <script>
  377.         (function (\$) {
  378.             \$(function () {
  379.                 //Temp default pop-out
  380.                 const value = document.querySelector(\"#value\")
  381.                 const input = document.querySelector(\"#pi_input\")
  382.                 value.textContent = input.value
  383.                 input.addEventListener(\"input\", (event) => {
  384.                 value.textContent = event.target.value
  385.                 })
  386.                 \$('#popSubmit').click(function() {
  387.                     \$('#part1').hide();
  388.                     \$('#part2').show();
  389.                 });
  390.             });
  391.         }(jQuery));
  392. \t</script>
  393.     #}
  394. {% endif %}
  395.  <script>
  396.     (function (\$) {
  397.         \$(function () {
  398.             //Adjust height of pop-out ad
  399.             \$('#poa-container').height(\$('#rc-center').height()) ;
  400.         });
  401.     }(jQuery));
  402. </script>""elements/popout-ad.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/elements/popout-ad.html.twig");
  403.     }
  404. }