PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/cache/production/twig/54/5467666ccfcb9c7a8a65c4542acc8d9c193d1e3e1f5b12c3bc7122038c168abc.php

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