A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 5.6KB

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