public function testRandomFunctionOnNonUTF8String() { $twig = new Apishka_Templater_Environment($this->createMock('Apishka_Templater_LoaderInterface')); $twig->setCharset('ISO-8859-1'); $text = iconv('UTF-8', 'ISO-8859-1', 'Äé'); for ($i = 0; $i < 30; ++$i) { $rand = twig_random($twig, $text); $this->assertTrue(in_array(iconv('ISO-8859-1', 'UTF-8', $rand), array('Ä', 'é'), true)); } }
public function testRandomFunction() { $items = array('apple', 'orange', 'citrus'); $values = array($items, new ArrayObject($items)); foreach ($values as $value) { for ($i = 0; $i < 100; $i++) { $this->assertTrue(in_array(twig_random($value), $items)); } } }
public function testRandomFunctionOnNonUTF8String() { if (!function_exists('iconv') && !function_exists('mb_convert_encoding')) { $this->markTestSkipped('needs iconv or mbstring'); } $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface')); $twig->setCharset('ISO-8859-1'); $text = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8'); for ($i = 0; $i < 30; ++$i) { $rand = twig_random($twig, $text); $this->assertTrue(in_array(twig_convert_encoding($rand, 'UTF-8', 'ISO-8859-1'), array('Ä', 'é'), true)); } }
public function block_comments($context, array $blocks = array()) { // line 2 echo "<div id=\"comments\">\n "; // line 3 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["cm"]) { // line 4 echo " <div id=\"comment\" >\n <header id=\"comment-"; // line 5 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cm"]) ? $context["cm"] : $this->getContext($context, "cm"), "id"), "html", null, true); echo "\">\n <div id=\"needle\" style=\"right: "; // line 6 echo twig_escape_filter($this->env, twig_random($this->env, 70), "html", null, true); echo "px\"></div>\n <div id=\"comment-avatar\" style=\"\n transform: rotate("; // line 8 echo twig_escape_filter($this->env, twig_random($this->env, 10), "html", null, true); echo "deg);\n -o-transform: rotate("; // line 9 echo twig_escape_filter($this->env, twig_random($this->env, 10), "html", null, true); echo "deg);\n -ms-transform: rotate("; // line 10 echo twig_escape_filter($this->env, twig_random($this->env, 10), "html", null, true); echo "deg);\n -moz-transform: rotate("; // line 11 echo twig_escape_filter($this->env, twig_random($this->env, 10), "html", null, true); echo "deg);\n -webkit-transform: rotate("; // line 12 echo twig_escape_filter($this->env, twig_random($this->env, 10), "html", null, true); echo "deg);\n \">\n "; // line 15 echo " <!--<img src=\""; echo "\" width=\"80\" height=\"80\" />-->\n "; // line 17 echo " <img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/avatar.png"), "html", null, true); echo "\" width=\"80\" height=\"80\" />\n "; // line 18 echo " \n </div>\n <div id=\"comment-author\">"; // line 20 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cm"]) ? $context["cm"] : $this->getContext($context, "cm"), "author"), "html", null, true); echo "</div>\n <div id=\"comment-date\">"; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('time_ago_extension')->timeAgoInWordsFilter($this->getAttribute(isset($context["cm"]) ? $context["cm"] : $this->getContext($context, "cm"), "date")), "html", null, true); echo "</div>\n </header>\n <figure>\n <div id=\"comment-content\">"; // line 24 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cm"]) ? $context["cm"] : $this->getContext($context, "cm"), "content"), "html", null, true); echo "</div>\n </figure>\n <div id=\"clr\"></div>\n <footer></footer>\n </div>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 30 echo " <div id=\"comment\">\n <div id=\"comment-content\">\n <p style=\"text-align: center;padding:30px;\">هنوز دیدگاهی ارسال نشده است</p>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cm'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 36 echo "</div> \n<div id=\"comment-form\">\n <form action=\""; // line 38 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("comment_create", array("book-id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "id"))), "html", null, true); echo "\" method=\"post\" "; echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), 'enctype'); echo ">\n "; // line 39 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), 'errors'); echo "\n "; // line 40 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "author"), 'errors'); echo "\n "; // line 41 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "author"), 'widget', array("attr" => array("class" => "form-control", "dir" => "auto", "placeholder" => "اسمتان"))); echo "\n "; // line 42 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "email"), 'errors'); echo "\n "; // line 43 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "email"), 'widget', array("attr" => array("class" => "form-control", "dir" => "ltr", "placeholder" => "ایمیلتان"))); echo "\n "; // line 44 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "content"), 'widget', array("attr" => array("placeholder" => "دیدگاه شما", "class" => "form-control", "rows" => "5", "dir" => "auto"))); echo "\n <button type=\"submit\" class=\"btn btn-primary\">ارسال</button>\n "; // line 46 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), 'rest'); echo "\n\n </form> \n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html class=\"no-js\" lang=\""; // line 2 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->htmlLang(), "html", null, true); echo "\">\n<head>\n <meta charset=\"utf-8\" />\n\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n "; // line 9 echo " <title>\n "; // line 10 if ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "title", array(), "any", true, true)) { echo twig_escape_filter($this->env, strip_tags($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "title", array())), "html", null, true); echo " | "; } // line 11 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/sitename"), "method"), "html", null, true); echo "\n "; // line 12 if (!$this->getAttribute(isset($context["record"]) ? $context["record"] : null, "title", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/payoff"), "method")) { echo " | "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/payoff"), "method"), "html", null, true); } // line 13 echo " </title>\n\n <link href='https://fonts.googleapis.com/css?family=Share+Tech+Mono|VT323' rel='stylesheet' type='text/css'>\n\n "; // line 19 echo " <link rel=\"stylesheet\" href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "css/foundation.css\">\n <link rel=\"stylesheet\" href=\""; // line 20 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "css/app.css\">\n "; // line 23 echo " <link rel=\"stylesheet\" href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "css/magnific-popup.css\">\n\n\n "; // line 27 echo "\n</head>\n<body>\n\n<div class=\"row\">\n <header>\n\n <!-- Header bar -->\n <div class=\"headerphoto\">\n\n "; // line 40 echo " "; $context["headerimage"] = $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()) . "images/" . twig_random($this->env, $this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "headerimage", array())); // line 41 echo " <img src=\""; echo twig_escape_filter($this->env, isset($context["headerimage"]) ? $context["headerimage"] : null, "html", null, true); echo " \" alt=\"\" />\n\n "; // line 44 echo " <p><span>"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/sitename"), "method"), "html", null, true); echo "</span>\n "; // line 45 if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/payoff"), "method")) { // line 46 echo " <br><small>"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/payoff"), "method"), "html", null, true); echo "</small>\n "; } // line 48 echo " </p>\n </div>\n\n <nav class=\"top-bar\" data-topbar>\n <ul class=\"title-area\">\n<!-- <li class=\"name\"><h1><a href=\""; // line 53 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "root", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/sitename"), "method"), "html", null, true); echo "</a></h1></li>\n --> <li class=\"toggle-topbar menu-icon\"><a href=\"#\">≡ menu</a></li>\n </ul>\n\n <section class=\"top-bar-section\">\n <!-- Right Nav Section -->\n <ul class=\"left\">\n "; // line 61 echo " "; echo $this->env->getExtension('Bolt')->menu($this->env, "main", "_sub_menu.twig"); echo "\n<!-- \n "; // line 64 echo " "; $this->loadTemplate("_sub_searchbox.twig", "_header.twig", 64)->display($context); echo " -->\n </ul>\n </section>\n </nav>\n\n\n <!-- End header -->\n\n </header>\n</div>\n\n\n\n<div class=\"row\">\n <div class=\"container large-12 columns\">\n"; }
public function block_content($context, array $blocks = array()) { // line 5 $context["piwik"] = $this->env->loadTemplate("macros.twig"); // line 6 $context["ajax"] = $this->env->loadTemplate("ajaxMacros.twig"); // line 7 echo "\n"; // line 8 if (isset($context["isSuperUser"]) ? $context["isSuperUser"] : $this->getContext($context, "isSuperUser")) { // line 9 echo " "; echo $context["ajax"]->geterrorDiv(); echo "\n "; // line 10 echo $context["ajax"]->getloadingDiv(); echo "\n\n <h2>"; // line 12 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_ArchivingSettings")), "html", null, true); echo "</h2>\n <table class=\"adminTable\" style='width:900px;'>\n\n "; // line 15 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 16 echo " <tr>\n <td style=\"width:400px;\">"; // line 17 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AllowPiwikArchivingToTriggerBrowser")), "html", null, true); echo "</td>\n <td style=\"width:220px;\">\n <fieldset>\n <input id=\"enableBrowserTriggerArchiving-yes\" type=\"radio\" value=\"1\" name=\"enableBrowserTriggerArchiving\""; // line 20 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 1) { echo " checked=\"checked\""; } echo " />\n <label for=\"enableBrowserTriggerArchiving-yes\">"; // line 21 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 22 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true); echo "</span>\n <br/><br/>\n\n <input id=\"enableBrowserTriggerArchiving-no\" type=\"radio\" value=\"0\" name=\"enableBrowserTriggerArchiving\""; // line 25 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 0) { echo " checked=\"checked\""; } echo " />\n <label for=\"enableBrowserTriggerArchiving-no\">"; // line 26 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 27 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ArchivingTriggerDescription", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>", "</a>")); echo "</span>\n </fieldset>\n <td>\n "; // line 30 ob_start(); // line 31 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ArchivingInlineHelp")), "html", null, true); echo "\n <br/>\n "; // line 33 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SeeTheOfficialDocumentationForMoreInformation", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>", "</a>")); echo "\n "; $context["browserArchivingHelp"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 35 echo " "; echo $context["piwik"]->getinlineHelp(isset($context["browserArchivingHelp"]) ? $context["browserArchivingHelp"] : $this->getContext($context, "browserArchivingHelp")); echo "\n </td>\n </tr>\n "; } else { // line 39 echo " <tr>\n <td style=\"width:400px;\">"; // line 40 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AllowPiwikArchivingToTriggerBrowser")), "html", null, true); echo "</td>\n <td style=\"width:220px;\">\n <input id=\"enableBrowserTriggerArchiving-disabled\" type=\"radio\" checked=\"checked\" disabled=\"disabled\" />\n <label for=\"enableBrowserTriggerArchiving-disabled\">"; // line 43 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 1) { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); } else { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); } echo "</label><br/>\n </td>\n </tr>\n "; } // line 47 echo "\n <tr>\n <td width=\"400px\">\n <label for=\"todayArchiveTimeToLive\">\n "; // line 51 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportsContainingTodayWillBeProcessedAtMostEvery")), "html", null, true); echo "\n </label>\n </td>\n <td>\n "; // line 55 ob_start(); // line 56 echo " <input size='3' value='"; echo twig_escape_filter($this->env, isset($context["todayArchiveTimeToLive"]) ? $context["todayArchiveTimeToLive"] : $this->getContext($context, "todayArchiveTimeToLive"), "html", null, true); echo "' id='todayArchiveTimeToLive' "; if (!(isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled"))) { echo "disabled=\"disabled\""; } echo "/>\n "; $context["timeOutInput"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 58 echo "\n "; // line 59 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NSeconds", isset($context["timeOutInput"]) ? $context["timeOutInput"] : $this->getContext($context, "timeOutInput"))); echo "\n </td>\n\n "; // line 62 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 63 echo " <td width='450px'>\n "; // line 64 ob_start(); // line 65 echo " "; if (isset($context["showWarningCron"]) ? $context["showWarningCron"] : $this->getContext($context, "showWarningCron")) { // line 66 echo " <strong>\n "; // line 67 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NewReportsWillBeProcessedByCron")), "html", null, true); echo "<br/>\n "; // line 68 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportsWillBeProcessedAtMostEveryHour")), "html", null, true); echo "\n "; // line 69 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_IfArchivingIsFastYouCanSetupCronRunMoreOften")), "html", null, true); echo "<br/>\n </strong>\n "; } // line 72 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmallTrafficYouCanLeaveDefault", isset($context["todayArchiveTimeToLiveDefault"]) ? $context["todayArchiveTimeToLiveDefault"] : $this->getContext($context, "todayArchiveTimeToLiveDefault"))), "html", null, true); echo "\n <br/>\n "; // line 74 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_MediumToHighTrafficItIsRecommendedTo", 1800, 3600)), "html", null, true); echo "\n "; $context["archiveTodayTTLHelp"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 76 echo " "; echo $context["piwik"]->getinlineHelp(isset($context["archiveTodayTTLHelp"]) ? $context["archiveTodayTTLHelp"] : $this->getContext($context, "archiveTodayTTLHelp")); echo "\n </td>\n "; } // line 79 echo " </tr>\n\n "; // line 81 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 82 echo " <tr>\n <td colspan=\"3\">\n\n <h2>"; // line 85 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_UpdateSettings")), "html", null, true); echo "</h2>\n </td>\n </tr>\n <tr>\n <td style=\"width:400px;\">"; // line 89 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CheckReleaseGetVersion")), "html", null, true); echo "</td>\n <td style=\"width:220px;\">\n <fieldset>\n <input id=\"enableBetaReleaseCheck-0\" type=\"radio\" value=\"0\" name=\"enableBetaReleaseCheck\""; // line 92 if ((isset($context["enableBetaReleaseCheck"]) ? $context["enableBetaReleaseCheck"] : $this->getContext($context, "enableBetaReleaseCheck")) == 0) { echo " checked=\"checked\""; } echo " />\n <label for=\"enableBetaReleaseCheck-0\">"; // line 93 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LatestStableRelease")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 94 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Recommended")), "html", null, true); echo "</span>\n <br/><br/>\n\n <input id=\"enableBetaReleaseCheck-1\" type=\"radio\" value=\"1\" name=\"enableBetaReleaseCheck\""; // line 97 if ((isset($context["enableBetaReleaseCheck"]) ? $context["enableBetaReleaseCheck"] : $this->getContext($context, "enableBetaReleaseCheck")) == 1) { echo " checked=\"checked\""; } echo " />\n <label for=\"enableBetaReleaseCheck-1\">"; // line 98 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LatestBetaRelease")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 99 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_ForBetaTestersOnly")), "html", null, true); echo "</span>\n </fieldset>\n <td>\n "; // line 102 ob_start(); // line 103 echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_DevelopmentProcess", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/participate/development-process/' target='_blank'>", "</a>")); echo "\n <br/>\n "; // line 105 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_StableReleases", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/participate/user-feedback/' target='_blank'>", "</a>")); echo "\n "; $context["checkReleaseHelp"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 107 echo " "; echo $context["piwik"]->getinlineHelp(isset($context["checkReleaseHelp"]) ? $context["checkReleaseHelp"] : $this->getContext($context, "checkReleaseHelp")); echo "\n </td>\n </tr>\n\n "; // line 111 if (isset($context["canUpdateCommunication"]) ? $context["canUpdateCommunication"] : $this->getContext($context, "canUpdateCommunication")) { // line 112 echo "\n <tr>\n <td style=\"width:400px;\">"; // line 114 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_SendPluginUpdateCommunication")), "html", null, true); echo "</td>\n <td style=\"width:220px;\">\n <fieldset>\n <input id=\"enablePluginUpdateCommunication-1\" type=\"radio\"\n name=\"enablePluginUpdateCommunication\" value=\"1\"\n "; // line 119 if ((isset($context["enableSendPluginUpdateCommunication"]) ? $context["enableSendPluginUpdateCommunication"] : $this->getContext($context, "enableSendPluginUpdateCommunication")) == 1) { echo " checked=\"checked\""; } echo "/>\n <label for=\"enablePluginUpdateCommunication-1\">"; // line 120 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "</label>\n <br />\n <br />\n <input class=\"indented-radio-button\" id=\"enablePluginUpdateCommunication-0\" type=\"radio\"\n name=\"enablePluginUpdateCommunication\" value=\"0\"\n "; // line 125 if ((isset($context["enableSendPluginUpdateCommunication"]) ? $context["enableSendPluginUpdateCommunication"] : $this->getContext($context, "enableSendPluginUpdateCommunication")) == 0) { echo " checked=\"checked\""; } echo "/>\n <label for=\"enablePluginUpdateCommunication-0\">"; // line 126 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "</label>\n <br />\n <span class=\"form-description\">"; // line 128 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true); echo "</span>\n </fieldset>\n <td>\n "; // line 131 echo $context["piwik"]->getinlineHelp(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_SendPluginUpdateCommunicationHelp"))); echo "\n </td>\n </tr>\n\n "; } // line 136 echo "\n "; } // line 138 echo " </table>\n\n "; // line 140 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 141 echo " <h2>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_EmailServerSettings")), "html", null, true); echo "</h2>\n <div id='emailSettings'>\n <table class=\"adminTable\" style='width:600px;'>\n <tr>\n <td>"; // line 145 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_UseSMTPServerForEmail")), "html", null, true); echo "<br/>\n <span class=\"form-description\">"; // line 146 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SelectYesIfYouWantToSendEmailsViaServer")), "html", null, true); echo "</span>\n </td>\n <td style=\"width:200px;\">\n <input id=\"mailUseSmtp-1\" type=\"radio\" name=\"mailUseSmtp\" value=\"1\" "; // line 149 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "transport", array()) == "smtp") { echo " checked "; } echo "/>\n <label for=\"mailUseSmtp-1\">"; // line 150 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "</label>\n <input class=\"indented-radio-button\" id=\"mailUseSmtp-0\" type=\"radio\" name=\"mailUseSmtp\" value=\"0\"\n "; // line 152 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "transport", array()) == "") { echo " checked "; } echo "/>\n <label for=\"mailUseSmtp-0\">"; // line 153 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "</label>\n </td>\n </tr>\n </table>\n </div>\n <div id='smtpSettings'>\n <table class=\"adminTable\" style='width:550px;'>\n <tr>\n <td><label for=\"mailHost\">"; // line 161 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpServerAddress")), "html", null, true); echo "</label></td>\n <td style=\"width:200px;\"><input type=\"text\" id=\"mailHost\" value=\""; // line 162 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "host", array()), "html", null, true); echo "\"></td>\n </tr>\n <tr>\n <td><label for=\"mailPort\">"; // line 165 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpPort")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 166 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OptionalSmtpPort")), "html", null, true); echo "</span></td>\n <td><input type=\"text\" id=\"mailPort\" value=\""; // line 167 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "port", array()), "html", null, true); echo "\"></td>\n </tr>\n <tr>\n <td><label for=\"mailType\">"; // line 170 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AuthenticationMethodSmtp")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 171 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyUsedIfUserPwdIsSet")), "html", null, true); echo "</span>\n </td>\n <td>\n <select id=\"mailType\">\n <option value=\"\" "; // line 175 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "") { echo " selected=\"selected\" "; } echo "></option>\n <option id=\"plain\" "; // line 176 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Plain") { echo " selected=\"selected\" "; } echo " value=\"Plain\">Plain</option>\n <option id=\"login\" "; // line 177 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Login") { echo " selected=\"selected\" "; } echo " value=\"Login\"> Login</option>\n <option id=\"cram-md5\" "; // line 178 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Crammd5") { echo " selected=\"selected\" "; } echo " value=\"Crammd5\"> Crammd5</option>\n </select>\n </td>\n </tr>\n <tr>\n <td><label for=\"mailUsername\">"; // line 183 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpUsername")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 184 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyEnterIfRequired")), "html", null, true); echo "</span></td>\n <td>\n <input type=\"text\" id=\"mailUsername\" value=\""; // line 186 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "username", array()), "html", null, true); echo "\"/>\n </td>\n </tr>\n <tr>\n <td><label for=\"mailPassword\">"; // line 190 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpPassword")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 191 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyEnterIfRequiredPassword")), "html", null, true); echo "<br/>\n "; // line 192 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_WarningPasswordStored", "<strong>", "</strong>")); echo "</span>\n </td>\n <td>\n <input type=\"password\" id=\"mailPassword\" value=\""; // line 195 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "password", array()), "html", null, true); echo "\"/>\n </td>\n </tr>\n <tr>\n <td><label for=\"mailEncryption\">"; // line 199 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpEncryption")), "html", null, true); echo "</label><br/>\n <span class=\"form-description\">"; // line 200 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_EncryptedSmtpTransport")), "html", null, true); echo "</span></td>\n <td>\n <select id=\"mailEncryption\">\n <option value=\"\" "; // line 203 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "") { echo " selected=\"selected\" "; } echo "></option>\n <option id=\"ssl\" "; // line 204 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "ssl") { echo " selected=\"selected\" "; } echo " value=\"ssl\">SSL</option>\n <option id=\"tls\" "; // line 205 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "tls") { echo " selected=\"selected\" "; } echo " value=\"tls\">TLS</option>\n </select>\n </td>\n </tr>\n </table>\n </div>\n "; } // line 212 echo "\n <h2>"; // line 213 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_BrandingSettings")), "html", null, true); echo "</h2>\n <div id='brandSettings'>\n "; // line 215 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CustomLogoHelpText")), "html", null, true); echo "\n <table class=\"adminTable\" style=\"width:900px;\">\n <tr>\n <td style=\"width:200px;\">"; // line 218 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_UseCustomLogo")), "html", null, true); echo "</td>\n <td style=\"width:200px;\">\n <input id=\"useCustomLogo-1\" type=\"radio\" name=\"useCustomLogo\" value=\"1\" "; // line 220 if ($this->getAttribute(isset($context["branding"]) ? $context["branding"] : $this->getContext($context, "branding"), "use_custom_logo", array()) == 1) { echo " checked "; } echo "/>\n <label for=\"useCustomLogo-1\">"; // line 221 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "</label>\n <input class=\"indented-radio-button\" id=\"useCustomLogo-0\" type=\"radio\" name=\"useCustomLogo\" value=\"0\" "; // line 222 if ($this->getAttribute(isset($context["branding"]) ? $context["branding"] : $this->getContext($context, "branding"), "use_custom_logo", array()) == 0) { echo " checked "; } echo " />\n <label for=\"useCustomLogo-0\" class>"; // line 223 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "</label>\n </td>\n <td id=\"inlineHelpCustomLogo\">\n "; // line 226 ob_start(); echo "\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_GiveUsYourFeedback")), "html", null, true); echo "\""; $context["giveUsFeedbackText"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 227 echo " "; ob_start(); // line 228 echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CustomLogoFeedbackInfo", isset($context["giveUsFeedbackText"]) ? $context["giveUsFeedbackText"] : $this->getContext($context, "giveUsFeedbackText"), "<a href='?module=CorePluginsAdmin&action=plugins' rel='noreferrer' target='_blank'>", "</a>")); echo "\n "; $context["customLogoHelp"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 230 echo " "; echo $context["piwik"]->getinlineHelp(isset($context["customLogoHelp"]) ? $context["customLogoHelp"] : $this->getContext($context, "customLogoHelp")); echo "\n </td>\n </tr>\n </table>\n </div>\n <div id='logoSettings'>\n <form id=\"logoUploadForm\" method=\"post\" enctype=\"multipart/form-data\" action=\"index.php?module=CoreAdminHome&format=json&action=uploadCustomLogo\">\n <table class=\"adminTable\" style='width:550px;'>\n "; // line 238 if (isset($context["fileUploadEnabled"]) ? $context["fileUploadEnabled"] : $this->getContext($context, "fileUploadEnabled")) { // line 239 echo " "; if (isset($context["logosWriteable"]) ? $context["logosWriteable"] : $this->getContext($context, "logosWriteable")) { // line 240 echo " <tr>\n <td>\n <label for=\"customLogo\">"; // line 242 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUpload")), "html", null, true); echo ":<br/>\n <span class=\"form-description\">"; // line 243 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUploadHelp", "JPG / PNG / GIF", 110)), "html", null, true); echo "</span>\n </label>\n </td>\n <td style=\"width:200px;\">\n <input name=\"customLogo\" type=\"file\" id=\"customLogo\"/>\n <img src=\""; // line 248 echo twig_escape_filter($this->env, isset($context["pathUserLogo"]) ? $context["pathUserLogo"] : $this->getContext($context, "pathUserLogo"), "html", null, true); echo "?r="; echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\" id=\"currentLogo\" height=\"150\"/>\n </td>\n </tr>\n <tr>\n <td>\n <label for=\"customLogo\">"; // line 253 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_FaviconUpload")), "html", null, true); echo ":<br/>\n <span class=\"form-description\">"; // line 254 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUploadHelp", "JPG / PNG / GIF", 16)), "html", null, true); echo "</span>\n </label>\n </td>\n <td style=\"width:200px;\">\n <input name=\"customFavicon\" type=\"file\" id=\"customFavicon\"/>\n <img src=\""; // line 259 echo twig_escape_filter($this->env, isset($context["pathUserFavicon"]) ? $context["pathUserFavicon"] : $this->getContext($context, "pathUserFavicon"), "html", null, true); echo "?r="; echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\" id=\"currentFavicon\" width=\"16\" height=\"16\"/>\n </td>\n </tr>\n "; } else { // line 263 echo " <tr>\n <td>\n <div style=\"display:inline-block;margin-top:10px;\" id=\"CoreAdminHome_LogoNotWriteable\">\n "; // line 266 echo call_user_func_array($this->env->getFilter('notification')->getCallable(), array(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoNotWriteableInstruction", "<strong>" . (isset($context["pathUserLogoDirectory"]) ? $context["pathUserLogoDirectory"] : $this->getContext($context, "pathUserLogoDirectory")) . "</strong><br/>", (isset($context["pathUserLogo"]) ? $context["pathUserLogo"] : $this->getContext($context, "pathUserLogo")) . ", " . (isset($context["pathUserLogoSmall"]) ? $context["pathUserLogoSmall"] : $this->getContext($context, "pathUserLogoSmall")) . ", " . (isset($context["pathUserLogoSVG"]) ? $context["pathUserLogoSVG"] : $this->getContext($context, "pathUserLogoSVG")) . "")), array("placeAt" => "#CoreAdminHome_LogoNotWriteable", "noclear" => true, "context" => "warning", "raw" => true))); // line 268 echo "\n\n </div>\n </td>\n </tr>\n "; } // line 274 echo " "; } else { // line 275 echo " <tr>\n <td>\n <div style=\"display:inline-block;margin-top:10px;\" id=\"CoreAdminHome_FileUploadDisabled\">\n "; // line 278 echo call_user_func_array($this->env->getFilter('notification')->getCallable(), array(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_FileUploadDisabled", "file_uploads=1")), array("placeAt" => "#CoreAdminHome_FileUploadDisabled", "noclear" => true, "context" => "warning", "raw" => true))); // line 280 echo "\n\n </div>\n </td>\n </tr>\n\n "; } // line 287 echo " </table>\n </form>\n </div>\n\n <div class=\"ui-confirm\" id=\"confirmTrustedHostChange\">\n <h2>"; // line 292 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_TrustedHostConfirm")), "html", null, true); echo "</h2>\n <input role=\"yes\" type=\"button\" value=\""; // line 293 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\"/>\n <input role=\"no\" type=\"button\" value=\""; // line 294 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\"/>\n </div>\n <h2 id=\"trustedHostsSection\">"; // line 296 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_TrustedHostSettings")), "html", null, true); echo "</h2>\n <div id='trustedHostSettings'>\n\n "; // line 299 $this->env->loadTemplate("@CoreHome/_warningInvalidHost.twig")->display($context); // line 300 echo "\n "; // line 301 if (!(isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled"))) { // line 302 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_PiwikIsInstalledAt")), "html", null, true); echo ": "; echo twig_escape_filter($this->env, twig_join_filter(isset($context["trustedHosts"]) ? $context["trustedHosts"] : $this->getContext($context, "trustedHosts"), ", "), "html", null, true); echo "\n "; } else { // line 304 echo " <p>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_PiwikIsInstalledAt")), "html", null, true); echo ":</p>\n <strong>"; // line 305 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_ValidPiwikHostname")), "html", null, true); echo "</strong>\n <ul>\n "; // line 307 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["trustedHosts"]) ? $context["trustedHosts"] : $this->getContext($context, "trustedHosts")); foreach ($context['_seq'] as $context["hostIdx"] => $context["host"]) { // line 308 echo " <li>\n <input name=\"trusted_host\" type=\"text\" value=\""; // line 309 echo twig_escape_filter($this->env, $context["host"], "html", null, true); echo "\"/>\n <a href=\"#\" class=\"remove-trusted-host\" title=\""; // line 310 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\">\n <img alt=\""; // line 311 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\" src=\"plugins/Morpheus/images/ico_delete.png\" />\n </a>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['hostIdx'], $context['host'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 315 echo " </ul>\n <div class=\"add-trusted-host-container\">\n <a href=\"#\" class=\"add-trusted-host\"><em>"; // line 317 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Add")), "html", null, true); echo "</em></a>\n </div>\n "; } // line 320 echo " </div>\n\n <input type=\"submit\" value=\""; // line 322 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Save")), "html", null, true); echo "\" id=\"generalSettingsSubmit\" class=\"submit\"/>\n <br/>\n <br/>\n\n "; // line 326 if (isset($context["isDataPurgeSettingsEnabled"]) ? $context["isDataPurgeSettingsEnabled"] : $this->getContext($context, "isDataPurgeSettingsEnabled")) { // line 327 echo " "; ob_start(); echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataSettings")), "html", null, true); $context["clickDeleteLogSettings"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 328 echo " <h2>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataSettings")), "html", null, true); echo "</h2>\n <p>\n "; // line 330 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataDescription")), "html", null, true); echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataDescription2")), "html", null, true); echo "\n <br/>\n <a href='"; // line 332 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("module" => "PrivacyManager", "action" => "privacySettings"))), "html", null, true); echo "#deleteLogsAnchor'>\n "; // line 333 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_ClickHereSettings", "'" . (isset($context["clickDeleteLogSettings"]) ? $context["clickDeleteLogSettings"] : $this->getContext($context, "clickDeleteLogSettings")) . "'")), "html", null, true); echo "\n </a>\n </p>\n "; } } // line 338 echo "\n"; }
public function getpicture($__imageFile__ = null, $__ruleSet__ = null, $__options__ = null, $__attributes__ = null, ...$__varargs__) { $context = $this->env->mergeGlobals(array("imageFile" => $__imageFile__, "ruleSet" => $__ruleSet__, "options" => $__options__, "attributes" => $__attributes__, "varargs" => $__varargs__)); $blocks = array(); ob_start(); try { // line 99 echo "\n "; // line 100 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["ruleSet"]) ? $context["ruleSet"] : null); foreach ($context['_seq'] as $context["_key"] => $context["rule"]) { // line 101 echo " "; $context["id"] = "img" . twig_random($this->env); // line 102 echo "\n "; // line 103 if ($this->getAttribute($context["rule"], "mediaRule", array())) { // line 104 echo " <style scoped>\n #"; // line 105 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo " { display: none; }\n\n @media only screen and "; // line 107 echo twig_escape_filter($this->env, $this->getAttribute($context["rule"], "mediaRule", array()), "html", null, true); echo " {\n #"; // line 108 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo " { display: block; }\n }\n </style>\n "; } // line 112 echo "\n <img\n id=\""; // line 114 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo "\"\n src=\""; // line 115 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["imageFile"]) ? $context["imageFile"] : null, "thumb", array(0 => $this->getAttribute($this->getAttribute($context["rule"], "dimensions", array()), 0, array(), "array") - 1, 1 => $this->getAttribute($this->getAttribute($context["rule"], "dimensions", array()), 1, array(), "array"), 2 => isset($context["options"]) ? $context["options"] : null), "method"), "html", null, true); echo "\" "; echo isset($context["attributes"]) ? $context["attributes"] : null; echo ">\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rule'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
public function block_content($context, array $blocks = array()) { // line 4 echo " "; $context["piwik"] = $this->loadTemplate("macros.twig", "@CoreAdminHome/generalSettings.twig", 4); // line 5 echo " "; $context["ajax"] = $this->loadTemplate("ajaxMacros.twig", "@CoreAdminHome/generalSettings.twig", 5); // line 6 echo "\n "; // line 7 echo $context["ajax"]->geterrorDiv(); echo "\n "; // line 8 echo $context["ajax"]->getloadingDiv(); echo "\n\n <h2>"; // line 10 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_ArchivingSettings")), "html", null, true); echo "</h2>\n\n "; // line 12 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 13 echo " <div class=\"form-group\">\n <label>"; // line 14 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AllowPiwikArchivingToTriggerBrowser")), "html", null, true); echo "</label>\n <div class=\"form-help\">\n "; // line 16 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ArchivingInlineHelp")), "html", null, true); echo "\n <br/>\n "; // line 18 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SeeTheOfficialDocumentationForMoreInformation", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>", "</a>")); echo "\n </div>\n <label class=\"radio\">\n <input type=\"radio\" value=\"1\" name=\"enableBrowserTriggerArchiving\" "; // line 21 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 1) { echo " checked=\"checked\""; } echo " />\n "; // line 22 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n <span class=\"form-description\">"; // line 23 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true); echo "</span>\n </label>\n <label class=\"radio\">\n <input type=\"radio\" value=\"0\" name=\"enableBrowserTriggerArchiving\" "; // line 26 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 0) { echo " checked=\"checked\""; } echo " />\n "; // line 27 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n <span class=\"form-description\">"; // line 28 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ArchivingTriggerDescription", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>", "</a>")); echo "</span>\n </label>\n </div>\n "; } else { // line 32 echo " <div class=\"form-group\">\n <label>"; // line 33 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AllowPiwikArchivingToTriggerBrowser")), "html", null, true); echo "</label>\n <label class=\"radio\">\n <input type=\"radio\" checked=\"checked\" disabled=\"disabled\" />\n "; // line 36 if ((isset($context["enableBrowserTriggerArchiving"]) ? $context["enableBrowserTriggerArchiving"] : $this->getContext($context, "enableBrowserTriggerArchiving")) == 1) { // line 37 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n "; } else { // line 39 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n "; } // line 41 echo " </label>\n </div>\n "; } // line 44 echo "\n <div class=\"form-group\">\n <label for=\"todayArchiveTimeToLive\">\n "; // line 47 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportsContainingTodayWillBeProcessedAtMostEvery")), "html", null, true); echo "\n </label>\n "; // line 49 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 50 echo " <div class=\"form-help\">\n "; // line 51 if (isset($context["showWarningCron"]) ? $context["showWarningCron"] : $this->getContext($context, "showWarningCron")) { // line 52 echo " <strong>\n "; // line 53 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NewReportsWillBeProcessedByCron")), "html", null, true); echo "<br/>\n "; // line 54 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportsWillBeProcessedAtMostEveryHour")), "html", null, true); echo "\n "; // line 55 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_IfArchivingIsFastYouCanSetupCronRunMoreOften")), "html", null, true); echo "<br/>\n </strong>\n "; } // line 58 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmallTrafficYouCanLeaveDefault", isset($context["todayArchiveTimeToLiveDefault"]) ? $context["todayArchiveTimeToLiveDefault"] : $this->getContext($context, "todayArchiveTimeToLiveDefault"))), "html", null, true); echo "\n <br/>\n "; // line 60 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_MediumToHighTrafficItIsRecommendedTo", 1800, 3600)), "html", null, true); echo "\n </div>\n "; } // line 63 echo " <div class=\"input-group\">\n <input value='"; // line 64 echo twig_escape_filter($this->env, isset($context["todayArchiveTimeToLive"]) ? $context["todayArchiveTimeToLive"] : $this->getContext($context, "todayArchiveTimeToLive"), "html", null, true); echo "' id='todayArchiveTimeToLive' "; if (!(isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled"))) { echo "disabled=\"disabled\""; } echo " />\n <span class=\"input-group-addon\">"; // line 65 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Intl_NSeconds", "")), "html", null, true); echo "</span>\n </div>\n <span class=\"form-description\">\n "; // line 68 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_RearchiveTimeIntervalOnlyForTodayReports")), "html", null, true); echo "\n </span>\n </div>\n\n "; // line 72 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 73 echo " <h2>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_UpdateSettings")), "html", null, true); echo "</h2>\n\n <div class=\"form-group\">\n <label>"; // line 76 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CheckReleaseGetVersion")), "html", null, true); echo "</label>\n <div class=\"form-help\">\n "; // line 78 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_DevelopmentProcess", "<a href='?module=Proxy&action=redirect&url=http://piwik.org/participate/development-process/' target='_blank'>", "</a>")); echo "\n <br/>\n "; // line 80 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_StableReleases", "<a href='?module=Proxy&action=redirect&url=http%3A%2F%2Fdeveloper.piwik.org%2Fguides%2Fcore-team-workflow%23influencing-piwik-development' target='_blank'>", "</a>")); echo "\n </div>\n <label class=\"radio\">\n <input type=\"radio\" value=\"1\" name=\"enableBetaReleaseCheck\""; // line 83 if ((isset($context["enableBetaReleaseCheck"]) ? $context["enableBetaReleaseCheck"] : $this->getContext($context, "enableBetaReleaseCheck")) == 1) { echo " checked=\"checked\""; } echo " />\n "; // line 84 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n </label>\n <label class=\"radio\">\n <input type=\"radio\" value=\"0\" name=\"enableBetaReleaseCheck\""; // line 87 if ((isset($context["enableBetaReleaseCheck"]) ? $context["enableBetaReleaseCheck"] : $this->getContext($context, "enableBetaReleaseCheck")) == 0) { echo " checked=\"checked\""; } echo " />\n "; // line 88 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n <span class=\"form-description\">"; // line 89 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Recommended")), "html", null, true); echo "</span>\n </label>\n </div>\n\n "; // line 93 if (isset($context["canUpdateCommunication"]) ? $context["canUpdateCommunication"] : $this->getContext($context, "canUpdateCommunication")) { // line 94 echo " <div class=\"form-group\">\n <label>"; // line 95 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_SendPluginUpdateCommunication")), "html", null, true); echo "</label>\n <div class=\"form-help\">\n "; // line 97 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_SendPluginUpdateCommunicationHelp")), "html", null, true); echo "\n </div>\n <label class=\"radio\">\n <input type=\"radio\" name=\"enablePluginUpdateCommunication\" value=\"1\"\n "; // line 101 if ((isset($context["enableSendPluginUpdateCommunication"]) ? $context["enableSendPluginUpdateCommunication"] : $this->getContext($context, "enableSendPluginUpdateCommunication")) == 1) { echo " checked=\"checked\""; } echo "/>\n "; // line 102 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n </label>\n <label class=\"radio\">\n <input type=\"radio\" name=\"enablePluginUpdateCommunication\" value=\"0\"\n "; // line 106 if ((isset($context["enableSendPluginUpdateCommunication"]) ? $context["enableSendPluginUpdateCommunication"] : $this->getContext($context, "enableSendPluginUpdateCommunication")) == 0) { echo " checked=\"checked\""; } echo "/>\n "; // line 107 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n <span class=\"form-description\">"; // line 108 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true); echo "</span>\n </label>\n </div>\n "; } // line 112 echo " "; } // line 113 echo "\n "; // line 114 if (isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled")) { // line 115 echo " <h2>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_EmailServerSettings")), "html", null, true); echo "</h2>\n\n <div class=\"form-group\">\n <label>"; // line 118 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_UseSMTPServerForEmail")), "html", null, true); echo "</label>\n <div class=\"form-help\">\n "; // line 120 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SelectYesIfYouWantToSendEmailsViaServer")), "html", null, true); echo "\n </div>\n <label class=\"radio\">\n <input type=\"radio\" name=\"mailUseSmtp\" value=\"1\" "; // line 123 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "transport", array()) == "smtp") { echo "checked"; } echo " />\n "; // line 124 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n </label>\n <label class=\"radio\">\n <input type=\"radio\" name=\"mailUseSmtp\" value=\"0\" "; // line 127 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "transport", array()) == "") { echo "checked"; } echo " />\n "; // line 128 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n </label>\n </div>\n\n <div id=\"smtpSettings\">\n <div class=\"form-group\">\n <label for=\"mailHost\">"; // line 134 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpServerAddress")), "html", null, true); echo "</label>\n <input type=\"text\" id=\"mailHost\" value=\""; // line 135 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "host", array()), "html", null, true); echo "\">\n </div>\n <div class=\"form-group\">\n <label for=\"mailPort\">"; // line 138 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpPort")), "html", null, true); echo "</label>\n <span class=\"form-help\">"; // line 139 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OptionalSmtpPort")), "html", null, true); echo "</span>\n <input type=\"text\" id=\"mailPort\" value=\""; // line 140 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "port", array()), "html", null, true); echo "\">\n </div>\n <div class=\"form-group\">\n <label for=\"mailType\">"; // line 143 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_AuthenticationMethodSmtp")), "html", null, true); echo "</label>\n <span class=\"form-help\">"; // line 144 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyUsedIfUserPwdIsSet")), "html", null, true); echo "</span>\n <select id=\"mailType\">\n <option value=\"\" "; // line 146 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "") { echo " selected=\"selected\" "; } echo "></option>\n <option id=\"plain\" "; // line 147 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Plain") { echo " selected=\"selected\" "; } echo " value=\"Plain\">Plain</option>\n <option id=\"login\" "; // line 148 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Login") { echo " selected=\"selected\" "; } echo " value=\"Login\"> Login</option>\n <option id=\"cram-md5\" "; // line 149 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "type", array()) == "Crammd5") { echo " selected=\"selected\" "; } echo " value=\"Crammd5\"> Crammd5</option>\n </select>\n </div>\n <div class=\"form-group\">\n <label for=\"mailUsername\">"; // line 153 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpUsername")), "html", null, true); echo "</label>\n <span class=\"form-help\">"; // line 154 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyEnterIfRequired")), "html", null, true); echo "</span>\n <input type=\"text\" id=\"mailUsername\" value=\""; // line 155 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "username", array()), "html", null, true); echo "\"/>\n </div>\n <div class=\"form-group\">\n <label for=\"mailPassword\">"; // line 158 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpPassword")), "html", null, true); echo "</label>\n <span class=\"form-help\">\n "; // line 160 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OnlyEnterIfRequiredPassword")), "html", null, true); echo "<br/>\n "; // line 161 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_WarningPasswordStored", "<strong>", "</strong>")); echo "\n </span>\n <input type=\"password\" id=\"mailPassword\" value=\""; // line 163 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "password", array()), "html", null, true); echo "\"/>\n </div>\n <div class=\"form-group\">\n <label for=\"mailEncryption\">"; // line 166 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_SmtpEncryption")), "html", null, true); echo "</label>\n <span class=\"form-help\">"; // line 167 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_EncryptedSmtpTransport")), "html", null, true); echo "</span>\n <select id=\"mailEncryption\">\n <option value=\"\" "; // line 169 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "") { echo " selected=\"selected\" "; } echo "></option>\n <option id=\"ssl\" "; // line 170 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "ssl") { echo " selected=\"selected\" "; } echo " value=\"ssl\">SSL</option>\n <option id=\"tls\" "; // line 171 if ($this->getAttribute(isset($context["mail"]) ? $context["mail"] : $this->getContext($context, "mail"), "encryption", array()) == "tls") { echo " selected=\"selected\" "; } echo " value=\"tls\">TLS</option>\n </select>\n </div>\n </div>\n "; } // line 176 echo "\n <h2>"; // line 177 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_BrandingSettings")), "html", null, true); echo "</h2>\n\n <p>"; // line 179 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CustomLogoHelpText")), "html", null, true); echo "</p>\n\n <div class=\"form-group\">\n <label>"; // line 182 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_UseCustomLogo")), "html", null, true); echo "</label>\n <div class=\"form-help\">\n "; // line 184 ob_start(); echo "\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_GiveUsYourFeedback")), "html", null, true); echo "\""; $context["giveUsFeedbackText"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 185 echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_CustomLogoFeedbackInfo", isset($context["giveUsFeedbackText"]) ? $context["giveUsFeedbackText"] : $this->getContext($context, "giveUsFeedbackText"), "<a href='?module=CorePluginsAdmin&action=plugins' rel='noreferrer' target='_blank'>", "</a>")); echo "\n </div>\n <label class=\"radio\">\n <input type=\"radio\" name=\"useCustomLogo\" value=\"1\" "; // line 188 if ($this->getAttribute(isset($context["branding"]) ? $context["branding"] : $this->getContext($context, "branding"), "use_custom_logo", array()) == 1) { echo "checked"; } echo " />\n "; // line 189 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\n </label>\n <label class=\"radio\">\n <input type=\"radio\" name=\"useCustomLogo\" value=\"0\" "; // line 192 if ($this->getAttribute(isset($context["branding"]) ? $context["branding"] : $this->getContext($context, "branding"), "use_custom_logo", array()) == 0) { echo "checked"; } echo " />\n "; // line 193 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\n </label>\n </div>\n\n <div id=\"logoSettings\">\n <form id=\"logoUploadForm\" method=\"post\" enctype=\"multipart/form-data\" action=\"index.php?module=CoreAdminHome&format=json&action=uploadCustomLogo\">\n "; // line 199 if (isset($context["fileUploadEnabled"]) ? $context["fileUploadEnabled"] : $this->getContext($context, "fileUploadEnabled")) { // line 200 echo " <input type=\"hidden\" name=\"token_auth\" value=\""; echo twig_escape_filter($this->env, isset($context["token_auth"]) ? $context["token_auth"] : $this->getContext($context, "token_auth"), "html", null, true); echo "\"/>\n\n "; // line 202 if (isset($context["logosWriteable"]) ? $context["logosWriteable"] : $this->getContext($context, "logosWriteable")) { // line 203 echo " <div class=\"form-group\">\n <label for=\"customLogo\">"; // line 204 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUpload")), "html", null, true); echo "</label>\n <div class=\"form-help\">"; // line 205 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUploadHelp", "JPG / PNG / GIF", 110)), "html", null, true); echo "</div>\n <input name=\"customLogo\" type=\"file\" id=\"customLogo\"/>\n <img src=\""; // line 207 echo twig_escape_filter($this->env, isset($context["pathUserLogo"]) ? $context["pathUserLogo"] : $this->getContext($context, "pathUserLogo"), "html", null, true); echo "?r="; echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\" id=\"currentLogo\" style=\"max-height: 150px\"/>\n </div>\n <div class=\"form-group\">\n <label for=\"customLogo\">"; // line 210 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_FaviconUpload")), "html", null, true); echo "</label>\n <div class=\"form-help\">"; // line 211 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoUploadHelp", "JPG / PNG / GIF", 16)), "html", null, true); echo "</div>\n <input name=\"customFavicon\" type=\"file\" id=\"customFavicon\"/>\n <img src=\""; // line 213 echo twig_escape_filter($this->env, isset($context["pathUserFavicon"]) ? $context["pathUserFavicon"] : $this->getContext($context, "pathUserFavicon"), "html", null, true); echo "?r="; echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\" id=\"currentFavicon\" width=\"16\" height=\"16\"/>\n </div>\n "; } else { // line 216 echo " <div class=\"alert alert-warning\">\n "; // line 217 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_LogoNotWriteableInstruction", "<code>" . (isset($context["pathUserLogoDirectory"]) ? $context["pathUserLogoDirectory"] : $this->getContext($context, "pathUserLogoDirectory")) . "</code><br/>", (isset($context["pathUserLogo"]) ? $context["pathUserLogo"] : $this->getContext($context, "pathUserLogo")) . ", " . (isset($context["pathUserLogoSmall"]) ? $context["pathUserLogoSmall"] : $this->getContext($context, "pathUserLogoSmall")) . ", " . (isset($context["pathUserLogoSVG"]) ? $context["pathUserLogoSVG"] : $this->getContext($context, "pathUserLogoSVG")) . "")); echo "\n </div>\n "; } // line 221 echo " "; } else { // line 222 echo " <div class=\"alert alert-warning\">\n "; // line 223 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_FileUploadDisabled", "file_uploads=1")), "html", null, true); echo "\n </div>\n "; } // line 226 echo " </form>\n </div>\n\n <div class=\"ui-confirm\" id=\"confirmTrustedHostChange\">\n <h2>"; // line 230 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_TrustedHostConfirm")), "html", null, true); echo "</h2>\n <input role=\"yes\" type=\"button\" value=\""; // line 231 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Yes")), "html", null, true); echo "\"/>\n <input role=\"no\" type=\"button\" value=\""; // line 232 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_No")), "html", null, true); echo "\"/>\n </div>\n <h2 id=\"trustedHostsSection\">"; // line 234 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_TrustedHostSettings")), "html", null, true); echo "</h2>\n <div id='trustedHostSettings'>\n\n "; // line 237 $this->loadTemplate("@CoreHome/_warningInvalidHost.twig", "@CoreAdminHome/generalSettings.twig", 237)->display($context); // line 238 echo "\n "; // line 239 if (!(isset($context["isGeneralSettingsAdminEnabled"]) ? $context["isGeneralSettingsAdminEnabled"] : $this->getContext($context, "isGeneralSettingsAdminEnabled"))) { // line 240 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_PiwikIsInstalledAt")), "html", null, true); echo ": "; echo twig_escape_filter($this->env, twig_join_filter(isset($context["trustedHosts"]) ? $context["trustedHosts"] : $this->getContext($context, "trustedHosts"), ", "), "html", null, true); echo "\n "; } else { // line 242 echo " <div class=\"form-group\">\n <label>"; // line 243 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_ValidPiwikHostname")), "html", null, true); echo "</label>\n </div>\n <ul>\n "; // line 246 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["trustedHosts"]) ? $context["trustedHosts"] : $this->getContext($context, "trustedHosts")); foreach ($context['_seq'] as $context["hostIdx"] => $context["host"]) { // line 247 echo " <li>\n <input name=\"trusted_host\" type=\"text\" value=\""; // line 248 echo twig_escape_filter($this->env, $context["host"], "html", null, true); echo "\"/>\n <a href=\"#\" class=\"remove-trusted-host\" title=\""; // line 249 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\">\n <img alt=\""; // line 250 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\" src=\"plugins/Morpheus/images/ico_delete.png\" />\n </a>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['hostIdx'], $context['host'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 254 echo " </ul>\n\n <div class=\"add-trusted-host\">\n <input type=\"text\" placeholder=\""; // line 257 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_AddNewTrustedHost")), "html_attr"); echo "\" readonly/>\n\n <a href=\"#\" title=\""; // line 259 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\">\n <img alt=\""; // line 260 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Delete")), "html", null, true); echo "\" src=\"plugins/Morpheus/images/add.png\"/>\n </a>\n\n </div>\n "; } // line 265 echo " </div>\n\n <input type=\"submit\" value=\""; // line 267 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Save")), "html", null, true); echo "\" class=\"submit generalSettingsSubmit\"/>\n <br/><br/>\n\n "; // line 270 if (isset($context["isDataPurgeSettingsEnabled"]) ? $context["isDataPurgeSettingsEnabled"] : $this->getContext($context, "isDataPurgeSettingsEnabled")) { // line 271 echo " <h2>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataSettings")), "html", null, true); echo "</h2>\n <p>"; // line 272 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataDescription")), "html", null, true); echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataDescription2")), "html", null, true); echo "</p>\n <p>\n <a href='"; // line 274 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("module" => "PrivacyManager", "action" => "privacySettings"))), "html", null, true); echo "#deleteLogsAnchor'>\n "; // line 275 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_ClickHereSettings", "'" . call_user_func_array($this->env->getFilter('translate')->getCallable(), array("PrivacyManager_DeleteDataSettings")) . "'")), "html", null, true); echo "\n </a>\n </p>\n "; } // line 279 echo "\n"; }