0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
fmd
/
cache
/
91
/
[
Home
]
File: 91663581ec3795c98b80532b7e46f4810df9f63140a6bd51e5c3b35e2ccc6bf0.php
<?php /* webpage-form-edit.twig */ class __TwigTemplate_7f0357d3aaa8ab7f11b18025cecf5988a9bcbfad72419e4b6a59c4e7e5ab6b41 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 9 $this->parent = $this->loadTemplate("form-base.twig", "webpage-form-edit.twig", 9); $this->blocks = array( 'formTitle' => array($this, 'block_formTitle'), 'formButtons' => array($this, 'block_formButtons'), 'formFieldActions' => array($this, 'block_formFieldActions'), 'formHtml' => array($this, 'block_formHtml'), ); } protected function doGetParent(array $context) { return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = array()) { // line 10 $context["forms"] = $this->loadTemplate("forms.twig", "webpage-form-edit.twig", 10); // line 9 $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 12 public function block_formTitle($context, array $blocks = array()) { // line 13 echo " "; echo __("Add Webpage"); } // line 16 public function block_formButtons($context, array $blocks = array()) { // line 17 echo " "; echo __("Help"); echo ", XiboHelpRender(\""; echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true); echo "\") "; // line 18 echo __("Cancel"); echo ", XiboDialogClose() "; // line 19 echo __("Save"); echo ", \$(\"#webpageEditForm\").submit() "; } // line 22 public function block_formFieldActions($context, array $blocks = array()) { // line 23 echo " [{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 1, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"none\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 1, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"none\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 2, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"block\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 2, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"block\" } } },{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 3, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 3, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"init\", \"value\": false, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"change\", \"value\": false, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"init\", \"value\": true, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"block\" } } },{ \"field\": \"useDuration\", \"trigger\": \"change\", \"value\": true, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"block\" } } }] "; } // line 112 public function block_formHtml($context, array $blocks = array()) { // line 113 echo " <div class=\"row\"> <div class=\"col-md-12\"> <form id=\"webpageEditForm\" class=\"XiboForm form-horizontal\" method=\"put\" action=\""; // line 115 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("module.widget.edit", array("id" => $this->getAttribute($this->getAttribute(($context["module"] ?? null), "widget", array()), "widgetId", array()))), "html", null, true); echo "\"> "; // line 116 ob_start(); echo __("Link"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 117 echo " "; ob_start(); echo __("The Location (URL) of the webpage"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 118 echo " "; echo $context["forms"]->getinput("uri", ($context["title"] ?? null), $this->env->getExtension('Xibo\Twig\UrlDecodeTwigExtension')->urlDecode($this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "uri"), "method")), ($context["helpText"] ?? null), "required"); echo " "; // line 120 ob_start(); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 121 echo " "; ob_start(); echo __("An optional name for this widget"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 122 echo " "; echo $context["forms"]->getinput("name", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "name"), "method"), ($context["helpText"] ?? null)); echo " "; // line 124 ob_start(); echo __("Set a duration?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 125 echo " "; ob_start(); echo __("Select to provide a specific duration for this Widget"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 126 echo " "; echo $context["forms"]->getcheckbox("useDuration", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getUseDuration", array(), "method"), ($context["helpText"] ?? null)); echo " "; // line 128 ob_start(); echo __("Duration"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 129 echo " "; ob_start(); echo __("The duration in seconds this item should be displayed"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 130 echo " "; echo $context["forms"]->getnumber("duration", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getDuration", array(), "method"), ($context["helpText"] ?? null), "duration-fields", "required"); echo " "; // line 132 ob_start(); echo __("Options"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 133 echo " "; ob_start(); echo __("How should this web page be embedded?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 134 echo " "; ob_start(); echo __("Open Natively"); $context["openNatively"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 135 echo " "; ob_start(); echo __("Manual Position"); $context["manualPosition"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 136 echo " "; ob_start(); echo __("Best Fit"); $context["bestFit"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 137 echo " "; $context["options"] = array(0 => array("modeid" => 1, "mode" => // line 138 ($context["openNatively"] ?? null)), 1 => array("modeid" => 2, "mode" => // line 139 ($context["manualPosition"] ?? null)), 2 => array("modeid" => 3, "mode" => // line 140 ($context["bestFit"] ?? null))); // line 142 echo " "; echo $context["forms"]->getdropdown("modeId", "single", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "modeid"), "method"), ($context["options"] ?? null), "modeid", "mode", ($context["helpText"] ?? null)); echo " "; // line 144 ob_start(); echo __("Page Width"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 145 echo " "; ob_start(); echo __("The width of the page. Leave empty to use the region width."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 146 echo " "; echo $context["forms"]->getnumber("pageWidth", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "pageWidth"), "method"), ($context["helpText"] ?? null), "webpage-widths"); echo " "; // line 148 ob_start(); echo __("Page Height"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 149 echo " "; ob_start(); echo __("The height of the page. Leave empty to use the region height."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 150 echo " "; echo $context["forms"]->getnumber("pageHeight", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "pageHeight"), "method"), ($context["helpText"] ?? null), "webpage-widths"); echo " "; // line 152 ob_start(); echo __("Offset Top"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 153 echo " "; ob_start(); echo __("The starting point from the top in pixels"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 154 echo " "; echo $context["forms"]->getnumber("offsetTop", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "offsetTop"), "method"), ($context["helpText"] ?? null), "webpage-offsets"); echo " "; // line 156 ob_start(); echo __("Offset Left"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 157 echo " "; ob_start(); echo __("The starting point from the left in pixels"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 158 echo " "; echo $context["forms"]->getnumber("offsetLeft", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "offsetLeft"), "method"), ($context["helpText"] ?? null), "webpage-offsets"); echo " "; // line 160 ob_start(); echo __("Scale Percentage"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 161 echo " "; ob_start(); echo __("The Percentage to Scale this Webpage (0 - 100)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 162 echo " "; echo $context["forms"]->getnumber("scaling", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "getOption", array(0 => "scaling"), "method"), ($context["helpText"] ?? null), "webpage-offsets"); echo " "; // line 164 ob_start(); echo __("Background transparent?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 165 echo " "; ob_start(); echo __("Should the HTML be shown with a transparent background. Not currently available on the Windows Display Client."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 166 echo " "; echo $context["forms"]->getcheckbox("transparency", ($context["title"] ?? null), $this->getAttribute(($context["module"] ?? null), "GetOption", array(0 => "transparency"), "method"), ($context["helpText"] ?? null)); echo " </form> </div> </div> "; } public function getTemplateName() { return "webpage-form-edit.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 347 => 166, 342 => 165, 338 => 164, 332 => 162, 327 => 161, 323 => 160, 317 => 158, 312 => 157, 308 => 156, 302 => 154, 297 => 153, 293 => 152, 287 => 150, 282 => 149, 278 => 148, 272 => 146, 267 => 145, 263 => 144, 257 => 142, 255 => 140, 254 => 139, 253 => 138, 251 => 137, 246 => 136, 241 => 135, 236 => 134, 231 => 133, 227 => 132, 221 => 130, 216 => 129, 212 => 128, 206 => 126, 201 => 125, 197 => 124, 191 => 122, 186 => 121, 182 => 120, 176 => 118, 171 => 117, 167 => 116, 163 => 115, 159 => 113, 156 => 112, 65 => 23, 62 => 22, 56 => 19, 52 => 18, 45 => 17, 42 => 16, 37 => 13, 34 => 12, 30 => 9, 28 => 10, 11 => 9,); } /** @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 Twig_Source("{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (\${FILE_NAME}) */ #} {% extends \"form-base.twig\" %} {% import \"forms.twig\" as forms %} {% block formTitle %} {% trans \"Add Webpage\" %} {% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#webpageEditForm\").submit() {% endblock %} {% block formFieldActions %} [{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 1, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"none\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 1, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"none\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 2, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"block\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 2, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"block\" } } },{ \"field\": \"modeId\", \"trigger\": \"init\", \"value\": 3, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"modeId\", \"trigger\": \"change\", \"value\": 3, \"operation\": \"equals\", \"actions\": { \".webpage-widths\": { \"display\": \"block\" }, \".webpage-offsets\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"init\", \"value\": false, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"change\", \"value\": false, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"none\" } } },{ \"field\": \"useDuration\", \"trigger\": \"init\", \"value\": true, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"block\" } } },{ \"field\": \"useDuration\", \"trigger\": \"change\", \"value\": true, \"operation\": \"is:checked\", \"actions\": { \".duration-fields\": { \"display\": \"block\" } } }] {% endblock %} {% block formHtml %} <div class=\"row\"> <div class=\"col-md-12\"> <form id=\"webpageEditForm\" class=\"XiboForm form-horizontal\" method=\"put\" action=\"{{ urlFor(\"module.widget.edit\", {id: module.widget.widgetId}) }}\"> {% set title %}{% trans \"Link\" %}{% endset %} {% set helpText %}{% trans \"The Location (URL) of the webpage\" %}{% endset %} {{ forms.input(\"uri\", title, module.getOption(\"uri\")|url_decode, helpText, \"required\") }} {% set title %}{% trans \"Name\" %}{% endset %} {% set helpText %}{% trans \"An optional name for this widget\" %}{% endset %} {{ forms.input(\"name\", title, module.getOption(\"name\"), helpText) }} {% set title %}{% trans \"Set a duration?\" %}{% endset %} {% set helpText %}{% trans \"Select to provide a specific duration for this Widget\" %}{% endset %} {{ forms.checkbox(\"useDuration\", title, module.getUseDuration(), helpText) }} {% set title %}{% trans \"Duration\" %}{% endset %} {% set helpText %}{% trans \"The duration in seconds this item should be displayed\" %}{% endset %} {{ forms.number(\"duration\", title, module.getDuration(), helpText, \"duration-fields\", \"required\")}} {% set title %}{% trans \"Options\" %}{% endset %} {% set helpText %}{% trans \"How should this web page be embedded?\" %}{% endset %} {% set openNatively %}{% trans \"Open Natively\" %}{% endset %} {% set manualPosition %}{% trans \"Manual Position\" %}{% endset %} {% set bestFit %}{% trans \"Best Fit\" %}{% endset %} {% set options = [ { modeid: 1, mode: openNatively }, { modeid: 2, mode: manualPosition }, { modeid: 3, mode: bestFit } ] %} {{ forms.dropdown(\"modeId\", \"single\", title, module.getOption(\"modeid\"), options, \"modeid\", \"mode\", helpText) }} {% set title %}{% trans \"Page Width\" %}{% endset %} {% set helpText %}{% trans \"The width of the page. Leave empty to use the region width.\" %}{% endset %} {{ forms.number(\"pageWidth\", title, module.getOption(\"pageWidth\"), helpText, \"webpage-widths\") }} {% set title %}{% trans \"Page Height\" %}{% endset %} {% set helpText %}{% trans \"The height of the page. Leave empty to use the region height.\" %}{% endset %} {{ forms.number(\"pageHeight\", title, module.getOption(\"pageHeight\"), helpText, \"webpage-widths\") }} {% set title %}{% trans \"Offset Top\" %}{% endset %} {% set helpText %}{% trans \"The starting point from the top in pixels\" %}{% endset %} {{ forms.number(\"offsetTop\", title, module.getOption(\"offsetTop\"), helpText, \"webpage-offsets\") }} {% set title %}{% trans \"Offset Left\" %}{% endset %} {% set helpText %}{% trans \"The starting point from the left in pixels\" %}{% endset %} {{ forms.number(\"offsetLeft\", title, module.getOption(\"offsetLeft\"), helpText, \"webpage-offsets\") }} {% set title %}{% trans \"Scale Percentage\" %}{% endset %} {% set helpText %}{% trans \"The Percentage to Scale this Webpage (0 - 100)\" %}{% endset %} {{ forms.number(\"scaling\", title, module.getOption(\"scaling\"), helpText, \"webpage-offsets\") }} {% set title %}{% trans \"Background transparent?\" %}{% endset %} {% set helpText %}{% trans \"Should the HTML be shown with a transparent background. Not currently available on the Windows Display Client.\" %}{% endset %} {{ forms.checkbox(\"transparency\", title, module.GetOption(\"transparency\"), helpText) }} </form> </div> </div> {% endblock %}", "webpage-form-edit.twig", "/home2/mgatv524/public_html/fmd/modules/webpage-form-edit.twig"); } }