Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
system
/
storage
/
cache
/
da
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* default/template/common/language.twig */ class __TwigTemplate_9448d8493377c2f87f54443b5db98300a81f1c7a4f3c97c1e9ff0a4cb8b90160 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 if ((twig_length_filter($this->env, (isset($context["languages"]) ? $context["languages"] : null)) > 1)) { // line 2 echo "<div class=\"pull-left\"> <form action=\""; // line 3 echo (isset($context["action"]) ? $context["action"] : null); echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-language\"> <div class=\"btn-group\"> <button class=\"btn btn-link dropdown-toggle\" data-toggle=\"dropdown\"> "; // line 6 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 7 echo " "; if (($this->getAttribute($context["language"], "code", array()) == (isset($context["code"]) ? $context["code"] : null))) { echo " <img src=\"catalog/language/"; // line 8 echo $this->getAttribute($context["language"], "code", array()); echo "/"; echo $this->getAttribute($context["language"], "code", array()); echo ".png\" alt=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" title=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\"> "; } // line 10 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 11 echo " <span class=\"hidden-xs hidden-sm hidden-md\">"; echo (isset($context["text_language"]) ? $context["text_language"] : null); echo "</span> <i class=\"fa fa-caret-down\"></i></button> <ul class=\"dropdown-menu\"> "; // line 13 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 14 echo " <li> <button class=\"btn btn-link btn-block language-select\" type=\"button\" name=\""; // line 15 echo $this->getAttribute($context["language"], "code", array()); echo "\"><img src=\"catalog/language/"; echo $this->getAttribute($context["language"], "code", array()); echo "/"; echo $this->getAttribute($context["language"], "code", array()); echo ".png\" alt=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" title=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" /> "; echo $this->getAttribute($context["language"], "name", array()); echo "</button> </li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 18 echo " </ul> </div> <input type=\"hidden\" name=\"code\" value=\"\" /> <input type=\"hidden\" name=\"redirect\" value=\""; // line 21 echo (isset($context["redirect"]) ? $context["redirect"] : null); echo "\" /> </form> </div> "; } } public function getTemplateName() { return "default/template/common/language.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 93 => 21, 88 => 18, 69 => 15, 66 => 14, 62 => 13, 56 => 11, 50 => 10, 39 => 8, 34 => 7, 30 => 6, 24 => 3, 21 => 2, 19 => 1,); } } /* {% if languages|length > 1 %}*/ /* <div class="pull-left">*/ /* <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">*/ /* <div class="btn-group">*/ /* <button class="btn btn-link dropdown-toggle" data-toggle="dropdown">*/ /* {% for language in languages %}*/ /* {% if language.code == code %} */ /* <img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}">*/ /* {% endif %}*/ /* {% endfor %}*/ /* <span class="hidden-xs hidden-sm hidden-md">{{ text_language }}</span> <i class="fa fa-caret-down"></i></button>*/ /* <ul class="dropdown-menu">*/ /* {% for language in languages %}*/ /* <li>*/ /* <button class="btn btn-link btn-block language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button>*/ /* </li>*/ /* {% endfor %}*/ /* </ul>*/ /* </div>*/ /* <input type="hidden" name="code" value="" />*/ /* <input type="hidden" name="redirect" value="{{ redirect }}" />*/ /* </form>*/ /* </div>*/ /* {% endif %}*/ /* */