PageRenderTime 57ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://github.com/stormeus/Kusaba-Z
PHP | 240 lines | 202 code | 25 blank | 13 comment | 50 complexity | 193e1f3b0fb8b71bd4e125e214113e92 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_include')===false)
  7. $this->getLoader()->loadPlugin('include');
  8. ob_start(); /* template body */ ?><script type="text/javascript" src="<?php echo $this->scope["cwebpath"];?>lib/javascript/protoaculous-compressed.js"></script>
  9. <link rel="stylesheet" type="text/css" href="<?php echo $this->scope["cwebpath"];?>css/img_global.css" />
  10. <?php
  11. $_loop0_data = (isset($this->scope["ku_styles"]) ? $this->scope["ku_styles"] : null);
  12. if ($this->isArray($_loop0_data) === true)
  13. {
  14. foreach ($_loop0_data as $tmp_key => $this->scope["-loop-"])
  15. {
  16. $_loop0_scope = $this->setScope(array("-loop-"));
  17. /* -- loop start output */
  18. ?>
  19. <link rel="<?php if ($this->scope != (isset($this->data["ku_defaultstyle"]) ? $this->data["ku_defaultstyle"]:null)) {
  20. ?>alternate <?php
  21. }?>stylesheet" type="text/css" href="<?php echo $this->data["cwebpath"];?>css/<?php echo $this->scope;?>.css" title="<?php echo Dwoo_Plugin_capitalize($this, $this->scope, false);?>" />
  22. <?php
  23. /* -- loop end output */
  24. $this->setScope($_loop0_scope, true);
  25. }
  26. }
  27. ?>
  28. <?php if ((isset($this->scope["locale"]) ? $this->scope["locale"] : null) == 'ja') {
  29. ?>
  30. <style type="text/css">
  31. *{
  32. font-family: IPAMonaPGothic, Mona, 'MS PGothic', YOzFontAA97 !important;
  33. font-size: 1em;
  34. }
  35. </style>
  36. <?php
  37. }?>
  38. <?php if ((defined("KU_RSS") ? KU_RSS : null) != '') {
  39. ?>
  40. <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo KU_BOARDSPATH;?>/<?php echo $this->scope["board"]["name"];?>/rss.xml" />
  41. <?php
  42. }?>
  43. <script type="text/javascript"><!--
  44. var ku_boardspath = '<?php echo KU_BOARDSPATH;?>';
  45. var ku_cgipath = '<?php echo KU_CGIPATH;?>';
  46. var style_cookie = "kustyle";
  47. <?php if ((isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) > 0) {
  48. ?>
  49. var ispage = false;
  50. <?php
  51. }
  52. else {
  53. ?>
  54. var ispage = true;
  55. <?php
  56. }?>
  57. //--></script>
  58. <script type="text/javascript" src="<?php echo KU_WEBPATH;?>/lib/javascript/kusaba.js"></script>
  59. <script type="text/javascript"><!--
  60. var hiddenthreads = getCookie('hiddenthreads').split('!');
  61. //--></script>
  62. </head>
  63. <body>
  64. <div class="adminbar">
  65. <?php if ((defined("KU_STYLESWITCHER") ? KU_STYLESWITCHER : null)) {
  66. ?>
  67. <?php if ((defined("KU_DROPSWITCHER") ? KU_DROPSWITCHER : null)) {
  68. ?>
  69. <select onchange="javascript:if(selectedIndex != 0)set_stylesheet(options[selectedIndex].value);return false;">
  70. <option><?php 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();?>Styles<?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);?></option>
  71. <?php
  72. $_loop1_data = (isset($this->scope["ku_styles"]) ? $this->scope["ku_styles"] : null);
  73. if ($this->isArray($_loop1_data) === true)
  74. {
  75. foreach ($_loop1_data as $tmp_key => $this->scope["-loop-"])
  76. {
  77. $_loop1_scope = $this->setScope(array("-loop-"));
  78. /* -- loop start output */
  79. ?>
  80. <option value="<?php echo Dwoo_Plugin_capitalize($this, $this->scope, false);?>"><?php echo Dwoo_Plugin_capitalize($this, $this->scope, false);?></option>;
  81. <?php
  82. /* -- loop end output */
  83. $this->setScope($_loop1_scope, true);
  84. }
  85. }
  86. ?>
  87. </select>
  88. <?php
  89. }
  90. else {
  91. ?>
  92. <?php
  93. $_loop2_data = (isset($this->scope["ku_styles"]) ? $this->scope["ku_styles"] : null);
  94. if ($this->isArray($_loop2_data) === true)
  95. {
  96. foreach ($_loop2_data as $tmp_key => $this->scope["-loop-"])
  97. {
  98. $_loop2_scope = $this->setScope(array("-loop-"));
  99. /* -- loop start output */
  100. ?>
  101. [<a href="#" onclick="javascript:set_stylesheet('<?php echo Dwoo_Plugin_capitalize($this, $this->scope, false);?>');return false;"><?php echo Dwoo_Plugin_capitalize($this, $this->scope, false);?></a>]&nbsp;
  102. <?php
  103. /* -- loop end output */
  104. $this->setScope($_loop2_scope, true);
  105. }
  106. }
  107. ?>
  108. <?php
  109. }?>
  110. <?php if (count((isset($this->scope["ku_styles"]) ? $this->scope["ku_styles"] : null)) > 0) {
  111. ?>
  112. -&nbsp;
  113. <?php
  114. }?>
  115. <?php
  116. }?>
  117. <?php if ((defined("KU_WATCHTHREADS") ? KU_WATCHTHREADS : null)) {
  118. ?>
  119. [<a href="#" onclick="javascript:showwatchedthreads();return false" title="<?php 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();?>Watched Threads<?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);?>">WT</a>]&nbsp;
  120. <?php
  121. }?>
  122. [<a href="<?php echo KU_WEBPATH;?>" target="_top"><?php 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();?>Home<?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);?></a>]&nbsp;[<a href="<?php echo KU_CGIPATH;?>/manage.php" target="_top"><?php 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();?>Manage<?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);?></a>]
  123. </div>
  124. <div class="navbar">
  125. <?php if ((defined("KU_GENERATEBOARDLIST") ? KU_GENERATEBOARDLIST : null)) {
  126. ?>
  127. <?php
  128. $_fh1_data = (isset($this->scope["boardlist"]) ? $this->scope["boardlist"] : null);
  129. if ($this->isArray($_fh1_data) === true)
  130. {
  131. foreach ($_fh1_data as $this->scope['sect'])
  132. {
  133. /* -- foreach start output */
  134. ?>
  135. [
  136. <?php
  137. $_fh0_data = (isset($this->scope["sect"]) ? $this->scope["sect"] : null);
  138. $this->globals["foreach"]['brds'] = array
  139. (
  140. "iteration" => 1,
  141. "last" => null,
  142. "total" => $this->isArray($_fh0_data) ? count($_fh0_data) : 0,
  143. );
  144. $_fh0_glob =& $this->globals["foreach"]['brds'];
  145. if ($this->isArray($_fh0_data) === true)
  146. {
  147. foreach ($_fh0_data as $this->scope['brd'])
  148. {
  149. $_fh0_glob["last"] = (string) ($_fh0_glob["iteration"] === $_fh0_glob["total"]);
  150. /* -- foreach start output */
  151. ?>
  152. <a title="<?php echo $this->scope["brd"]["desc"];?>" href="<?php echo KU_BOARDSFOLDER;
  153. echo $this->scope["brd"]["name"];?>/"><?php echo $this->scope["brd"]["name"];?></a><?php if ((isset($this->globals["foreach"]["brds"]["last"]) ? $this->globals["foreach"]["brds"]["last"]:null)) {
  154. }
  155. else {
  156. ?> / <?php
  157. }?>
  158. <?php
  159. /* -- foreach end output */
  160. $_fh0_glob["iteration"]+=1;
  161. }
  162. }?>
  163. ]
  164. <?php
  165. /* -- foreach end output */
  166. }
  167. }?>
  168. <?php
  169. }
  170. else {
  171. ?>
  172. <?php if (is_file((isset($this->scope["boardlist"]) ? $this->scope["boardlist"] : null))) {
  173. ?>
  174. <?php echo Dwoo_Plugin_include($this, (isset($this->scope["boardlist"]) ? $this->scope["boardlist"] : null), null, null, null, '_root', null);?>
  175. <?php
  176. }?>
  177. <?php
  178. }?>
  179. </div>
  180. <?php if ((defined("KU_WATCHTHREADS") ? KU_WATCHTHREADS : null) && ! (isset($this->scope["isoekaki"]) ? $this->scope["isoekaki"] : null) && ! (isset($this->scope["hidewatchedthreads"]) ? $this->scope["hidewatchedthreads"] : null)) {
  181. ?>
  182. <script type="text/javascript"><!--
  183. if (getCookie('showwatchedthreads') == '1') {
  184. document.write('<div id="watchedthreads" style="top: <?php echo $this->scope["ad_top"];?>px; left: 25px;" class="watchedthreads"><div class="postblock" id="watchedthreadsdraghandle" style="width: 100%;"><?php 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();?>Watched Threads<?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);?><\/div><span id="watchedthreadlist"><\/span><div id="watchedthreadsbuttons"><a href="#" onclick="javascript:hidewatchedthreads();return false;" title="<?php 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();?>Hide the watched threads box<?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);?>"><img src="<?php echo $this->scope["cwebpath"];?>css/icons/blank.gif" border="0" class="hidewatchedthreads" alt="hide" /><\/a>&nbsp;<a href="#" onclick="javascript:getwatchedthreads(\'0\', \'<?php echo $this->scope["board"]["name"];?>\');return false;" title="<?php 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();?>Refresh watched threads<?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);?>"><img src="<?php echo $this->scope["cwebpath"];?>css/icons/blank.gif" border="0" class="refreshwatchedthreads" alt="refresh" /><\/a><\/div><\/div>');
  185. watchedthreadselement = document.getElementById('watchedthreads');
  186. watchedthreadselement.style.top = getCookie('watchedthreadstop');
  187. watchedthreadselement.style.left = getCookie('watchedthreadsleft');
  188. watchedthreadselement.style.width = Math.max(250,getCookie('watchedthreadswidth')) + 'px';
  189. watchedthreadselement.style.height = Math.max(75,getCookie('watchedthreadsheight')) + 'px';
  190. getwatchedthreads('<!sm_threadid>', '<?php echo $this->scope["board"]["name"];?>');
  191. }
  192. //--></script>
  193. <?php
  194. }?>
  195. <div class="logo">
  196. <?php if ((defined("KU_HEADERURL") ? KU_HEADERURL : null) != '' && (isset($this->scope["board"]["image"]) ? $this->scope["board"]["image"]:null) == '') {
  197. ?>
  198. <img src="<?php echo KU_HEADERURL;?>" alt="<?php 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();?>Logo<?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);?>" /><br />
  199. <?php
  200. }
  201. elseif ((isset($this->scope["board"]["image"]) ? $this->scope["board"]["image"]:null) != '' && (isset($this->scope["board"]["image"]) ? $this->scope["board"]["image"]:null) != "none") {
  202. ?>
  203. <img src="<?php echo $this->scope["board"]["image"];?>" alt="<?php 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();?>Logo<?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);?>" /><br />
  204. <?php
  205. }?>
  206. <?php if ((defined("KU_DIRTITLE") ? KU_DIRTITLE : null)) {
  207. ?>
  208. /<?php echo $this->scope["board"]["name"];?>/ -
  209. <?php
  210. }?>
  211. <?php echo $this->scope["board"]["desc"];?></div>
  212. <?php echo $this->scope["board"]["includeheader"];?>
  213. <hr /><?php /* end template body */
  214. return $this->buffer . ob_get_clean();
  215. ?>