0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
midiatech
/
cache
/
14
/
[
Home
]
File: 14dd038425eb395e5e99a65611b3aab25ff65c2f6900a3e9a563130571059845.php
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; 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; /* forecastio-form-settings.twig */ class __TwigTemplate_6edc389732b278889676284e7de4619131360db74226d6d0894388bf5906d723 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'moduleFormFields' => [$this, 'block_moduleFormFields'], ]; } protected function doGetParent(array $context) { // line 23 return "module-form-settings.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 24 $context["forms"] = $this->loadTemplate("forms.twig", "forecastio-form-settings.twig", 24)->unwrap(); // line 23 $this->parent = $this->loadTemplate("module-form-settings.twig", "forecastio-form-settings.twig", 23); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 26 public function block_moduleFormFields($context, array $blocks = []) { // line 27 echo " "; // line 28 echo " "; $context["title"] = ('' === $tmp = " DarkSky has been the platforms source of weather data for several years, but unfortunately this has come to an end. DarkSky have been bought by Apple and have closed their doors to new API sign-ups. Existing users will have access until the end of 2021. You can switch your source of data to Open Weather Map by entering an API for that service below. The Open Weather Map API key will always take precedence over the DarkSky one. Please see our documentation for more details. ") ? '' : new Markup($tmp, $this->env->getCharset()); // line 36 echo " "; echo $context["forms"]->getalert(($context["title"] ?? null), "info"); echo " "; // line 38 ob_start(function () { return ''; }); echo __("Open Weather Map API Key"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 39 echo " "; ob_start(function () { return ''; }); echo __("Enter your API Key from Open Weather Map."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 40 echo " "; echo $context["forms"]->getinput("owmApiKey", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getSetting", [0 => "owmApiKey"], "method"), ($context["helpText"] ?? null)); echo " "; // line 42 ob_start(function () { return ''; }); echo __("Paid plan?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 43 echo " "; ob_start(function () { return ''; }); echo __("Is the above key on an Open Weather Map paid plan?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 44 echo " "; echo $context["forms"]->getcheckbox("owmIsPaidPlan", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getSetting", [0 => "owmIsPaidPlan"], "method"), ($context["helpText"] ?? null)); echo " <div class=\"row\"> <div class=\"col-sm-10 col-sm-offset-2\"> <p>Weather data provided by <a href=\"https://openweathermap.org/\" target=\"_blank\">OpenWeather</a> is provided under <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">CC-BY-SA 4.0</a> and <a href=\"http://opendatacommons.org/licenses/odbl/\" target=\"_blank\">ODbl</a>.</p> </div> </div> "; // line 54 ob_start(function () { return ''; }); echo __("DarkSky API Key"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 55 echo " "; ob_start(function () { return ''; }); echo __("Enter your API Key from DarkSky."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 56 echo " "; echo $context["forms"]->getinput("apiKey", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getSetting", [0 => "apiKey"], "method"), ($context["helpText"] ?? null)); echo " "; // line 58 ob_start(function () { return ''; }); echo __("Cache Period"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 59 echo " "; ob_start(function () { return ''; }); echo __("Enter the number of seconds you would like to cache long/lat requests for."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 60 echo " "; echo $context["forms"]->getinput("cachePeriod", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getSetting", [0 => "cachePeriod", 1 => 1440], "method"), ($context["helpText"] ?? null)); echo " "; } public function getTemplateName() { return "forecastio-form-settings.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 124 => 60, 119 => 59, 115 => 58, 109 => 56, 104 => 55, 100 => 54, 86 => 44, 81 => 43, 77 => 42, 71 => 40, 66 => 39, 62 => 38, 56 => 36, 47 => 28, 45 => 27, 42 => 26, 37 => 23, 35 => 24, 29 => 23,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("", "forecastio-form-settings.twig", "/home/mgatv524/public_html/midiatech/modules/forecastio-form-settings.twig"); } }