var/cache/test/twig/f5/f59a574313d214b88c5e09b801bc94d4.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @CmsTenant/Dashboard/Social/main.html.twig */
  14. class __TwigTemplate_a293220ce993767efc16b614a36b7e9a extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'header' => [$this'block_header'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@ui/dashboards/system.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsTenant/Dashboard/Social/main.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsTenant/Dashboard/Social/main.html.twig"));
  39.         $this->parent $this->loadTemplate("@ui/dashboards/system.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_header($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("@CmsTenant/Dashboard/Social/main.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"4"1688512665")->display(twig_array_merge(twig_array_merge($context, ["title" => "Social Media Accounts"]), ['_args' => twig_to_array(["title" => "Social Media Accounts"])]));
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.     }
  62.     // line 36
  63.     public function block_content($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  70.         // line 37
  71.         echo "    ";
  72.         $this->loadTemplate("@ui/common/flash/default.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"37)->display(twig_array_merge($context, ['_args' => []]));
  73.         // line 38
  74.         echo "    ";
  75.         $this->loadTemplate("@CmsTenant/Dashboard/Social/includes/accounts.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"38)->display(twig_array_merge($context, ['_args' => []]));
  76.         // line 39
  77.         echo "    ";
  78.         $this->loadTemplate("@CmsCore/includes/Search/empty.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"39)->display(twig_array_merge(twig_array_merge($context, ["results" => twig_length_filter($this->env,         // line 40
  79. (isset($context["accounts"]) || array_key_exists("accounts"$context) ? $context["accounts"] : (function () { throw new RuntimeError('Variable "accounts" does not exist.'40$this->source); })()))]), ['_args' => twig_to_array(["results" => twig_length_filter($this->env, (isset($context["accounts"]) || array_key_exists("accounts"$context) ? $context["accounts"] : (function () { throw new RuntimeError('Variable "accounts" does not exist.'40$this->source); })()))])]));
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     public function getTemplateName()
  86.     {
  87.         return "@CmsTenant/Dashboard/Social/main.html.twig";
  88.     }
  89.     public function isTraitable()
  90.     {
  91.         return false;
  92.     }
  93.     public function getDebugInfo()
  94.     {
  95.         return array (  98 => 40,  96 => 39,  93 => 38,  90 => 37,  80 => 36,  69 => 4,  59 => 3,  36 => 1,);
  96.     }
  97.     public function getSourceContext()
  98.     {
  99.         return new Source("{% extends '@ui/dashboards/system.html.twig' %}
  100. {% block header %}
  101.     {% embed '@ui/common/headers/new.html.twig' with {
  102.         title: 'Social Media Accounts',
  103.     } %}
  104.         {% block actions %}
  105.             {% include '@ui/common/buttons/default.html.twig' with {
  106.                 text: 'Register Twitter',
  107.                 helper: 'twitter',
  108.                 icon: 'plus',
  109.                 link: curpath(routes.create, {
  110.                     type: 'twitter'
  111.                 })
  112.             } %}
  113.             {% include '@ui/common/buttons/default.html.twig' with {
  114.                 text: 'Register Facebook',
  115.                 helper: 'facebook',
  116.                 icon: 'plus',
  117.                 link: curpath(routes.create, {
  118.                     type: 'facebook'
  119.                 })
  120.             } %}
  121.             {% include '@ui/common/buttons/default.html.twig' with {
  122.                 text: 'Register Instagram',
  123.                 helper: 'facebook',
  124.                 icon: 'plus',
  125.                 link: curpath(routes.create, {
  126.                     type: 'instagram'
  127.                 })
  128.             } %}
  129.         {% endblock %}
  130.     {% endembed %}
  131. {% endblock %}
  132. {% block content %}
  133.     {% include '@ui/common/flash/default.html.twig' %}
  134.     {% include '@CmsTenant/Dashboard/Social/includes/accounts.html.twig' %}
  135.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  136.         results: accounts|length
  137.     } %}
  138. {% endblock %}
  139. ""@CmsTenant/Dashboard/Social/main.html.twig""/var/www/campussuite/src/Cms/TenantBundle/Resources/views/Dashboard/Social/main.html.twig");
  140.     }
  141. }
  142. /* @CmsTenant/Dashboard/Social/main.html.twig */
  143. class __TwigTemplate_a293220ce993767efc16b614a36b7e9a___1688512665 extends \Twig\Template
  144. {
  145.     private $source;
  146.     private $macros = [];
  147.     public function __construct(Environment $env)
  148.     {
  149.         parent::__construct($env);
  150.         $this->source $this->getSourceContext();
  151.         $this->blocks = [
  152.             'actions' => [$this'block_actions'],
  153.         ];
  154.     }
  155.     protected function doGetParent(array $context)
  156.     {
  157.         // line 4
  158.         return "@ui/common/headers/new.html.twig";
  159.     }
  160.     protected function doDisplay(array $context, array $blocks = [])
  161.     {
  162.         $macros $this->macros;
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsTenant/Dashboard/Social/main.html.twig"));
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsTenant/Dashboard/Social/main.html.twig"));
  167.         $this->parent $this->loadTemplate("@ui/common/headers/new.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"4);
  168.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.         
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173.     }
  174.     // line 7
  175.     public function block_actions($context, array $blocks = [])
  176.     {
  177.         $macros $this->macros;
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  182.         // line 8
  183.         echo "            ";
  184.         $this->loadTemplate("@ui/common/buttons/default.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"8)->display(twig_array_merge(twig_array_merge($context, ["text" => "Register Twitter""helper" => "twitter""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source,         // line 12
  185. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'12$this->source); })()), "create", [], "any"falsefalsefalse12), ["type" => "twitter"])]), ['_args' => twig_to_array(["text" => "Register Twitter""helper" => "twitter""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'12$this->source); })()), "create", [], "any"falsefalsefalse12), ["type" => "twitter"])])]));
  186.         // line 16
  187.         echo "            ";
  188.         $this->loadTemplate("@ui/common/buttons/default.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"16)->display(twig_array_merge(twig_array_merge($context, ["text" => "Register Facebook""helper" => "facebook""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source,         // line 20
  189. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'20$this->source); })()), "create", [], "any"falsefalsefalse20), ["type" => "facebook"])]), ['_args' => twig_to_array(["text" => "Register Facebook""helper" => "facebook""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'20$this->source); })()), "create", [], "any"falsefalsefalse20), ["type" => "facebook"])])]));
  190.         // line 24
  191.         echo "            ";
  192.         $this->loadTemplate("@ui/common/buttons/default.html.twig""@CmsTenant/Dashboard/Social/main.html.twig"24)->display(twig_array_merge(twig_array_merge($context, ["text" => "Register Instagram""helper" => "facebook""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source,         // line 28
  193. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'28$this->source); })()), "create", [], "any"falsefalsefalse28), ["type" => "instagram"])]), ['_args' => twig_to_array(["text" => "Register Instagram""helper" => "facebook""icon" => "plus""link" => $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'28$this->source); })()), "create", [], "any"falsefalsefalse28), ["type" => "instagram"])])]));
  194.         // line 32
  195.         echo "        ";
  196.         
  197.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  198.         
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  200.     }
  201.     public function getTemplateName()
  202.     {
  203.         return "@CmsTenant/Dashboard/Social/main.html.twig";
  204.     }
  205.     public function isTraitable()
  206.     {
  207.         return false;
  208.     }
  209.     public function getDebugInfo()
  210.     {
  211.         return array (  236 => 32,  234 => 28,  232 => 24,  230 => 20,  228 => 16,  226 => 12,  224 => 8,  214 => 7,  191 => 4,  98 => 40,  96 => 39,  93 => 38,  90 => 37,  80 => 36,  69 => 4,  59 => 3,  36 => 1,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{% extends '@ui/dashboards/system.html.twig' %}
  216. {% block header %}
  217.     {% embed '@ui/common/headers/new.html.twig' with {
  218.         title: 'Social Media Accounts',
  219.     } %}
  220.         {% block actions %}
  221.             {% include '@ui/common/buttons/default.html.twig' with {
  222.                 text: 'Register Twitter',
  223.                 helper: 'twitter',
  224.                 icon: 'plus',
  225.                 link: curpath(routes.create, {
  226.                     type: 'twitter'
  227.                 })
  228.             } %}
  229.             {% include '@ui/common/buttons/default.html.twig' with {
  230.                 text: 'Register Facebook',
  231.                 helper: 'facebook',
  232.                 icon: 'plus',
  233.                 link: curpath(routes.create, {
  234.                     type: 'facebook'
  235.                 })
  236.             } %}
  237.             {% include '@ui/common/buttons/default.html.twig' with {
  238.                 text: 'Register Instagram',
  239.                 helper: 'facebook',
  240.                 icon: 'plus',
  241.                 link: curpath(routes.create, {
  242.                     type: 'instagram'
  243.                 })
  244.             } %}
  245.         {% endblock %}
  246.     {% endembed %}
  247. {% endblock %}
  248. {% block content %}
  249.     {% include '@ui/common/flash/default.html.twig' %}
  250.     {% include '@CmsTenant/Dashboard/Social/includes/accounts.html.twig' %}
  251.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  252.         results: accounts|length
  253.     } %}
  254. {% endblock %}
  255. ""@CmsTenant/Dashboard/Social/main.html.twig""/var/www/campussuite/src/Cms/TenantBundle/Resources/views/Dashboard/Social/main.html.twig");
  256.     }
  257. }