A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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/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. {if {$row.postType}==1}
  37. <div class="post">
  38. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  39. <div class="regular">
  40. <h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  41. {$row.Body}
  42. </div>
  43. </div>
  44. {elseif {$row.postType}==2}
  45. <div class="post">
  46. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  47. <div class="photo">
  48. <a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
  49. <div class="caption">{$row.Caption}</div>
  50. </div>
  51. </div>
  52. {elseif {$row.postType}==3}
  53. <div class="post">
  54. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  55. <div class="quote">
  56. <span class="quote"><big class="quote"><a href="{$row.Permalink}">&#147;</a></big> {$row.Quote}</span>
  57. <div class="source">&mdash; {$row.Source}</div>
  58. </div>
  59. </div>
  60. {elseif {$row.postType}==4}
  61. <div class="post">
  62. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  63. <div class="link">
  64. &#187; <a href="{$row.URL}">{$row.Name}</a>
  65. <div class="description">{$row.Description}</div>
  66. </div>
  67. </div>
  68. {elseif {$row.postType}==5}
  69. <div class="post">
  70. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  71. <div class="conversation">
  72. ...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  73. {$row.Conversation}
  74. </div>
  75. </div>
  76. {elseif {$row.postType}==6}
  77. <div class="post">
  78. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  79. <div class="video">
  80. {$row.Video}
  81. <div class="caption">{$row.Caption}</div>
  82. </div>
  83. </div>
  84. {elseif {$row.postType}==7}
  85. <div class="post">
  86. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  87. <div class="video">
  88. {$row.Mp3}
  89. <div class="caption">{$row.Caption}</div>
  90. </div>
  91. </div>
  92. {/if}
  93. {if !{$id_post}}
  94. <div class="totalComments">
  95. <h3>Posted by {$row.User} - <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) comments</a></h3>
  96. </div>
  97. {/if}
  98. {/block}
  99. {if {$id_post}}
  100. <div class="containerComments">
  101. <h3 id="comments">{$row.Comments_Number} answers to &#8220;{$row.Post_Title}&#8221;</h3>
  102. <ol class="commentlist">
  103. {block {$comments} as {$comment}}
  104. <li class="alt" id="comment-{$comment.Id_Comment}">
  105. <cite>
  106. <a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
  107. {$comment.Comment_Author} said:
  108. </cite>
  109. <br />
  110. <span class="timestampComment"> at {$comment.Date}</span><br /><br />
  111. {$comment.Comment}
  112. <br /><br />
  113. </li>
  114. {/block}
  115. </ol>
  116. </div>
  117. <div class="containerFormComments">
  118. <h3 id="respond">Add your comment</h3>
  119. <form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
  120. <p>
  121. <label for="username">
  122. <small>Name:</small>
  123. </label>
  124. <input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
  125. </p>
  126. <p>
  127. <label for="email">
  128. <small>E-mail:</small>
  129. </label>
  130. <input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
  131. </p>
  132. <p>
  133. <label for="web">
  134. <small>Website:</small>
  135. </label>
  136. <input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
  137. </p>
  138. <p>
  139. <textarea name="content" id="content" cols="100" rows="10" tabindex="4"></textarea>
  140. </p>
  141. <p>
  142. <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
  143. Some HTML allowed:<br />
  144. &nbsp;&nbsp;&nbsp;&nbsp;
  145. <code>
  146. &lt;blockquote&gt; &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;a&gt;
  147. </code>
  148. </span>
  149. </p>
  150. <p>
  151. <input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
  152. </p>
  153. <p>
  154. <input name="id_post" id="id_post" value="{id_post}" type="hidden" />
  155. <input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
  156. </p>
  157. </form>
  158. </div>
  159. {else}
  160. {pagination}
  161. {/if}
  162. {/if}
  163. </div>
  164. <div id="footer">
  165. subscribe via <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;
  166. powered by <a href="http://www.gelatocms.com/">gelato cms</a>
  167. </div>
  168. </body>
  169. </html>