PageRenderTime 46ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/production/twig/76/7617da864731765689c2ce57e5c54b0bca6822961d0520b88eda59530a56f6fb.php

https://bitbucket.org/robotstart/sebastien
PHP | 473 lines | 371 code | 12 blank | 90 comment | 30 complexity | 5d16927cbb27dcf484c558f5dc3380d9 MD5 | raw file
Possible License(s): AGPL-1.0, BSD-3-Clause
  1. <?php
  2. /* forumlist_body.html */
  3. class __TwigTemplate_5fd4c9d8130da7a402ff0408dd30474d3310770b63f350e0de9ca4dc876b7381 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 "
  16. ";
  17. // line 2
  18. $context['_parent'] = $context;
  19. $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["loops"]) ? $context["loops"] : null), "forumrow", array()));
  20. $context['_iterated'] = false;
  21. foreach ($context['_seq'] as $context["_key"] => $context["forumrow"]) {
  22. // line 3
  23. echo "\t";
  24. if ((($this->getAttribute($context["forumrow"], "S_IS_CAT", array()) && !$this->getAttribute($context["forumrow"], "S_FIRST_ROW", array())) || $this->getAttribute($context["forumrow"], "S_NO_CAT", array()))) {
  25. // line 4
  26. echo "\t\t\t</ul>
  27. \t\t\t</div>
  28. \t\t</div>
  29. \t";
  30. }
  31. // line 9
  32. echo "
  33. \t";
  34. // line 10
  35. // line 11
  36. echo "\t";
  37. if ((($this->getAttribute($context["forumrow"], "S_IS_CAT", array()) || $this->getAttribute($context["forumrow"], "S_FIRST_ROW", array())) || $this->getAttribute($context["forumrow"], "S_NO_CAT", array()))) {
  38. // line 12
  39. echo "\t\t<div class=\"forabg\">
  40. \t\t\t<div class=\"inner\">
  41. \t\t\t<ul class=\"topiclist\">
  42. \t\t\t\t<li class=\"header\">
  43. \t\t\t\t\t";
  44. // line 16
  45. // line 17
  46. echo "\t\t\t\t\t<dl class=\"row-item\">
  47. \t\t\t\t\t\t<dt><div class=\"list-inner\">";
  48. // line 18
  49. if ($this->getAttribute($context["forumrow"], "S_IS_CAT", array())) {
  50. echo "<a href=\"";
  51. echo $this->getAttribute($context["forumrow"], "U_VIEWFORUM", array());
  52. echo "\">";
  53. echo $this->getAttribute($context["forumrow"], "FORUM_NAME", array());
  54. echo "</a>";
  55. } else {
  56. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUM");
  57. }
  58. echo "</div></dt>
  59. \t\t\t\t\t\t<dd class=\"topics\">";
  60. // line 19
  61. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS");
  62. echo "</dd>
  63. \t\t\t\t\t\t<dd class=\"posts\">";
  64. // line 20
  65. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POSTS");
  66. echo "</dd>
  67. \t\t\t\t\t\t<dd class=\"lastpost\"><span>";
  68. // line 21
  69. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("LAST_POST");
  70. echo "</span></dd>
  71. \t\t\t\t\t</dl>
  72. \t\t\t\t\t";
  73. // line 23
  74. // line 24
  75. echo "\t\t\t\t</li>
  76. \t\t\t</ul>
  77. \t\t\t<ul class=\"topiclist forums\">
  78. \t";
  79. }
  80. // line 28
  81. echo "\t";
  82. // line 29
  83. echo "
  84. \t";
  85. // line 30
  86. if ( !$this->getAttribute($context["forumrow"], "S_IS_CAT", array())) {
  87. // line 31
  88. echo "\t\t";
  89. // line 32
  90. echo "\t\t<li class=\"row\">
  91. \t\t\t";
  92. // line 33
  93. // line 34
  94. echo "\t\t\t<dl class=\"row-item ";
  95. echo $this->getAttribute($context["forumrow"], "FORUM_IMG_STYLE", array());
  96. echo "\">
  97. \t\t\t\t<dt title=\"";
  98. // line 35
  99. echo $this->getAttribute($context["forumrow"], "FORUM_FOLDER_IMG_ALT", array());
  100. echo "\">
  101. \t\t\t\t\t";
  102. // line 36
  103. if ($this->getAttribute($context["forumrow"], "S_UNREAD_FORUM", array())) {
  104. echo "<a href=\"";
  105. echo $this->getAttribute($context["forumrow"], "U_VIEWFORUM", array());
  106. echo "\" class=\"row-item-link\"></a>";
  107. }
  108. // line 37
  109. echo "\t\t\t\t\t<div class=\"list-inner\">
  110. \t\t\t\t\t\t";
  111. // line 38
  112. if (((isset($context["S_ENABLE_FEEDS"]) ? $context["S_ENABLE_FEEDS"] : null) && $this->getAttribute($context["forumrow"], "S_FEED_ENABLED", array()))) {
  113. // line 39
  114. echo "\t\t\t\t\t\t\t<!--
  115. \t\t\t\t\t\t\t\t<a class=\"feed-icon-forum\" title=\"";
  116. // line 40
  117. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FEED");
  118. echo " - ";
  119. echo $this->getAttribute($context["forumrow"], "FORUM_NAME", array());
  120. echo "\" href=\"";
  121. echo (isset($context["U_FEED"]) ? $context["U_FEED"] : null);
  122. echo "?f=";
  123. echo $this->getAttribute($context["forumrow"], "FORUM_ID", array());
  124. echo "\">
  125. \t\t\t\t\t\t\t\t\t<i class=\"icon fa-rss-square fa-fw icon-orange\" aria-hidden=\"true\"></i><span class=\"sr-only\">";
  126. // line 41
  127. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FEED");
  128. echo " - ";
  129. echo $this->getAttribute($context["forumrow"], "FORUM_NAME", array());
  130. echo "</span>
  131. \t\t\t\t\t\t\t\t</a>
  132. \t\t\t\t\t\t\t-->
  133. \t\t\t\t\t\t";
  134. }
  135. // line 45
  136. echo "\t\t\t\t\t\t";
  137. if ($this->getAttribute($context["forumrow"], "FORUM_IMAGE", array())) {
  138. // line 46
  139. echo "\t\t\t\t\t\t\t";
  140. // line 47
  141. echo "\t\t\t\t\t\t\t<span class=\"forum-image\">";
  142. echo $this->getAttribute($context["forumrow"], "FORUM_IMAGE", array());
  143. echo "</span>
  144. \t\t\t\t\t\t\t";
  145. // line 48
  146. // line 49
  147. echo "\t\t\t\t\t\t";
  148. }
  149. // line 50
  150. echo "\t\t\t\t\t\t<a href=\"";
  151. echo $this->getAttribute($context["forumrow"], "U_VIEWFORUM", array());
  152. echo "\" class=\"forumtitle\">";
  153. echo $this->getAttribute($context["forumrow"], "FORUM_NAME", array());
  154. echo "</a>
  155. \t\t\t\t\t\t";
  156. // line 51
  157. if ($this->getAttribute($context["forumrow"], "FORUM_DESC", array())) {
  158. echo "<br />";
  159. echo $this->getAttribute($context["forumrow"], "FORUM_DESC", array());
  160. }
  161. // line 52
  162. echo "\t\t\t\t\t\t";
  163. if ($this->getAttribute($context["forumrow"], "MODERATORS", array())) {
  164. // line 53
  165. echo "\t\t\t\t\t\t\t<br /><strong>";
  166. echo $this->getAttribute($context["forumrow"], "L_MODERATOR_STR", array());
  167. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
  168. echo "</strong> ";
  169. echo $this->getAttribute($context["forumrow"], "MODERATORS", array());
  170. echo "
  171. \t\t\t\t\t\t";
  172. }
  173. // line 55
  174. echo "\t\t\t\t\t\t";
  175. if ((twig_length_filter($this->env, $this->getAttribute($context["forumrow"], "subforum", array())) && $this->getAttribute($context["forumrow"], "S_LIST_SUBFORUMS", array()))) {
  176. // line 56
  177. echo "\t\t\t\t\t\t\t";
  178. // line 57
  179. echo "\t\t\t\t\t\t\t<br /><strong>";
  180. echo $this->getAttribute($context["forumrow"], "L_SUBFORUM_STR", array());
  181. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
  182. echo "</strong>
  183. \t\t\t\t\t\t\t";
  184. // line 58
  185. $context['_parent'] = $context;
  186. $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["forumrow"], "subforum", array()));
  187. foreach ($context['_seq'] as $context["_key"] => $context["subforum"]) {
  188. // line 59
  189. echo "\t\t\t\t\t\t\t\t";
  190. echo "<a href=\"";
  191. echo $this->getAttribute($context["subforum"], "U_SUBFORUM", array());
  192. echo "\" class=\"subforum";
  193. if ($this->getAttribute($context["subforum"], "S_UNREAD", array())) {
  194. echo " unread";
  195. } else {
  196. echo " read";
  197. }
  198. echo "\" title=\"";
  199. if ($this->getAttribute($context["subforum"], "S_UNREAD", array())) {
  200. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("UNREAD_POSTS");
  201. } else {
  202. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_UNREAD_POSTS");
  203. }
  204. echo "\">
  205. \t\t\t\t\t\t\t\t\t<i class=\"icon ";
  206. // line 60
  207. if ($this->getAttribute($context["subforum"], "IS_LINK", array())) {
  208. echo "fa-external-link";
  209. } else {
  210. echo "fa-file-o";
  211. }
  212. echo " fa-fw ";
  213. if ($this->getAttribute($context["subforum"], "S_UNREAD", array())) {
  214. echo " icon-red";
  215. } else {
  216. echo " icon-blue";
  217. }
  218. echo " icon-md\" aria-hidden=\"true\"></i>";
  219. echo $this->getAttribute($context["subforum"], "SUBFORUM_NAME", array());
  220. echo "</a>";
  221. if ( !$this->getAttribute($context["subforum"], "S_LAST_ROW", array())) {
  222. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COMMA_SEPARATOR");
  223. }
  224. // line 61
  225. echo "\t\t\t\t\t\t\t";
  226. }
  227. $_parent = $context['_parent'];
  228. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subforum'], $context['_parent'], $context['loop']);
  229. $context = array_intersect_key($context, $_parent) + $_parent;
  230. // line 62
  231. echo "\t\t\t\t\t\t\t";
  232. // line 63
  233. echo "\t\t\t\t\t\t";
  234. }
  235. // line 64
  236. echo "
  237. \t\t\t\t\t\t";
  238. // line 65
  239. if ( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null)) {
  240. // line 66
  241. echo "\t\t\t\t\t\t<div class=\"responsive-show\" style=\"display: none;\">
  242. \t\t\t\t\t\t\t";
  243. // line 67
  244. if ($this->getAttribute($context["forumrow"], "CLICKS", array())) {
  245. // line 68
  246. echo "\t\t\t\t\t\t\t\t";
  247. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("REDIRECTS");
  248. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
  249. echo " <strong>";
  250. echo $this->getAttribute($context["forumrow"], "CLICKS", array());
  251. echo "</strong>
  252. \t\t\t\t\t\t\t";
  253. } elseif (( !$this->getAttribute( // line 69
  254. $context["forumrow"], "S_IS_LINK", array()) && $this->getAttribute($context["forumrow"], "TOPICS", array()))) {
  255. // line 70
  256. echo "\t\t\t\t\t\t\t\t";
  257. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS");
  258. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
  259. echo " <strong>";
  260. echo $this->getAttribute($context["forumrow"], "TOPICS", array());
  261. echo "</strong>
  262. \t\t\t\t\t\t\t";
  263. }
  264. // line 72
  265. echo "\t\t\t\t\t\t</div>
  266. \t\t\t\t\t\t";
  267. }
  268. // line 74
  269. echo "\t\t\t\t\t</div>
  270. \t\t\t\t</dt>
  271. \t\t\t\t";
  272. // line 76
  273. if ($this->getAttribute($context["forumrow"], "CLICKS", array())) {
  274. // line 77
  275. echo "\t\t\t\t\t<dd class=\"redirect\"><span>";
  276. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("REDIRECTS");
  277. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
  278. echo " ";
  279. echo $this->getAttribute($context["forumrow"], "CLICKS", array());
  280. echo "</span></dd>
  281. \t\t\t\t";
  282. } elseif ( !$this->getAttribute( // line 78
  283. $context["forumrow"], "S_IS_LINK", array())) {
  284. // line 79
  285. echo "\t\t\t\t\t<dd class=\"topics\">";
  286. echo $this->getAttribute($context["forumrow"], "TOPICS", array());
  287. echo " <dfn>";
  288. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS");
  289. echo "</dfn></dd>
  290. \t\t\t\t\t<dd class=\"posts\">";
  291. // line 80
  292. echo $this->getAttribute($context["forumrow"], "POSTS", array());
  293. echo " <dfn>";
  294. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POSTS");
  295. echo "</dfn></dd>
  296. \t\t\t\t\t<dd class=\"lastpost\">
  297. \t\t\t\t\t\t<span>
  298. \t\t\t\t\t\t\t";
  299. // line 83
  300. if ($this->getAttribute($context["forumrow"], "U_UNAPPROVED_TOPICS", array())) {
  301. // line 84
  302. echo "\t\t\t\t\t\t\t\t<a href=\"";
  303. echo $this->getAttribute($context["forumrow"], "U_UNAPPROVED_TOPICS", array());
  304. echo "\" title=\"";
  305. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS_UNAPPROVED");
  306. echo "\">
  307. \t\t\t\t\t\t\t\t\t<i class=\"icon fa-question fa-fw icon-blue\" aria-hidden=\"true\"></i><span class=\"sr-only\">";
  308. // line 85
  309. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS_UNAPPROVED");
  310. echo "</span>
  311. \t\t\t\t\t\t\t\t</a>
  312. \t\t\t\t\t\t\t";
  313. } elseif ($this->getAttribute( // line 87
  314. $context["forumrow"], "U_UNAPPROVED_POSTS", array())) {
  315. // line 88
  316. echo "\t\t\t\t\t\t\t\t<a href=\"";
  317. echo $this->getAttribute($context["forumrow"], "U_UNAPPROVED_POSTS", array());
  318. echo "\" title=\"";
  319. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POSTS_UNAPPROVED_FORUM");
  320. echo "\">
  321. \t\t\t\t\t\t\t\t\t<i class=\"icon fa-question fa-fw icon-blue\" aria-hidden=\"true\"></i><span class=\"sr-only\">";
  322. // line 89
  323. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POSTS_UNAPPROVED_FORUM");
  324. echo "</span>
  325. \t\t\t\t\t\t\t\t</a>
  326. \t\t\t\t\t\t\t";
  327. }
  328. // line 92
  329. echo "\t\t\t\t\t\t\t";
  330. if ($this->getAttribute($context["forumrow"], "LAST_POST_TIME", array())) {
  331. // line 93
  332. echo "\t\t\t\t\t\t\t\t<dfn>";
  333. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("LAST_POST");
  334. echo "</dfn>
  335. \t\t\t\t\t\t\t\t";
  336. // line 94
  337. if ($this->getAttribute($context["forumrow"], "S_DISPLAY_SUBJECT", array())) {
  338. // line 95
  339. echo "\t\t\t\t\t\t\t\t\t";
  340. // line 96
  341. echo "\t\t\t\t\t\t\t\t\t<a href=\"";
  342. echo $this->getAttribute($context["forumrow"], "U_LAST_POST", array());
  343. echo "\" title=\"";
  344. echo $this->getAttribute($context["forumrow"], "LAST_POST_SUBJECT", array());
  345. echo "\" class=\"lastsubject\">";
  346. echo $this->getAttribute($context["forumrow"], "LAST_POST_SUBJECT_TRUNCATED", array());
  347. echo "</a> <br />
  348. \t\t\t\t\t\t\t\t";
  349. }
  350. // line 98
  351. echo "\t\t\t\t\t\t\t\t\t";
  352. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POST_BY_AUTHOR");
  353. echo " ";
  354. echo $this->getAttribute($context["forumrow"], "LAST_POSTER_FULL", array());
  355. echo "
  356. \t\t\t\t\t\t\t\t";
  357. // line 99
  358. if ( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null)) {
  359. // line 100
  360. echo "\t\t\t\t\t\t\t\t\t<a href=\"";
  361. echo $this->getAttribute($context["forumrow"], "U_LAST_POST", array());
  362. echo "\" title=\"";
  363. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("VIEW_LATEST_POST");
  364. echo "\">
  365. \t\t\t\t\t\t\t\t\t\t<i class=\"icon fa-external-link-square fa-fw icon-lightgray icon-md\" aria-hidden=\"true\"></i><span class=\"sr-only\">";
  366. // line 101
  367. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("VIEW_LATEST_POST");
  368. echo "</span>
  369. \t\t\t\t\t\t\t\t\t</a>
  370. \t\t\t\t\t\t\t\t";
  371. }
  372. // line 104
  373. echo "\t\t\t\t\t\t\t\t<br />";
  374. echo $this->getAttribute($context["forumrow"], "LAST_POST_TIME", array());
  375. echo "
  376. \t\t\t\t\t\t\t";
  377. } else {
  378. // line 106
  379. echo "\t\t\t\t\t\t\t\t";
  380. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_POSTS");
  381. echo "<br />&nbsp;
  382. \t\t\t\t\t\t\t";
  383. }
  384. // line 108
  385. echo "\t\t\t\t\t\t</span>
  386. \t\t\t\t\t</dd>
  387. \t\t\t\t";
  388. } else {
  389. // line 111
  390. echo "\t\t\t\t\t<dd>&nbsp;</dd>
  391. \t\t\t\t";
  392. }
  393. // line 113
  394. echo "\t\t\t</dl>
  395. \t\t\t";
  396. // line 114
  397. // line 115
  398. echo "\t\t</li>
  399. \t\t";
  400. // line 116
  401. // line 117
  402. echo "\t";
  403. }
  404. // line 118
  405. echo "
  406. \t";
  407. // line 119
  408. if ($this->getAttribute($context["forumrow"], "S_LAST_ROW", array())) {
  409. // line 120
  410. echo "\t\t\t</ul>
  411. \t\t\t</div>
  412. \t\t</div>
  413. \t";
  414. // line 124
  415. // line 125
  416. echo "\t";
  417. }
  418. // line 126
  419. echo "
  420. ";
  421. $context['_iterated'] = true;
  422. }
  423. if (!$context['_iterated']) {
  424. // line 128
  425. echo "\t<div class=\"panel\">
  426. \t\t<div class=\"inner\">
  427. \t\t<strong>";
  428. // line 130
  429. echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_FORUMS");
  430. echo "</strong>
  431. \t\t</div>
  432. \t</div>
  433. ";
  434. }
  435. $_parent = $context['_parent'];
  436. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['forumrow'], $context['_parent'], $context['loop']);
  437. $context = array_intersect_key($context, $_parent) + $_parent;
  438. }
  439. public function getTemplateName()
  440. {
  441. return "forumlist_body.html";
  442. }
  443. public function isTraitable()
  444. {
  445. return false;
  446. }
  447. public function getDebugInfo()
  448. {
  449. return array ( 435 => 130, 431 => 128, 425 => 126, 422 => 125, 421 => 124, 415 => 120, 413 => 119, 410 => 118, 407 => 117, 406 => 116, 403 => 115, 402 => 114, 399 => 113, 395 => 111, 390 => 108, 384 => 106, 378 => 104, 372 => 101, 365 => 100, 363 => 99, 356 => 98, 346 => 96, 344 => 95, 342 => 94, 337 => 93, 334 => 92, 328 => 89, 321 => 88, 319 => 87, 314 => 85, 307 => 84, 305 => 83, 297 => 80, 290 => 79, 288 => 78, 280 => 77, 278 => 76, 274 => 74, 270 => 72, 261 => 70, 259 => 69, 251 => 68, 249 => 67, 246 => 66, 244 => 65, 241 => 64, 238 => 63, 236 => 62, 230 => 61, 212 => 60, 194 => 59, 190 => 58, 184 => 57, 182 => 56, 179 => 55, 170 => 53, 167 => 52, 162 => 51, 155 => 50, 152 => 49, 151 => 48, 146 => 47, 144 => 46, 141 => 45, 132 => 41, 122 => 40, 119 => 39, 117 => 38, 114 => 37, 108 => 36, 104 => 35, 99 => 34, 98 => 33, 95 => 32, 93 => 31, 91 => 30, 88 => 29, 86 => 28, 80 => 24, 79 => 23, 74 => 21, 70 => 20, 66 => 19, 54 => 18, 51 => 17, 50 => 16, 44 => 12, 41 => 11, 40 => 10, 37 => 9, 30 => 4, 27 => 3, 22 => 2, 19 => 1,);
  450. }
  451. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  452. public function getSource()
  453. {
  454. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  455. return $this->getSourceContext()->getCode();
  456. }
  457. public function getSourceContext()
  458. {
  459. return new Twig_Source("", "forumlist_body.html", "");
  460. }
  461. }