A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
  3. {Gelato_includes}
  4. <link rel="stylesheet" type="text/css" href="{URL_Tumble}/themes/{Template_name}/style.css"/>
  5. <script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/jquery.js"></script>
  6. <script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/lightbox.js"></script>
  7. <link rel="stylesheet" type="text/css" href="{URL_Tumble}/admin/css/lightbox.css" />
  8. <!-- DEFAULT COLORS -->
  9. <meta name="color:Background" content="#002c43">
  10. <meta name="color:Content Background" content="#005885">
  11. <meta name="color:Content Border" content="#003955">
  12. <meta name="color:Title" content="#fff">
  13. <meta name="color:Description" content="#568">
  14. <meta name="color:Post Title" content="#fff">
  15. <meta name="color:Text" content="#fff">
  16. <meta name="color:Inline Link" content="#ff9900">
  17. <meta name="color:Quote" content="#fff">
  18. <meta name="color:Quote Source" content="#aaa">
  19. <meta name="color:Link Post" content="#ff9900">
  20. <meta name="color:Conversation Background" content="#46a6e9">
  21. <meta name="color:Conversation Border" content="#0070ba">
  22. <meta name="color:Conversation Text" content="#000">
  23. <meta name="color:Photo Border" content="#eee">
  24. <meta name="color:Date 1" content="#888">
  25. <meta name="color:Date 2" content="#4075a2">
  26. <!-- END DEFAULT COLORS -->
  27. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28. <title>{Page_Title}</title>
  29. <link rel="alternate" type="application/rss+xml" title="RSS" href="{rssFeed}" />
  30. <!--[if lt IE 7]>
  31. <style type="text/css">
  32. #content {
  33. background-image: none;
  34. }
  35. .post .date {
  36. right: 600px;
  37. }
  38. </style>
  39. <![endif]-->
  40. </head>
  41. <body>
  42. <div id="content">
  43. <h1><a href="{URL_Tumble}">{Title}</a></h1>
  44. <div id="description">
  45. {Description}
  46. </div>
  47. {if $error}
  48. <div class="error">{$error}</div>
  49. {else}
  50. {block $rows as $row}
  51. <div class="post">
  52. <div class="permalink"><a href="{$row.Permalink}">•</a></div>
  53. <div class="date">
  54. {$row.Date_Added}
  55. </div>
  56. {if $row.postType=='post'}
  57. <div class="regular">
  58. <h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  59. {$row.Body}
  60. </div>
  61. {elseif $row.postType=='photo'}
  62. <div class="photo">
  63. <a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}"></a>
  64. <div class="caption">
  65. {$row.Caption}
  66. </div>
  67. </div>
  68. {elseif $row.postType=='quote'}
  69. <div class="quote">
  70. <span class="quote">
  71. <big class="quote">“</big> <a href="{$row.Permalink}">{$row.Quote}</a>
  72. </span>
  73. <span class="source">{$row.Source}</span>
  74. </div>
  75. {elseif $row.postType=='url'}
  76. <div class="link">
  77. <a href="{$row.URL}" class="link" >{$row.Name}</a>
  78. <div class="description">{$row.Description}</div>
  79. </div>
  80. {elseif $row.postType=='conversation'}
  81. <div class="conversation">
  82. ...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  83. {$row.Conversation}
  84. </div>
  85. {elseif $row.postType=='video'}
  86. <div class="video">
  87. {$row.Video}
  88. <div class="caption">{$row.Caption}</div>
  89. </div>
  90. {elseif $row.postType=='mp3'}
  91. <div class="video">
  92. {$row.Mp3}
  93. <div class="caption">{$row.Caption}</div>
  94. </div>
  95. {/if}
  96. </div>
  97. {if !$id_post}
  98. <div class="totalComments">
  99. <h3>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
  100. </div>
  101. {/if}
  102. {/block}
  103. {if $id_post}
  104. {if $row.Comments_Number>0}
  105. <div class="containerComments">
  106. <h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
  107. <ol class="commentlist">
  108. {block $comments as $comment}
  109. <li class="alt" id="comment-{$comment.Id_Comment}">
  110. <cite>
  111. <a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
  112. {$comment.Comment_Author} {__("said")}:
  113. </cite>
  114. <br />
  115. <span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
  116. {$comment.Comment}
  117. <br /><br />
  118. </li>
  119. {/block}
  120. </ol>
  121. </div>
  122. {/if}
  123. {if $allowComments}
  124. <div class="containerFormComments">
  125. <h3 id="respond">{__("Add your comment")}</h3>
  126. <form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
  127. <p>
  128. <label for="username">
  129. <small>{__("Name:")}</small>
  130. </label>
  131. <input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
  132. </p>
  133. <p>
  134. <label for="email">
  135. <small>{__("E-mail:")}</small>
  136. </label>
  137. <input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
  138. </p>
  139. <p>
  140. <label for="web">
  141. <small>{__("Website:")}</small>
  142. </label>
  143. <input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
  144. </p>
  145. <p>
  146. <textarea name="content" id="content" cols=" rows="10" tabindex="4"></textarea>
  147. </p>
  148. <p>
  149. <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
  150. {__("Some HTML allowed:")}<br />
  151. &nbsp;&nbsp;&nbsp;&nbsp;
  152. <code>
  153. &lt;blockquote&gt; &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;a&gt;
  154. </code>
  155. </span>
  156. </p>
  157. <p>
  158. <input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
  159. </p>
  160. <p>
  161. <input name="id_post" id="id_post" value="{id_post}" type="hidden" />
  162. <input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
  163. </p>
  164. </form>
  165. </div>
  166. {/if}
  167. {else}
  168. {pagination}
  169. {/if}
  170. {/if}
  171. <div id="footer">
  172. <p class="tiny">
  173. {__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;
  174. {__("powered by")} <a href="http://www.gelatocms.com/">gelato cms</a>
  175. </p>
  176. </div>
  177. </div>
  178. </body>
  179. </html>