File: //home/cafsindia/help.cafsindia.com/var/cache/dev/twig/3f/3f4bd4494c2ba5c049944bbccf50dfe9.php
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @UVDeskSupportCenter/Staff/branding.html.twig */
class __TwigTemplate_40610d24c925ddc8d0963f1e52fe4439 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'pageContent' => [$this, 'block_pageContent'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@UVDeskCoreFramework//Templates//layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskSupportCenter/Staff/branding.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskSupportCenter/Staff/branding.html.twig"));
$this->parent = $this->loadTemplate("@UVDeskCoreFramework//Templates//layout.html.twig", "@UVDeskSupportCenter/Staff/branding.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
yield "\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Branding"), "html", null, true);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 7
public function block_pageContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageContent"));
// line 8
yield " <style>
.uv-image-upload-brick {
margin: 10px 0px;
}
.uv-color-field {
color: #fff;
width: 100px;
text-transform: uppercase;
}
.uv-header-link-wrapper {
padding-bottom: 20px;
}
.uv-footer-link-wrapper {
border-top: solid 1px #D3D3D3;
padding-top: 20px;
}
.uv-knowledgebase-layout {
border-top: solid 1px #D3D3D3;
padding-top: 20px;
margin-top: 20px;
}
.uv-knowledgebase-layout input[type='radio'] {
display: none;
}
#links .uv-field-block input:first-child {
width: 200px;
margin-bottom: 0;
}
#links .remove-link {
margin-left: 10px;
}
\t\t.grammarly-fix-broadcast {
\t\t\tmax-width: 518px;
\t\t}
#uv-reset-colors {
float: right;
cursor: pointer;
position: relative;
z-index:1 ;
}
</style>
\t<div class=\"uv-inner-section\">\t\t
\t\t";
// line 52
yield "\t\t";
$context["asideTemplate"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\AsideTemplate";
// line 53
yield "\t\t";
$context["asideSidebarReference"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\UIComponents\\Dashboard\\Panel\\Sidebars\\Branding";
// line 54
yield "
\t\t";
// line 55
yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_extensibles"]) || array_key_exists("uvdesk_extensibles", $context) ? $context["uvdesk_extensibles"] : (function () { throw new RuntimeError('Variable "uvdesk_extensibles" does not exist.', 55, $this->source); })()), "getRegisteredComponent", [(isset($context["asideTemplate"]) || array_key_exists("asideTemplate", $context) ? $context["asideTemplate"] : (function () { throw new RuntimeError('Variable "asideTemplate" does not exist.', 55, $this->source); })())], "method", false, false, false, 55), "renderSidebar", [(isset($context["asideSidebarReference"]) || array_key_exists("asideSidebarReference", $context) ? $context["asideSidebarReference"] : (function () { throw new RuntimeError('Variable "asideSidebarReference" does not exist.', 55, $this->source); })())], "method", false, false, false, 55);
yield "
\t\t<div class=\"uv-view ";
// line 57
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "cookies", [], "any", false, false, false, 57) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "cookies", [], "any", false, false, false, 57), "get", ["uv-asideView"], "method", false, false, false, 57))) {
yield "uv-aside-view";
}
yield "\">
\t\t\t<h1>";
// line 58
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Branding"), "html", null, true);
yield "</h1>
\t\t\t<!--Tabs-->
\t\t\t<div class=\"uv-tabs\">
\t\t\t\t<ul>
\t\t\t\t\t<li for=\"general\" ";
// line 62
if ((((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 62, $this->source); })()) == "general") || ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 62, $this->source); })()) == ""))) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("General"), "html", null, true);
yield "</li>
\t\t\t\t\t<li for=\"knowledgebase\" ";
// line 63
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 63, $this->source); })()) == "knowledgebase")) {
yield " class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Knowledgebase"), "html", null, true);
yield "</li>
<li for=\"time\" ";
// line 64
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 64, $this->source); })()) == "time")) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Time"), "html", null, true);
yield "</li>
\t\t\t\t\t<li for=\"seo\" ";
// line 65
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 65, $this->source); })()) == "seo")) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SEO"), "html", null, true);
yield "</li>
\t\t\t\t\t<li for=\"links\" ";
// line 66
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 66, $this->source); })()) == "links")) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Links"), "html", null, true);
yield "</li>
<li for=\"advanced\" ";
// line 67
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 67, $this->source); })()) == "advanced")) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Advanced"), "html", null, true);
yield "</li>
\t\t\t\t\t<li for=\"broadcasting\" ";
// line 68
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 68, $this->source); })()) == "broadcasting")) {
yield "class=\"uv-tab-active\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Broadcast Message"), "html", null, true);
yield "</li>
\t\t\t\t</ul>
\t\t\t</div>
\t\t\t<!--Tabs-->
\t\t\t<!--Tab View-->
\t\t\t<div class=\"uv-tab-view ";
// line 74
if ((((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 74, $this->source); })()) == "general") || ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 74, $this->source); })()) == ""))) {
yield "uv-tab-view-active";
}
yield "\" id=\"general\">
\t\t\t\t<!--Form-->
\t\t\t\t<form method=\"post\" action=\"";
// line 76
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "general"]);
yield "\" id=\"generalSettingForm\" enctype=\"multipart/form-data\">
<!-- Image block -->
<div class=\"uv-image-upload-wrapper uv-no-error-success-icon\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 80
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Wide Logo"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
";
// line 82
$context["isLogo"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 82, $this->source); })()), "logo", [], "any", false, false, false, 82)) ? (1) : (0));
// line 83
yield " <div class=\"uv-image-upload-brick uv-image-upload-brick-200 ";
if ((isset($context["isLogo"]) || array_key_exists("isLogo", $context) ? $context["isLogo"] : (function () { throw new RuntimeError('Variable "isLogo" does not exist.', 83, $this->source); })())) {
yield "uv-on-drop-shadow";
}
yield "\" ";
if ((isset($context["isLogo"]) || array_key_exists("isLogo", $context) ? $context["isLogo"] : (function () { throw new RuntimeError('Variable "isLogo" does not exist.', 83, $this->source); })())) {
yield "style=\"border-color: transparent;\"";
}
yield ">
<input type=\"file\" name=\"website[logo]\" id=\"uv-upload-profile\" accept=\"image/*\">
<div class=\"uv-image-upload-placeholder\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"32\" viewBox=\"0 0 48 32\">
<path fill=\"#7c74f1\" fill-rule=\"evenodd\" d=\"M26.516,22.252H21.477V17.226h-3.75L24,11.031l6.269,6.195h-3.75v5.026ZM29.973,8.138A9.1,9.1,0,0,0,24,6.005a8.947,8.947,0,0,0-4.863,1.4,9.78,9.78,0,0,0-3.457,3.682A7.494,7.494,0,0,0,9,18.512a7.2,7.2,0,0,0,2.2,5.289,7.234,7.234,0,0,0,5.3,2.192H32.727A6.294,6.294,0,0,0,39,19.739,5.933,5.933,0,0,0,37.3,15.5a6.113,6.113,0,0,0-4.1-1.958A9.112,9.112,0,0,0,29.973,8.138Z\"/>
</svg>
</div>
<img id=\"dynamic-image-upload\" ";
// line 90
if ((isset($context["isLogo"]) || array_key_exists("isLogo", $context) ? $context["isLogo"] : (function () { throw new RuntimeError('Variable "isLogo" does not exist.', 90, $this->source); })())) {
yield " src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 90, $this->source); })()), "request", [], "any", false, false, false, 90), "scheme", [], "any", false, false, false, 90) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 90, $this->source); })()), "request", [], "any", false, false, false, 90), "httpHost", [], "any", false, false, false, 90)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 90, $this->source); })()), "logo", [], "any", false, false, false, 90), "html", null, true);
yield "\" ";
}
yield ">
</div>
<div class=\"uv-image-info-brick\">
<span class=\"uv-field-info\">";
// line 94
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Upload an Image (200px x 48px) in</br> PNG or JPG Format");
yield "</span>
</div>
</div>
<span class=\"uv-field-info\">";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("It will be shown as Logo on Knowledgebase and Helpdesk"), "html", null, true);
yield "</span>
</div>
</div>
<!-- //Image block -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">";
// line 104
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Website Status"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<div class=\"uv-checkbox uv-margin-top-5\">
<input type=\"checkbox\" name=\"website[status]\" style=\"cursor:pointer;\" ";
// line 107
yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 107, $this->source); })()), "status", [], "any", false, false, false, 107)) ? ("checked=\"checked\"") : (""));
yield " >
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-field-info uv-margin-top-5\">";
// line 110
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enable front end website and knowledgebase for customer(s)"), "html", null, true);
yield "</span>
</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 118
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Brand Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[brandColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 120
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 120, $this->source); })()), "brandColor", [], "any", false, false, false, 120)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 120, $this->source); })()), "brandColor", [], "any", false, false, false, 120), "html", null, true)) : (yield "#7C70F4"));
yield "\" style=\"background:";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 120, $this->source); })()), "brandColor", [], "any", false, false, false, 120)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 120, $this->source); })()), "brandColor", [], "any", false, false, false, 120), "html", null, true)) : (yield "#7C70F4"));
yield "\" placeholder=\"#7C70F4\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">";
// line 127
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[name]\" class=\"uv-field\" type=\"text\" value=\"";
// line 129
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 129, $this->source); })()), "name", [], "any", false, false, false, 129)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 129, $this->source); })()), "name", [], "any", false, false, false, 129), "html", null, true)) : (yield ""));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">";
// line 136
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Default Language (Optional)"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
<select name=\"defaultLocale\" class=\"uv-select\">
<option value=\"\">";
// line 139
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select default language"), "html", null, true);
yield "</option>
";
// line 140
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 140, $this->source); })()), "getLocalesList", [], "method", false, false, false, 140));
foreach ($context['_seq'] as $context["localeCode"] => $context["localeName"]) {
// line 141
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["localeCode"], "html", null, true);
yield "\" ";
yield ((((isset($context["locales"]) || array_key_exists("locales", $context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.', 141, $this->source); })()) == $context["localeCode"])) ? ("selected='selected'") : (""));
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["localeName"], "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['localeCode'], $context['localeName'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 143
yield " </select>
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn general-btn\" href=\"#\" value=\"";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
\t\t\t\t</form>
\t\t\t\t<!--//Form-->
\t\t\t</div>
\t\t\t<!--//Tab View-->
\t\t\t<!--Tab View-->
<div class=\"uv-tab-view ";
// line 157
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 157, $this->source); })()) == "knowledgebase")) {
yield "uv-tab-view-active";
}
yield "\" id=\"knowledgebase\">
<!--Form-->
\t\t\t\t<form method=\"post\" action=\"";
// line 159
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "knowledgebase"]);
yield "\" id=\"knowledgebaseForm\">
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
<span id=\"uv-reset-colors\" class=\"uv-icon-history\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"";
// line 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Use Default Colors"), "html", null, true);
yield "\"></span>
";
// line 164
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Page Background Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[pageBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 166, $this->source); })()), "pageBackgroundColor", [], "any", false, false, false, 166), "html", null, true);
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 166, $this->source); })()), "pageBackgroundColor", [], "any", false, false, false, 166)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 166, $this->source); })()), "pageBackgroundColor", [], "any", false, false, false, 166), "html", null, true)) : (yield "#FFFFFF"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 174
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Header Background Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[headerBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 176
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 176, $this->source); })()), "headerBackgroundColor", [], "any", false, false, false, 176)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 176, $this->source); })()), "headerBackgroundColor", [], "any", false, false, false, 176), "html", null, true)) : (yield "#FFFFFF"));
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 176, $this->source); })()), "pageBackgroundColor", [], "any", false, false, false, 176)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 176, $this->source); })()), "headerBackgroundColor", [], "any", false, false, false, 176), "html", null, true)) : (yield "#FFFFFF"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 184
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Banner Background Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[bannerBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 186
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 186, $this->source); })()), "bannerBackgroundColor", [], "any", false, false, false, 186)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 186, $this->source); })()), "bannerBackgroundColor", [], "any", false, false, false, 186), "html", null, true)) : (yield "#70B5F4"));
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 186, $this->source); })()), "bannerBackgroundColor", [], "any", false, false, false, 186)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 186, $this->source); })()), "bannerBackgroundColor", [], "any", false, false, false, 186), "html", null, true)) : (yield "#70B5F4"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 194
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Page Link Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[linkColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 196
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 196, $this->source); })()), "linkColor", [], "any", false, false, false, 196)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 196, $this->source); })()), "linkColor", [], "any", false, false, false, 196), "html", null, true)) : (yield "#C427A1"));
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 196, $this->source); })()), "linkColor", [], "any", false, false, false, 196)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 196, $this->source); })()), "linkColor", [], "any", false, false, false, 196), "html", null, true)) : (yield "#C427A1"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 204
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Page Link Hover Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[linkHoverColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 206
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 206, $this->source); })()), "linkHoverColor", [], "any", false, false, false, 206)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 206, $this->source); })()), "linkHoverColor", [], "any", false, false, false, 206), "html", null, true)) : (yield "#2750C4"));
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 206, $this->source); })()), "linkColor", [], "any", false, false, false, 206)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 206, $this->source); })()), "linkHoverColor", [], "any", false, false, false, 206), "html", null, true)) : (yield "#2750C4"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
";
// line 214
yield "\t\t\t\t\t \t<label class=\"uv-field-label\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Article Text Color"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[articleTextColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"";
// line 216
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 216, $this->source); })()), "articleTextColor", [], "any", false, false, false, 216)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 216, $this->source); })()), "articleTextColor", [], "any", false, false, false, 216), "html", null, true)) : (yield "#333333"));
yield "\" style=\"background: ";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 216, $this->source); })()), "linkColor", [], "any", false, false, false, 216)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 216, $this->source); })()), "articleTextColor", [], "any", false, false, false, 216), "html", null, true)) : (yield "#333333"));
yield "\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">";
// line 223
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tag Line"), "html", null, true);
yield "</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[siteDescription]\" class=\"uv-field\" type=\"text\" value=\"";
// line 225
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 225, $this->source); })()), "siteDescription", [], "any", false, false, false, 225)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 225, $this->source); })()), "siteDescription", [], "any", false, false, false, 225), "html", null, true)) : (yield ""));
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Hi! how can we help?"), "html", null, true);
yield " \">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<div class=\"uv-knowledgebase-layout uv-no-error-success-icon\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 232
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Layout "), "html", null, true);
yield "</label>
<div class=\"uv-layout-icon-wrapper\">
<label for=\"homepage-masonry\" class=\"uv-layout-icon uv-layout-grid ";
// line 234
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 234, $this->source); })()), "homepageContent", [], "any", false, false, false, 234) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 234, $this->source); })()), "homepageContent", [], "any", false, false, false, 234) == "masonry"))) {
yield "uv-layout-icon-active";
}
yield "\" data-toggle=\"tooltip\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Masonry"), "html", null, true);
yield "\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-masonry\" value=\"masonry\" ";
// line 235
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 235, $this->source); })()), "homepageContent", [], "any", false, false, false, 235) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 235, $this->source); })()), "homepageContent", [], "any", false, false, false, 235) == "masonry"))) {
yield "checked";
}
yield "/>
<label for=\"homepage-folder\" class=\"uv-layout-icon uv-layout-folder ";
// line 237
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 237, $this->source); })()), "homepageContent", [], "any", false, false, false, 237) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 237, $this->source); })()), "homepageContent", [], "any", false, false, false, 237) == "folder"))) {
yield "uv-layout-icon-active";
}
yield "\" data-toggle=\"tooltip\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Folder"), "html", null, true);
yield "\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-folder\" value=\"folder\" ";
// line 238
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 238, $this->source); })()), "homepageContent", [], "any", false, false, false, 238) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 238, $this->source); })()), "homepageContent", [], "any", false, false, false, 238) == "folder"))) {
yield "checked";
}
yield "/>
<label for=\"homepage-category\" class=\"uv-layout-icon uv-layout-category ";
// line 240
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 240, $this->source); })()), "homepageContent", [], "any", false, false, false, 240) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 240, $this->source); })()), "homepageContent", [], "any", false, false, false, 240) == "category"))) {
yield "uv-layout-icon-active";
}
yield "\" data-toggle=\"tooltip\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Category"), "html", null, true);
yield "\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-category\" value=\"category\" ";
// line 241
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 241, $this->source); })()), "homepageContent", [], "any", false, false, false, 241) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 241, $this->source); })()), "homepageContent", [], "any", false, false, false, 241) == "category"))) {
yield "checked";
}
yield "/>
<label for=\"homepage-article\" class=\"uv-layout-icon uv-layout-article ";
// line 243
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 243, $this->source); })()), "homepageContent", [], "any", false, false, false, 243) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 243, $this->source); })()), "homepageContent", [], "any", false, false, false, 243) == "article"))) {
yield "uv-layout-icon-active";
}
yield "\" data-toggle=\"tooltip\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Popular Article"), "html", null, true);
yield "\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-article\" value=\"article\" ";
// line 244
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 244, $this->source); })()), "homepageContent", [], "any", false, false, false, 244) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 244, $this->source); })()), "homepageContent", [], "any", false, false, false, 244) == "article"))) {
yield "checked";
}
yield "/>
</div>
</div>
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[ticketCreateOption]\" type=\"checkbox\" ";
// line 252
yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 252, $this->source); })()), "ticketCreateOption", [], "any", false, false, false, 252)) ? ("checked=\"checked\"") : (""));
yield " />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">";
// line 255
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ticket Create Option"), "html", null, true);
yield "</span>
</label>
</div>
\t\t\t\t\t <!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[loginRequiredToCreate]\" type=\"checkbox\" ";
// line 264
yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 264, $this->source); })()), "loginRequiredToCreate", [], "any", false, false, false, 264)) ? ("checked=\"checked\"") : (""));
yield "/>
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">";
// line 267
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login Required To Create Tickets"), "html", null, true);
yield "</span>
</label>
</div>
\t\t\t\t\t <!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[removeCustomerLoginButton]\" type=\"checkbox\" value=\"1\" ";
// line 276
yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 276, $this->source); })()), "removeCustomerLoginButton", [], "any", false, false, false, 276)) ? ("checked=\"checked\"") : (""));
yield " />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">";
// line 279
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Remove Customer Login/Signin Button"), "html", null, true);
yield "</span>
</label>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[disableCustomerLogin]\" type=\"checkbox\" value=\"1\" ";
// line 288
yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 288, $this->source); })()), "disableCustomerLogin", [], "any", false, false, false, 288)) ? ("checked=\"checked\"") : (""));
yield " />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">";
// line 291
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Disable Customer Login"), "html", null, true);
yield "</span>
</label>
</div>
<!-- //Field -->
</div>
<!-- CSRF token Field -->
";
// line 299
yield " <!-- //CSRF token Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn knowledgebase-btn\" href=\"#\" value=\"";
// line 302
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
</form>
\t\t\t</div>
\t\t\t<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view ";
// line 309
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 309, $this->source); })()) == "seo")) {
yield "uv-tab-view-active";
}
yield "\" id=\"seo\">
<form method=\"post\" action=\"";
// line 310
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "seo"]);
yield "\" id=\"seoForm\">
\t\t\t\t\t<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 314
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meta Description (Recommended)"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<textarea name=\"metaDescription\" class=\"uv-field\">";
// line 316
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 316, $this->source); })()), "metaDescription", [], "any", false, false, false, 316)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 316, $this->source); })()), "metaDescription", [], "any", false, false, false, 316), "html", null, true)) : (yield ""));
yield "</textarea>
</div>
</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 323
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meta Keywords (Recommended)"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<textarea name=\"metaKeywords\" class=\"uv-field\">";
// line 325
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 325, $this->source); })()), "metaKeywords", [], "any", false, false, false, 325)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 325, $this->source); })()), "metaKeywords", [], "any", false, false, false, 325), "html", null, true)) : (yield ""));
yield "</textarea>
</div>
</div>
\t\t\t\t\t<!-- //Field -->
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"_token\" value=\"\"/>
<!-- //CSRF token Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn seo-btn\" href=\"#\" value=\"";
// line 335
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
</form>
\t\t\t</div>
\t\t\t<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view ";
// line 342
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 342, $this->source); })()) == "links")) {
yield "uv-tab-view-active";
}
yield "\" id=\"links\">
<form method=\"post\" action=\"";
// line 343
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "links"]);
yield "\" id=\"linksForm\" class=\"uv-no-error-success-icon\">
<div class=\"uv-header-link-wrapper\">
<div class=\"links\">
";
// line 347
if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 347, $this->source); })()), "headerLinks", [], "any", false, false, false, 347))) {
// line 348
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 348, $this->source); })()), "headerLinks", [], "any", false, false, false, 348));
foreach ($context['_seq'] as $context["key"] => $context["link"]) {
// line 349
yield " <!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 351
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Header Link"), "html", null, true);
yield " #";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[";
// line 353
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "][label]\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["link"], "label", [], "any", false, false, false, 353), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\"/>
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[";
// line 354
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "][url]\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["link"], "url", [], "any", false, false, false, 354), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['link'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 360
yield " ";
} else {
// line 361
yield " <!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 363
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Header Link"), "html", null, true);
yield " #1</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[1][label]\" placeholder=\"";
// line 365
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\" />
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[1][url]\" placeholder=\"";
// line 366
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
";
}
// line 372
yield " </div>
<a class=\"uv-btn-tag btn-add\" href=\"#\" data-type=\"header\">
<span class=\"uv-icon-add-dark\"></span> ";
// line 375
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add More"), "html", null, true);
yield "
</a>
</div>
<div class=\"uv-footer-link-wrapper\">
<div class=\"links\">
";
// line 381
if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 381, $this->source); })()), "footerLinks", [], "any", false, false, false, 381))) {
// line 382
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 382, $this->source); })()), "footerLinks", [], "any", false, false, false, 382));
foreach ($context['_seq'] as $context["key"] => $context["link"]) {
// line 383
yield " <!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 385
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Footer Link"), "html", null, true);
yield " #";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[";
// line 387
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "][label]\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["link"], "label", [], "any", false, false, false, 387), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\"/>
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[";
// line 388
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "][url]\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["link"], "url", [], "any", false, false, false, 388), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['link'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 394
yield " ";
} else {
// line 395
yield " <!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 397
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Footer Link"), "html", null, true);
yield " #1</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[1][label]\" placeholder=\"";
// line 399
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\" />
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[1][url]\" placeholder=\"";
// line 400
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
";
}
// line 406
yield "
</div>
<a class=\"uv-btn-tag btn-add\" href=\"#\" data-type=\"footer\">
<span class=\"uv-icon-add-dark\"></span> ";
// line 410
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add More"), "html", null, true);
yield "
</a>
</div>
<!--CTA-->
<input class=\"uv-btn links-btn\" style=\"margin-top: 15px;\" href=\"#\" value=\"";
// line 415
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view ";
// line 423
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 423, $this->source); })()) == "advanced")) {
yield "uv-tab-view-active";
}
yield "\" id=\"advanced\">
<form method=\"post\" action=\"";
// line 424
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "advanced"]);
yield "\" id=\"advancedForm\">
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 427
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Custom CSS (Optional)"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<textarea name=\"customCSS\" class=\"uv-field\">";
// line 429
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 429, $this->source); })()), "customCSS", [], "any", false, false, false, 429), "html", null, true);
yield "</textarea>
</div>
<span class=\"uv-field-info\">";
// line 431
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("It will be add to the frontend knowledgebase only"), "html", null, true);
yield "</span>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 437
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Custom Javascript (Optional)"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<textarea name=\"script\" class=\"uv-field\">";
// line 439
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 439, $this->source); })()), "script", [], "any", false, false, false, 439), "html", null, true);
yield "</textarea>
</div>
<span class=\"uv-field-info\">";
// line 441
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("It will be add to the frontend knowledgebase only"), "html", null, true);
yield "</span>
</div>
<!-- //Field -->
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"form[_token]\" value=\"";
// line 446
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 446, $this->source); })()), "generateCsrfToken", ["form"], "method", false, false, false, 446), "html", null, true);
yield "\"/>
<!-- //CSRF token Field -->
<!--CTA-->
<input class=\"uv-btn advanced-btn\" href=\"#\" value=\"";
// line 450
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view ";
// line 457
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 457, $this->source); })()) == "broadcasting")) {
yield "uv-tab-view-active";
}
yield "\" id=\"broadcasting\">
";
// line 459
yield " <form method=\"post\" action=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "broadcasting"]);
yield "\" id=\"broadcastingForm\">
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 462
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Broadcast Message"), "html", null, true);
yield "</label>
<div class=\"uv-field-block\">
<textarea name=\"broadcasting[message]\" class=\"uv-field grammarly-fix-broadcast\">";
// line 464
((CoreExtension::getAttribute($this->env, $this->source, ($context["broadcast"] ?? null), "message", [], "any", true, true, false, 464)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 464, $this->source); })()), "message", [], "any", false, false, false, 464), "html", null, true)) : (yield ""));
yield "</textarea>
</div>
<span class=\"uv-field-info\">";
// line 466
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Broadcast message content to show on helpdesk"), "html", null, true);
yield "</span>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label>";
// line 472
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("From"), "html", null, true);
yield "</label>
<div class=\"uv-field-block date\">
<input type=\"text\" name=\"broadcasting[from]\" class=\"uv-field datetime date-from uv-cal-icon\" value=\"";
// line 474
((CoreExtension::getAttribute($this->env, $this->source, ($context["broadcast"] ?? null), "from", [], "any", true, true, false, 474)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 474, $this->source); })()), "from", [], "any", false, false, false, 474), "html", null, true)) : (yield ""));
yield "\">
</div>
<label>";
// line 476
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("To"), "html", null, true);
yield "</label>
<div class=\"uv-field-block date\">
<input type=\"text\" name=\"broadcasting[to]\" class=\"uv-field datetime date-to uv-cal-icon\" value=\"";
// line 478
((CoreExtension::getAttribute($this->env, $this->source, ($context["broadcast"] ?? null), "to", [], "any", true, true, false, 478)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 478, $this->source); })()), "to", [], "any", false, false, false, 478), "html", null, true)) : (yield ""));
yield "\">
</div>
<span class=\"uv-field-info\">";
// line 480
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Time duration between which message will be displayed(if applicable)"), "html", null, true);
yield "</span>
</div>
<!-- //Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 484
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Broadcasting Status"), "html", null, true);
yield "</label>
<div class=\"uv-element-block\">
<label>
<div class=\"uv-checkbox\">
<input type=\"checkbox\" name=\"broadcasting[isActive]\" value=\"";
// line 488
yield ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 488, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 488, $this->source); })()), "isActive", [], "any", false, false, false, 488))) ? (1) : (0));
yield "\" ";
yield ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 488, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcast"]) || array_key_exists("broadcast", $context) ? $context["broadcast"] : (function () { throw new RuntimeError('Variable "broadcast" does not exist.', 488, $this->source); })()), "isActive", [], "any", false, false, false, 488))) ? ("checked") : (""));
yield ">
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">";
// line 491
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Broadcasting is Active"), "html", null, true);
yield "</span>
</label>
</div>
</div>
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"form[_token]\" value=\"\"/>
<!-- //CSRF token Field -->
<!--CTA-->
<input class=\"uv-btn broadcasting-btn \" href=\"#\" value=\"";
// line 500
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
\t\t\t<div class=\"uv-tab-view ";
// line 507
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 507, $this->source); })()) == "time")) {
yield "uv-tab-view-active";
}
yield "\" id=\"time\">
\t\t\t\t<!--Form-->
\t\t\t\t<form method=\"post\" action=\"";
// line 510
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_knowledgebase_theme", ["type" => "time"]);
yield "\" id=\"timeSettingForm\">
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t\t<label class=\"uv-field-label\">";
// line 513
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Timezone"), "html", null, true);
yield "</label>
\t\t\t\t\t\t<div class=\"uv-field-block\">
\t\t\t\t\t\t <select name=\"form[timezone]\" class=\"uv-select\">
\t\t\t\t\t\t ";
// line 516
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 516, $this->source); })()), "getTimezones", [], "method", false, false, false, 516));
foreach ($context['_seq'] as $context["_key"] => $context["timezone"]) {
// line 517
yield "\t\t\t\t\t\t \t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["timezone"], "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 517, $this->source); })()), "timezone", [], "any", false, false, false, 517) == $context["timezone"])) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["timezone"], "html", null, true);
yield "</option>
\t\t\t\t\t\t \t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['timezone'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 519
yield "\t\t\t\t\t\t </select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<span class=\"uv-field-info\">";
// line 521
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Choose a default company timezone"), "html", null, true);
yield "</span>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t\t<label class=\"uv-field-label\">";
// line 527
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Date Time Format"), "html", null, true);
yield "</label>
\t\t\t\t\t\t<div class=\"uv-field-block\">
\t\t\t\t\t\t <select name=\"form[timeFormat]\" class=\"uv-select\">
\t\t\t\t\t\t ";
// line 530
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 530, $this->source); })()), "getTimeFormats", [], "method", false, false, false, 530));
foreach ($context['_seq'] as $context["key"] => $context["timeFormat"]) {
// line 531
yield "\t\t\t\t\t\t \t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteData"]) || array_key_exists("websiteData", $context) ? $context["websiteData"] : (function () { throw new RuntimeError('Variable "websiteData" does not exist.', 531, $this->source); })()), "timeFormat", [], "any", false, false, false, 531) == $context["key"])) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["timeFormat"], "html", null, true);
yield "</option>
\t\t\t\t\t\t \t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['timeFormat'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 533
yield "\t\t\t\t\t\t </select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<span class=\"uv-field-info\">";
// line 535
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Choose a format to convert date to specified date time format"), "html", null, true);
yield "</span>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn timezone-btn\" href=\"#\" value=\"";
// line 540
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Changes"), "html", null, true);
yield "\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
\t\t\t\t</form>
\t\t\t\t<!--//Form-->
\t\t\t</div>
\t\t\t<!--//Tab View-->
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 551
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 552
yield "\t";
yield from $this->yieldParentBlock("footer", $context, $blocks);
yield "
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.3.0/css/bootstrap-colorpicker.min.css\">
<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.3.0/js/bootstrap-colorpicker.min.js\"></script>
<script>
\t\t\$('.datetime').datetimepicker({
\t\t\tformat: 'YYYY-MM-DD H:mm:ss',
minDate: new Date()
\t\t});
</script>
<!-- Header Link template -->
\t<script id=\"header_link_tmp\" type=\"text/template\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 566
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Header Link"), "html", null, true);
yield " #<%= count %></label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[<%= count %>][label]\" placeholder=\"";
// line 568
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\" />
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[<%= count %>][url]\" placeholder=\"";
// line 569
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
</script>
<!-- //Header Link template -->
<!-- Footer Link template -->
\t<script id=\"footer_link_tmp\" type=\"text/template\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">";
// line 579
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Footer Link"), "html", null, true);
yield " #<%= count %></label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[<%= count %>][label]\" placeholder=\"";
// line 581
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label"), "html", null, true);
yield "\" />
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[<%= count %>][url]\" placeholder=\"";
// line 582
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("URL (with http:// or https://)"), "html", null, true);
yield "\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
</script>
<!-- //Footer Link template -->
\t<script type=\"text/javascript\">
\t\t\$(function () {
\$('.uv-color-field').colorpicker({format: \"hex\"}).on('changeColor', function(ev) {
\$(this).css('background', \$(this).val())
textColor = app.appView.getTextColorBasedBackground(\$(this).val());
\$(this).css('color', textColor)
});
\t\t\tvar BrandingModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t \t'website[name]': {
\t\t\t\t \trequired: true,
\t\t\t\t \tmsg: '";
// line 601
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
yield "'
\t\t\t\t },
\t\t\t \t
'website[favicon]': [{
notEmptyFile: true,
msg: \"";
// line 606
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An empty file is not allowed."), "html", null, true);
yield "\",
}, {
sizeLimit: true,
msg: \"";
// line 609
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("File size must not be greater than 200KB !!"), "html", null, true);
yield "\",
}, {
imageFile: true,
msg: \"";
// line 612
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please upload valid Image file (Only JPEG, JPG, PNG allowed)!!"), "html", null, true);
yield "\",
}
],
'website[logo]': [{
notEmptyFile: true,
msg: \"";
// line 617
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An empty file is not allowed."), "html", null, true);
yield "\",
}, {
sizeLimit: true,
msg: \"";
// line 620
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("File size must not be greater than 200KB !!"), "html", null, true);
yield "\",
}, {
imageFile: true,
msg: \"";
// line 623
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please upload valid Image file (Only JPEG, JPG, PNG allowed)!!"), "html", null, true);
yield "\",
}
],
\t\t\t }
\t\t\t});
_.extend(Backbone.Validation.validators, {
notEmptyFile: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && 0 == file.size) {
return true; //error
}
}
},
sizeLimit: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && file.size/1024 > 200) {
return true; //error
}
}
},
imageFile: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && file.type.indexOf('image/') != 0) {
return true; //error
}
}
}
});
\t\t\tvar BrandingForm = Backbone.View.extend({
\t\t\t events: {
\t\t\t \t'click .general-btn': 'generalBrandingFormSubmit',
\t\t\t 'click .pending-response-btn': 'pendingResponseSettingFormSubmit',
\t\t\t\t\t'click .uv-btn': 'disableButton',
'change input[type=\"file\"]': 'formChanegd',
'change .convertToSlug': 'convertToSlug',
'click .uv-btn-tag.btn-add': 'addMoreLink',
'click .remove-link': 'removeLink',
\"change .uv-knowledgebase-layout input[type='radio']\": 'layoutChanged',
'click #uv-reset-colors': 'resetDefaultColors',
\t\t\t },
resetDefaultColors: function(e) {
var defaultColorArray = {
'pageBackgroundColor': '#FFFFFF',
'headerBackgroundColor': '#FFFFFF',
'bannerBackgroundColor': '#7C70F4',
'linkColor': '#2750C4',
'linkHoverColor': '#2750C4',
'articleTextColor': '#333333',
'brandColor': '#7C70F4',
};
\$(e.target).addClass('uv-icon-history-active');
setTimeout(function () {
\$(e.target).removeClass('uv-icon-history-active');
}, 500);
\$.each(defaultColorArray, function(index, value) {
var selectedField = \$('input[name=\"website['+ index +']\"]');
selectedField.val(value);
selectedField.trigger('changeColor');
});
},
headerLinkTemplate : _.template(\$(\"#header_link_tmp\").html()),
footerLinkTemplate : _.template(\$(\"#footer_link_tmp\").html()),
\t\t\t initialize: function () {
\$('.uv-color-field').each(function() {
textColor = app.appView.getTextColorBasedBackground(\$(this).val());
\$(this).css('color', textColor)
});
\t\t\t Backbone.Validation.bind(this);\t\t
\t\t\t },
\t\t\t formChanegd: function(e) {
if(!Backbone.\$(e.currentTarget).parents('.links').length) {
this.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
this.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
}
\t\t\t },
\t\t\t generalBrandingFormSubmit: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#generalSettingForm').serializeObject());
console.log(\"form_submited fail\");
\t\t\t if(this.model.isValid(true)) {
\t\t\t \$(\"#generalSettingForm\").submit();
\t\t\t }
\t\t\t },
generalBrandingLocalesUpdate: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#generalSettingForm').serializeObject());
console.log(\"form_submited fail\");
\t\t\t if(this.model.isValid(true)) {
\t\$.ajax({
\t\t\t\t\t\t\turl: \"";
// line 724
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("helpdesk_member_knowledgebase_update_locales");
yield "\",
\t\t\t\t\t\t\tmethod: 'POST',
\t\t\t\t\t\t\tdata: \$('#generalSettingForm').serializeObject(),
\t\t\t\t\t\t\tsuccess: function(response) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t\t\twindow.location.reload();
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\terror: function(response) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t\t}
\t\t\t\t\t\t});
\t\t\t }
\t\t\t },
\t\t\t pendingResponseSettingFormSubmit: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#pendingResponseSettingForm').serializeObject());
\t\t\t if(this.model.isValid('website[pendingSince]')) {
\t\t\t\t\t\t\$('.pending-response-btn').attr('disabled', 'disabled');
\t\t\t \$(\"#pendingResponseSettingForm\").submit();
\t\t\t }
\t\t\t },
\t\t\t\tdisableButton: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).parents('form');
\t\t\t\t\tif(form.attr('id') == 'seoForm' || form.attr('id') == 'advancedForm' || form.attr('id') == 'knowledgebaseForm') {
\t\t\t\t\t\tBackbone.\$(e.currentTarget).attr('disabled', 'disabled');
\t\t\t\t\t\tform.submit()
\t\t\t\t\t}
\t\t\t\t},
convertToSlug: function(e) {
Backbone.\$(e.currentTarget).val(app.appView.convertToSlug(Backbone.\$(e.currentTarget).val()));
},
addMoreLink: function(e) {
e.preventDefault();
var currentElement = Backbone.\$(e.currentTarget);
if(currentElement.attr('data-type') == 'header') {
count = \$('.uv-header-link-wrapper .uv-element-block').length + 1;
\$('.uv-header-link-wrapper .links').append(this.headerLinkTemplate({'count' : count}))
} else {
count = \$('.uv-footer-link-wrapper .uv-element-block').length + 1;
\$('.uv-footer-link-wrapper .links').append(this.footerLinkTemplate({'count' : count}))
}
},
removeLink: function(e) {
e.preventDefault()
Backbone.\$(e.currentTarget).parents('.uv-element-block').remove()
},
layoutChanged: function(e) {
var currentElement = Backbone.\$(e.currentTarget);
\$('.uv-layout-icon').removeClass('uv-layout-icon-active');
\$(\"label[for='\" + currentElement.attr('id') + \"']\").addClass('uv-layout-icon-active');
}
\t\t\t});
var brandingForm = new BrandingForm({
\t\t el: 'form',
\t\t model: new BrandingModel()
\t\t });
var BroadcastModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t \t'broadcasting[message]': [{
\t\t\t\t \trequired: true,
\t\t\t\t \tmsg: '";
// line 788
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
yield "'
\t\t\t\t },
{
\t\t\t\t\t\tmaxLength: 300,
\t\t\t\t\t\tmsg: '";
// line 792
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field should contains maximum 300 characters."), "html", null, true);
yield "'
\t\t\t\t\t}],
\t\t\t }
\t\t\t});
\t\t\tvar BroadcastForm = Backbone.View.extend({
el: '#broadcastingForm',
\t\t\t events: {
\t\t\t \t'click .broadcasting-btn': 'broadcastingFormSubmit',
'change textarea': 'formChanged',
\t\t\t },
initialize: function() {
Backbone.Validation.bind(this);
},
\t\t\t formChanged: function(e) {
if(!Backbone.\$(e.currentTarget).parents('.links').length) {
this.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
this.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
}
\t\t\t },
broadcastingFormSubmit: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).closest('form')
if(form.attr('id') == 'broadcastingForm') {
data = form.serializeObject();
this.model.set(data);
if(this.model.isValid(true)) {
Backbone.\$(e.currentTarget).attr('disabled', 'disabled');
form.submit()
}
}
}
\t\t });
var LinksModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t }
\t\t\t});
\t\t\tvar LinksForm = Backbone.View.extend({
el: '#linksForm',
initialize: function() {
Backbone.Validation.bind(this);
},
events: {
'click .links-btn': 'validateLinks',
},
validateLinks: function(e) {
e.preventDefault();
var data = \$('#linksForm').serializeObject();
var self = this; var valid = true;
\$.each(data, function(key, value) {
if(key.indexOf('[url]') != -1 && value && !value.match('^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?\$')) {
\t\t \t\t\tBackbone.Validation.callbacks.invalid(self, key, '";
// line 844
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Provide a valid url(with protocol)"), "html", null, true);
yield "', 'input');
valid = false;
} else {
\t\t \t\t\tBackbone.Validation.callbacks.valid(self, key, '";
// line 847
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Provide a valid url(with protocol)"), "html", null, true);
yield "', 'input');
}
});
if(valid) {
\t\t\t\t\t\t\$('.links-btn').attr('disabled', 'disabled');
\t\t\t \$(\"#linksForm\").submit();
\t\t\t }
},
});
var TimezoneForm = Backbone.View.extend({
el: '#timeSettingForm',
\t\t\t events: {
\t\t\t \t'click .timezone-btn': 'timezoneFormSubmit',
\t\t\t },
timezoneFormSubmit: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).closest('form')
if (form.attr('id') == 'timeSettingForm') {
data = form.serializeObject();
form.submit()
}
}
\t\t });
var time = new TimezoneForm();
var broadcastForm = new BroadcastForm({
model: new BroadcastModel()
});
\t\t\tvar linksForm = new LinksForm({
model: new LinksModel()
});
});
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@UVDeskSupportCenter/Staff/branding.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1571 => 847, 1565 => 844, 1510 => 792, 1503 => 788, 1436 => 724, 1332 => 623, 1326 => 620, 1320 => 617, 1312 => 612, 1306 => 609, 1300 => 606, 1292 => 601, 1270 => 582, 1266 => 581, 1261 => 579, 1248 => 569, 1244 => 568, 1239 => 566, 1221 => 552, 1211 => 551, 1190 => 540, 1182 => 535, 1178 => 533, 1163 => 531, 1159 => 530, 1153 => 527, 1144 => 521, 1140 => 519, 1125 => 517, 1121 => 516, 1115 => 513, 1109 => 510, 1101 => 507, 1091 => 500, 1079 => 491, 1071 => 488, 1064 => 484, 1057 => 480, 1052 => 478, 1047 => 476, 1042 => 474, 1037 => 472, 1028 => 466, 1023 => 464, 1018 => 462, 1011 => 459, 1005 => 457, 995 => 450, 988 => 446, 980 => 441, 975 => 439, 970 => 437, 961 => 431, 956 => 429, 951 => 427, 945 => 424, 939 => 423, 928 => 415, 920 => 410, 914 => 406, 905 => 400, 901 => 399, 896 => 397, 892 => 395, 889 => 394, 873 => 388, 865 => 387, 858 => 385, 854 => 383, 849 => 382, 847 => 381, 838 => 375, 833 => 372, 824 => 366, 820 => 365, 815 => 363, 811 => 361, 808 => 360, 792 => 354, 784 => 353, 777 => 351, 773 => 349, 768 => 348, 766 => 347, 759 => 343, 753 => 342, 743 => 335, 730 => 325, 725 => 323, 715 => 316, 710 => 314, 703 => 310, 697 => 309, 687 => 302, 682 => 299, 672 => 291, 666 => 288, 654 => 279, 648 => 276, 636 => 267, 630 => 264, 618 => 255, 612 => 252, 599 => 244, 591 => 243, 584 => 241, 576 => 240, 569 => 238, 561 => 237, 554 => 235, 546 => 234, 541 => 232, 529 => 225, 524 => 223, 512 => 216, 506 => 214, 494 => 206, 488 => 204, 476 => 196, 470 => 194, 458 => 186, 452 => 184, 440 => 176, 434 => 174, 422 => 166, 416 => 164, 412 => 162, 406 => 159, 399 => 157, 388 => 149, 380 => 143, 367 => 141, 363 => 140, 359 => 139, 353 => 136, 343 => 129, 338 => 127, 326 => 120, 320 => 118, 310 => 110, 304 => 107, 298 => 104, 288 => 97, 282 => 94, 270 => 90, 253 => 83, 251 => 82, 246 => 80, 239 => 76, 232 => 74, 219 => 68, 211 => 67, 203 => 66, 195 => 65, 187 => 64, 179 => 63, 171 => 62, 164 => 58, 158 => 57, 153 => 55, 150 => 54, 147 => 53, 144 => 52, 99 => 8, 89 => 7, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"@UVDeskCoreFramework//Templates//layout.html.twig\" %}
{% block title %}
\t{{ 'Branding'|trans }}
{% endblock %}
{% block pageContent %}
<style>
.uv-image-upload-brick {
margin: 10px 0px;
}
.uv-color-field {
color: #fff;
width: 100px;
text-transform: uppercase;
}
.uv-header-link-wrapper {
padding-bottom: 20px;
}
.uv-footer-link-wrapper {
border-top: solid 1px #D3D3D3;
padding-top: 20px;
}
.uv-knowledgebase-layout {
border-top: solid 1px #D3D3D3;
padding-top: 20px;
margin-top: 20px;
}
.uv-knowledgebase-layout input[type='radio'] {
display: none;
}
#links .uv-field-block input:first-child {
width: 200px;
margin-bottom: 0;
}
#links .remove-link {
margin-left: 10px;
}
\t\t.grammarly-fix-broadcast {
\t\t\tmax-width: 518px;
\t\t}
#uv-reset-colors {
float: right;
cursor: pointer;
position: relative;
z-index:1 ;
}
</style>
\t<div class=\"uv-inner-section\">\t\t
\t\t{# Append Panel Aside #}
\t\t{% set asideTemplate = 'Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\Dashboard\\\\AsideTemplate' %}
\t\t{% set asideSidebarReference = 'Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\UIComponents\\\\Dashboard\\\\Panel\\\\Sidebars\\\\Branding' %}
\t\t{{ uvdesk_extensibles.getRegisteredComponent(asideTemplate).renderSidebar(asideSidebarReference) | raw }}
\t\t<div class=\"uv-view {% if app.request.cookies and app.request.cookies.get('uv-asideView') %}uv-aside-view{% endif %}\">
\t\t\t<h1>{{ 'Branding'|trans }}</h1>
\t\t\t<!--Tabs-->
\t\t\t<div class=\"uv-tabs\">
\t\t\t\t<ul>
\t\t\t\t\t<li for=\"general\" {% if type == 'general' or type == '' %}class=\"uv-tab-active\"{% endif %}>{{ 'General'|trans }}</li>
\t\t\t\t\t<li for=\"knowledgebase\" {% if type == 'knowledgebase' %} class=\"uv-tab-active\"{% endif %}>{{ 'Knowledgebase'|trans }}</li>
<li for=\"time\" {% if type == 'time' %}class=\"uv-tab-active\"{% endif %}>{{ 'Time'|trans }}</li>
\t\t\t\t\t<li for=\"seo\" {% if type == 'seo' %}class=\"uv-tab-active\"{% endif %}>{{ 'SEO'|trans }}</li>
\t\t\t\t\t<li for=\"links\" {% if type == 'links' %}class=\"uv-tab-active\"{% endif %}>{{ 'Links'|trans }}</li>
<li for=\"advanced\" {% if type == 'advanced' %}class=\"uv-tab-active\"{% endif %}>{{ 'Advanced'|trans }}</li>
\t\t\t\t\t<li for=\"broadcasting\" {% if type == 'broadcasting' %}class=\"uv-tab-active\"{% endif %}>{{ 'Broadcast Message'|trans }}</li>
\t\t\t\t</ul>
\t\t\t</div>
\t\t\t<!--Tabs-->
\t\t\t<!--Tab View-->
\t\t\t<div class=\"uv-tab-view {% if type == 'general' or type == '' %}uv-tab-view-active{% endif %}\" id=\"general\">
\t\t\t\t<!--Form-->
\t\t\t\t<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'general'}) }}\" id=\"generalSettingForm\" enctype=\"multipart/form-data\">
<!-- Image block -->
<div class=\"uv-image-upload-wrapper uv-no-error-success-icon\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Wide Logo'|trans }}</label>
<div class=\"uv-field-block\">
{% set isLogo = websiteData.logo ? 1 : 0 %}
<div class=\"uv-image-upload-brick uv-image-upload-brick-200 {% if isLogo %}uv-on-drop-shadow{% endif %}\" {% if isLogo %}style=\"border-color: transparent;\"{% endif %}>
<input type=\"file\" name=\"website[logo]\" id=\"uv-upload-profile\" accept=\"image/*\">
<div class=\"uv-image-upload-placeholder\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"32\" viewBox=\"0 0 48 32\">
<path fill=\"#7c74f1\" fill-rule=\"evenodd\" d=\"M26.516,22.252H21.477V17.226h-3.75L24,11.031l6.269,6.195h-3.75v5.026ZM29.973,8.138A9.1,9.1,0,0,0,24,6.005a8.947,8.947,0,0,0-4.863,1.4,9.78,9.78,0,0,0-3.457,3.682A7.494,7.494,0,0,0,9,18.512a7.2,7.2,0,0,0,2.2,5.289,7.234,7.234,0,0,0,5.3,2.192H32.727A6.294,6.294,0,0,0,39,19.739,5.933,5.933,0,0,0,37.3,15.5a6.113,6.113,0,0,0-4.1-1.958A9.112,9.112,0,0,0,29.973,8.138Z\"/>
</svg>
</div>
<img id=\"dynamic-image-upload\" {% if isLogo %} src=\"{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') }}{{ websiteData.logo }}\" {% endif %}>
</div>
<div class=\"uv-image-info-brick\">
<span class=\"uv-field-info\">{{ 'Upload an Image (200px x 48px) in</br> PNG or JPG Format'|trans|raw }}</span>
</div>
</div>
<span class=\"uv-field-info\">{{ 'It will be shown as Logo on Knowledgebase and Helpdesk'|trans }}</span>
</div>
</div>
<!-- //Image block -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Website Status'|trans }}</label>
<div class=\"uv-field-block\">
<div class=\"uv-checkbox uv-margin-top-5\">
<input type=\"checkbox\" name=\"website[status]\" style=\"cursor:pointer;\" {{ configuration.status ? 'checked=\"checked\"' : '' }} >
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-field-info uv-margin-top-5\">{{ 'Enable front end website and knowledgebase for customer(s)'|trans }}</span>
</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Brand Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[brandColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.brandColor ? configuration.brandColor : '#7C70F4'}}\" style=\"background:{{ configuration.brandColor ? configuration.brandColor : '#7C70F4'}}\" placeholder=\"#7C70F4\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Name'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[name]\" class=\"uv-field\" type=\"text\" value=\"{{ websiteData.name ? websiteData.name : '' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Default Language (Optional)'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
<select name=\"defaultLocale\" class=\"uv-select\">
<option value=\"\">{{ 'Select default language'|trans }}</option>
{% for localeCode, localeName in uvdesk_service.getLocalesList() %}
<option value=\"{{localeCode}}\" {{ locales == localeCode ? \"selected='selected'\" : ''}}>{{ localeName }}</option>
{% endfor %}
</select>
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn general-btn\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
\t\t\t\t</form>
\t\t\t\t<!--//Form-->
\t\t\t</div>
\t\t\t<!--//Tab View-->
\t\t\t<!--Tab View-->
<div class=\"uv-tab-view {% if type == 'knowledgebase' %}uv-tab-view-active{% endif %}\" id=\"knowledgebase\">
<!--Form-->
\t\t\t\t<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'knowledgebase'}) }}\" id=\"knowledgebaseForm\">
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
<span id=\"uv-reset-colors\" class=\"uv-icon-history\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"{{ 'Use Default Colors'|trans }}\"></span>
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Page Background Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[pageBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.pageBackgroundColor}}\" style=\"background: {{ configuration.pageBackgroundColor ? configuration.pageBackgroundColor : '#FFFFFF' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Header Background Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[headerBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.headerBackgroundColor ? configuration.headerBackgroundColor : '#FFFFFF' }}\" style=\"background: {{ configuration.pageBackgroundColor ? configuration.headerBackgroundColor : '#FFFFFF' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Banner Background Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[bannerBackgroundColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.bannerBackgroundColor ? configuration.bannerBackgroundColor : '#70B5F4' }}\" style=\"background: {{ configuration.bannerBackgroundColor ? configuration.bannerBackgroundColor : '#70B5F4' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Page Link Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[linkColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.linkColor ? configuration.linkColor : '#C427A1' }}\" style=\"background: {{ configuration.linkColor ? configuration.linkColor : '#C427A1' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Page Link Hover Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[linkHoverColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.linkHoverColor ? configuration.linkHoverColor : '#2750C4' }}\" style=\"background: {{ configuration.linkColor ? configuration.linkHoverColor : '#2750C4' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
{##564DA8#}
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Article Text Color'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[articleTextColor]\" class=\"uv-field uv-color-field\" type=\"text\" value=\"{{ configuration.articleTextColor ? configuration.articleTextColor : '#333333' }}\" style=\"background: {{ configuration.linkColor ? configuration.articleTextColor : '#333333' }}\">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t \t<label class=\"uv-field-label\">{{ 'Tag Line'|trans }}</label>
\t\t\t\t\t \t<div class=\"uv-field-block\">
\t\t\t\t\t \t<input name=\"website[siteDescription]\" class=\"uv-field\" type=\"text\" value=\"{{ configuration.siteDescription ? configuration.siteDescription : '' }}\" placeholder=\"{{ 'Hi! how can we help?'|trans }} \">
\t\t\t\t\t \t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
<div class=\"uv-knowledgebase-layout uv-no-error-success-icon\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Layout '|trans }}</label>
<div class=\"uv-layout-icon-wrapper\">
<label for=\"homepage-masonry\" class=\"uv-layout-icon uv-layout-grid {% if configuration.homepageContent and configuration.homepageContent == 'masonry' %}uv-layout-icon-active{% endif %}\" data-toggle=\"tooltip\" title=\"{{ 'Masonry'|trans }}\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-masonry\" value=\"masonry\" {% if configuration.homepageContent and configuration.homepageContent == 'masonry' %}checked{% endif %}/>
<label for=\"homepage-folder\" class=\"uv-layout-icon uv-layout-folder {% if configuration.homepageContent and configuration.homepageContent == 'folder' %}uv-layout-icon-active{% endif %}\" data-toggle=\"tooltip\" title=\"{{ 'Folder'|trans }}\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-folder\" value=\"folder\" {% if configuration.homepageContent and configuration.homepageContent == 'folder' %}checked{% endif %}/>
<label for=\"homepage-category\" class=\"uv-layout-icon uv-layout-category {% if configuration.homepageContent and configuration.homepageContent == 'category' %}uv-layout-icon-active{% endif %}\" data-toggle=\"tooltip\" title=\"{{ 'Category'|trans }}\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-category\" value=\"category\" {% if configuration.homepageContent and configuration.homepageContent == 'category' %}checked{% endif %}/>
<label for=\"homepage-article\" class=\"uv-layout-icon uv-layout-article {% if configuration.homepageContent and configuration.homepageContent == 'article' %}uv-layout-icon-active{% endif %}\" data-toggle=\"tooltip\" title=\"{{ 'Popular Article'|trans }}\"></label>
<input name=\"website[homepageContent]\" type=\"radio\" id=\"homepage-article\" value=\"article\" {% if configuration.homepageContent and configuration.homepageContent == 'article' %}checked{% endif %}/>
</div>
</div>
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[ticketCreateOption]\" type=\"checkbox\" {{ configuration.ticketCreateOption ? 'checked=\"checked\"':\"\"}} />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">{{ 'Ticket Create Option'|trans }}</span>
</label>
</div>
\t\t\t\t\t <!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[loginRequiredToCreate]\" type=\"checkbox\" {{ configuration.loginRequiredToCreate ? 'checked=\"checked\"':\"\"}}/>
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">{{ 'Login Required To Create Tickets'|trans }}</span>
</label>
</div>
\t\t\t\t\t <!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[removeCustomerLoginButton]\" type=\"checkbox\" value=\"1\" {{ configuration.removeCustomerLoginButton ? 'checked=\"checked\"':\"\"}} />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">{{ 'Remove Customer Login/Signin Button'|trans }}</span>
</label>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\" style=\"margin: 20px 0\">
<label>
<div class=\"uv-checkbox\">
<input name=\"website[disableCustomerLogin]\" type=\"checkbox\" value=\"1\" {{ configuration.disableCustomerLogin ? 'checked=\"checked\"':\"\"}} />
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">{{ 'Disable Customer Login'|trans }}</span>
</label>
</div>
<!-- //Field -->
</div>
<!-- CSRF token Field -->
{# <input type=\"hidden\" name=\"website[_token]\" value=\"{{ uvdesk_service.generateCsrfToken('website') }}\"/> #}
<!-- //CSRF token Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn knowledgebase-btn\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
</form>
\t\t\t</div>
\t\t\t<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view {% if type == 'seo' %}uv-tab-view-active{% endif %}\" id=\"seo\">
<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'seo'}) }}\" id=\"seoForm\">
\t\t\t\t\t<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Meta Description (Recommended)'|trans }}</label>
<div class=\"uv-field-block\">
<textarea name=\"metaDescription\" class=\"uv-field\">{{configuration.metaDescription ? configuration.metaDescription : \"\" }}</textarea>
</div>
</div>
\t\t\t\t\t<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Meta Keywords (Recommended)'|trans }}</label>
<div class=\"uv-field-block\">
<textarea name=\"metaKeywords\" class=\"uv-field\">{{ configuration.metaKeywords ? configuration.metaKeywords : \"\" }}</textarea>
</div>
</div>
\t\t\t\t\t<!-- //Field -->
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"_token\" value=\"\"/>
<!-- //CSRF token Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn seo-btn\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
</form>
\t\t\t</div>
\t\t\t<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view {% if type == 'links' %}uv-tab-view-active{% endif %}\" id=\"links\">
<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'links'}) }}\" id=\"linksForm\" class=\"uv-no-error-success-icon\">
<div class=\"uv-header-link-wrapper\">
<div class=\"links\">
{% if configuration.headerLinks|length %}
{% for key, link in configuration.headerLinks %}
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Header Link'|trans }} #{{key}}</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[{{key}}][label]\" value=\"{{ link.label }}\" placeholder=\"{{ 'Label'|trans }}\"/>
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[{{key}}][url]\" value=\"{{ link.url }}\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
{% endfor %}
{% else %}
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Header Link'|trans }} #1</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[1][label]\" placeholder=\"{{ 'Label'|trans }}\" />
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[1][url]\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
{% endif %}
</div>
<a class=\"uv-btn-tag btn-add\" href=\"#\" data-type=\"header\">
<span class=\"uv-icon-add-dark\"></span> {{ 'Add More'|trans }}
</a>
</div>
<div class=\"uv-footer-link-wrapper\">
<div class=\"links\">
{% if configuration.footerLinks|length %}
{% for key, link in configuration.footerLinks %}
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Footer Link'|trans }} #{{key}}</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[{{key}}][label]\" value=\"{{ link.label }}\" placeholder=\"{{ 'Label'|trans }}\"/>
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[{{key}}][url]\" value=\"{{ link.url }}\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
{% endfor %}
{% else %}
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Footer Link'|trans }} #1</label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[1][label]\" placeholder=\"{{ 'Label'|trans }}\" />
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[1][url]\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
<!-- //Field -->
{% endif %}
</div>
<a class=\"uv-btn-tag btn-add\" href=\"#\" data-type=\"footer\">
<span class=\"uv-icon-add-dark\"></span> {{ 'Add More'|trans }}
</a>
</div>
<!--CTA-->
<input class=\"uv-btn links-btn\" style=\"margin-top: 15px;\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view {% if type == 'advanced' %}uv-tab-view-active{% endif %}\" id=\"advanced\">
<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'advanced'}) }}\" id=\"advancedForm\">
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Custom CSS (Optional)'|trans }}</label>
<div class=\"uv-field-block\">
<textarea name=\"customCSS\" class=\"uv-field\">{{ configuration.customCSS }}</textarea>
</div>
<span class=\"uv-field-info\">{{ 'It will be add to the frontend knowledgebase only'|trans }}</span>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Custom Javascript (Optional)'|trans }}</label>
<div class=\"uv-field-block\">
<textarea name=\"script\" class=\"uv-field\">{{ configuration.script }}</textarea>
</div>
<span class=\"uv-field-info\">{{ 'It will be add to the frontend knowledgebase only'|trans }}</span>
</div>
<!-- //Field -->
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"form[_token]\" value=\"{{ uvdesk_service.generateCsrfToken('form') }}\"/>
<!-- //CSRF token Field -->
<!--CTA-->
<input class=\"uv-btn advanced-btn\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
<div class=\"uv-tab-view {% if type == 'broadcasting' %}uv-tab-view-active{% endif %}\" id=\"broadcasting\">
{# {% set broadcastMessage = website.broadcastMessage|json_decode %} #}
<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'broadcasting'}) }}\" id=\"broadcastingForm\">
<!-- Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Broadcast Message'|trans }}</label>
<div class=\"uv-field-block\">
<textarea name=\"broadcasting[message]\" class=\"uv-field grammarly-fix-broadcast\">{{ broadcast.message is defined ? broadcast.message : '' }}</textarea>
</div>
<span class=\"uv-field-info\">{{ 'Broadcast message content to show on helpdesk'|trans }}</span>
</div>
<!-- //Field -->
<!-- Field -->
<div class=\"uv-element-block\">
<label>{{ 'From'|trans }}</label>
<div class=\"uv-field-block date\">
<input type=\"text\" name=\"broadcasting[from]\" class=\"uv-field datetime date-from uv-cal-icon\" value=\"{{ broadcast.from is defined ? broadcast.from : '' }}\">
</div>
<label>{{ 'To'|trans }}</label>
<div class=\"uv-field-block date\">
<input type=\"text\" name=\"broadcasting[to]\" class=\"uv-field datetime date-to uv-cal-icon\" value=\"{{ broadcast.to is defined ? broadcast.to : '' }}\">
</div>
<span class=\"uv-field-info\">{{ 'Time duration between which message will be displayed(if applicable)'|trans }}</span>
</div>
<!-- //Field -->
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{'Broadcasting Status'|trans}}</label>
<div class=\"uv-element-block\">
<label>
<div class=\"uv-checkbox\">
<input type=\"checkbox\" name=\"broadcasting[isActive]\" value=\"{{ broadcast is not empty and broadcast.isActive ? 1 : 0 }}\" {{ broadcast is not empty and broadcast.isActive ? 'checked' : '' }}>
<span class=\"uv-checkbox-view\"></span>
</div>
<span class=\"uv-checkbox-label\">{{'Broadcasting is Active'|trans}}</span>
</label>
</div>
</div>
<!-- CSRF token Field -->
<input type=\"hidden\" name=\"form[_token]\" value=\"\"/>
<!-- //CSRF token Field -->
<!--CTA-->
<input class=\"uv-btn broadcasting-btn \" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
<!--//CTA-->
</form>
</div>
<!--//Tab View-->
<!--Tab View-->
\t\t\t<div class=\"uv-tab-view {% if type == 'time' %}uv-tab-view-active{% endif %}\" id=\"time\">
\t\t\t\t<!--Form-->
\t\t\t\t<form method=\"post\" action=\"{{ path('helpdesk_member_knowledgebase_theme', {'type': 'time'}) }}\" id=\"timeSettingForm\">
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t\t<label class=\"uv-field-label\">{{ 'Timezone'|trans }}</label>
\t\t\t\t\t\t<div class=\"uv-field-block\">
\t\t\t\t\t\t <select name=\"form[timezone]\" class=\"uv-select\">
\t\t\t\t\t\t {% for timezone in uvdesk_service.getTimezones() %}
\t\t\t\t\t\t \t<option value=\"{{ timezone }}\" {% if websiteData.timezone == timezone %}selected{% endif %}>{{ timezone }}</option>
\t\t\t\t\t\t \t{% endfor %}
\t\t\t\t\t\t </select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<span class=\"uv-field-info\">{{ \"Choose a default company timezone\"|trans }}</span>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!-- Field -->
\t\t\t\t\t<div class=\"uv-element-block\">
\t\t\t\t\t\t<label class=\"uv-field-label\">{{ 'Date Time Format'|trans }}</label>
\t\t\t\t\t\t<div class=\"uv-field-block\">
\t\t\t\t\t\t <select name=\"form[timeFormat]\" class=\"uv-select\">
\t\t\t\t\t\t {% for key, timeFormat in uvdesk_service.getTimeFormats() %}
\t\t\t\t\t\t \t<option value=\"{{ key }}\" {% if websiteData.timeFormat == key %}selected{% endif %}>{{ timeFormat }}</option>
\t\t\t\t\t\t \t{% endfor %}
\t\t\t\t\t\t </select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Choose a format to convert date to specified date time format'|trans }}</span>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- //Field -->
\t\t\t\t\t<!--CTA-->
\t\t\t\t\t<input class=\"uv-btn timezone-btn\" href=\"#\" value=\"{{ 'Save Changes'|trans }}\" type=\"button\">
\t\t\t\t\t<!--//CTA-->
\t\t\t\t</form>
\t\t\t\t<!--//Form-->
\t\t\t</div>
\t\t\t<!--//Tab View-->
\t\t</div>
\t</div>
{% endblock %}
{% block footer %}
\t{{ parent() }}
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.3.0/css/bootstrap-colorpicker.min.css\">
<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.3.0/js/bootstrap-colorpicker.min.js\"></script>
<script>
\t\t\$('.datetime').datetimepicker({
\t\t\tformat: 'YYYY-MM-DD H:mm:ss',
minDate: new Date()
\t\t});
</script>
<!-- Header Link template -->
\t<script id=\"header_link_tmp\" type=\"text/template\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Header Link'|trans }} #<%= count %></label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[<%= count %>][label]\" placeholder=\"{{ 'Label'|trans }}\" />
<input type=\"text\" class=\"uv-field\" name=\"headerLinks[<%= count %>][url]\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
</script>
<!-- //Header Link template -->
<!-- Footer Link template -->
\t<script id=\"footer_link_tmp\" type=\"text/template\">
<div class=\"uv-element-block\">
<label class=\"uv-field-label\">{{ 'Footer Link'|trans }} #<%= count %></label>
<div class=\"uv-field-block\">
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[<%= count %>][label]\" placeholder=\"{{ 'Label'|trans }}\" />
<input type=\"text\" class=\"uv-field\" name=\"footerLinks[<%= count %>][url]\" placeholder=\"{{ 'URL (with http:// or https://)'|trans }}\" />
<a class=\"uv-btn-tag remove-link\" href=\"#\"><span class=\"uv-icon-remove-dark-box\"></span></a>
</div>
</div>
</script>
<!-- //Footer Link template -->
\t<script type=\"text/javascript\">
\t\t\$(function () {
\$('.uv-color-field').colorpicker({format: \"hex\"}).on('changeColor', function(ev) {
\$(this).css('background', \$(this).val())
textColor = app.appView.getTextColorBasedBackground(\$(this).val());
\$(this).css('color', textColor)
});
\t\t\tvar BrandingModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t \t'website[name]': {
\t\t\t\t \trequired: true,
\t\t\t\t \tmsg: '{{ \"This field is mandatory\"|trans }}'
\t\t\t\t },
\t\t\t \t
'website[favicon]': [{
notEmptyFile: true,
msg: \"{{ 'An empty file is not allowed.'|trans }}\",
}, {
sizeLimit: true,
msg: \"{{ 'File size must not be greater than 200KB !!'|trans }}\",
}, {
imageFile: true,
msg: \"{{ 'Please upload valid Image file (Only JPEG, JPG, PNG allowed)!!'|trans }}\",
}
],
'website[logo]': [{
notEmptyFile: true,
msg: \"{{ 'An empty file is not allowed.'|trans }}\",
}, {
sizeLimit: true,
msg: \"{{ 'File size must not be greater than 200KB !!'|trans }}\",
}, {
imageFile: true,
msg: \"{{ 'Please upload valid Image file (Only JPEG, JPG, PNG allowed)!!'|trans }}\",
}
],
\t\t\t }
\t\t\t});
_.extend(Backbone.Validation.validators, {
notEmptyFile: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && 0 == file.size) {
return true; //error
}
}
},
sizeLimit: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && file.size/1024 > 200) {
return true; //error
}
}
},
imageFile: function(value, attr) {
var field = \$('input[name=\"' + attr + '\"]');
if(field.length && field[0].files && field[0].files.length ) {
var file = field[0].files[0];
if(file && file.type.indexOf('image/') != 0) {
return true; //error
}
}
}
});
\t\t\tvar BrandingForm = Backbone.View.extend({
\t\t\t events: {
\t\t\t \t'click .general-btn': 'generalBrandingFormSubmit',
\t\t\t 'click .pending-response-btn': 'pendingResponseSettingFormSubmit',
\t\t\t\t\t'click .uv-btn': 'disableButton',
'change input[type=\"file\"]': 'formChanegd',
'change .convertToSlug': 'convertToSlug',
'click .uv-btn-tag.btn-add': 'addMoreLink',
'click .remove-link': 'removeLink',
\"change .uv-knowledgebase-layout input[type='radio']\": 'layoutChanged',
'click #uv-reset-colors': 'resetDefaultColors',
\t\t\t },
resetDefaultColors: function(e) {
var defaultColorArray = {
'pageBackgroundColor': '#FFFFFF',
'headerBackgroundColor': '#FFFFFF',
'bannerBackgroundColor': '#7C70F4',
'linkColor': '#2750C4',
'linkHoverColor': '#2750C4',
'articleTextColor': '#333333',
'brandColor': '#7C70F4',
};
\$(e.target).addClass('uv-icon-history-active');
setTimeout(function () {
\$(e.target).removeClass('uv-icon-history-active');
}, 500);
\$.each(defaultColorArray, function(index, value) {
var selectedField = \$('input[name=\"website['+ index +']\"]');
selectedField.val(value);
selectedField.trigger('changeColor');
});
},
headerLinkTemplate : _.template(\$(\"#header_link_tmp\").html()),
footerLinkTemplate : _.template(\$(\"#footer_link_tmp\").html()),
\t\t\t initialize: function () {
\$('.uv-color-field').each(function() {
textColor = app.appView.getTextColorBasedBackground(\$(this).val());
\$(this).css('color', textColor)
});
\t\t\t Backbone.Validation.bind(this);\t\t
\t\t\t },
\t\t\t formChanegd: function(e) {
if(!Backbone.\$(e.currentTarget).parents('.links').length) {
this.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
this.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
}
\t\t\t },
\t\t\t generalBrandingFormSubmit: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#generalSettingForm').serializeObject());
console.log(\"form_submited fail\");
\t\t\t if(this.model.isValid(true)) {
\t\t\t \$(\"#generalSettingForm\").submit();
\t\t\t }
\t\t\t },
generalBrandingLocalesUpdate: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#generalSettingForm').serializeObject());
console.log(\"form_submited fail\");
\t\t\t if(this.model.isValid(true)) {
\t\$.ajax({
\t\t\t\t\t\t\turl: \"{{ url('helpdesk_member_knowledgebase_update_locales') }}\",
\t\t\t\t\t\t\tmethod: 'POST',
\t\t\t\t\t\t\tdata: \$('#generalSettingForm').serializeObject(),
\t\t\t\t\t\t\tsuccess: function(response) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t\t\twindow.location.reload();
\t\t\t\t\t\t\t},
\t\t\t\t\t\t\terror: function(response) {
\t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
\t\t\t\t\t\t\t}
\t\t\t\t\t\t});
\t\t\t }
\t\t\t },
\t\t\t pendingResponseSettingFormSubmit: function (e) {
\t\t\t e.preventDefault();
\t\t\t this.model.set(\$('#pendingResponseSettingForm').serializeObject());
\t\t\t if(this.model.isValid('website[pendingSince]')) {
\t\t\t\t\t\t\$('.pending-response-btn').attr('disabled', 'disabled');
\t\t\t \$(\"#pendingResponseSettingForm\").submit();
\t\t\t }
\t\t\t },
\t\t\t\tdisableButton: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).parents('form');
\t\t\t\t\tif(form.attr('id') == 'seoForm' || form.attr('id') == 'advancedForm' || form.attr('id') == 'knowledgebaseForm') {
\t\t\t\t\t\tBackbone.\$(e.currentTarget).attr('disabled', 'disabled');
\t\t\t\t\t\tform.submit()
\t\t\t\t\t}
\t\t\t\t},
convertToSlug: function(e) {
Backbone.\$(e.currentTarget).val(app.appView.convertToSlug(Backbone.\$(e.currentTarget).val()));
},
addMoreLink: function(e) {
e.preventDefault();
var currentElement = Backbone.\$(e.currentTarget);
if(currentElement.attr('data-type') == 'header') {
count = \$('.uv-header-link-wrapper .uv-element-block').length + 1;
\$('.uv-header-link-wrapper .links').append(this.headerLinkTemplate({'count' : count}))
} else {
count = \$('.uv-footer-link-wrapper .uv-element-block').length + 1;
\$('.uv-footer-link-wrapper .links').append(this.footerLinkTemplate({'count' : count}))
}
},
removeLink: function(e) {
e.preventDefault()
Backbone.\$(e.currentTarget).parents('.uv-element-block').remove()
},
layoutChanged: function(e) {
var currentElement = Backbone.\$(e.currentTarget);
\$('.uv-layout-icon').removeClass('uv-layout-icon-active');
\$(\"label[for='\" + currentElement.attr('id') + \"']\").addClass('uv-layout-icon-active');
}
\t\t\t});
var brandingForm = new BrandingForm({
\t\t el: 'form',
\t\t model: new BrandingModel()
\t\t });
var BroadcastModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t \t'broadcasting[message]': [{
\t\t\t\t \trequired: true,
\t\t\t\t \tmsg: '{{ \"This field is mandatory\"|trans }}'
\t\t\t\t },
{
\t\t\t\t\t\tmaxLength: 300,
\t\t\t\t\t\tmsg: '{{ \"This field should contains maximum 300 characters.\"|trans }}'
\t\t\t\t\t}],
\t\t\t }
\t\t\t});
\t\t\tvar BroadcastForm = Backbone.View.extend({
el: '#broadcastingForm',
\t\t\t events: {
\t\t\t \t'click .broadcasting-btn': 'broadcastingFormSubmit',
'change textarea': 'formChanged',
\t\t\t },
initialize: function() {
Backbone.Validation.bind(this);
},
\t\t\t formChanged: function(e) {
if(!Backbone.\$(e.currentTarget).parents('.links').length) {
this.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
this.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
}
\t\t\t },
broadcastingFormSubmit: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).closest('form')
if(form.attr('id') == 'broadcastingForm') {
data = form.serializeObject();
this.model.set(data);
if(this.model.isValid(true)) {
Backbone.\$(e.currentTarget).attr('disabled', 'disabled');
form.submit()
}
}
}
\t\t });
var LinksModel = Backbone.Model.extend({
\t\t\t validation: {
\t\t\t }
\t\t\t});
\t\t\tvar LinksForm = Backbone.View.extend({
el: '#linksForm',
initialize: function() {
Backbone.Validation.bind(this);
},
events: {
'click .links-btn': 'validateLinks',
},
validateLinks: function(e) {
e.preventDefault();
var data = \$('#linksForm').serializeObject();
var self = this; var valid = true;
\$.each(data, function(key, value) {
if(key.indexOf('[url]') != -1 && value && !value.match('^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?\$')) {
\t\t \t\t\tBackbone.Validation.callbacks.invalid(self, key, '{{ \"Provide a valid url(with protocol)\"|trans }}', 'input');
valid = false;
} else {
\t\t \t\t\tBackbone.Validation.callbacks.valid(self, key, '{{ \"Provide a valid url(with protocol)\"|trans }}', 'input');
}
});
if(valid) {
\t\t\t\t\t\t\$('.links-btn').attr('disabled', 'disabled');
\t\t\t \$(\"#linksForm\").submit();
\t\t\t }
},
});
var TimezoneForm = Backbone.View.extend({
el: '#timeSettingForm',
\t\t\t events: {
\t\t\t \t'click .timezone-btn': 'timezoneFormSubmit',
\t\t\t },
timezoneFormSubmit: function(e) {
\t\t\t\t\tvar form = Backbone.\$(e.currentTarget).closest('form')
if (form.attr('id') == 'timeSettingForm') {
data = form.serializeObject();
form.submit()
}
}
\t\t });
var time = new TimezoneForm();
var broadcastForm = new BroadcastForm({
model: new BroadcastModel()
});
\t\t\tvar linksForm = new LinksForm({
model: new LinksModel()
});
});
\t</script>
{% endblock %}
", "@UVDeskSupportCenter/Staff/branding.html.twig", "/home/cafsindia/help.cafsindia.com/vendor/uvdesk/support-center-bundle/Resources/views/Staff/branding.html.twig");
}
}