<?php

/* layout.manage.tpl */
class __TwigTemplate_955e6af0354a059cfe1b996d184da1a9 extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
<style type=\"text/css\" media=\"screen\">
.mobileTemplateDevices div.value,.tabletTemplateDevices div.value {padding-left: 25px;display: block !important;background: url('images/nodejoin.gif') no-repeat;}
</style>

<script type=\"text/javascript\">
// load language variables for the header image javascript
lang['HeaderImageConfirmDelete']   = \"";
        // line 10
        echo getLang("HeaderImageConfirmDelete");
        echo "\";
lang['LayoutHeaderNoCurrentImage'] = \"";
        // line 11
        echo getLang("LayoutHeaderNoCurrentImage");
        echo "\";
lang['LayoutHeaderImageNoImage']   = \"";
        // line 12
        echo getLang("LayoutHeaderImageNoImage");
        echo "\";

var disableLoadingIndicator;
var CurrentVersion = '";
        // line 15
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "';

function ShowTab(T){
\ti = 0;
\tif('";
        // line 19
        echo twig_safe_filter((isset($context['HideMessageBox']) ? $context['HideMessageBox'] : null));
        echo "' == 'none'){
\t\t\$('#TemplateMsgBox').hide('normal');
\t}

\twhile(document.getElementById(\"tab\" + i) != null){
\t\tdocument.getElementById(\"div\" + i).style.display = \"none\";
\t\tdocument.getElementById(\"tab\" + i).className = \"\";
\t\ti++;
\t}

\tdocument.getElementById(\"div\" + T).style.display = \"\";
\tdocument.getElementById(\"tab\" + T).className = \"active\";
\tdocument.getElementById(\"currentTab\").value = T;
\tSetCookie('templatesCurrentTab', T, 365);

\t\$(document).trigger('tabSelect' + T);
}

function launchDesignMode() {
\twindow.open('";
        // line 38
        echo twig_safe_filter((isset($context['ShopPathNormal']) ? $context['ShopPathNormal'] : null));
        echo "/?designModeToken=";
        echo twig_safe_filter((isset($context['DesignModeToken']) ? $context['DesignModeToken'] : null));
        echo "');
}

function get_random() {
\tvar ranNum= Math.floor(Math.random()*105205);
\treturn ranNum;
}

function ChangeTemplateColor(link, preview, previewFull) {
\t\$(link).parents('div.TemplateBox').find('.previewImage').attr('src', preview);
\t\$(link).parents('div.TemplateBox').find('.previewImage').parents('a').attr('href', previewFull);
}

function LaunchEditor(){
\tvar win = window.open(\"designmode.php?ToDo=editFile&File=default.html&f=a\");
\twin.focus();
}

function CheckTemplateVersion(){
\t// do the ajax request
\tdocument.getElementById('TemplateVersionCheck').innerHTML = '<em>Checking Version...</em>';
\tjQuery.ajax({ url: 'remote.php', type: 'POST', dataType: 'xml',
\t\tdata: {'w': 'checktemplateversion'},
\t\tsuccess: function(xml) {
\t\t\tCheckTemplateVersionReturn(xml);
\t\t}
\t});
}

function CheckTemplateVersionReturn(xml){
\tvar  CurrentVersion = '";
        // line 68
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "';

\tif(\$('status', xml).text() == 1){
\t\tif(\$('version', xml).text() > CurrentVersion){
\t\t\tdocument.getElementById('TemplateVersionCheck').innerHTML = '<img src=\"images/success.gif\" align=\"absmiddle\"> ";
        // line 72
        echo getLang("NewVersionAvailable");
        echo "'.replace('%%VERSION%%', \$('version', xml).text());

\t\t\tif (\$.browser.msie){
\t\t\t\t\$('#TemplateVersionCheck').css(\"background-color\",\"#99FF66\");
\t\t\t} else {
\t\t\t\t\$('#TemplateVersionCheck').show(0);
\t\t\t\t\$('#TemplateVersionCheck').css(\"background-color\",\"#99FF66\");
\t\t\t\t\$('#TemplateVersionCheck').animate({ backgroundColor: '#F9F9F9' }, { queue: true, duration: 1000 });
\t\t\t}

\t\t\tdocument.getElementById('TemplateVersionCheckButton').style.display = \"none\";
\t\t\tdocument.getElementById('DownloadNewVersionButton').style.display = \"\";
\t\t} else{
\t\t\tdocument.getElementById('TemplateVersionCheck').innerHTML = '";
        // line 85
        echo getLang("CurrentTemplateLatest");
        echo "';
\t\t}
\t} else {
\t\tdisplay_error('An Error has Occurred: ' + \$('message', xml).text());
\t}
}

function DownloadNewVersion(){
\tif(confirm('Important Note: By downloading this new template you will completely override your current template files which will *not* be recoverable. If you have made any modifcations to your current template then you should backup your current template before continuing.\\n\\nTo download this template, click \\'OK\\'. To keep the current version, click the \\'Cancel\\' button.')){
\t\tif(\$.browser.msie){
\t\t\ttb_show('', \"index.php?ToDo=templatedownload&template=";
        // line 95
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo "&height=80&width=280&PreviewImage=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\");
\t\t} else{
\t\t\ttb_show('', \"index.php?ToDo=templatedownload&template=";
        // line 97
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo "&height=58&width=240&PreviewImage=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\");
\t\t}
\t\tdocument.getElementById('TemplateVersionCheckButton').style.display = \"\";
\t\tdocument.getElementById('DownloadNewVersionButton').style.display = \"none\";
\t}
}

function display_message(text,type){
\tif(type=='error'){
\t\tdisplay_error('TemplateMsgBox', text);
\t} else {
\t\tdisplay_success('TemplateMsgBox', text);
\t}
}


lang.TemplateDownloadColorsConfirm = \"";
        // line 113
        echo getLang("TemplateDownloadColorsConfirm");
        echo "\";
\$(window).resize(function() {
\t// Remove the return statement to have the template list automatically
\t// centered in the middle of the page. Apparently we don't want to do this at the moment.
\treturn;
\ttemplateBoxWidth = \$('.TemplateList .TemplateBox').width() + 20;
\t\$('.TemplateList').css({
\t\twidth: '100%'
\t});
\twidth = \$('.TemplateListContainer').width();
\tnumBoxes = Math.floor(width / templateBoxWidth);
\tvisibleBoxes = \$('.TemplateBox:visible').length;
\tif(visibleBoxes < numBoxes) {
\t\tnumBoxes = visibleBoxes;
\t}
\tleft = (width - (numBoxes * templateBoxWidth)) / 2;
\t\$('.TemplateList').css({
\t\twidth: (templateBoxWidth * numBoxes) + 'px'
\t});
});

\$(document).ready(function() {
\t\$(window).trigger('resize');
\t\$('a.TplPreviewImage').fancybox({
\t\t'zoomSpeedIn': 200,
\t\t'zoomSpeedOut': 200,
\t\t'overlayShow': false,
\t\t'notitle': true
\t});

\t\$('.TemplateBox:not(.TemplateBoxOn)').hover(function() {
\t\t\$(this).addClass('TemplateBoxOver');
\t}, function() {
\t\t\$(this).removeClass('TemplateBoxOver');
\t});

\t\$('.TemplateBox a.ActivateLink').click(function() {
\t\ttemplateBox = \$(this).parents('.TemplateBox');
\t\ttemplateId = templateBox.attr('class').match('TemplateId_([^ \$]+)')[1];
\t\ttemplateName = \$('span.TemplateName', templateBox).html();
\t\ttemplateColor = \$('span.TemplateColor', templateBox).html();
\t\tif(templateBox.hasClass('Installable')) {
\t\t\tif(\$('.TemplateList .TemplateId_'+templateId).length > 1) {
\t\t\t\tcolorSchemes = '';
\t\t\t\t\$('.TemplateList .TemplateId_'+templateId).each(function() {
\t\t\t\t\ttemplateColor = \$('span.TemplateColor', this).html();
\t\t\t\t\tcolorSchemes += '- '+templateColor+\"\\n\";
\t\t\t\t});
\t\t\t\tmessage = lang.TemplateDownloadColorsConfirm;
\t\t\t\tmessage = message.replace(':templateName', templateName);
\t\t\t\tmessage = message.replace(':templateColor', templateColor);
\t\t\t\tmessage = message.replace(':colorList', colorSchemes);
\t\t\t\tif(!confirm(message)) {
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t\ttb_show('', 'index.php?ToDo=templateDownload&template='+templateId+'&height=58&width=300&color='+templateColor);
\t\t}
\t\telse {
\t\t\twindow.location = 'index.php?ToDo=changeTemplate&template='+templateId+'&color='+templateColor;
\t\t}
\t\treturn false;
\t});

\t\$('.ShowTemplateTypes').change(function() {
\t\t\$('.NoTemplateMessage').hide();
\t\tswitch(\$(this).val()) {
\t\t\tcase 'installed':
\t\t\t\t\$('.TemplateBox').show();
\t\t\t\t\$('.TemplateBox.Installable').hide();
\t\t\t\tbreak;
\t\t\tcase 'downloadable':
\t\t\t\t\$('.TemplateBox').hide();
\t\t\t\t\$('.TemplateBox.Installable').show();
\t\t\t\tbreak;
\t\t\tdefault:
\t\t\t\t\$('.TemplateBox').show();
\t\t}
\t\t\$(window).trigger('resize');
\t\tif(\$('.TemplateBox:visible').length == 0) {
\t\t\talert('";
        // line 193
        echo Interspire_Template_Extension::jsFilter(getLang("NoTemplatesAvailableFilter"), "'");
        echo "');
\t\t\t\$('.ShowTemplateTypes').val('all').trigger('change');
\t\t}
\t});

\t// Scroll to the active template
\toffsetTop = \$('.TemplateBoxOn').offset().top;
\tlistTop = \$('.TemplateList').offset().top;
\tscrollTop = offsetTop - listTop - 20;
\tif(scrollTop > 0) {
\t\t\$('.TemplateListContainer').scrollTop(scrollTop);
\t}
});
</script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/ajax.file.upload.js?";
        // line 207
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/fancybox/fancybox.js?";
        // line 208
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<link rel=\"stylesheet\" href=\"../javascript/jquery/plugins/fancybox/fancybox.css?";
        // line 209
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" type=\"text/css\" media=\"screen\">
<script type=\"text/javascript\" src=\"script/layout.js?";
        // line 210
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/layout.headerimage.js?";
        // line 211
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>

<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<h4 class=\"page-title\">";
        // line 215
        echo getLang("ManageTemplates");
        echo "</h4>
\t\t<p>";
        // line 216
        echo twig_safe_filter((isset($context['LayoutIntro']) ? $context['LayoutIntro'] : null));
        echo "</p>
\t\t<p id=\"TemplateMsgBox\">";
        // line 217
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "</p>
\t</div>
</div>
<br />
<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<form action=\"index.php\" method=\"get\">
\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"viewTemplates\">
\t\t\t<ul id=\"tabnav\" class=\"nav nav-tabs tabs ui-tabs ui-widget ui-widget-content ui-corner-all\" style=\"margin-bottom: 20px;\">
\t\t\t\t<li><a href=\"javascript:ShowTab(0)\" class=\"active\" id=\"tab0\">";
        // line 226
        echo getLang("LayoutTabStoreDesign");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(1)\" id=\"tab1\">";
        // line 227
        echo getLang("LayoutTabLogoSettings");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(2)\" id=\"tab2\">";
        // line 228
        echo getLang("LayoutTabEmails");
        echo "</a></li>
\t\t\t\t";
        // line 229
        if ((isset($context['GiftCertificateThemes']) ? $context['GiftCertificateThemes'] : null)) {
            echo "\t\t\t\t<li><a href=\"javascript:ShowTab(3)\" id=\"tab3\">";
            // line 230
            echo getLang("LayoutTabGiftCertificates");
            echo "</a></li>
\t\t\t\t";
        }
        // line 231
        echo "\t\t\t\t<li><a href=\"javascript:ShowTab(4)\" id=\"tab4\">";
        // line 232
        echo getLang("LayoutTabFavicon");
        echo "</a></li>
\t\t\t\t<br class=\"Clear\" />
\t\t\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"";
        // line 234
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\" type=\"hidden\">
\t\t\t</ul>
\t\t</form>
\t</div>
</div>


<div id=\"div0\">
\t<div class=\"alert alert-info\">";
        // line 242
        echo getLang("TemplateChoiceIntro");
        echo "</div>
\t<p class=\"alert alert-info\" style=\"";
        // line 243
        echo twig_safe_filter((isset($context['HideSafeModeMessage']) ? $context['HideSafeModeMessage'] : null));
        echo "; margin-top: 10px;\">";
        echo getLang("TemplateDownloadingSafeModeEnabled");
        echo "</p>

\t<div class=\"panel panel-default\">
\t\t<div class=\"panel-heading\"> 
\t\t\t<h3 class=\"panel-title\">";
        // line 247
        echo getLang("CurrentTemplate");
        echo "</h3> 
\t\t</div> 

\t\t<div class=\"panel-body\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t<img src=\"thumb.php?tpl=";
        // line 253
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\" border=\"0\" id=\"CurrentTemplateImage\" class=\"img-responsive img-thumbnail\">
\t\t\t\t</div>

\t\t\t\t<div class=\"col-md-9\">
\t\t\t\t\t<div class=\"TemplateHeading\" id=\"CurrentTemplateHeading\">Cor (";
        // line 257
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo ") - Versão ";
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "</div>
\t\t\t\t\t<div id=\"TemplateFilesLocated\">";
        // line 258
        echo getLang("TemplateFilesLocated");
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "</div><br />
\t\t\t\t\t<div id=\"TemplateVersionCheck\"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>

\t<div class=\"panel panel-default\">
\t\t<div class=\"panel-heading\"> 
\t\t\t<h3 class=\"panel-title\">
\t\t\t\t";
        // line 268
        echo getLang("ChooseTemplate");
        echo "\t\t\t\t<span class=\"pull-right\" style=\"display: none;\">
\t\t\t\t\t<strong>";
        // line 270
        echo getLang("Filter");
        echo "</strong>
\t\t\t\t\t<select name=\"templateType\" class=\"ShowTemplateTypes form-control\" style=\"width: auto; display: inline-block;\">
\t\t\t\t\t\t<option value=\"all\">";
        // line 272
        echo getLang("ShowAllTemplates");
        echo "</option>
\t\t\t\t\t\t<option value=\"installed\">";
        // line 273
        echo getLang("ShowInstalledTemplates");
        echo "</option>
\t\t\t\t\t\t<option value=\"downloadable\">";
        // line 274
        echo getLang("ShowNewTemplates");
        echo "</option>
\t\t\t\t\t</select>
\t\t\t\t</span>
\t\t\t</h3> 
\t\t</div> 

\t\t<div class=\"panel-body\">
\t\t\t<div class=\"TemplateListContainer\">
\t\t\t\t<div class=\"TemplateList row\">
\t\t\t\t\t";
        // line 283
        echo twig_safe_filter((isset($context['TemplateListMap']) ? $context['TemplateListMap'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>

<div id=\"div1\" style=\"display:none\">
\t";
        // line 291
        echo twig_safe_filter((isset($context['LogoTab']) ? $context['LogoTab'] : null));
        echo "
</div>

<div id=\"div2\" style=\"display:none\">
\t<div class=\"alert alert-info\">Para editar os layouts de emails acesse via FTP</div>

\t
</div>

<div id=\"div3\" style=\"display: none\">
\t";
        // line 301
        $this->env->loadTemplate("layout.manage.giftcerts.tpl")->display($context);
        echo "</div>

<div id=\"div4\" style=\"display: none;\">
\t<div class=\"alert alert-info\">";
        // line 305
        echo getLang("FaviconIntro");
        echo "</div>

\t<form method=\"post\" action=\"index.php?ToDo=TemplateUploadFavicon\" enctype=\"multipart/form-data\" onsubmit=\"return CheckFaviconForm();\">

\t<div class=\"panel panel-default\">
\t\t<div class=\"panel-heading\"> 
\t\t\t<h3 class=\"panel-title\">";
        // line 311
        echo getLang("FaviconUpload");
        echo "</h3> 
\t\t</div> 

\t\t<div class=\"panel-body\">
\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t";
        // line 317
        echo getLang("SelectLogoUpload");
        echo ":
\t\t\t\t</label>
\t\t\t\t
\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<img src=\"";
        // line 321
        echo twig_safe_filter((isset($context['Favicon']) ? $context['Favicon'] : null));
        echo "\" width=\"16\" height=\"16\" />
\t\t\t\t\t<input type=\"file\" name=\"FaviconFile\" id=\"FaviconFile\" class=\"form-control\" value=\"\" style=\"width: auto; display: inline-block;\" /> <input type=\"submit\" value=\"";
        // line 322
        echo getLang("UploadFavicon");
        echo "\" class=\"btn btn-primary\" />
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t</form>
</div>

<div style=\"display: none\" id=\"templateSelectedMessage\"></div>

<script type=\"text/javascript\" defer>
\tlang.InvalidSettingenableMobileTemplateDevices = \"";
        // line 333
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidSettingenableMobileTemplateDevices"), "'");
        echo "\";
\tlang.InvalidSettingEnableTabletTemplateDevices = \"";
        // line 334
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidSettingEnableTabletTemplateDevices"), "'");
        echo "\";
\tlang.UploadValidMobileLogo = \"";
        // line 335
        echo Interspire_Template_Extension::jsFilter(getLang("UploadValidMobileLogo"), "'");
        echo "\";
\tlang.UploadValidTabletLogo = \"";
        // line 336
        echo Interspire_Template_Extension::jsFilter(getLang("UploadValidTabletLogo"), "'");
        echo "\";

\tvar DisplayTab = 0;
\tvar ForceTab = '";
        // line 339
        echo twig_safe_filter((isset($context['ForceTab']) ? $context['ForceTab'] : null));
        echo "';

\tif(ForceTab.length > 0){
\t\tDisplayTab = ForceTab;
\t}

\tDisplayTab = parseInt(DisplayTab);

\tif(DisplayTab > -1){
\t\tShowTab(DisplayTab);
\t}

\tfunction edit_template(trID, tplfile) {
\t\t\$('#edit_'+trID).show();

\t\tjQuery.ajax({
\t\turl: 'remote.php',
\t\ttype: 'POST',
\t\tdataType: 'text',
\t\t\tdata: {'w': 'getEmailTemplate', 'file': tplfile, 'id': trID},
\t\t\tsuccess: function(txt) {
\t\t\t\t\$('#edit_box_'+trID).html(txt);
\t\t\t\tif(typeof(tinyMCE) != 'undefined') {
\t\t\t\t\teval('LoadEditor_wysiwyg_'+trID+'()');
\t\t\t\t}
\t\t\t}
\t\t});
\t}

\tfunction edit_hide(trID) {
\t\tif(confirm(\"";
        // line 369
        echo getLang("ETHideEdit");
        echo "\")) {
\t\t\t\$('#edit_'+trID).hide();
\t\t}
\t}

\tfunction save_edit(trID, tplfile) {
\t\tif(typeof(tinyMCE) != 'undefined') {
\t\t\tvar html = tinyMCE.get('wysiwyg_'+trID).getContent();
\t\t} else {
\t\t\tvar html = \$(\"#wysiwyg_\"+trID).val();
\t\t}

\t\tjQuery.ajax({
\t\t\turl: 'remote.php',
\t\t\ttype: 'POST',
\t\t\tdataType: 'text',
\t\t\tdata: {'w': 'updateEmailTemplate', 'file': tplfile, 'html': html},
\t\t\tsuccess: function(status) {
\t\t\t\tif(status == \"success\") {
\t\t\t\t\tmsg = \"";
        // line 388
        echo getLang("EmailTemplateUpdated");
        echo "\";
\t\t\t\t} else {
\t\t\t\t\tmsg = \"";
        // line 390
        echo getLang("EmailTemplateUpdateFailed");
        echo "\";
\t\t\t\t}
\t\t\t\talert(msg);
\t\t\t\t\$('#edit_'+trID).hide();
\t\t\t}
\t\t});
\t}

\tvar EmailTemplates = {
\t\tExpandDirectory: function(row, directory) {
\t\t\t\$('#'+row+' .ExpandImg').blur();
\t\t\tif(\$('#'+row).is('.Expanded')) {
\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('minus.gif', 'plus.gif'));
\t\t\t\t\$('.Child_'+row).hide();
\t\t\t\t\$('#'+row).removeClass('Expanded');
\t\t\t\t\$('#Indicator_'+row).hide();
\t\t\t\treturn;
\t\t\t}

\t\t\tif(\$('.Child_'+row).length > 0) {
\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('plus.gif', 'minus.gif'));
\t\t\t\t\$('.Child_'+row).show();
\t\t\t\t\$('#'+row).addClass('Expanded');
\t\t\t\treturn;
\t\t\t}
\t\t\t
\t\t\t\$('#Indicator_'+row).show();
\t\t\t
\t\t\t\$.ajax({
\t\t\t\turl: 'remote.php',
\t\t\t\tdata: {
\t\t\t\t\tw: 'GetEmailTemplateDirectory',
\t\t\t\t\tpath: directory,
\t\t\t\t\tparent: row
\t\t\t\t},

\t\t\t\tsuccess: function(response) {
\t\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('plus.gif', 'minus.gif'));
\t\t\t\t\tif(response) {
\t\t\t\t\t\t\$('#Indicator_'+row).hide();
\t\t\t\t\t\t\$('#'+row).after(response);
\t\t\t\t\t} else {
\t\t\t\t\t\t\$('#Indicator_'+row+' td').html('<span style=\"padding-left: 25px;\"> ";
        // line 432
        echo getLang("DirectoryContainsNoFiles");
        echo "</span>');
\t\t\t\t\t}

\t\t\t\t\t\$('#'+row).addClass('Expanded');
\t\t\t\t\t\$('.Child_'+row).hover(function() {
\t\t\t\t\t\t\$(this).addClass('GridRowOver');
\t\t\t\t\t}, function() {
\t\t\t\t\t\t\$(this).removeClass('GridRowOver');
\t\t\t\t\t});
\t\t\t\t}
\t\t\t})
\t\t}
\t}

\tfunction CheckFaviconForm() {
\t\tif (document.getElementById('FaviconFile').value == '') {
\t\t\talert('";
        // line 448
        echo getLang("FaviconNoImageSelected");
        echo "');
\t\t\treturn false;
\t\t}

\t\treturn true;
\t}
</script>

<div style=\"display: none;\">
\t";
        // line 457
        echo twig_safe_filter((isset($context['TemporaryEditor']) ? $context['TemporaryEditor'] : null));
        echo "
</div>";
    }

}
