septims

Theme Tut: Posts 4

Jul 17th, 2014
1,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <title>{Title}</title>
  5.  
  6. <link rel="shortcut icon" href="{Favicon}">
  7. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  8.  
  9.  
  10. <style type="text/css">
  11.  
  12. /* styling, or CSS, goes here */
  13.  
  14. body {margin:0;
  15. font-size:11px;
  16. font-family:helvetica;
  17. color:#aaa;
  18. background:#fff;
  19. font-weight:normal;
  20. }
  21.  
  22. a {text-decoration:none;
  23. color:black;
  24. }
  25.  
  26.  
  27. #container {position:absolute;
  28. left:50%;
  29. top:0;
  30. width:400px;
  31. margin-left:-200px;}
  32.  
  33. #header {margin-top:100px;
  34. margin-bottom:100px;
  35. text-align:center;
  36. }
  37.  
  38. #blogtitle {font-size:18px;
  39. font-weight:bold;
  40. margin-bottom:15px;
  41. }
  42.  
  43. #description {font-style:italic;
  44. padding:14px 0;
  45. border-top:1px solid #eee;
  46. border-bottom:1px solid #eee;
  47. }
  48.  
  49. #links {margin-top:15px;
  50. }
  51.  
  52. #links a {color:#000;
  53. margin:0 10px;
  54. }
  55.  
  56. /* posts */
  57.  
  58. #entries {margin-bottom:100px;
  59. }
  60.  
  61. .post {width:400px;
  62. margin-bottom:50px;}
  63.  
  64. .title {font-size:14px;
  65. text-align:center;
  66. margin-bottom:15px;}
  67.  
  68. .quote {font-style:italic;
  69. font-size:14px;
  70. text-align:center;
  71. margin-bottom:15px;}
  72.  
  73. .source {font-size:10px;}
  74.  
  75. .chat ol {list-style:none;
  76. margin:0;
  77. padding:0;}
  78.  
  79. .chat li {padding:10px 0;}
  80.  
  81. .question {font-style:italic;
  82. }
  83.  
  84. .answer {margin-top:15px;}
  85.  
  86. .audio_info {margin-top:15px;
  87. font-size:10px;
  88. text-transform:uppercase;
  89. font-weight:bold;
  90. letter-spacing:1px;
  91. }
  92.  
  93. .caption {margin:10px 0;}
  94.  
  95. .permalink {font-size:10px;
  96. text-align:center;
  97. border-top:1px solid #eee;
  98. padding-top:10px;
  99. margin-top:10px;
  100. }
  101.  
  102. .tags {text-align:center;
  103. margin-top:5px;
  104. }
  105.  
  106. .tags a {margin:0 5px;}
  107.  
  108. #pagination {margin-bottom:100px;
  109. text-align:center;
  110. font-style:italic;
  111. }
  112.  
  113. #pagination a {margin:0 15px;}
  114.  
  115. </style>
  116.  
  117. </head>
  118.  
  119. <body>
  120.  
  121. <!-- all your HTML goes here! -->
  122.  
  123. <div id="container">
  124.  
  125. <div id="header">
  126. <div id="blogtitle">{title}</div>
  127. <div id="description">{description}</div>
  128. <div id="links">
  129. <a href="/">Home</a>
  130. <a href="/ask">Message</a>
  131. <a href="/archive">Archive</a>
  132. </div>
  133. </div>
  134.  
  135. <div id="entries">
  136.  
  137. {block:posts}
  138. <div class="post">
  139.  
  140. {block:quote}
  141. <div class="quote">{quote}</div>
  142. {block:source}<span class="source">{source}</span>{/block:source}
  143. {/block:quote}
  144.  
  145. {block:Text}<div id="Text">
  146. {block:title}<div class="title">{title}</div>{/block:title}
  147. {Body}</div>
  148. {/block:Text}
  149.  
  150. {block:link}
  151. <div class="title"><a href="{URL}">{Name}</a></div>
  152. {block:description}{description}{/block:description}
  153. {/block:link}
  154.  
  155. {block:chat}
  156. <div class="chat">
  157. {block:title}<div class="title">{title}</div>{/block:title}
  158. {block:lines}<ol>
  159. <li>{block:label}{label}{/block:label}{Line}</li>
  160. </ol>{/block:lines}
  161. </div>
  162. {/block:chat}
  163.  
  164. {block:photo}
  165. {LinkOpenTag}<img src="{PhotoURL-400}" alt="{PhotoAlt}"/>{LinkCloseTag}
  166. {/block:photo}
  167.  
  168. {block:photoset}
  169. {photoset-400}
  170. {/block:photoset}
  171.  
  172. {block:video}
  173. {video-400}
  174. {/block:video}
  175.  
  176.  
  177. {block:answer}
  178. <div class="question">{asker} asked: {question}</div>
  179. <div class="answer">{answer}</div>
  180. {/block:answer}
  181.  
  182.  
  183.  
  184. {block:audio}
  185. {audioplayerwhite}
  186. <div class="audio_info">
  187. {block:trackname}{trackname}{/block:trackname}
  188. {block:artist}{artist}{/block:artist}
  189. </div>
  190. {/block:audio}
  191.  
  192. {block:caption}<div class="caption">{caption}</div>{/block:caption}
  193.  
  194. {block:date}
  195. <div class="permalink">
  196. <a href="{permalink}">{timeago}</a>
  197. </div>
  198. {block:hastags}
  199. <div class="tags">
  200. {block:tags}<a href="{tagurl}"># {tag}</a>{/block:tags}
  201. </div>
  202. {/block:hastags}
  203. {/block:date}
  204.  
  205. </div>
  206. {/block:posts}
  207.  
  208. {block:PostNotes}
  209. {PostNotes}
  210. {/block:PostNotes}
  211.  
  212. {block:pagination}
  213. <div id="pagination">
  214. {block:PreviousPage}
  215. <a href="{PreviousPage}">Previous Page</a>
  216. {/block:PreviousPage}
  217.  
  218. {block:NextPage}
  219. <a href="{NextPage}">Next Page</a>
  220. {/block:NextPage}
  221. </div>
  222. {/block:pagination}
  223.  
  224. </div>
  225.  
  226. </div>
  227.  
  228.  
  229. </body>
  230.  
  231. </html>
Advertisement
Add Comment
Please, Sign In to add comment