0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
somares
/
cache
/
2c
/
[
Home
]
File: 2cc79850665f9412a0192078fd6da2275baa0dd3b2bcc71d2d6363adca269cf9.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; /* applications-page.twig */ class __TwigTemplate_a82f39213b80a5bd511ae1b0d6d121e906c560c0a95fca02bbce985df4f86a75 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'actionMenu' => [$this, 'block_actionMenu'], 'pageContent' => [$this, 'block_pageContent'], 'javaScript' => [$this, 'block_javaScript'], ]; } protected function doGetParent(array $context) { // line 9 return "authed.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 10 $context["inline"] = $this->loadTemplate("inline.twig", "applications-page.twig", 10)->unwrap(); // line 9 $this->parent = $this->loadTemplate("authed.twig", "applications-page.twig", 9); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 12 public function block_actionMenu($context, array $blocks = []) { // line 13 echo " <ul class=\"nav nav-pills pull-right\"> <li class=\"btn btn-success btn-xs\"><a class=\"XiboFormButton btns\" title=\""; // line 14 echo __("Add an Application"); echo "\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("application.add.form"), "html", null, true); echo "\"> <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> "; echo __("Add Application"); echo "</a></li> "; // line 15 if ($this->getAttribute(($context["currentUser"] ?? null), "isSuperAdmin", [], "method")) { // line 16 echo " <li class=\"btn btn-success btn-xs\"><a class=\"XiboFormButton btns\" title=\""; echo __("Add a DOOH Application"); echo "\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("application.addDooh.form"), "html", null, true); echo "\"> <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> "; echo __("Add DOOH Application"); echo "</a></li> "; } // line 18 echo " </ul> "; } // line 22 public function block_pageContent($context, array $blocks = []) { // line 23 echo " <div class=\"widget\"> <div class=\"widget-title\">"; // line 24 echo __("Applications"); echo "</div> <div class=\"widget-body\"> <div class=\"XiboGrid\" id=\""; // line 26 echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\"> <div class=\"XiboFilter\"> <div class=\"FilterDiv\" id=\"Filter\"> <form class=\"form-inline\"> </form> </div> </div> <div class=\"XiboData\"> <table id=\"applications\" class=\"table table-striped\"> <thead> <tr> <th>"; // line 37 echo __("Name"); echo "</th> <th>"; // line 38 echo __("Owner"); echo "</th> <th>"; // line 39 echo __("Row Menu"); echo "</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> "; } // line 52 public function block_javaScript($context, array $blocks = []) { // line 53 echo " <script type=\"text/javascript\"> var table = \$(\"#applications\").DataTable({ \"language\": dataTablesLanguage, serverSide: true, stateSave: true, stateDuration: 0, stateLoadCallback: function (settings, callback) { var data = {}; \$.ajax({ type: \"GET\", async: false, url: \""; // line 61 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("user.pref"), "html", null, true); echo "?preference=applicationsGrid\", dataType: 'json', success: function (json) { try { if (json.success) { data = JSON.parse(json.data.value); } } catch (e) { // Do nothing } } }); return data; }, stateSaveCallback: function (settings, data) { \$.ajax({ type: \"POST\", url: \""; // line 78 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("user.pref"), "html", null, true); echo "\", data: { preference: [{ option: \"applicationsGrid\", value: JSON.stringify(data) }] } }); }, filter: false, searchDelay: 3000, \"order\": [[ 0, \"asc\"]], ajax: \""; // line 90 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("application.search"), "html", null, true); echo "\", \"columns\": [ { \"data\": \"name\", \"render\": dataTableSpacingPreformatted }, { \"data\": \"owner\" }, { \"orderable\": false, \"data\": dataTableButtonsColumn } ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); dataTableAddButtons(table, \$('#applications_wrapper').find('.col-sm-6').eq(1)); function copyFromSecretInput() { // Initialize the tooltip. \$('#copy-button').tooltip(); \$('#copy-button').bind('click', function() { var input = \$('#clientSecret'); // Select the input to copy input.focus(); input.select(); // Try to copy to clipboard and give feedback try { var success = document.execCommand('copy'); if (success) { \$('#copy-button').trigger('copied', ['Copied!']); } else { \$('#copy-button').trigger('copied', ['Could not copy']); } } catch (err) { \$('#copy-button').trigger('copied', ['Could not copy']); } // Unselect the input input.blur(); }); // Handler for updating the tooltip message. \$('#copy-button').bind('copied', function(event, message) { \$(this).attr('title', message) .tooltip('fixTitle') .tooltip('show') .attr('title', \"Copy to Clipboard\") .tooltip('fixTitle'); }); } </script> "; } public function getTemplateName() { return "applications-page.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 172 => 90, 157 => 78, 137 => 61, 127 => 53, 124 => 52, 108 => 39, 104 => 38, 100 => 37, 86 => 26, 81 => 24, 78 => 23, 75 => 22, 70 => 18, 60 => 16, 58 => 15, 50 => 14, 47 => 13, 44 => 12, 39 => 9, 37 => 10, 31 => 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 Source("", "applications-page.twig", "/home/mgatv524/public_html/somares/views/applications-page.twig"); } }