protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     if ($this->getAttribute($this->getContext($context, 'trace'), "function", array(), "any", false)) {
         // line 2
         echo "                at ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "class", array(), "any", false) . $this->getAttribute($this->getContext($context, 'trace'), "type", array(), "any", false) . $this->getAttribute($this->getContext($context, 'trace'), "function", array(), "any", false), "html");
         echo "(";
         echo twig_escape_filter($this->env, $this->env->getExtension('code')->formatArgsAsText($this->getAttribute($this->getContext($context, 'trace'), "args", array(), "any", false)), "html");
         echo ")\n";
     } else {
         // line 4
         echo "                at n/a\n";
     }
     // line 6
     if ($this->getAttribute(array_key_exists("trace", $context) ? twig_default_filter($this->getContext($context, 'trace')) : "", "file", array(), "any", true) && $this->getAttribute(array_key_exists("trace", $context) ? twig_default_filter($this->getContext($context, 'trace')) : "", "line", array(), "any", true)) {
         // line 7
         echo "                    in ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "file", array(), "any", false), "html");
         echo " line ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "line", array(), "any", false), "html");
         echo "\n";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     if ($this->getContext($context, 'link')) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a style=\"text-decoration: none; margin: 0; padding: 0;\" href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getContext($context, 'token'), "panel" => $this->getContext($context, 'name'))), "html");
         echo "\">";
         echo twig_escape_filter($this->env, $this->getContext($context, 'icon'), "html");
         echo "</a>\n    ";
         $context['icon'] = new Twig_Markup(ob_get_clean());
     }
     // line 6
     echo "<span style=\"white-space:nowrap; color:#2f2f2f; display:inline-block; min-height:24px; border-right:1px solid #cdcdcd; padding:5px 7px 5px 4px; \">\n     ";
     // line 7
     echo twig_escape_filter($this->env, twig_test_defined("icon", $context) ? twig_default_filter($this->getContext($context, 'icon'), "") : "", "html");
     echo "\n     ";
     // line 8
     echo twig_escape_filter($this->env, twig_test_defined("text", $context) ? twig_default_filter($this->getContext($context, 'text'), "") : "", "html");
     echo "\n</span>\n";
 }
 public function block_email_widget($context, array $blocks = array())
 {
     // line 269
     ob_start();
     // line 270
     echo "    ";
     $context['type'] = twig_test_defined("type", $context) ? twig_default_filter($this->getContext($context, 'type'), "email") : "email";
     // line 271
     echo "    ";
     echo $this->renderBlock("field_widget", $context, $blocks);
     echo "\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function block_toolbar($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     ob_start();
     // line 5
     echo "        <img width=\"28\" height=\"28\" alt=\"Request\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABOZJREFUeNrsVmsspFcY9jHMMsxKE9sxM1SUNHRpSNR9bbQqrrNUCG1E1z3ZyIpq+dEfIiToRtomEiFi/zQrWdlZFFstDYK632ZRu2yxFNu4GzOY6fPKN80YVu1m41dP8uac75zz3t/3OR+jVqv1LnLo613wuHCFnJcdTExM8LOzs+9vb28HaPZMTU1bSkpKohwcHDbPI3xwcPBMhUx+fv6V4eHhG0KhsMfd3V2srYwGfQ8MDPiWlZUtYHjZ2dlJYcBfOFK/qof6YHTs7OxsUigU4rW1tQNjY+NHpzGMjo6my2SyQJVKxcH6mzt37gRmZWXJcKQ6j0IGVcpUV1e/W1NT0y6Xyy1fNScwbCkmJuZaQkLCU11PTwspFc0lhPHW6yijQXzET3LOG9JLYWFhywiTan9//1jVisVilbe3946FhYVieXmZ297ezsN87I6hoaEqODj4BatQfh6FKlipCA8Pf1ZbW2urOQgICNjKzMxsNzExofxQVZrHx8c7FRQUXOvp6THW3CM+GCo/dw4lEsnP6+vrx6rRxsZGWVlZWcHhcH7a2tpaKCwsdElOTpbZ2tqKNjc3I5KSkj5fWVk51lLm5ubNUqk0CsudM3O4sbHxke6mj4/PYyirr6urm4+MjPy1u7v7bkpKyi9VVVV/8/l8qa+v71NdHsj5BJPwP0OKKj2BNmhwCuPs2NiYBOGyoL2DgwPzycnJT7G8y+Vyn2B+T5uHlUN3pzV7rq6uJz3EONG0s7OzXEyHKKZ1Ho93cGQZh6MODQ1dof3FxUXDUwSRHOPY2NjoiIiI22R3XFzcFyEhIT9ibfKvh6jCuY6Ojne0mYEmPsgV19nZ+Y/S0tIHQ0NDHo6OjqNOTk4j8JKP3Hyoq5DkUNEyDHMTwBEI427v7u6KDAwMFNgXgGY0jf/1/Py8pKGh4X00P18jwMrKqjE3N/dLKBJTh4CWR0ZGloqKir6Hhz6ae1FRUZsovMcI+RByzjQ1NcXv7e2ZaBuDtpIhNf2BgYFfkULHxsbGzwBROYeHh/o6KLKAy40I6zJwVLi6uhoKYW9r34EHqpycnO9aWlquA+pccK7n6em5nZqa+ufMzAwfcoU7OzsGkLWOar9Opf28q6tLoKuMRRHx3NxcyllVR3y9vb3CtLS0uoyMjKsU1vT09GZra+s2tJcFKjwVxliiX0ddXFz0SYkB+moQL4T8daBNIBDsARAGkC8F4TLtwYBZTA9Bj2DwUdG1tbU5jI+Pc0ihHJaMFRcXP0Tejg5R9nqJiYmnGkD7dE5DJBIdIGTEN15eXv4xQncEBhUVFbdQod9GR0f/MDU1ZUV7CDWvv7/fnmGtegvkBYbI1tZWLzc3t+dAGDXQxV9XIYS1mpmZMX19fSI/P7/fAQT3sT2pVCo94cHN+vr6D+DNZW2evLy8J7hbj+U9DvukrIE6URwv0HtNWO8iVJYeHh5XgZtXNIz4XrG3t7+H5RLu8TDPkzKQ0sjIqA+NzkxPT6dCoUdQUNAagUFzc/NlROQ33Kml1mC0/trIUyOWCIhtQDdAniAei5HdICnoGfu0KVlSsw+BAD0Yir6V+Pv7L5AcGMCBkTXkEDnCnPGbSL0kYuHKiBW8SlVNjC/hoeRas3zbhIisIcRzhFLMG/4vZVgFBqwyFRsJleb5Yv7/EX7T4x8BBgDTTU7fbnA/yAAAAABJRU5ErkJggg==\"/>
 ";
     $context['icon'] = new Twig_Markup(ob_get_clean());
     // line 7
     echo "    ";
     ob_start();
     // line 8
     echo "        ";
     ob_start();
     // line 9
     echo "            ";
     if ($this->getAttribute((($this->getAttribute(((array_key_exists("collector", $context)) ? (twig_default_filter($this->getContext($context, 'collector'))) : ("")), "controller", array(), "any", true)) ? (twig_default_filter($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false))) : ("")), "class", array(), "any", true)) {
         // line 10
         echo "                <span>";
         echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "class", array(), "any", false));
         echo "</span>
             <span>::</span>
             ";
         // line 12
         $context['link'] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "file", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "line", array(), "any", false));
         // line 13
         echo "                <span>";
         if ($this->getContext($context, 'link')) {
             echo "<a style=\"color: #2f2f2f\" href=\"";
             echo twig_escape_filter($this->env, $this->getContext($context, 'link'), "html");
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
             echo "</a>";
         } else {
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
         }
         echo "</span>
         ";
     } else {
         // line 15
         echo "                <span>";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "html");
         echo "</span>
         ";
     }
     // line 17
     echo "            <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
         <span";
     // line 18
     echo (((!$this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false))) ? (" style=\"color:#a33\"") : (""));
     echo ">";
     echo twig_escape_filter($this->env, (($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) ? ($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) : ("NONE")), "html");
     echo "</span>
         <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
         <span style=\"color: ";
     // line 20
     echo (((200 == $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false))) ? ("#759e1a") : ("#a33"));
     echo "\">";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false), "html");
     echo "</span>
     ";
     echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
     // line 22
     echo "    ";
     $context['text'] = new Twig_Markup(ob_get_clean());
     // line 23
     echo "    ";
     $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     if ($this->getAttribute($this->getContext($context, 'trace'), "function", array(), "any", false)) {
         // line 2
         echo "    at\n    <strong>\n        <abbr title=\"";
         // line 4
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "class", array(), "any", false), "html");
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "short_class", array(), "any", false), "html");
         echo "</abbr>\n        ";
         // line 5
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'trace'), "type", array(), "any", false) . $this->getAttribute($this->getContext($context, 'trace'), "function", array(), "any", false), "html");
         echo "\n    </strong>\n    (";
         // line 7
         echo $this->env->getExtension('code')->formatArgs($this->getAttribute($this->getContext($context, 'trace'), "args", array(), "any", false));
         echo ")\n    <br />\n";
     }
     // line 10
     echo "\n";
     // line 11
     if ($this->getAttribute(array_key_exists("trace", $context) ? twig_default_filter($this->getContext($context, 'trace')) : "", "file", array(), "any", true) && $this->getAttribute(array_key_exists("trace", $context) ? twig_default_filter($this->getContext($context, 'trace')) : "", "line", array(), "any", true)) {
         // line 12
         echo "    in ";
         echo $this->env->getExtension('code')->formatFile($this->getAttribute($this->getContext($context, 'trace'), "file", array(), "any", false), $this->getAttribute($this->getContext($context, 'trace'), "line", array(), "any", false));
         echo "&nbsp;\n    ";
         // line 13
         ob_start();
         // line 14
         echo "    <a href=\"#\" onclick=\"toggle('trace_";
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "'); switchIcons('icon_";
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "_open', 'icon_";
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "_close'); return false;\">\n        <img class=\"toggle\" id=\"icon_";
         // line 15
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "_close\" alt=\"-\" src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
         echo "\" style=\"visibility: ";
         echo 0 == $this->getContext($context, 'i') ? "display" : "hidden";
         echo "\" />\n        <img class=\"toggle\" id=\"icon_";
         // line 16
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "_open\" alt=\"+\" src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
         echo "\" style=\"visibility: ";
         echo 0 == $this->getContext($context, 'i') ? "hidden" : "display";
         echo "; margin-left: -18px\" />\n    </a>\n    ";
         echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
         // line 19
         echo "    <div id=\"trace_";
         echo twig_escape_filter($this->env, $this->getContext($context, 'prefix') . "_" . $this->getContext($context, 'i'), "html");
         echo "\" style=\"display: ";
         echo 0 == $this->getContext($context, 'i') ? "block" : "none";
         echo "\" class=\"trace\">\n        ";
         // line 20
         echo $this->env->getExtension('code')->fileExcerpt($this->getAttribute($this->getContext($context, 'trace'), "file", array(), "any", false), $this->getAttribute($this->getContext($context, 'trace'), "line", array(), "any", false));
         echo "\n    </div>\n";
     }
 }
    public function getquoteItemGridItem($item = null, $config = null, $options = null)
    {
        $context = array(
            "item" => $item,
            "config" => $config,
            "options" => $options,
        );

        // line 52
        $context['interactive'] = twig_default_filter($this->getAttribute((isset($context['options']) ? $context['options'] : null), "interactive", array(), "any"), true);
        echo "<tr class=\"itemRow\" id=\"itemId_";
        // line 53
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "id", array(), "any"), "1");
        echo "\">
\t<td class=\"quoteItemImage\">
\t\t";
        // line 55
        if ($this->getAttribute((isset($context['item']) ? $context['item'] : null), "thumbnail", array(), "any")) {
            echo "\t\t\t<img src=\"";
            // line 56
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "thumbnail", array(), "any"), "1");
            echo "\" alt=\"\" />
\t\t";
        } else {
            // line 57
            echo "\t\t\t&nbsp;
\t\t";
        }
        // line 59
        echo "\t</td>
\t<td>
\t\t<div class=\"quoteItemName\">";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "name", array(), "any"), "1");
        echo "</div>
\t\t";
        // line 63
        if ($this->getAttribute((isset($context['item']) ? $context['item'] : null), "sku", array(), "any")) {
            echo "\t\t\t<div class=\"quoteItemSku\">";
            // line 64
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "sku", array(), "any"), "1");
            echo "</div>
\t\t";
        }
        // line 65
        echo "\t\t<div class=\"quoteItemConfiguration\">
\t\t\t";
        // line 67
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['item']) ? $context['item'] : null), "variationOptions", array(), "any"));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['name'] => $context['value']) {
            echo "\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t<div class=\"name\">";
            // line 69
            echo twig_escape_filter($this->env, (isset($context['name']) ? $context['name'] : null), "1");
            echo ":</div>
\t\t\t\t\t<div class=\"value\">";
            // line 70
            echo twig_escape_filter($this->env, (isset($context['value']) ? $context['value'] : null), "1");
            echo "</div>
\t\t\t\t</div>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['name'], $context['value'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 72
        echo "\t\t\t";
        // line 73
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['item']) ? $context['item'] : null), "configuration", array(), "any"));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['field']) {
            echo "\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t";
            // line 75
            if ($this->getAttribute((isset($context['field']) ? $context['field'] : null), "value", array(), "any")) {
                echo "\t\t\t\t\t\t<div class=\"name\">";
                // line 76
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['field']) ? $context['field'] : null), "name", array(), "any"), "1");
                echo ":</div>
\t\t\t\t\t\t<div class=\"value\">
\t\t\t\t\t\t\t";
                // line 78
                if ($this->getAttribute((isset($context['field']) ? $context['field'] : null), "type", array(), "any") == "file") {
                    echo "\t\t\t\t\t\t\t\t";
                    // line 79
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['field']) ? $context['field'] : null), "fileOriginalName", array(), "any"), "1");
                    echo "
\t\t\t\t\t\t\t";
                } elseif ($this->getAttribute((isset($context['field']) ? $context['field'] : null), "type", array(), "any") == "checkbox") {
                    // line 80
                    echo "\t\t\t\t\t\t\t\t";
                    // line 81
                    if ($this->getAttribute((isset($context['field']) ? $context['field'] : null), "value", array(), "any") == 1) {
                        echo getLang("xYes");
                    } else {
                        echo getLang("xNo");
                    }
                    echo "\t\t\t\t\t\t\t";
                } else {
                    // line 82
                    echo "\t\t\t\t\t\t\t\t";
                    // line 83
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['field']) ? $context['field'] : null), "value", array(), "any"), "1");
                    echo "
\t\t\t\t\t\t\t";
                }
                // line 84
                echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
            }
            // line 86
            echo "\t\t\t\t</div>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 88
        echo "\t\t\t";
        // line 89
        if ($this->getAttribute((isset($context['item']) ? $context['item'] : null), "eventName", array(), "any")) {
            echo "\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t<div class=\"name\">";
            // line 91
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "eventName", array(), "any"), "1");
            echo ":</div>
\t\t\t\t\t<div class=\"value\">";
            // line 92
            echo $this->getEnvironment()->getExtension('interspire')->dateFormat(twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "eventDate", array(true, ), "method"), "1"));
            echo "</div>
\t\t\t\t</div>
\t\t\t";
        }
        // line 94
        echo "\t\t\t";
        // line 95
        if ($this->getAttribute((isset($context['item']) ? $context['item'] : null), "giftWrapping", array(), "any")) {
            echo "\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t<div class=\"name\">";
            // line 97
            echo getLang("GiftWrapping");
            echo ":</div>
\t\t\t\t\t<div class=\"value\">";
            // line 98
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "giftWrapping", array(), "any"), "wrapname", array(), "any"), "1");
            echo " (";
            echo formatPrice(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "giftWrapping", array(), "any"), "wrapprice", array(), "any"), "1"));
            echo ")</div>
\t\t\t\t</div>
\t\t\t\t";
            // line 100
            if ($this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "giftWrapping", array(), "any"), "wrapmessage", array(), "any")) {
                echo "\t\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t\t<div class=\"name\">";
                // line 102
                echo getLang("GiftMessage");
                echo ":</div>
\t\t\t\t\t\t<div class=\"value\">";
                // line 103
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "giftWrapping", array(), "any"), "wrapmessage", array(), "any"), "1");
                echo "</div>
\t\t\t\t\t</div>
\t\t\t\t";
            }
            // line 105
            echo "\t\t\t";
        }
        // line 106
        echo "\t\t\t";
        // line 107
        if ($this->getAttribute((isset($context['item']) ? $context['item'] : null), "isPreOrder", array(), "any")) {
            echo "\t\t\t\t<div class=\"quoteItemConfigurationRow\">
\t\t\t\t\t<div class=\"name\">";
            // line 109
            echo getLang("PreOrder");
            echo ":</div>
\t\t\t\t\t<div class=\"value\">";
            // line 110
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "getPreOrderMessage", array(), "any"), "1");
            echo "</div>
\t\t\t\t</div>
\t\t\t";
        }
        // line 112
        echo "\t\t</div>
\t</td>
\t<td class=\"quoteItemQuantity\">
\t\t";
        // line 116
        if (((isset($context['interactive']) ? $context['interactive'] : null)) && ((!$this->getAttribute((isset($context['item']) ? $context['item'] : null), "isGiftCertificate", array(), "any")))) {
            echo "\t\t\t<input type=\"text\" name=\"quantity\" value=\"";
            // line 117
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "quantity", array(), "any"), "1");
            echo "\" class=\"Field50\" id=\"qty\" />
\t\t";
        } else {
            // line 118
            echo "\t\t\t";
            // line 119
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "quantity", array(), "any"), "1");
            echo "
\t\t";
        }
        // line 120
        echo "\t</td>
\t<td class=\"quoteItemPrice\">
\t\t";
        // line 123
        if (((isset($context['interactive']) ? $context['interactive'] : null)) && ((!$this->getAttribute((isset($context['item']) ? $context['item'] : null), "isGiftCertificate", array(), "any")))) {
            echo "\t\t\t";
            // line 124
            if ($this->getAttribute((isset($context['config']) ? $context['config'] : null), "CurrencyLocation", array(), "any") == "left") {
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['config']) ? $context['config'] : null), "CurrencyToken", array(), "any"), "1");
            }
            echo "\t\t\t<input type=\"text\" name=\"price\" value=\"";
            // line 125
            echo formatPrice(twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "price", array($this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "quote", array(), "any"), "doesStoreCartDisplayIncludeTax", array(), "any"), ), "method"), "1"), false, false);
            echo "\" class=\"Field50\" />
\t\t\t";
            // line 126
            if ($this->getAttribute((isset($context['config']) ? $context['config'] : null), "CurrencyLocation", array(), "any") == "right") {
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['config']) ? $context['config'] : null), "CurrencyToken", array(), "any"), "1");
            }
            echo "\t\t";
        } else {
            // line 127
            echo "\t\t\t";
            // line 128
            echo formatPrice(twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "price", array($this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "quote", array(), "any"), "doesStoreCartDisplayIncludeTax", array(), "any"), ), "method"), "1"));
            echo "
\t\t";
        }
        // line 129
        echo "\t</td>
\t<td class=\"quoteItemTotal\"><span>";
        // line 131
        echo formatPrice(twig_escape_filter($this->env, $this->getAttribute((isset($context['item']) ? $context['item'] : null), "total", array($this->getAttribute($this->getAttribute((isset($context['item']) ? $context['item'] : null), "quote", array(), "any"), "doesStoreCartDisplayIncludeTax", array(), "any"), ), "method"), "1"));
        echo "</span></td>
\t";
        // line 132
        if ((isset($context['interactive']) ? $context['interactive'] : null)) {
            echo "\t\t<td class=\"quoteItemAction\">
\t\t\t";
            // line 134
            if ((!$this->getAttribute((isset($context['item']) ? $context['item'] : null), "isGiftCertificate", array(), "any"))) {
                echo "\t\t\t\t<a href=\"#\" class=\"customizeItemLink\">";
                // line 135
                echo getLang("Customize");
                echo "</a>
\t\t\t\t<a href=\"#\" class=\"copyItemLink\">";
                // line 136
                echo getLang("Copy");
                echo "</a>
\t\t\t";
            } else {
                // line 137
                echo "\t\t\t\t<span class=\"Disabled\">";
                // line 138
                echo getLang("Customize");
                echo "</span>
\t\t\t\t<span class=\"Disabled\">";
                // line 139
                echo getLang("Copy");
                echo "</span>
\t\t\t";
            }
            // line 140
            echo "\t\t\t<a href=\"#\" class=\"deleteItemLink\">";
            // line 141
            echo getLang("Delete");
            echo "</a>
\t\t</td>
\t";
        }
        // line 143
        echo "</tr>
";
    }
    public function display(array $context)
    {
        // line 1
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
if (typeof lang == 'undefined') {
\tlang = {};
}
lang.EmailIntegrationGetListsFailed = \"";
        // line 8
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListsFailed"), "'");
        echo "\";
lang.EmailIntegrationGetListFieldsFailed = \"";
        // line 9
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListFieldsFailed"), "'");
        echo "\";
lang.NoneString = \"";
        // line 10
        echo Interspire_Template_Extension::jsFilter(getLang("NoneString"), "'");
        echo "\";
lang.EmailIntegrationIncompleteRuleError = \"";
        // line 11
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationIncompleteRuleError"), "'");
        echo "\";
lang.EmailIntegrationChooseAListToSync = \"";
        // line 12
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationChooseAListToSync"), "'");
        echo "\";
lang.EmailIntegrationFieldSyncNotRequired = \"";
        // line 13
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationFieldSyncNotRequired"), "'");
        echo "\";
lang.EmailIntegration_ConfirmRefreshLists = \"";
        // line 14
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegration_ConfirmRefreshLists"), "'");
        echo "\";
//]]></script>

";
        // line 17
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t";
            // line 18
            if ((($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any")) && ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsJavaScript", array(), "any"))) && (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any")))) {
                echo "\t\t<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
\t\t\t\$(function(){
\t\t\t\tif (Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 21
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"]) {
\t\t\t\t\t// load some commong language for each module
\t\t\t\t\tlang.";
                // line 23
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "_name = \"";
                echo Interspire_Template_Extension::jsFilter(getLang(($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) . ("_name")), "'");
                echo "\";

\t\t\t\t\t// preload this module's list information
\t\t\t\t\tvar provider = Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 26
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"];
\t\t\t\t\tprovider.lists.result = [];
\t\t\t\t\t";
                // line 28
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['list']) {
                    echo "\t\t\t\t\t\tprovider.lists.result.push(new Interspire_EmailIntegration_ListModel(provider, \"";
                    // line 29
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "name", array(), "any"));
                    echo "\"));
\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['list'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 30
                echo "\t\t\t\t}
\t\t\t});
\t\t//]]></script>
\t";
            }
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 35
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){
\t\$(function(){
\t\t\$('#emailIntegrationSettingsForm').submit(function(event){
\t\t\t\$.each(Interspire_EmailIntegration_ProviderModel.modules, function(moduleId, module){
\t\t\t\tif (!module.isSelected()) {
\t\t\t\t\treturn;
\t\t\t\t}

\t\t\t\tif (!module.validateSettingsForm()) {
\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\$('#tabs').tabs('select', module.id);
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t});
\t\t});
\t});
})(jQuery);
//]]></script>

<form action=\"index.php?ToDo=saveUpdatedEmailIntegrationSettings\" id=\"emailIntegrationSettingsForm\" method=\"post\">
\t<input id=\"currentTab\" name=\"currentTab\" value=\"";
        // line 58
        echo twig_escape_filter($this->env, (isset($context['tab']) ? $context['tab'] : null), "1");
        echo "\" type=\"hidden\" />
\t<div id=\"content\">
\t\t<h1>";
        // line 60
        echo getLang("EmailMarketing");
        echo "</h1>

\t\t<p class=\"intro\">";
        // line 62
        echo getLang("EmailIntegrationSettingsIntro");
        echo "</p>

\t\t<div id=\"Status\">";
        // line 64
        echo twig_safe_filter((isset($context['message']) ? $context['message'] : null));
        echo "</div>

\t\t";
        // line 66
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 67
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "saveButton", array(), "any"), "1");
        echo "
\t\t\t";
        // line 68
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "cancelButton", array(), "any"), "1");
        echo "
\t\t";
        // line 69
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "

\t\t";
        // line 71
        echo "

\t\t<div id=\"tabs\" class=\"tabs\">
\t\t\t";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tabs", array((isset($context['tabs']) ? $context['tabs'] : null), ), "method"), "1");
        echo "

\t\t\t<div id=\"modules\" class=\"";
        // line 76
        if (((isset($context['tab']) ? $context['tab'] : null)) && ((isset($context['tab']) ? $context['tab'] : null) != "modules")) {
            echo "ui-tabs-hide";
        }
        echo "\">
\t\t\t\t";
        // line 77
        $this->env->loadTemplate("settings.emailintegration.general.tpl")->display($context);
        echo "\t\t\t</div>

\t\t\t";
        // line 80
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t";
            // line 81
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "enabled", array(), "any")) {
                echo "\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 82
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[isconfigured]\" value=\"";
                echo twig_default_filter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any"), "1"), 0);
                echo "\" />
\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 83
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[rules]\" value=\"\" />
\t\t\t\t\t<div id=\"";
                // line 84
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "\" class=\"";
                if ((isset($context['tab']) ? $context['tab'] : null) != $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) {
                    echo "ui-tabs-hide";
                }
                echo "\">
\t\t\t\t\t\t";
                // line 85
                if ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any")) {
                    echo "\t\t\t\t\t\t\t";
                    // line 86
                    $template = $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any");
                    if (!$template instanceof Twig_Template) {
                        $template = $this->env->loadTemplate($template);
                    }
                    $template->display($context);
                    echo "\t\t\t\t\t\t";
                } else {
                    // line 87
                    echo "\t\t\t\t\t\t\t";
                    // line 88
                    $this->env->loadTemplate("settings.emailintegration.common.tpl")->display($context);
                    echo "\t\t\t\t\t\t";
                }
                // line 89
                echo "\t\t\t\t\t</div>
\t\t\t\t";
            }
            // line 91
            echo "\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 92
        echo "\t\t</div>
\t</div>
</form>

<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){

\t\$(function(){
\t\t\$('#tabs').tabs({
\t\t\tselect: function(event, ui){
\t\t\t\t\$('#currentTab').val(ui.panel.id);
\t\t\t}
\t\t});

\t\t";
        // line 107
        if ((isset($context['tab']) ? $context['tab'] : null)) {
            echo "\$('#tabs').tabs('select', '";
            echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['tab']) ? $context['tab'] : null));
            echo "');";
        }
        echo "
\t\t\$('.cancelButton').click(function(event){
\t\t\tevent.preventDefault();

\t\t\tif (confirm(\"";
        // line 112
        echo getLang("ConfirmCancel");
        echo "\")) { ";
        echo "
\t\t\t\tdocument.location.href = \"index.php?ToDo=viewEmailIntegrationSettings\";
\t\t\t}
\t\t});
\t});

})(jQuery);
//]]></script>
";
    }
    public function block_email_widget($context, array $blocks = array())
    {
        // line 257
        ob_start();
        // line 258
        echo "    ";
        $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "email")) : ("email"));
        // line 259
        echo "    ";
        echo $this->renderBlock("field_widget", $context, $blocks);
        echo "
";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }
 public function block_field_row($context, array $blocks = array())
 {
     // line 227
     ob_start();
     // line 228
     echo "    <div>\n        ";
     // line 229
     echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form'), array_key_exists("label", $context) ? twig_default_filter($this->getContext($context, 'label'), null) : null);
     echo "\n        ";
     // line 230
     echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
     echo "\n        ";
     // line 231
     echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form'));
     echo "\n    </div>\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function block_panel($context, array $blocks = array())
 {
     // line 28
     echo "    <h2>Logs</h2>\n\n    ";
     // line 30
     if ($this->getAttribute($this->getContext($context, 'collector'), "logs", array(), "any", false)) {
         // line 31
         echo "        <ul class=\"alt\">\n            ";
         // line 32
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "logs", array(), "any", false));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context['_key'] => $context['log']) {
             // line 33
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, 'loop'), "index", array(), "any", false)), "html");
             if ("ERR" == $this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false) || "ERROR" == $this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false)) {
                 echo " error";
             }
             echo "\">\n                    ";
             // line 34
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'log'), "message", array(), "any", false), "html");
             echo "\n                    ";
             // line 35
             if ($this->getAttribute(array_key_exists("log", $context) ? twig_default_filter($this->getContext($context, 'log')) : "", "context", array(), "any", true) && !twig_test_empty($this->getAttribute($this->getContext($context, 'log'), "context", array(), "any", false))) {
                 // line 36
                 echo "                        <br />\n                        <small>\n                            <strong>Context</strong>: ";
                 // line 38
                 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, 'log'), "context", array(), "any", false)), "html");
                 echo "\n                        </small>\n                    ";
             }
             // line 41
             echo "                </li>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 43
         echo "        </ul>\n    ";
     } else {
         // line 45
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
 }
    public function getaddress($address = null)
    {
        $context = array(
            "address" => $address,
        );

        echo "\t";
        // line 131
        if (($this->getAttribute((isset($context['address']) ? $context['address'] : null), "firstname", array(), "any")) || ($this->getAttribute((isset($context['address']) ? $context['address'] : null), "lastname", array(), "any"))) {
            echo "\t\t<div>";
            // line 132
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "firstname", array(), "any"), "1");
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "lastname", array(), "any"), "1");
            echo "</div>
\t";
        } else {
            // line 133
            echo "\t\t<div>";
            // line 134
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "first_name", array(), "any"), "1");
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "last_name", array(), "any"), "1");
            echo "</div>
\t";
        }
        // line 135
        echo "
\t<div>";
        // line 137
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "company", array(), "any"), "1");
        echo "</div>

\t";
        // line 139
        if (($this->getAttribute((isset($context['address']) ? $context['address'] : null), "address1", array(), "any")) || ($this->getAttribute((isset($context['address']) ? $context['address'] : null), "address2", array(), "any"))) {
            echo "\t\t<div>";
            // line 140
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "address1", array(), "any"), "1");
            echo "</div>
\t\t<div>";
            // line 141
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "address2", array(), "any"), "1");
            echo "</div>
\t";
        } else {
            // line 142
            echo "\t\t<div>";
            // line 143
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "address_1", array(), "any"), "1");
            echo "</div>
\t\t<div>";
            // line 144
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "address_2", array(), "any"), "1");
            echo "</div>
\t";
        }
        // line 145
        echo "
\t<div>
\t\t";
        // line 148
        $context['state'] = twig_default_filter($this->getAttribute((isset($context['address']) ? $context['address'] : null), "state", array(), "any"), $this->getAttribute((isset($context['address']) ? $context['address'] : null), "getStateName", array(), "any"));
        echo "\t\t";
        // line 149
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "city", array(), "any"), "1");
        if (($this->getAttribute((isset($context['address']) ? $context['address'] : null), "city", array(), "any")) && (((isset($context['state']) ? $context['state'] : null)) || ($this->getAttribute((isset($context['address']) ? $context['address'] : null), "zip", array(), "any")))) {
            echo ", ";
        }
        echo "\t\t";
        // line 150
        echo twig_escape_filter($this->env, (isset($context['state']) ? $context['state'] : null), "1");
        if (((isset($context['state']) ? $context['state'] : null)) && ($this->getAttribute((isset($context['address']) ? $context['address'] : null), "zip", array(), "any"))) {
            echo ", ";
        }
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "zip", array(), "any"), "1");
        echo "
\t</div>
\t<div>
\t\t";
        // line 153
        echo twig_default_filter(twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "country", array(), "any"), "1"), twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "getCountryName", array(), "any"), "1"));
        echo "

\t\t";
        // line 155
        if ($this->getAttribute((isset($context['address']) ? $context['address'] : null), "countryFlag", array(), "any")) {
            echo "\t\t\t<img src=\"../lib/flags/";
            // line 156
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['address']) ? $context['address'] : null), "countryFlag", array(), "any"), "1");
            echo ".gif\" style=\"vertical-align: middle\" alt=\"\" />
\t\t";
        }
        // line 157
        echo "\t</div>
";
    }
    public function getcheckbox($options = null)
    {
        $context = array(
            "options" => $options,
        );

        echo "\t<label><input type=\"checkbox\" name=\"";
        // line 126
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['options']) ? $context['options'] : null), "name", array(), "any"), "1");
        echo "\" class=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['options']) ? $context['options'] : null), "class", array(), "any"), "1");
        echo "\" ";
        if ($this->getAttribute((isset($context['options']) ? $context['options'] : null), "id", array(), "any")) {
            echo "id=\"";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['options']) ? $context['options'] : null), "id", array(), "any"), "1");
            echo "\"";
        }
        echo " value=\"";
        echo twig_escape_filter($this->env, twig_default_filter($this->getAttribute((isset($context['options']) ? $context['options'] : null), "value", array(), "any"), 1));
        echo "\" ";
        if ($this->getAttribute((isset($context['options']) ? $context['options'] : null), "checked", array(), "any")) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['options']) ? $context['options'] : null), "label", array(), "any"), "1");
        echo "</label>
";
    }