A tumblelog CMS built on AJAX, PHP and MySQL.

index.htm 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. {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}">Gelato</a></h1>
  44. {if {$error}}
  45. <div class="error">{$error}</div>
  46. {else}
  47. {block {$rows} as {$row}}
  48. <div class="post">
  49. <div class="permalink"><a href="{$row.Permalink}">•</a></div>
  50. <div class="date">
  51. {$row.Date_Added}
  52. </div>
  53. {if {$row.postType}=='post'}
  54. <div class="regular">
  55. <h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  56. {$row.Body}
  57. </div>
  58. {elseif {$row.postType}=='photo'}
  59. <div class="photo">
  60. <a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}"></a>
  61. <div class="caption">
  62. {$row.Caption}
  63. </div>
  64. </div>
  65. {elseif {$row.postType}=='quote'}
  66. <div class="quote">
  67. <span class="quote">
  68. <big class="quote">“</big> <a href="{$row.Permalink}">{$row.Quote}</a>
  69. </span>
  70. <span class="source">{$row.Source}</span>
  71. </div>
  72. {elseif {$row.postType}=='url'}
  73. <div class="link">
  74. <a href="{$row.URL}" class="link" >{$row.Name}</a>
  75. <div class="description">{$row.Description}</div>
  76. </div>
  77. {elseif {$row.postType}=='conversation'}
  78. <div class="conversation">
  79. ...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
  80. {$row.Conversation}
  81. </div>
  82. {elseif {$row.postType}=='video'}
  83. <div class="video">
  84. {$row.Video}
  85. <div class="caption">{$row.Caption}</div>
  86. </div>
  87. {elseif {$row.postType}=='mp3'}
  88. <div class="video">
  89. {$row.Mp3}
  90. <div class="caption">{$row.Caption}</div>
  91. </div>
  92. {/if}
  93. </div>
  94. {if !{$id_post}}
  95. <div class="totalComments">
  96. <h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
  97. </div>
  98. {/if}
  99. {/block}
  100. {if {$id_post}}
  101. {if {$row.Comments_Number}>0}
  102. <div class="containerComments">
  103. <h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
  104. <ol class="commentlist">
  105. {block {$comments} as {$comment}}
  106. <li class="alt" id="comment-{$comment.Id_Comment}">
  107. <cite>
  108. <a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
  109. {$comment.Comment_Author} {__("said")}:
  110. </cite>
  111. <br />
  112. <span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
  113. {$comment.Comment}
  114. <br /><br />
  115. </li>
  116. {/block}
  117. </ol>
  118. </div>
  119. {/if}
  120. {if {$allowComments}}
  121. <div class="containerFormComments">
  122. <h3 id="respond">{__("Add your comment")}</h3>
  123. <form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
  124. <p>
  125. <label for="username">
  126. <small>{__("Name:")}</small>
  127. </label>
  128. <input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
  129. </p>
  130. <p>
  131. <label for="email">
  132. <small>{__("E-mail:")}</small>
  133. </label>
  134. <input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
  135. </p>
  136. <p>
  137. <label for="web">
  138. <small>{__("Website:")}</small>
  139. </label>
  140. <input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
  141. </p>
  142. <p>
  143. <textarea name="content" id="content" cols=" rows="10" tabindex="4"></textarea>
  144. </p>
  145. <p>
  146. <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
  147. {__("Some HTML allowed:")}<br />
  148. &nbsp;&nbsp;&nbsp;&nbsp;
  149. <code>
  150. &lt;blockquote&gt; &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;a&gt;
  151. </code>
  152. </span>
  153. </p>
  154. <p>
  155. <input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
  156. </p>
  157. <p>
  158. <input name="id_post" id="id_post" value="{id_post}" type="hidden" />
  159. <input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
  160. </p>
  161. </form>
  162. </div>
  163. {/if}
  164. {else}
  165. {pagination}
  166. {/if}
  167. {/if}
  168. <div id="footer">
  169. <p class="tiny">
  170. {__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;
  171. {__("powered by")} <a href="http://www.gelatocms.com/">gelato cms</a>
  172. </p>
  173. </div>
  174. </div>
  175. </body>
  176. </html>