0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
mixmidia
/
cache
/
ab
/
[
Home
]
File: ab5141cc1c1b9a932304f11519f7aed3e829a45b89de3a07cad08301df22ba29.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; /* module-form-audio.twig */ class __TwigTemplate_6ab1b6bf329157a0fdc8ea6d6128053d4dfeef3eaa30c69b1eb9694a783106a6 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'formTitle' => [$this, 'block_formTitle'], 'formButtons' => [$this, 'block_formButtons'], 'formHtml' => [$this, 'block_formHtml'], ]; } protected function doGetParent(array $context) { // line 10 return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 11 $context["forms"] = $this->loadTemplate("forms.twig", "module-form-audio.twig", 11)->unwrap(); // line 10 $this->parent = $this->loadTemplate("form-base.twig", "module-form-audio.twig", 10); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 13 public function block_formTitle($context, array $blocks = []) { // line 14 echo " "; $context["name"] = $this->getAttribute(($context["module"] ?? null), "getName", [], "method"); // line 15 echo " "; /* xgettext:no-php-format */ echo strtr(__("Audio for %name%"), array("%name%" => ($context["name"] ?? null), )); } // line 18 public function block_formButtons($context, array $blocks = []) { // line 19 echo " "; echo __("Cancel"); echo ", XiboDialogClose() "; // line 20 echo __("Save"); echo ", \$(\"#widgetAudioForm\").submit() "; } // line 23 public function block_formHtml($context, array $blocks = []) { // line 24 echo " "; // line 25 if (($this->getAttribute($this->getAttribute(($context["module"] ?? null), "widget", []), "countAudio", []) > 0)) { // line 26 echo " "; $context["audio"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["module"] ?? null), "widget", []), "audio", []), 0, [], "array"); // line 27 echo " "; $context["mediaId"] = $this->getAttribute(($context["audio"] ?? null), "mediaId", []); // line 28 echo " "; $context["volume"] = $this->getAttribute(($context["audio"] ?? null), "volume", []); // line 29 echo " "; $context["loop"] = $this->getAttribute(($context["audio"] ?? null), "loop", []); // line 30 echo " "; } else { // line 31 echo " "; $context["mediaId"] = 0; // line 32 echo " "; $context["volume"] = 100; // line 33 echo " "; $context["loop"] = 0; // line 34 echo " "; } // line 35 echo " <div class=\"row\"> <div class=\"col-md-12\"> <form id=\"widgetAudioForm\" class=\"XiboForm form-horizontal\" method=\"put\" action=\""; // line 38 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("module.widget.audio", ["id" => $this->getAttribute($this->getAttribute(($context["module"] ?? null), "widget", []), "widgetId", [])]), "html", null, true); echo "\"> "; // line 40 ob_start(function () { return ''; }); echo __("Audio Media"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 41 echo " "; ob_start(function () { return ''; }); echo __("Select the audio file that should be played when this Widget starts."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 42 echo " "; echo $context["forms"]->getdropdown("mediaId", "single", ($context["title"] ?? null), ($context["mediaId"] ?? null), twig_array_merge([0 => ["mediaId" => 0, "name" => ""]], ($context["media"] ?? null)), "mediaId", "name", ($context["helpText"] ?? null)); echo " "; // line 44 if ( !($context["isAudioAvailable"] ?? null)) { // line 45 echo " "; ob_start(function () { return ''; }); echo __("The currently selected audio has been retired, please select a new item or cancel to keep the current one."); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 46 echo " "; echo $context["forms"]->getmessage(($context["message"] ?? null), "alert alert-danger"); echo " "; } // line 48 echo " "; // line 49 ob_start(function () { return ''; }); echo __("Volume"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 50 echo " "; ob_start(function () { return ''; }); echo __("Enter the volume percentage for this audio to play at."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 51 echo " "; echo $context["forms"]->getnumber("volume", ($context["title"] ?? null), ($context["volume"] ?? null), ($context["helpText"] ?? null)); echo " "; // line 53 ob_start(function () { return ''; }); echo __("Loop?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 54 echo " "; ob_start(function () { return ''; }); echo __("Should the audio loop if it finishes before the widget has finished?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 55 echo " "; echo $context["forms"]->getcheckbox("loop", ($context["title"] ?? null), ($context["loop"] ?? null), ($context["helpText"] ?? null), "loop-fields"); echo " </form> </div> </div> "; } public function getTemplateName() { return "module-form-audio.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 169 => 55, 164 => 54, 160 => 53, 154 => 51, 149 => 50, 145 => 49, 142 => 48, 136 => 46, 131 => 45, 129 => 44, 123 => 42, 118 => 41, 114 => 40, 109 => 38, 104 => 35, 101 => 34, 98 => 33, 95 => 32, 92 => 31, 89 => 30, 86 => 29, 83 => 28, 80 => 27, 77 => 26, 75 => 25, 72 => 24, 69 => 23, 63 => 20, 58 => 19, 55 => 18, 50 => 15, 47 => 14, 44 => 13, 39 => 10, 37 => 11, 31 => 10,); } /** @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("", "module-form-audio.twig", "/home/mgatv524/public_html/mixmidia/views/module-form-audio.twig"); } }