PageRenderTime 45ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/dwoo/templates_c/var/www/html/kuzaba/dwoo/templates/news.tpl.d15.php

https://github.com/stormeus/Kusaba-Z
PHP | 105 lines | 92 code | 9 blank | 4 comment | 51 complexity | 91ad537adf8f5ced2a3b26d1ef558fdb MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. if (function_exists('Dwoo_Plugin_capitalize')===false)
  3. $this->getLoader()->loadPlugin('capitalize');
  4. if (function_exists('smarty_block_t')===false)
  5. $this->getLoader()->loadPlugin('t');
  6. if (function_exists('Dwoo_Plugin_date_format')===false)
  7. $this->getLoader()->loadPlugin('date_format');
  8. ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  10. <head>
  11. <title><?php echo KU_NAME;?></title>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  13. <?php
  14. $_for0_from = (isset($this->scope["styles"]) ? $this->scope["styles"] : null);
  15. $_for0_to = null;
  16. $_for0_step = abs(1);
  17. if (is_numeric($_for0_from) && !is_numeric($_for0_to)) { $this->triggerError('For requires the <em>to</em> parameter when using a numerical <em>from</em>'); }
  18. $tmp_shows = $this->isArray($_for0_from, true) || (is_numeric($_for0_from) && (abs(($_for0_from - $_for0_to)/$_for0_step) !== 0 || $_for0_from == $_for0_to));
  19. if ($tmp_shows)
  20. {
  21. if ($this->isArray($_for0_from, true)) {
  22. $_for0_to = is_numeric($_for0_to) ? $_for0_to - $_for0_step : count($_for0_from) - 1;
  23. $_for0_from = 0;
  24. }
  25. if ($_for0_from > $_for0_to) {
  26. $tmp = $_for0_from;
  27. $_for0_from = $_for0_to;
  28. $_for0_to = $tmp;
  29. }
  30. for ($this->scope['style'] = $_for0_from; $this->scope['style'] <= $_for0_to; $this->scope['style'] += $_for0_step)
  31. {
  32. /* -- for start output */
  33. ?>
  34. <link rel="<?php if ($this->readVar("styles.".(isset($this->scope["style"]) ? $this->scope["style"] : null)) != (defined("KU_DEFAULTMENUSTYLE") ? KU_DEFAULTMENUSTYLE : null)) {
  35. ?>alternate <?php
  36. }?>stylesheet" type="text/css" href="<?php echo KU_WEBFOLDER;?>css/site_<?php echo $this->readVar("styles.".(isset($this->scope["style"]) ? $this->scope["style"] : null));?>.css" title="<?php echo Dwoo_Plugin_capitalize($this, $this->readVar("styles.".(isset($this->scope["style"]) ? $this->scope["style"] : null)), false);?>" />
  37. <?php /* -- for end output */
  38. }
  39. }
  40. ?>
  41. <script type="text/javascript"><!--
  42. var style_cookie_site = "kustyle_site";
  43. //--></script>
  44. <link rel="shortcut icon" href="<?php echo KU_WEBFOLDER;?>favicon.ico" />
  45. <script type="text/javascript" src="<?php echo KU_WEBFOLDER;?>lib/javascript/gettext.js"></script>
  46. <script type="text/javascript" src="<?php echo KU_WEBFOLDER;?>lib/javascript/kusaba.js"></script></head>
  47. <body>
  48. <h1><?php echo KU_NAME;?></h1>
  49. <?php if ((defined("KU_SLOGAN") ? KU_SLOGAN : null) != '') {
  50. ?><h3><?php echo KU_SLOGAN;?></h3><?php
  51. }?>
  52. <div class="menu" id="topmenu">
  53. <?php echo $this->scope["topads"];?>
  54. <ul><li class="<?php if ((isset($_GET['p'])?$_GET['p']:null) == '') {?>current <?php }
  55. else {?>tab <?php }?>first"><?php if ((isset($_GET['p'])?$_GET['p']:null) != '') {?><a href="<?php echo $this->scope["ku_webpath"];?>news.php"><?php }
  56. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>News<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);
  57. if ((isset($_GET['p'])?$_GET['p']:null) != '') {?></a><?php }?></li><li class="<?php if ((isset($_GET['p'])?$_GET['p']:null) == 'faq') {?>current<?php }
  58. else {?>tab<?php }?>"><?php if ((isset($_GET['p'])?$_GET['p']:null) != 'faq') {?><a href="<?php echo $this->scope["ku_webpath"];?>news.php?p=faq"><?php }
  59. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>FAQ<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);
  60. if ((isset($_GET['p'])?$_GET['p']:null) != 'faq') {?></a><?php }?></li><li class="<?php if ((isset($_GET['p'])?$_GET['p']:null) == 'rules') {?>current<?php }
  61. else {?>tab<?php }?>"><?php if ((isset($_GET['p'])?$_GET['p']:null) != 'rules') {?><a href="<?php echo $this->scope["ku_webpath"];?>news.php?p=rules"><?php }
  62. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Rules<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);
  63. if ((isset($_GET['p'])?$_GET['p']:null) != 'rules') {?></a><?php }?></li></ul>
  64. <br />
  65. </div>
  66. <?php
  67. $_fh0_data = (isset($this->scope["entries"]) ? $this->scope["entries"] : null);
  68. if ($this->isArray($_fh0_data) === true)
  69. {
  70. foreach ($_fh0_data as $this->scope['entry'])
  71. {
  72. /* -- foreach start output */
  73. ?>
  74. <div class="content">
  75. <h2><span class="newssub"><?php echo stripslashes((isset($this->scope["entry"]["subject"]) ? $this->scope["entry"]["subject"]:null));
  76. if ((isset($_GET['p'])?$_GET['p']:null) == '') {
  77. ?> by <?php if ((isset($this->scope["entry"]["email"]) ? $this->scope["entry"]["email"]:null) != '') {
  78. ?><a href="mailto:<?php echo stripslashes((isset($this->scope["entry"]["email"]) ? $this->scope["entry"]["email"]:null));?>"><?php
  79. }
  80. echo stripslashes((isset($this->scope["entry"]["poster"]) ? $this->scope["entry"]["poster"]:null));
  81. if ((isset($this->scope["entry"]["email"]) ? $this->scope["entry"]["email"]:null) != '') {
  82. ?></a><?php
  83. }?> - <?php echo Dwoo_Plugin_date_format($this, (isset($this->scope["entry"]["timestamp"]) ? $this->scope["entry"]["timestamp"]:null), "%D @ %I:%M %p %Z", null);
  84. }?></span>
  85. <span class="permalink"><a href="#<?php echo $this->scope["entry"]["id"];?>">#</a></span></h2>
  86. <?php echo stripslashes((isset($this->scope["entry"]["message"]) ? $this->scope["entry"]["message"]:null));?>
  87. </div><br />
  88. <?php
  89. /* -- foreach end output */
  90. }
  91. }?>
  92. <?php echo $this->scope["botads"];?>
  93. </body>
  94. </html><?php /* end template body */
  95. return $this->buffer . ob_get_clean();
  96. ?>