32706ad0899a349c388ab2d21b166dd92cb8d43e5be0aba0eb8ef4e2bdd9edab.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?php
  2. /* partials/plugin-data.html.twig */
  3. class __TwigTemplate_aafd66838b73a719e5d2a7bb73e96e24e83eb7fcd3d69480808c5fd6c8b1cb1f extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. echo "<table>
  16. ";
  17. // line 2
  18. if ($this->getAttribute(($context["plugin"] ?? null), "author", array())) {
  19. // line 3
  20. echo " <tr>
  21. <td>";
  22. // line 4
  23. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AUTHOR"), "html", null, true);
  24. echo ":</td>
  25. <td class=\"double\">
  26. ";
  27. // line 6
  28. if ($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "url", array())) {
  29. // line 7
  30. echo " <a href=\"";
  31. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "url", array()), "html", null, true);
  32. echo "\" target=\"_blank\">";
  33. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "name", array()), "html", null, true);
  34. echo "</a>
  35. ";
  36. } else {
  37. // line 9
  38. echo " ";
  39. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "name", array()), "html", null, true);
  40. echo "
  41. ";
  42. }
  43. // line 11
  44. echo " ";
  45. if ($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array())) {
  46. // line 12
  47. echo " - <a href=\"mailto:";
  48. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array()), "html", null, true);
  49. echo "\">";
  50. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array()), "html", null, true);
  51. echo "</a>
  52. ";
  53. }
  54. // line 14
  55. echo " </td>
  56. </tr>
  57. ";
  58. }
  59. // line 17
  60. echo " ";
  61. if ($this->getAttribute(($context["plugin"] ?? null), "homepage", array())) {
  62. // line 18
  63. echo " <tr>
  64. <td>";
  65. // line 19
  66. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.HOMEPAGE"), "html", null, true);
  67. echo ":</td>
  68. <td class=\"double\"><a href=\"";
  69. // line 20
  70. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "homepage", array()), "html", null, true);
  71. echo "\" target=\"_blank\">";
  72. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "homepage", array()), "html", null, true);
  73. echo "</a></td>
  74. </tr>
  75. ";
  76. }
  77. // line 23
  78. echo " ";
  79. if ($this->getAttribute(($context["plugin"] ?? null), "demo", array())) {
  80. // line 24
  81. echo " <tr>
  82. <td>";
  83. // line 25
  84. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DEMO"), "html", null, true);
  85. echo ":</td>
  86. <td class=\"double\"><a href=\"";
  87. // line 26
  88. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "demo", array()), "html", null, true);
  89. echo "\" target=\"_blank\">";
  90. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "demo", array()), "html", null, true);
  91. echo "</a></td>
  92. </tr>
  93. ";
  94. }
  95. // line 29
  96. echo " ";
  97. if ($this->getAttribute(($context["plugin"] ?? null), "bugs", array())) {
  98. // line 30
  99. echo " <tr>
  100. <td>";
  101. // line 31
  102. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BUG_TRACKER"), "html", null, true);
  103. echo ":</td>
  104. <td class=\"double\"><a href=\"";
  105. // line 32
  106. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "bugs", array()), "html", null, true);
  107. echo "\" target=\"_blank\">";
  108. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "bugs", array()), "html", null, true);
  109. echo "</a></td>
  110. </tr>
  111. ";
  112. }
  113. // line 35
  114. echo " ";
  115. if ($this->getAttribute(($context["plugin"] ?? null), "keywords", array())) {
  116. // line 36
  117. echo " <tr>
  118. <td>";
  119. // line 37
  120. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.KEYWORDS"), "html", null, true);
  121. echo ":</td>
  122. <td class=\"double\">";
  123. // line 38
  124. echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute(($context["plugin"] ?? null), "keywords", array()), ", "), "html", null, true);
  125. echo "</td>
  126. </tr>
  127. ";
  128. }
  129. // line 41
  130. echo " ";
  131. if ($this->getAttribute(($context["plugin"] ?? null), "license", array())) {
  132. // line 42
  133. echo " <tr>
  134. <td>";
  135. // line 43
  136. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LICENSE"), "html", null, true);
  137. echo ":</td>
  138. <td class=\"double\">";
  139. // line 44
  140. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "license", array()), "html", null, true);
  141. echo "</td>
  142. </tr>
  143. ";
  144. }
  145. // line 47
  146. echo "
  147. ";
  148. // line 48
  149. if ($this->getAttribute(($context["plugin"] ?? null), "description", array())) {
  150. // line 49
  151. echo " <tr>
  152. <td>";
  153. // line 50
  154. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DESCRIPTION"), "html", null, true);
  155. echo ":</td>
  156. <td class=\"double\">";
  157. // line 51
  158. echo $this->getAttribute(($context["plugin"] ?? null), "description_html", array());
  159. echo "</td>
  160. </tr>
  161. ";
  162. }
  163. // line 54
  164. echo "
  165. ";
  166. // line 55
  167. if (($this->getAttribute(($context["plugin"] ?? null), "readme", array()) || $this->getAttribute(($context["plugin"] ?? null), "homepage", array()))) {
  168. // line 56
  169. echo " ";
  170. $context["readme_link"] = (($this->getAttribute(($context["plugin"] ?? null), "readme", array())) ? ($this->getAttribute(($context["plugin"] ?? null), "readme", array())) : ((($this->getAttribute(($context["plugin"] ?? null), "docs", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["plugin"] ?? null), "docs", array()), ($this->getAttribute(($context["plugin"] ?? null), "homepage", array()) . "/blob/master/README.md"))) : (($this->getAttribute(($context["plugin"] ?? null), "homepage", array()) . "/blob/master/README.md")))));
  171. // line 57
  172. echo " <tr>
  173. <td>";
  174. // line 58
  175. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.README"), "html", null, true);
  176. echo ":</td>
  177. <td class=\"double\"><a href=\"";
  178. // line 59
  179. echo twig_escape_filter($this->env, ($context["readme_link"] ?? null), "html", null, true);
  180. echo "\" target=\"_blank\">";
  181. echo twig_escape_filter($this->env, ($context["readme_link"] ?? null), "html", null, true);
  182. echo "</a></td>
  183. </tr>
  184. ";
  185. }
  186. // line 62
  187. echo "
  188. </table>
  189. ";
  190. }
  191. public function getTemplateName()
  192. {
  193. return "partials/plugin-data.html.twig";
  194. }
  195. public function isTraitable()
  196. {
  197. return false;
  198. }
  199. public function getDebugInfo()
  200. {
  201. return array ( 191 => 62, 183 => 59, 179 => 58, 176 => 57, 173 => 56, 171 => 55, 168 => 54, 162 => 51, 158 => 50, 155 => 49, 153 => 48, 150 => 47, 144 => 44, 140 => 43, 137 => 42, 134 => 41, 128 => 38, 124 => 37, 121 => 36, 118 => 35, 110 => 32, 106 => 31, 103 => 30, 100 => 29, 92 => 26, 88 => 25, 85 => 24, 82 => 23, 74 => 20, 70 => 19, 67 => 18, 64 => 17, 59 => 14, 51 => 12, 48 => 11, 42 => 9, 34 => 7, 32 => 6, 27 => 4, 24 => 3, 22 => 2, 19 => 1,);
  202. }
  203. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  204. public function getSource()
  205. {
  206. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  207. return $this->getSourceContext()->getCode();
  208. }
  209. public function getSourceContext()
  210. {
  211. return new Twig_Source("<table>
  212. {% if plugin.author %}
  213. <tr>
  214. <td>{{ \"PLUGIN_ADMIN.AUTHOR\"|tu }}:</td>
  215. <td class=\"double\">
  216. {% if plugin.author.url %}
  217. <a href=\"{{ plugin.author.url }}\" target=\"_blank\">{{ plugin.author.name }}</a>
  218. {% else %}
  219. {{ plugin.author.name }}
  220. {% endif %}
  221. {% if plugin.author.email %}
  222. - <a href=\"mailto:{{ plugin.author.email }}\">{{ plugin.author.email }}</a>
  223. {% endif %}
  224. </td>
  225. </tr>
  226. {% endif %}
  227. {% if plugin.homepage %}
  228. <tr>
  229. <td>{{ \"PLUGIN_ADMIN.HOMEPAGE\"|tu }}:</td>
  230. <td class=\"double\"><a href=\"{{ plugin.homepage }}\" target=\"_blank\">{{ plugin.homepage }}</a></td>
  231. </tr>
  232. {% endif %}
  233. {% if plugin.demo %}
  234. <tr>
  235. <td>{{ \"PLUGIN_ADMIN.DEMO\"|tu }}:</td>
  236. <td class=\"double\"><a href=\"{{ plugin.demo }}\" target=\"_blank\">{{ plugin.demo }}</a></td>
  237. </tr>
  238. {% endif %}
  239. {% if plugin.bugs %}
  240. <tr>
  241. <td>{{ \"PLUGIN_ADMIN.BUG_TRACKER\"|tu }}:</td>
  242. <td class=\"double\"><a href=\"{{ plugin.bugs }}\" target=\"_blank\">{{ plugin.bugs }}</a></td>
  243. </tr>
  244. {% endif %}
  245. {% if plugin.keywords %}
  246. <tr>
  247. <td>{{ \"PLUGIN_ADMIN.KEYWORDS\"|tu }}:</td>
  248. <td class=\"double\">{{ plugin.keywords|join(', ') }}</td>
  249. </tr>
  250. {% endif %}
  251. {% if plugin.license %}
  252. <tr>
  253. <td>{{ \"PLUGIN_ADMIN.LICENSE\"|tu }}:</td>
  254. <td class=\"double\">{{ plugin.license }}</td>
  255. </tr>
  256. {% endif %}
  257. {% if plugin.description %}
  258. <tr>
  259. <td>{{ \"PLUGIN_ADMIN.DESCRIPTION\"|tu }}:</td>
  260. <td class=\"double\">{{ plugin.description_html|raw }}</td>
  261. </tr>
  262. {% endif %}
  263. {% if plugin.readme or plugin.homepage %}
  264. {% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %}
  265. <tr>
  266. <td>{{ \"PLUGIN_ADMIN.README\"|tu }}:</td>
  267. <td class=\"double\"><a href=\"{{ readme_link }}\" target=\"_blank\">{{ readme_link }}</a></td>
  268. </tr>
  269. {% endif %}
  270. </table>
  271. ", "partials/plugin-data.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugin-data.html.twig");
  272. }
  273. }