A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. {Sorbet_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. <link rel="alternate" type="application/rss+xml" title="RSS" href="{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="{rssFeed}"><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. {else}
  35. <div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
  36. <b><a target="_top" href="{URL_Tumble}/login.php">{__("Log in")}</a></b>
  37. </div>
  38. {/if}
  39. {if $error}
  40. <div class="error">{$error}</div>
  41. {else}
  42. {block $rows as $row}
  43. <div class="date">
  44. {$row.Date_Added}
  45. </div>
  46. <div class="post">
  47. <a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
  48. {if $row.postType=='post'}
  49. <div class="regular">
  50. <h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  51. {$row.Body}
  52. </div>
  53. {elseif $row.postType=='photo'}
  54. <div class="photo">
  55. <a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
  56. <div class="caption">{$row.Caption}</div>
  57. </div>
  58. {elseif $row.postType=='quote'}
  59. <div class="quote">
  60. <span class="quote"><big class="quote"><a href="{$row.Permalink}">&#147;</a></big> {$row.Quote}</span>
  61. <div class="source">&mdash; {$row.Source}</div>
  62. </div>
  63. {elseif $row.postType=='url'}
  64. <div class="link">
  65. &#187; <a href="{$row.URL}">{$row.Name}</a>
  66. <div class="description">{$row.Description}</div>
  67. </div>
  68. {elseif $row.postType=='conversation'}
  69. <div class="conversation">
  70. ...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  71. {$row.Conversation}
  72. </div>
  73. {elseif $row.postType=='video'}
  74. <div class="video">
  75. {$row.Video}
  76. <div class="caption">{$row.Caption}</div>
  77. </div>
  78. {elseif $row.postType=='mp3'}
  79. <div class="video">
  80. {$row.Mp3}
  81. <div class="caption">{$row.Caption}</div>
  82. </div>
  83. {/if}
  84. </div>
  85. {if !$id_post}
  86. <div class="totalComments">
  87. <h3>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
  88. </div>
  89. {/if}
  90. {/block}
  91. {if $id_post}
  92. {if $row.Comments_Number>0}
  93. <div class="containerComments">
  94. <h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
  95. <ol class="commentlist">
  96. {block $comments as $comment}
  97. <li class="alt" id="comment-{$comment.Id_Comment}">
  98. <cite>
  99. <a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
  100. {$comment.Comment_Author} {__("said")}:
  101. </cite>
  102. <br />
  103. <span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
  104. {$comment.Comment}
  105. <br /><br />
  106. </li>
  107. {/block}
  108. </ol>
  109. </div>
  110. {/if}
  111. {if $allowComments}
  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;">
  138. {__("Some HTML allowed:")}<br />
  139. &nbsp;&nbsp;&nbsp;&nbsp;
  140. <code>
  141. &lt;blockquote&gt; &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;a&gt;
  142. </code>
  143. </span>
  144. </p>
  145. <p>
  146. <input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
  147. </p>
  148. <p>
  149. <input name="id_post" id="id_post" value="{id_post}" type="hidden" />
  150. <input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
  151. </p>
  152. </form>
  153. </div>
  154. {/if}
  155. {else}
  156. {pagination}
  157. {/if}
  158. {/if}
  159. </div>
  160. <div id="footer">
  161. <a href="{URL_Tumble}/archive.php">{__("archive")}</a> &nbsp;/&nbsp;
  162. {__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;
  163. {__("powered by")} sorbet cms
  164. </div>
  165. </body>
  166. </html>