A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. {Gelato_includes}
  6. <title>{Page_Title}</title>
  7. <!--[if IE]>
  8. <style type="text/css">
  9. div.post div.quote span.quote big.quote {
  10. line-height: 40px;
  11. }
  12. </style>
  13. <![endif]-->
  14. </head>
  15. <body>
  16. <div id="container">
  17. <a href="{URL_Tumble}/rss.php"><img src="{URL_Tumble}/themes/{Template_name}/img/rss.gif" id="rss" alt="RSS" title="RSS" /></a>
  18. <h1><a href="{URL_Tumble}/">{Title}</a></h1>
  19. <div id="description">
  20. {Description}
  21. </div>
  22. {if {$isAuthenticated}}
  23. <div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
  24. <b>Hi, {User}.</b>&nbsp;&nbsp;
  25. <a target="_top" href="{URL_Tumble}/admin/index.php">{__("Add or Edit my posts")}</a>&nbsp;&nbsp;
  26. <a target="_top" href="{URL_Tumble}/admin/close.php">{__("Sign out")}</a>
  27. </div>
  28. {/if}
  29. {if {$error}}
  30. <div class="error">{$error}</div>
  31. {else}
  32. {block {$rows} as {$row}}
  33. <div class="date">
  34. {$row.Date_Added}
  35. </div>
  36. <div class="post">
  37. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  38. {if {$row.postType}=='post'}
  39. <div class="regular">
  40. <h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  41. {$row.Body}
  42. </div>
  43. {elseif {$row.postType}=='photo'}
  44. <div class="photo">
  45. <a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
  46. <div class="caption">{$row.Caption}</div>
  47. </div>
  48. {elseif {$row.postType}=='quote'}
  49. <div class="quote">
  50. <span class="quote"><big class="quote"><a href="{$row.Permalink}">&#147;</a></big> {$row.Quote}</span>
  51. <div class="source">&mdash; {$row.Source}</div>
  52. </div>
  53. {elseif {$row.postType}=='url'}
  54. <div class="link">
  55. &#187; <a href="{$row.URL}">{$row.Name}</a>
  56. <div class="description">{$row.Description}</div>
  57. </div>
  58. {elseif {$row.postType}=='conversation'}
  59. <div class="conversation">
  60. ...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  61. {$row.Conversation}
  62. </div>
  63. {elseif {$row.postType}=='video'}
  64. <div class="video">
  65. {$row.Video}
  66. <div class="caption">{$row.Caption}</div>
  67. </div>
  68. {elseif {$row.postType}=='mp3'}
  69. <div class="video">
  70. {$row.Mp3}
  71. <div class="caption">{$row.Caption}</div>
  72. </div>
  73. {/if}
  74. </div>
  75. {if !{$id_post}}
  76. <div class="totalComments">
  77. <h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
  78. </div>
  79. {/if}
  80. {/block}
  81. {if {$id_post}}
  82. {if {$row.Comments_Number}>0}
  83. <div class="containerComments">
  84. <h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
  85. <ol class="commentlist">
  86. {block {$comments} as {$comment}}
  87. <li class="alt" id="comment-{$comment.Id_Comment}">
  88. <cite>
  89. <a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
  90. {$comment.Comment_Author} {__("said")}:
  91. </cite>
  92. <br />
  93. <span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
  94. {$comment.Comment}
  95. <br /><br />
  96. </li>
  97. {/block}
  98. </ol>
  99. </div>
  100. {/if}
  101. {if {$allowComments}}
  102. <div class="containerFormComments">
  103. <h3 id="respond">{__("Add your comment")}</h3>
  104. <form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
  105. <p>
  106. <label for="username">
  107. <small>{__("Name:")}</small>
  108. </label>
  109. <input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
  110. </p>
  111. <p>
  112. <label for="email">
  113. <small>{__("E-mail:")}</small>
  114. </label>
  115. <input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
  116. </p>
  117. <p>
  118. <label for="web">
  119. <small>{__("Website:")}</small>
  120. </label>
  121. <input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
  122. </p>
  123. <p>
  124. <textarea name="content" id="content" cols="100" rows="10" tabindex="4"></textarea>
  125. </p>
  126. <p>
  127. <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
  128. {__("Some HTML allowed:")}<br />
  129. &nbsp;&nbsp;&nbsp;&nbsp;
  130. <code>
  131. &lt;blockquote&gt; &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;a&gt;
  132. </code>
  133. </span>
  134. </p>
  135. <p>
  136. <input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
  137. </p>
  138. <p>
  139. <input name="id_post" id="id_post" value="{id_post}" type="hidden" />
  140. <input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
  141. </p>
  142. </form>
  143. </div>
  144. {/if}
  145. {else}
  146. {pagination}
  147. {/if}
  148. {/if}
  149. </div>
  150. <div id="footer">
  151. {__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;
  152. {__("powered by")} <a href="http://www.gelatocms.com/">gelato cms</a>
  153. </div>
  154. </body>
  155. </html>