var/cache/dev/twig/f6/f6b572aad9f7961ff13a1f42b5df78ebcc73cfaf529950300deeaaee3c8cfb44.php line 33

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. /* Event/printableParticipants.html.twig */
  14. class __TwigTemplate_f5374570ce2b0a804dc817488fece2c5066bab4a6971e918536639ca33dde1f8 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Event/printableParticipants.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Event/printableParticipants.html.twig"));
  33.         // line 1
  34.         echo "<!doctype html>
  35. <html lang=\"en\">
  36. <head>
  37.     <meta charset=\"UTF-8\">
  38.     <meta name=\"viewport\"
  39.           content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
  40.     <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
  41.     <title>Event Participants | printable</title>
  42.     <style>
  43.         p{margin: 0;}
  44.     </style>
  45. </head>
  46. <body>
  47. Event: <strong>";
  48.         // line 14
  49.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'14$this->source); })()), "event", [], "any"falsefalsefalse14), "title", [], "any"falsefalsefalse14), "html"nulltrue);
  50.         echo "</strong> (";
  51.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'14$this->source); })()), "event", [], "any"falsefalsefalse14), "idEvent", [], "any"falsefalsefalse14), "html"nulltrue);
  52.         echo ")<br />
  53. Date: ";
  54.         // line 15
  55.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'15$this->source); })()), "event", [], "any"falsefalsefalse15), "startOn", [], "any"falsefalsefalse15), "Y-M-d"), "html"nulltrue);
  56.         echo " to ";
  57.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'15$this->source); })()), "event", [], "any"falsefalsefalse15), "endOn", [], "any"falsefalsefalse15), "Y-M-d"), "html"nulltrue);
  58.         echo "<br /><br />
  59. ";
  60.         // line 16
  61.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  62.             // line 17
  63.             echo "    ";
  64.             $context['_parent'] = $context;
  65.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'17$this->source); })()), "participants", [], "any"falsefalsefalse17));
  66.             foreach ($context['_seq'] as $context["role"] => $context["participants"]) {
  67.                 // line 18
  68.                 echo "        <strong>";
  69.                 echo twig_escape_filter($this->env$context["role"], "html"nulltrue);
  70.                 echo "</strong><br /><br />
  71.         ";
  72.                 // line 19
  73.                 $context['_parent'] = $context;
  74.                 $context['_seq'] = twig_ensure_traversable($context["participants"]);
  75.                 foreach ($context['_seq'] as $context["_key"] => $context["participant"]) {
  76.                     // line 20
  77.                     echo "            ";
  78.                     if ((twig_get_attribute($this->env$this->source$context["participant"], "title", [], "any"falsefalsefalse20) != "")) {
  79.                         // line 21
  80.                         echo "                ";
  81.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "title", [], "any"falsefalsefalse21), "html"nulltrue);
  82.                         echo "
  83.             ";
  84.                     }
  85.                     // line 23
  86.                     echo "            ";
  87.                     echo twig_escape_filter($this->env, ((twig_title_string_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "fname", [], "any"falsefalsefalse23)) . " ") . twig_upper_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "sname", [], "any"falsefalsefalse23))), "html"nulltrue);
  88.                     echo " (";
  89.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "idInd", [], "any"falsefalsefalse23), "html"nulltrue);
  90.                     echo ")<br />
  91.             ";
  92.                     // line 24
  93.                     if ((twig_get_attribute($this->env$this->source$context["participant"], "jobtitle", [], "any"falsefalsefalse24) != "")) {
  94.                         // line 25
  95.                         echo "                ";
  96.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "jobtitle", [], "any"falsefalsefalse25), "html"nulltrue);
  97.                         echo "<br />
  98.             ";
  99.                     }
  100.                     // line 27
  101.                     echo "            ";
  102.                     if ((twig_get_attribute($this->env$this->source$context["participant"], "dept", [], "any"falsefalsefalse27) != "")) {
  103.                         // line 28
  104.                         echo "                ";
  105.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "dept", [], "any"falsefalsefalse28), "html"nulltrue);
  106.                         echo "<br />
  107.             ";
  108.                     }
  109.                     // line 30
  110.                     echo "            ";
  111.                     if ((twig_get_attribute($this->env$this->source$context["participant"], "instName", [], "any"falsefalsefalse30) != "")) {
  112.                         // line 31
  113.                         echo "                ";
  114.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "instName", [], "any"falsefalsefalse31), "html"nulltrue);
  115.                         echo "<br />
  116.             ";
  117.                     }
  118.                     // line 33
  119.                     echo "            ";
  120.                     if (((twig_get_attribute($this->env$this->source$context["participant"], "instNameEng", [], "any"falsefalsefalse33) != "") && (twig_get_attribute($this->env$this->source,                     // line 34
  121. $context["participant"], "instNameEng", [], "any"falsefalsefalse34) != twig_get_attribute($this->env$this->source$context["participant"], "instName", [], "any"falsefalsefalse34)))) {
  122.                         // line 36
  123.                         echo "                ";
  124.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "instNameEng", [], "any"falsefalsefalse36), "html"nulltrue);
  125.                         echo "<br />
  126.             ";
  127.                     }
  128.                     // line 38
  129.                     echo "            ";
  130.                     if ((twig_get_attribute($this->env$this->source$context["participant"], "address", [], "any"falsefalsefalse38) != "")) {
  131.                         // line 39
  132.                         echo "                ";
  133.                         echo twig_get_attribute($this->env$this->source$context["participant"], "address", [], "any"falsefalsefalse39);
  134.                         echo "<br />
  135.             ";
  136.                     }
  137.                     // line 41
  138.                     echo "            ";
  139.                     if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "user", [], "any"falsefalsefalse41)) {
  140.                         // line 42
  141.                         echo "                ";
  142.                         if ((twig_get_attribute($this->env$this->source$context["participant"], "tel", [], "any"falsefalsefalse42) != "")) {
  143.                             // line 43
  144.                             echo "                    Tel: ";
  145.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "tel", [], "any"falsefalsefalse43), "html"nulltrue);
  146.                             echo "<br />
  147.                 ";
  148.                         }
  149.                         // line 45
  150.                         echo "                ";
  151.                         if ((twig_get_attribute($this->env$this->source$context["participant"], "email1", [], "any"truetruefalse45) && (twig_get_attribute($this->env$this->source,                         // line 46
  152. $context["participant"], "email1", [], "any"falsefalsefalse46) != ""))) {
  153.                             // line 48
  154.                             echo "                    Email1: ";
  155.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "email1", [], "any"falsefalsefalse48), "html"nulltrue);
  156.                             echo "<br />
  157.                 ";
  158.                         }
  159.                         // line 50
  160.                         echo "                ";
  161.                         if (((twig_get_attribute($this->env$this->source$context["participant"], "email2", [], "any"truetruefalse50) && (twig_get_attribute($this->env$this->source,                         // line 51
  162. $context["participant"], "email2", [], "any"falsefalsefalse51) != "")) && (twig_get_attribute($this->env$this->source,                         // line 52
  163. $context["participant"], "email1", [], "any"falsefalsefalse52) != twig_get_attribute($this->env$this->source$context["participant"], "email2", [], "any"falsefalsefalse52)))) {
  164.                             // line 54
  165.                             echo "                    Email2: ";
  166.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["participant"], "email2", [], "any"falsefalsefalse54), "html"nulltrue);
  167.                             echo "<br />
  168.                 ";
  169.                         }
  170.                         // line 56
  171.                         echo "            ";
  172.                     }
  173.                     // line 57
  174.                     echo "            <br /><br />
  175.         ";
  176.                 }
  177.                 $_parent $context['_parent'];
  178.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['participant'], $context['_parent'], $context['loop']);
  179.                 $context array_intersect_key($context$_parent) + $_parent;
  180.                 // line 59
  181.                 echo "
  182.     ";
  183.             }
  184.             $_parent $context['_parent'];
  185.             unset($context['_seq'], $context['_iterated'], $context['role'], $context['participants'], $context['_parent'], $context['loop']);
  186.             $context array_intersect_key($context$_parent) + $_parent;
  187.         } else {
  188.             // line 62
  189.             echo "    <p>Sorry, you need to login to see this list.</p>
  190. ";
  191.         }
  192.         // line 64
  193.         echo "
  194. </body>
  195. </html>
  196. ";
  197.         
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  199.         
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "Event/printableParticipants.html.twig";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         return array (  202 => 64,  198 => 62,  190 => 59,  183 => 57,  180 => 56,  174 => 54,  172 => 52,  171 => 51,  169 => 50,  163 => 48,  161 => 46,  159 => 45,  153 => 43,  150 => 42,  147 => 41,  141 => 39,  138 => 38,  132 => 36,  130 => 34,  128 => 33,  122 => 31,  119 => 30,  113 => 28,  110 => 27,  104 => 25,  102 => 24,  95 => 23,  89 => 21,  86 => 20,  82 => 19,  77 => 18,  72 => 17,  70 => 16,  64 => 15,  58 => 14,  43 => 1,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("<!doctype html>
  217. <html lang=\"en\">
  218. <head>
  219.     <meta charset=\"UTF-8\">
  220.     <meta name=\"viewport\"
  221.           content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
  222.     <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
  223.     <title>Event Participants | printable</title>
  224.     <style>
  225.         p{margin: 0;}
  226.     </style>
  227. </head>
  228. <body>
  229. Event: <strong>{{ data.event.title }}</strong> ({{ data.event.idEvent }})<br />
  230. Date: {{ data.event.startOn| date('Y-M-d') }} to {{ data.event.endOn | date('Y-M-d') }}<br /><br />
  231. {% if is_granted('ROLE_USER') %}
  232.     {% for role, participants in data.participants %}
  233.         <strong>{{ role }}</strong><br /><br />
  234.         {% for participant in participants %}
  235.             {% if participant.title != \"\" %}
  236.                 {{ participant.title }}
  237.             {% endif %}
  238.             {{ participant.fname | title ~' '~ participant.sname|upper}} ({{ participant.idInd }})<br />
  239.             {% if participant.jobtitle != \"\" %}
  240.                 {{ participant.jobtitle }}<br />
  241.             {% endif %}
  242.             {% if participant.dept != \"\" %}
  243.                 {{ participant.dept }}<br />
  244.             {% endif %}
  245.             {% if participant.instName != \"\" %}
  246.                 {{ participant.instName}}<br />
  247.             {% endif %}
  248.             {% if participant.instNameEng != \"\"
  249.                 and participant.instNameEng != participant.instName
  250.             %}
  251.                 {{ participant.instNameEng}}<br />
  252.             {% endif %}
  253.             {% if participant.address != \"\" %}
  254.                 {{ participant.address | raw}}<br />
  255.             {% endif %}
  256.             {% if app.user %}
  257.                 {% if participant.tel != \"\" %}
  258.                     Tel: {{ participant.tel }}<br />
  259.                 {% endif %}
  260.                 {% if participant.email1 is defined
  261.                     and participant.email1 !=\"\"
  262.                 %}
  263.                     Email1: {{ participant.email1 }}<br />
  264.                 {% endif %}
  265.                 {% if participant.email2 is defined
  266.                     and participant.email2 !=\"\"
  267.                     and participant.email1 != participant.email2
  268.                 %}
  269.                     Email2: {{ participant.email2 }}<br />
  270.                 {% endif %}
  271.             {% endif %}
  272.             <br /><br />
  273.         {% endfor %}
  274.     {% endfor %}
  275. {% else %}
  276.     <p>Sorry, you need to login to see this list.</p>
  277. {% endif %}
  278. </body>
  279. </html>
  280. ""Event/printableParticipants.html.twig""/var/www/html/oceanexpert_dev/templates/Event/printableParticipants.html.twig");
  281.     }
  282. }