protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<span class=\"topBarElem\">\n <div class=\"languageSelection\"\n ng-cloak\n menu-title=\""; // line 4 echo \Piwik\piwik_escape_filter($this->env, isset($context["currentLanguageName"]) ? $context["currentLanguageName"] : $this->getContext($context, "currentLanguageName"), "html_attr"); echo "\"\n piwik-menudropdown>\n <a class=\"item\"\n href=\"?module=Proxy&action=redirect&url=http://piwik.org/translations/\">"; // line 7 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("LanguagesManager_AboutPiwikTranslations")), "html", null, true); echo "</a>\n "; // line 8 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["languages"]) ? $context["languages"] : $this->getContext($context, "languages")); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 9 echo " <a class=\"item "; if ($this->getAttribute($context["language"], "code", array()) == (isset($context["currentLanguageCode"]) ? $context["currentLanguageCode"] : $this->getContext($context, "currentLanguageCode"))) { echo "active"; } echo "\"\n value=\""; // line 10 echo \Piwik\piwik_escape_filter($this->env, $this->getAttribute($context["language"], "code", array()), "html", null, true); echo "\"\n title=\""; // line 11 echo \Piwik\piwik_escape_filter($this->env, $this->getAttribute($context["language"], "name", array()), "html", null, true); echo " ("; echo \Piwik\piwik_escape_filter($this->env, $this->getAttribute($context["language"], "english_name", array()), "html", null, true); echo ")\">"; echo \Piwik\piwik_escape_filter($this->env, $this->getAttribute($context["language"], "name", array()), "html", null, true); echo "</a>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 13 echo "\n <form action=\"index.php?module=LanguagesManager&action=saveLanguage\" method=\"post\">\n <input type=\"hidden\" name=\"language\" id=\"language\">\n "; // line 17 echo " "; if (array_key_exists("token_auth", $context)) { echo "<input type=\"hidden\" name=\"token_auth\" value=\""; echo \Piwik\piwik_escape_filter($this->env, isset($context["token_auth"]) ? $context["token_auth"] : $this->getContext($context, "token_auth"), "html", null, true); echo "\"/>"; } // line 18 echo " </form>\n </div>\n</span>\n"; }
public function block_content($context, array $blocks = array()) { // line 4 echo "\n <h2>"; // line 5 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Installation_Welcome")), "html", null, true); echo "</h2>\n\n "; // line 7 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Installation_WelcomeHelp", isset($context["totalNumberOfSteps"]) ? $context["totalNumberOfSteps"] : $this->getContext($context, "totalNumberOfSteps"))); echo "\n\n <script type=\"text/javascript\">\n <!--\n \$(function () {\n // client-side test for broken tracker (e.g., mod_security rule)\n \$('.next-step').hide();\n \$.ajax({\n url: 'piwik.php',\n data: 'url=http://example.com',\n complete: function () {\n \$('.next-step').show();\n },\n error: function (req) {\n \$('.next-step a').attr('href', \$('.next-step a').attr('href') + '&trackerStatus=' + req.status);\n }\n });\n });\n //-->\n </script>\n\n "; // line 28 if (!(isset($context["showNextStep"]) ? $context["showNextStep"] : $this->getContext($context, "showNextStep"))) { // line 29 echo " <p class=\"next-step\">\n <a href=\""; // line 30 echo \Piwik\piwik_escape_filter($this->env, isset($context["url"]) ? $context["url"] : $this->getContext($context, "url"), "html", null, true); echo "\">"; echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_RefreshPage")), "html", null, true); echo " »</a>\n </p>\n "; } // line 33 echo "\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html id=\"ng-app\" ng-app=\"piwikApp\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"robots\" content=\"noindex,nofollow\">\n <title>Piwik › "; // line 6 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Installation_Installation")), "html", null, true); echo "</title>\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"libs/jquery/themes/base/jquery-ui.min.css\"/>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"index.php?module=Installation&action=getBaseCss\"/>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"plugins/Installation/stylesheets/installation.css\"/>\n\n <link rel=\"shortcut icon\" href=\"plugins/CoreHome/images/favicon.png\"/>\n\n <script type=\"text/javascript\" src=\"libs/bower_components/jquery/dist/jquery.min.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/jquery-ui/ui/minified/jquery-ui.min.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/angular/angular.min.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/angular-sanitize/angular-sanitize.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/angular-animate/angular-animate.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/angular-cookies/angular-cookies.js\"></script>\n <script type=\"text/javascript\" src=\"libs/bower_components/ngDialog/js/ngDialog.min.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/common/services/service.module.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/common/filters/filter.module.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/common/filters/translate.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/common/directives/directive.module.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/common/directives/focus-anywhere-but-here.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/piwikApp.config.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/CoreHome/angularjs/piwikApp.js\"></script>\n <script type=\"text/javascript\" src=\"plugins/Installation/javascripts/installation.js\"></script>\n</head>\n<!--[if lt IE 9 ]>\n<body ng-app=\"app\" class=\"old-ie\"> <![endif]-->\n<!--[if (gte IE 9)|!(IE)]><!-->\n<body ng-app=\"app\"><!--<![endif]-->\n\n<div class=\"container\">\n\n <div class=\"header\">\n <div class=\"logo\">\n <img src=\"plugins/Morpheus/images/logo.png\"/>\n <p>"; // line 40 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OpenSourceWebAnalytics")), "html", null, true); echo "</p>\n </div>\n <div class=\"language-selector\">\n "; // line 43 echo call_user_func_array($this->env->getFunction('postEvent')->getCallable(), array("Template.topBar")); echo "\n </div>\n\n <div class=\"installation-progress\">\n <h4>\n "; // line 48 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Installation_InstallationStatus")), "html", null, true); echo "\n <small>"; // line 49 echo \Piwik\piwik_escape_filter($this->env, isset($context["percentDone"]) ? $context["percentDone"] : $this->getContext($context, "percentDone"), "html", null, true); echo "%</small>\n </h4>\n <div class=\"progress\">\n <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: "; // line 52 echo \Piwik\piwik_escape_filter($this->env, isset($context["percentDone"]) ? $context["percentDone"] : $this->getContext($context, "percentDone"), "html", null, true); echo "%;\"></div>\n </div>\n </div>\n\n <div class=\"clearfix\"></div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-sm-3\">\n <ul class=\"list-group\">\n "; // line 62 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["allStepsTitle"]) ? $context["allStepsTitle"] : $this->getContext($context, "allStepsTitle")); foreach ($context['_seq'] as $context["stepId"] => $context["stepName"]) { // line 63 echo " "; if ((isset($context["currentStepId"]) ? $context["currentStepId"] : $this->getContext($context, "currentStepId")) > $context["stepId"]) { // line 64 echo " "; $context["stepClass"] = "disabled"; // line 65 echo " "; } elseif ((isset($context["currentStepId"]) ? $context["currentStepId"] : $this->getContext($context, "currentStepId")) == $context["stepId"]) { // line 66 echo " "; $context["stepClass"] = "active"; // line 67 echo " "; } else { // line 68 echo " "; $context["stepClass"] = ""; // line 69 echo " "; } // line 70 echo " <li class=\"list-group-item "; echo \Piwik\piwik_escape_filter($this->env, isset($context["stepClass"]) ? $context["stepClass"] : $this->getContext($context, "stepClass"), "html", null, true); echo "\">"; echo \Piwik\piwik_escape_filter($this->env, $context["stepId"] + 1, "html", null, true); echo ". "; echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array($context["stepName"])), "html", null, true); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['stepId'], $context['stepName'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 72 echo " </ul>\n </div>\n <div class=\"col-sm-9 content\">\n "; // line 75 ob_start(); // line 76 echo " <p class=\"next-step\">\n <a class=\"btn btn-lg\" href=\""; // line 77 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("action" => isset($context["nextModuleName"]) ? $context["nextModuleName"] : $this->getContext($context, "nextModuleName"), "token_auth" => null, "method" => null))), "html", null, true); echo "\">\n "; // line 78 echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Next")), "html", null, true); echo " »</a>\n </p>\n "; $context["nextButton"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 81 echo " "; if (array_key_exists("showNextStepAtTop", $context) && (isset($context["showNextStepAtTop"]) ? $context["showNextStepAtTop"] : $this->getContext($context, "showNextStepAtTop"))) { // line 82 echo " "; echo \Piwik\piwik_escape_filter($this->env, isset($context["nextButton"]) ? $context["nextButton"] : $this->getContext($context, "nextButton"), "html", null, true); echo "\n "; } // line 84 echo "\n "; // line 85 $this->displayBlock('content', $context, $blocks); // line 86 echo "\n "; // line 87 if (isset($context["showNextStep"]) ? $context["showNextStep"] : $this->getContext($context, "showNextStep")) { // line 88 echo " "; echo \Piwik\piwik_escape_filter($this->env, isset($context["nextButton"]) ? $context["nextButton"] : $this->getContext($context, "nextButton"), "html", null, true); echo "\n "; } // line 90 echo " </div>\n </div>\n\n</div>\n\n</body>\n</html>\n"; }