A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 6.1KB

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