0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
fmd
/
cache
/
d8
/
[
Home
]
File: d8e2d65b349a8a73230441138cb9df6d97d3ddb135749a0de297cd753b193202.php
<?php /* embedded-form-add.twig */ class __TwigTemplate_10d54beab92f446aea1e9a63edb051ff61769be3230096634fba7a14dae6b98b extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 9 $this->parent = $this->loadTemplate("form-base.twig", "embedded-form-add.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", "embedded-form-add.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 Embedded"); } // 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 ", \$(\"#embeddedForm\").submit() "; } // line 22 public function block_formFieldActions($context, array $blocks = array()) { // line 23 echo " [{ \"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 58 public function block_formHtml($context, array $blocks = array()) { // line 59 echo " <div class=\"row\"> <div class=\"col-md-12\"> <form id=\"embeddedForm\" class=\"XiboForm form-horizontal\" method=\"post\" action=\""; // line 61 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("module.widget.add", array("type" => $this->getAttribute($this->getAttribute(($context["module"] ?? null), "widget", array()), "type", array()), "id" => $this->getAttribute(($context["playlist"] ?? null), "playlistId", array()))), "html", null, true); echo "\"> "; // line 63 ob_start(); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 64 echo " "; ob_start(); echo __("An optional name for this widget"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 65 echo " "; echo $context["forms"]->getinput("name", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " "; // line 67 ob_start(); echo __("Set a duration?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 68 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 69 echo " "; echo $context["forms"]->getcheckbox("useDuration", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)); echo " "; // line 71 ob_start(); echo __("Duration"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 72 echo " "; ob_start(); echo __("The duration in seconds this should be displayed"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 73 echo " "; echo $context["forms"]->getnumber("duration", ($context["title"] ?? null), $this->getAttribute($this->getAttribute(($context["module"] ?? null), "getModule", array(), "method"), "defaultDuration", array()), ($context["helpText"] ?? null), "duration-fields", "required"); echo " "; // line 75 ob_start(); echo __("Background transparent?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 76 echo " "; ob_start(); echo __("Should the HTML be shown with a transparent background. Not current available on the Windows Display Client."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 77 echo " "; echo $context["forms"]->getcheckbox("transparency", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)); echo " "; // line 79 ob_start(); echo __("Scale Content?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 80 echo " "; ob_start(); echo __("Should the embedded content be scaled along with the layout?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 81 echo " "; echo $context["forms"]->getcheckbox("scaleContent", ($context["title"] ?? null), 1, ($context["helpText"] ?? null)); echo " "; // line 83 ob_start(); echo __("HTML to Embed"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 84 echo " "; echo $context["forms"]->gettextarea("embedHtml", "", "", ($context["helpText"] ?? null), "", "", 10); echo " "; // line 86 $context["styleDefault"] = ('' === $tmp = "<style type=\"text/css\"> </style> ") ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 91 echo " "; ob_start(); echo __("Custom Style Sheets"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 92 echo " "; echo $context["forms"]->gettextarea("embedStyle", "", ($context["styleDefault"] ?? null), ($context["helpText"] ?? null), "", "", 10); echo " "; // line 94 $context["scriptDefault"] = ('' === $tmp = "<script type=\"text/javascript\"> function EmbedInit() { // Init will be called when this page is loaded in the client. return; } </script> ") ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 104 echo " "; ob_start(); echo __("HEAD content to Embed (including script tags)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 105 echo " "; echo $context["forms"]->gettextarea("embedScript", "", ($context["scriptDefault"] ?? null), ($context["helpText"] ?? null), "", "", 10); echo " </form> </div> </div> "; } public function getTemplateName() { return "embedded-form-add.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 230 => 105, 225 => 104, 215 => 94, 209 => 92, 204 => 91, 199 => 86, 193 => 84, 189 => 83, 183 => 81, 178 => 80, 174 => 79, 168 => 77, 163 => 76, 159 => 75, 153 => 73, 148 => 72, 144 => 71, 138 => 69, 133 => 68, 129 => 67, 123 => 65, 118 => 64, 114 => 63, 109 => 61, 105 => 59, 102 => 58, 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 Embedded\" %} {% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#embeddedForm\").submit() {% endblock %} {% block formFieldActions %} [{ \"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=\"embeddedForm\" class=\"XiboForm form-horizontal\" method=\"post\" action=\"{{ urlFor(\"module.widget.add\", {type: module.widget.type, id: playlist.playlistId}) }}\"> {% set title %}{% trans \"Name\" %}{% endset %} {% set helpText %}{% trans \"An optional name for this widget\" %}{% endset %} {{ forms.input(\"name\", title, \"\", 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, 0, helpText) }} {% set title %}{% trans \"Duration\" %}{% endset %} {% set helpText %}{% trans \"The duration in seconds this should be displayed\" %}{% endset %} {{ forms.number(\"duration\", title, module.getModule().defaultDuration, helpText, \"duration-fields\", \"required\") }} {% set title %}{% trans \"Background transparent?\" %}{% endset %} {% set helpText %}{% trans \"Should the HTML be shown with a transparent background. Not current available on the Windows Display Client.\" %}{% endset %} {{ forms.checkbox(\"transparency\", title, 0, helpText) }} {% set title %}{% trans \"Scale Content?\" %}{% endset %} {% set helpText %}{% trans \"Should the embedded content be scaled along with the layout?\" %}{% endset %} {{ forms.checkbox(\"scaleContent\", title, 1, helpText) }} {% set helpText %}{% trans \"HTML to Embed\" %}{% endset %} {{ forms.textarea(\"embedHtml\", \"\", \"\", helpText, \"\", \"\", 10) }} {% set styleDefault %} <style type=\"text/css\"> </style> {% endset %} {% set helpText %}{% trans \"Custom Style Sheets\" %}{% endset %} {{ forms.textarea(\"embedStyle\", \"\", styleDefault, helpText, \"\", \"\", 10) }} {% set scriptDefault %} <script type=\"text/javascript\"> function EmbedInit() { // Init will be called when this page is loaded in the client. return; } </script> {% endset %} {% set helpText %}{% trans \"HEAD content to Embed (including script tags)\" %}{% endset %} {{ forms.textarea(\"embedScript\", \"\", scriptDefault, helpText, \"\", \"\", 10) }} </form> </div> </div> {% endblock %}", "embedded-form-add.twig", "/home2/mgatv524/public_html/fmd/modules/embedded-form-add.twig"); } }