[Problem] Customizing the template (main.topnav.tpl)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • [Problem] Customizing the template (main.topnav.tpl)

      Hello,

      In which file is the closing tag </div> in the main.topnav.tpl file for <div id="page"> ?

      Sorry for my english... In french :

      Dans quel fichier se trouve la balise fermante </div> du <div id="page"> dans le fichier main.topnav.tpl ??

      PHP Source Code

      1. <div id="page">
      2. <div id="header">
      3. <table id="headerTable">
      4. <tbody>
      5. <tr>
      6. <td id="planetImage">
      7. <img src="{$dpath}planeten/small/s_{$image}.jpg" alt="">
      8. </td>
      9. <td id="planetSelectorWrapper">
      10. <label for="planetSelector"></label>
      11. <select id="planetSelector">
      12. {html_options options=$PlanetSelect selected=$current_pid}
      13. </select>
      14. </td>
      15. <td id="resourceWrapper">
      16. <table id="resourceTable">
      17. <tbody>
      18. <tr>
      19. {foreach $resourceTable as $resourceID => $resourceData}
      20. <td><img src="{$dpath}images/{$resourceData.name}.gif" alt=""></td>
      21. {/foreach}
      22. </tr>
      23. <tr>
      24. {foreach $resourceTable as $resourceID => $resourceData}
      25. <td class="res_name">{$LNG.tech.$resourceID}</td>
      26. {/foreach}
      27. </tr>
      28. {if $shortlyNumber}
      29. <tr>
      30. {foreach $resourceTable as $resourceID => $resourceData}
      31. {if !isset($resourceData.current)}
      32. {$resourceData.current = $resourceData.max + $resourceData.used}
      33. <td class="res_current tooltip" data-tooltip-content="{$resourceData.current|number}&nbsp;/&nbsp;{$resourceData.max|number}"><span{if $resourceData.current < 0} style="color:red"{/if}>{shortly_number($resourceData.current)}&nbsp;/&nbsp;{shortly_number($resourceData.max)}</span></td>
      34. {else}
      35. <td class="res_current tooltip" id="current_{$resourceData.name}" data-real="{$resourceData.current}" data-tooltip-content="{$resourceData.current|number}">{shortly_number($resourceData.current)}</td>
      36. {/if}
      37. {/foreach}
      38. </tr>
      39. <tr>
      40. {foreach $resourceTable as $resourceID => $resourceData}
      41. {if !isset($resourceData.current) || !isset($resourceData.max)}
      42. <td>&nbsp;</td>
      43. {else}
      44. <td class="res_max tooltip" id="max_{$resourceData.name}" data-real="{$resourceData.max}" data-tooltip-content="{$resourceData.max|number}">{shortly_number($resourceData.max)}</td>
      45. {/if}
      46. {/foreach}
      47. </tr>
      48. {else}
      49. <tr>
      50. {foreach $resourceTable as $resourceID => $resourceData}
      51. {if !isset($resourceData.current)}
      52. {$resourceData.current = $resourceData.max + $resourceData.used}
      53. <td class="res_current"><span{if $resourceData.current < 0} style="color:red"{/if}>{$resourceData.current|number}&nbsp;/&nbsp;{$resourceData.max|number}</span></td>
      54. {else}
      55. <td class="res_current" id="current_{$resourceData.name}" data-real="{$resourceData.current}">{$resourceData.current|number}</td>
      56. {/if}
      57. {/foreach}
      58. </tr>
      59. <tr>
      60. {foreach $resourceTable as $resourceID => $resourceData}
      61. {if !isset($resourceData.current) || !isset($resourceData.max)}
      62. <td>&nbsp;</td>
      63. {else}
      64. <td class="res_max" id="max_{$resourceData.name}" data-real="{$resourceData.current}">{$resourceData.max|number}</td>
      65. {/if}
      66. {/foreach}
      67. </tr>
      68. {/if}
      69. </tbody>
      70. </table>
      71. </td>
      72. </tr>
      73. </tbody>
      74. </table>
      75. {if !$vmode}
      76. <script type="text/javascript">
      77. var viewShortlyNumber = {$shortlyNumber|json};
      78. var vacation = {$vmode};
      79. $(function() {
      80. {foreach $resourceTable as $resourceID => $resourceData}
      81. {if isset($resourceData.production)}
      82. resourceTicker({
      83. available: {$resourceData.current|json},
      84. limit: [0, {$resourceData.max|json}],
      85. production: {$resourceData.production|json},
      86. valueElem: "current_{$resourceData.name}"
      87. }, true);
      88. {/if}
      89. {/foreach}
      90. });
      91. </script>
      92. <script src="scripts/game/topnav.js"></script>
      93. {if $hasGate}<script src="scripts/game/gate.js"></script>{/if}
      94. {/if}
      95. </div>
      96. {if $closed}
      97. <div class="infobox">{$LNG.ov_closed}</div>
      98. {elseif $delete}
      99. <div class="infobox">{$delete}</div>
      100. {elseif $vacation}
      101. <div class="infobox">{$LNG.tn_vacation_mode} {$vacation}</div>
      102. {/if}
      103. /** Where is he???
      104. </div>
      105. **/
      Display All