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