PageRenderTime 65ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/themes/site_themes/default/default.php

https://github.com/danboy/Croissierd
PHP | 1886 lines | 1357 code | 473 blank | 56 comment | 21 complexity | 5f3dbaec5af1afe7a82dbd96e72ca121 MD5 | raw file
  1. <?php
  2. $template_matrix = array(
  3. array('index', 'webpage'),
  4. array('about', 'webpage'),
  5. array('archives', 'webpage'),
  6. array('categories', 'webpage'),
  7. array('comments', 'webpage'),
  8. array('comment_preview', 'webpage'),
  9. array('trackbacks', 'webpage'),
  10. array('referrers', 'webpage'),
  11. array('smileys', 'webpage'),
  12. array('site_css', 'css')
  13. );
  14. if ( ! isset($type))
  15. $type = 'core';
  16. //-------------------------------------
  17. // Stylesheet template
  18. //-------------------------------------
  19. function site_css()
  20. {
  21. global $type;
  22. ob_start();
  23. ?>
  24. body
  25. {
  26. margin: 0 auto;
  27. padding: 0;
  28. color: #333;
  29. background: #585756 url("./themes/site_themes/default/bg.gif") repeat;
  30. font-size: 80%
  31. }
  32. h1, h2, h3 {
  33. font-family: georgia, times new roman, times, serif;
  34. letter-spacing: 0.09em;
  35. }
  36. h4 {
  37. font-family: lucida grande, verdana, arial, helvetica, sans-serif;
  38. margin-bottom: 4px;
  39. }
  40. p {
  41. font-family: times new roman, times, serif;
  42. }
  43. ol {
  44. margin-bottom: 10px;
  45. }
  46. .center {
  47. text-align: center;
  48. }
  49. blockquote {
  50. font-family: trebuchet ms, verdana, arial, helvetica, sans-serif;
  51. }
  52. ul {
  53. list-style: square;
  54. margin-top: 3px;
  55. margin-bottom: 3px;
  56. margin-left: 1em;
  57. padding-left: 1em;
  58. }
  59. img {
  60. margin: 0;
  61. padding: 0;
  62. border: 0;
  63. }
  64. a:link { background-color: transparent; text-decoration: none; color: #663300; }
  65. a:hover { background-color: #663300; text-decoration: none; color: #fff; }
  66. a:visited { background-color: transparent; text-decoration: none; color: #663300; }
  67. #topbar {
  68. margin:0 auto;
  69. padding:0;
  70. height: 45px;
  71. background: #FBFAF4;
  72. border-top: 8px solid #232863;
  73. border-bottom: 1px solid #333;
  74. }
  75. .secondbar {
  76. margin:0 1px 0 0;
  77. padding:0;
  78. height: 1px;
  79. background: #3C3B3A;
  80. border-top: 1px solid #31302F;
  81. border-bottom: 1px solid #50504E;
  82. }
  83. #wrapper {
  84. margin: -57px auto 0 auto;
  85. padding-bottom: 10px;
  86. width: 740px;
  87. border-top: 8px solid #232863;
  88. background: #585756 url("./themes/site_themes/default/bg.gif") repeat;
  89. color: #333;
  90. }
  91. #navbar {
  92. margin:0 0 0 125px;
  93. padding:3px 0 3px 0;
  94. background: #FBFAF4;
  95. font: 16px lucida grande, verdana, arial, helvetica, sans-serif;
  96. text-align: center;
  97. }
  98. #navbar ul {
  99. list-style: none;
  100. }
  101. #navbar li {
  102. float: left;
  103. padding: 0 23px 0 23px;
  104. margin-right: 5px;
  105. list-style: none;
  106. }
  107. #navbar li a { display: block;
  108. padding: 0.75em 0 0.25em;
  109. text-transform: uppercase;
  110. color: #000;}
  111. #navbar a:hover {background: transparent;}
  112. #header {
  113. margin: 0 0 0 0;
  114. padding: 0 10px 5px 20px;
  115. border-bottom: 1px solid #ccc;
  116. background: #FBFAF4;
  117. border-left: 1px solid #333;
  118. border-right: 1px solid #333;
  119. border-bottom: 1px solid #333;
  120. }
  121. #blogtitle {
  122. font-size: 1.25em;
  123. color: #2F4C12;
  124. float: left;
  125. margin: 7px 0 0 0;
  126. padding: 8px 4px 4px 4px;
  127. width: 700px;
  128. border-top: 1px solid #333;
  129. }
  130. #blogtitle h1 {
  131. margin: 0;
  132. padding-top: 5px;
  133. font: 160% Georgia, Times, serif;
  134. letter-spacing: 0.1em;
  135. text-align: left;
  136. }
  137. #nav {
  138. float: left;
  139. margin: 0;
  140. padding: 0;
  141. width: 350px;
  142. text-align: right;
  143. background: transparent;
  144. color: #333;
  145. font-size: 70%;
  146. font-variant: small-caps;
  147. letter-spacing: 0.09em;
  148. }
  149. #content {
  150. float: left;
  151. margin: 15px 0 10px 0;
  152. padding: 10px 10px 0 10px;
  153. background: #FfFfFa;
  154. border-left: 1px solid #000;
  155. border-top: 1px solid #000;
  156. border-right: 1px solid #000;
  157. }
  158. #blog {
  159. float: left;
  160. margin-right: 5px;
  161. padding: 0 10px 10px 10px;
  162. width: 440px;
  163. color: #333;
  164. text-align: left;
  165. }
  166. .entry {
  167. margin-top: 10px;
  168. padding: 0 10px 10px 10px;
  169. border: 1px solid #ccc;
  170. background: #F9F8F2;
  171. color: #333;
  172. }
  173. #sidebar {
  174. float: left;
  175. margin-left: 5px;
  176. padding: 10px 10px 10px 15px;
  177. border: 1px solid #ccc;
  178. width: 219px;
  179. background: #F9F8F2;
  180. color: #333;
  181. text-align: left;
  182. }
  183. #footer {
  184. margin: 0;
  185. padding: 5px 10px;
  186. border-top: 1px solid #ccc;
  187. border-bottom: 1px solid #ccc;
  188. background: #fff;
  189. color: #333;
  190. font-size: 70%;
  191. letter-spacing: 0.09em;
  192. }
  193. .date {
  194. font-size: 120%;
  195. background: transparent;
  196. color: #000;
  197. }
  198. .title {
  199. font-size: 130%;
  200. font-weight: normal;
  201. background: transparent;
  202. color: #336600;
  203. border-bottom: 1px solid #ddd;
  204. }
  205. .posted {
  206. margin-bottom: 10px;
  207. font: 10px lucida grande, verdana, arial, helvetica, sans-serif;
  208. background: transparent;
  209. color: #666;
  210. }
  211. .sidetitle {
  212. margin: 18px 0 7px 0;
  213. font-size: 115%;
  214. letter-spacing: 0.09em;
  215. font-weight: normal;
  216. background: transparent;
  217. color: #666600;
  218. border-bottom: 1px dotted #ccc;
  219. }
  220. .spacer {
  221. clear: both;
  222. }
  223. .paginate {
  224. font-family: Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
  225. font-size: 12px;
  226. font-weight: normal;
  227. letter-spacing: .1em;
  228. padding: 10px 6px 10px 4px;
  229. margin: 0;
  230. background-color: transparent;
  231. }
  232. .pagecount {
  233. font-family: Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
  234. font-size: 10px;
  235. color: #666;
  236. font-weight: normal;
  237. background-color: transparent;
  238. }
  239. .calendarBG {
  240. background-color: #000;
  241. }
  242. .calendarBlank {
  243. background-color: #9DB7A7;
  244. }
  245. .calendarHeader {
  246. font-weight: bold;
  247. color: #fff;
  248. text-align: center;
  249. background-color: #000;
  250. }
  251. .calendarMonthLinks {
  252. font-family: Arial, Trebuchet MS, Tahoma, Verdana, Sans-serif;
  253. font-size: 11px;
  254. font-weight: bold;
  255. letter-spacing: .1em;
  256. text-decoration: none;
  257. color: #fff;
  258. background-color: transparent;
  259. }
  260. .calendarMonthLinks a {
  261. color: #fff;
  262. text-decoration: none;
  263. background-color: transparent;
  264. }
  265. .calendarMonthLinks a:visited {
  266. color: #fff;
  267. text-decoration: none;
  268. background-color: transparent;
  269. }
  270. .calendarMonthLinks a:hover {
  271. color: #ccc;
  272. text-decoration: underline;
  273. background-color: transparent;
  274. }
  275. .calendarDayHeading {
  276. font-weight: bold;
  277. font-size: 11px;
  278. color: #fff;
  279. background-color: #195337;
  280. text-align: center;
  281. vertical-align: middle;
  282. }
  283. .calendarToday {
  284. font-family: Arial, Trebuchet MS, Tahoma, Verdana, Sans-serif;
  285. font-size: 12px;
  286. font-weight: bold;
  287. letter-spacing: .1em;
  288. text-decoration: none;
  289. text-align: center;
  290. vertical-align: middle;
  291. color: #000;
  292. background-color: #ccc;
  293. }
  294. .calendarCell {
  295. font-family: Arial, Trebuchet MS, Tahoma, Verdana, Sans-serif;
  296. font-size: 12px;
  297. font-weight: bold;
  298. letter-spacing: .1em;
  299. text-decoration: none;
  300. text-align: center;
  301. vertical-align: middle;
  302. color: #666;
  303. background-color: #fff;
  304. }
  305. .calendarCell a {
  306. color: #000;
  307. text-decoration: underline;
  308. background-color: transparent;
  309. }
  310. .calendarCell a:visited {
  311. color: #000;
  312. text-decoration: underline;
  313. background-color: transparent;
  314. }
  315. .calendarCell a:hover {
  316. color: #fff;
  317. text-decoration: none;
  318. background-color: transparent;
  319. }
  320. .input {
  321. border-top: 1px solid #999999;
  322. border-left: 1px solid #999999;
  323. background-color: #fff;
  324. color: #000;
  325. font-family: Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
  326. font-size: 11px;
  327. height: 1.6em;
  328. padding: .3em 0 0 2px;
  329. margin-top: 6px;
  330. margin-bottom: 3px;
  331. }
  332. .textarea {
  333. border-top: 1px solid #999999;
  334. border-left: 1px solid #999999;
  335. background-color: #fff;
  336. color: #000;
  337. font-family: Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
  338. font-size: 11px;
  339. margin-top: 3px;
  340. margin-bottom: 3px;
  341. }
  342. .checkbox {
  343. background-color: transparent;
  344. margin: 3px;
  345. padding: 0;
  346. border: 0;
  347. }
  348. .submit {
  349. background-color: #fff;
  350. font-family: Arial, Verdana, Sans-serif;
  351. font-size: 11px;
  352. font-weight: normal;
  353. letter-spacing: .1em;
  354. padding: 1px 3px 1px 3px;
  355. margin-top: 6px;
  356. margin-bottom: 4px;
  357. text-transform: uppercase;
  358. color: #000;
  359. }
  360. <?php
  361. $buffer = ob_get_contents();
  362. ob_end_clean();
  363. return $buffer;
  364. }
  365. /* END */
  366. //-------------------------------------
  367. // Index template
  368. //-------------------------------------
  369. function index()
  370. {
  371. global $type;
  372. ob_start();
  373. ?>
  374. {assign_variable:my_weblog="default_site"}
  375. {assign_variable:my_template_group="site"}
  376. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  377. <html xmlns="http://www.w3.org/1999/xhtml">
  378. <head>
  379. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  380. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  381. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  382. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  383. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  384. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  385. </head>
  386. <body>
  387. <div id="topbar"></div>
  388. <div class="secondbar"></div>
  389. <div id="wrapper">
  390. <div id="header">
  391. <h1> hello</h1>
  392. <ul id="navbar">
  393. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  394. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  395. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  396. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  397. </ul>
  398. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  399. <div class="spacer"></div>
  400. </div>
  401. <div class="secondbar"></div>
  402. <div class="spacer"></div>
  403. <div id="content">
  404. <div id="blog">
  405. {exp:weblog:category_heading weblog="{my_weblog}"}
  406. <h2>{category_name}</h2>
  407. {if category_description}
  408. <p>{category_description}</p>
  409. {/if}
  410. {/exp:weblog:category_heading}
  411. {exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks"}
  412. <div class="entry">
  413. {date_heading}
  414. <h3 class="date">{entry_date format=' %l, %F %d, %Y '}</h3>
  415. {/date_heading}
  416. <h2 class="title">{title}</h2>
  417. {summary}
  418. {body}
  419. {extended}
  420. <div class="posted">Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?> on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}
  421. <br />
  422. {categories}
  423. <a href="{path=site_index}">{category_name}</a> &#8226;
  424. {/categories}
  425. {if allow_comments}
  426. ({comment_total}) <a href="{url_title_path="{my_template_group}/comments"}">Comments</a> &#8226;
  427. {/if}
  428. {if allow_trackbacks}
  429. ({trackback_total}) <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a> &#8226;
  430. {/if}
  431. <a href="{title_permalink={my_template_group}/index}">Permalink</a>
  432. </div>
  433. {paginate}
  434. <div class="paginate">
  435. <span class="pagecount">Page {current_page} of {total_pages} pages</span> {pagination_links}
  436. </div>
  437. {/paginate}
  438. </div>
  439. {/exp:weblog:entries}
  440. </div>
  441. <div id="sidebar">
  442. <?php if ($type != 'core') { ?>
  443. <p><b>Members:</b>
  444. <br />
  445. {if logged_in}
  446. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  447. {/if}
  448. {if logged_out}
  449. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  450. {/if}
  451. | <a href="{path=member/memberlist}">Member List</a>
  452. </p>
  453. <?php } ?>
  454. <h2 class="sidetitle">About</h2>
  455. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  456. {exp:weblog:calendar switch="calendarToday|calendarCell"}
  457. <table class="calendarBG" border="0" cellpadding="5" cellspacing="1" summary="My Calendar">
  458. <tr>
  459. <th class="calendarHeader"><div class="calendarMonthLinks"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
  460. <th class="calendarHeader" colspan="5">{date format="%F %Y"}</th>
  461. <th class="calendarHeader"><div class="calendarMonthLinks"><a class="calendarMonthLinks" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
  462. </tr>
  463. <tr>
  464. {calendar_heading}
  465. <td class="calendarDayHeading">{lang:weekday_abrev}</td>
  466. {/calendar_heading}
  467. </tr>
  468. {calendar_rows }
  469. {row_start}<tr>{/row_start}
  470. {if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
  471. {if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
  472. {if blank}<td class='calendarBlank'>&nbsp;</td>{/if}
  473. {row_end}</tr>{/row_end}
  474. {/calendar_rows}
  475. </table>
  476. {/exp:weblog:calendar}
  477. {exp:search:simple_form search_in="everywhere"}
  478. <h2 class="sidetitle">Search</h2>
  479. <p>
  480. <input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
  481. <br />
  482. <a href="{path=search/index}">Advanced Search</a>
  483. </p>
  484. <p><input type="submit" value="submit" class="submit" /></p>
  485. {/exp:search:simple_form}
  486. <h2 class="sidetitle">Categories</h2>
  487. <p>
  488. {exp:weblog:categories weblog="{my_weblog}" style="nested"}
  489. <a href="{path={my_template_group}/index}">{category_name}</a>
  490. {/exp:weblog:categories}
  491. </p>
  492. <h2 class="sidetitle">Monthly Archives</h2>
  493. <ul>
  494. {exp:weblog:month_links weblog="{my_weblog}"}
  495. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  496. {/exp:weblog:month_links}
  497. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  498. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  499. </ul>
  500. <h2 class="sidetitle">Most recent entries</h2>
  501. <ul>
  502. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  503. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  504. {/exp:weblog:entries}
  505. </ul>
  506. <h2 class="sidetitle">Syndicate</h2>
  507. <ul>
  508. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  509. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  510. </ul>
  511. <?php if ($type != 'core') { ?>
  512. <h2 class="sidetitle">Join our Mailing List</h2>
  513. {exp:mailinglist:form}
  514. <p><input type="text" name="email" value="" class="input" size="18" /></p>
  515. <p><input type="submit" value="submit" class="submit" /></p>
  516. {/exp:mailinglist:form}
  517. <?php } ?>
  518. </div>
  519. </div>
  520. <br class="spacer" />
  521. <div id="footer">
  522. <div class="entry">
  523. <h2 class="sidetitle">Site Statistics</h2>
  524. <p>
  525. This page has been viewed {hits} times<br />
  526. Page rendered in {elapsed_time} seconds<br />
  527. {exp:stats}
  528. Total Entries: {total_entries}<br />
  529. Total Comments: {total_comments}<br />
  530. Total Trackbacks: {total_trackbacks}<br />
  531. Most Recent Entry: {last_entry_date format="%m/%d/%Y %h:%i %a"}<br />
  532. Most Recent Comment on: {last_comment_date format="%m/%d/%Y %h:%i %a"}<br />
  533. Total Members: {total_members}<br />
  534. Total Logged in members: {total_logged_in}<br />
  535. Total guests: {total_guests}<br />
  536. Total anonymous users: {total_anon}<br />
  537. Most Recent Visitor on: {last_visitor_date format="%m/%d/%Y %h:%i %a"}<br />
  538. The most visitors ever was {most_visitors} on {most_visitor_date format="%m/%d/%Y %h:%i %a"}
  539. {if member_names}
  540. <p>Current Logged-in Members:&nbsp;
  541. {member_names backspace='6'}
  542. <a href="{member_path=member/index}">{name}</a>&nbsp;
  543. {/member_names}
  544. </p>
  545. {/if}
  546. {/exp:stats}
  547. </p>
  548. <p><a href="{path={my_template_group}/referrers}">Referrers</a></p>
  549. </div>
  550. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  551. </div>
  552. </div>
  553. </body>
  554. </html>
  555. <?php
  556. $buffer = ob_get_contents();
  557. ob_end_clean();
  558. return $buffer;
  559. }
  560. /* END */
  561. //-------------------------------------
  562. // About template
  563. //-------------------------------------
  564. function about()
  565. {
  566. global $type;
  567. ob_start();
  568. ?>
  569. {assign_variable:my_weblog="default_site"}
  570. {assign_variable:my_template_group="site"}
  571. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  572. <html xmlns="http://www.w3.org/1999/xhtml">
  573. <head>
  574. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  575. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  576. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  577. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  578. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  579. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  580. </head>
  581. <body>
  582. <div id="topbar"></div>
  583. <div class="secondbar"></div>
  584. <div id="wrapper">
  585. <div id="header">
  586. <ul id="navbar">
  587. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  588. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  589. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  590. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  591. </ul>
  592. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  593. <div class="spacer"></div>
  594. </div>
  595. <div class="secondbar"></div>
  596. <div class="spacer"></div>
  597. <div id="content">
  598. <div id="blog">
  599. <div class="entry">
  600. <h2 class="title">About</h2>
  601. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  602. </div>
  603. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  604. </div>
  605. <div id="sidebar">
  606. <?php if ($type != 'core') { ?>
  607. <p><b>Members:</b>
  608. <br />
  609. {if logged_in}
  610. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  611. {/if}
  612. {if logged_out}
  613. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  614. {/if}
  615. | <a href="{path=member/memberlist}">Member List</a>
  616. </p>
  617. <?php } ?>
  618. <h2 class="sidetitle">Monthly Archives</h2>
  619. <ul>
  620. {exp:weblog:month_links weblog="{my_weblog}"}
  621. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  622. {/exp:weblog:month_links}
  623. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  624. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  625. </ul>
  626. <h2 class="sidetitle">Most recent entries</h2>
  627. <ul>
  628. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  629. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  630. {/exp:weblog:entries}
  631. </ul>
  632. <h2 class="sidetitle">Syndicate</h2>
  633. <ul>
  634. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  635. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  636. </ul>
  637. </div>
  638. </div>
  639. <br class="spacer" />
  640. <div id="footer">
  641. This page has been viewed {hits} times &#8226;
  642. Page rendered in {elapsed_time} seconds &#8226;
  643. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  644. </div>
  645. </div>
  646. </body>
  647. </html>
  648. <?php
  649. $buffer = ob_get_contents();
  650. ob_end_clean();
  651. return $buffer;
  652. }
  653. /* END */
  654. //-------------------------------------
  655. // Archives template
  656. //-------------------------------------
  657. function archives()
  658. {
  659. global $type;
  660. ob_start();
  661. ?>
  662. {assign_variable:my_weblog="default_site"}
  663. {assign_variable:my_template_group="site"}
  664. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  665. <html xmlns="http://www.w3.org/1999/xhtml">
  666. <head>
  667. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  668. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  669. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  670. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  671. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  672. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  673. </head>
  674. <body>
  675. <div id="topbar"></div>
  676. <div class="secondbar"></div>
  677. <div id="wrapper">
  678. <div id="header">
  679. <ul id="navbar">
  680. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  681. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  682. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  683. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  684. </ul>
  685. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  686. <div class="spacer"></div>
  687. </div>
  688. <div class="secondbar"></div>
  689. <div class="spacer"></div>
  690. <div id="content">
  691. <div id="blog">
  692. <div class="entry">
  693. {exp:weblog:entries orderby="date" sort="desc" limit="100" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  694. {date_heading display="yearly"}
  695. <h2 class="title">{entry_date format="%Y"}</h2>
  696. {/date_heading}
  697. {date_heading display="monthly"}
  698. <h3 class="date">{entry_date format="%F"}</h3>
  699. {/date_heading}
  700. <ul>
  701. <li><a href="{title_permalink="{my_template_group}/index"}">{title}</a></li>
  702. </ul>
  703. {/exp:weblog:entries}
  704. </div>
  705. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  706. </div>
  707. <div id="sidebar">
  708. <?php if ($type != 'core') { ?>
  709. <p><b>Members:</b>
  710. <br />
  711. {if logged_in}
  712. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  713. {/if}
  714. {if logged_out}
  715. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  716. {/if}
  717. | <a href="{path=member/memberlist}">Member List</a>
  718. </p>
  719. <?php } ?>
  720. <h2 class="sidetitle">About</h2>
  721. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  722. <h2 class="sidetitle">Monthly Archives</h2>
  723. <ul>
  724. {exp:weblog:month_links weblog="{my_weblog}"}
  725. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  726. {/exp:weblog:month_links}
  727. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  728. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  729. </ul>
  730. <h2 class="sidetitle">Most recent entries</h2>
  731. <ul>
  732. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  733. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  734. {/exp:weblog:entries}
  735. </ul>
  736. <h2 class="sidetitle">Syndicate</h2>
  737. <ul>
  738. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  739. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  740. </ul>
  741. </div>
  742. </div>
  743. <br class="spacer" />
  744. <div id="footer">
  745. This page has been viewed {hits} times &#8226;
  746. Page rendered in {elapsed_time} seconds &#8226;
  747. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  748. </div>
  749. </div>
  750. </body>
  751. </html>
  752. <?php
  753. $buffer = ob_get_contents();
  754. ob_end_clean();
  755. return $buffer;
  756. }
  757. /* END */
  758. //-------------------------------------
  759. // Category archives template
  760. //-------------------------------------
  761. function categories()
  762. {
  763. global $type;
  764. ob_start();
  765. ?>
  766. {assign_variable:my_weblog="default_site"}
  767. {assign_variable:my_template_group="site"}
  768. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  769. <html xmlns="http://www.w3.org/1999/xhtml">
  770. <head>
  771. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  772. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  773. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  774. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  775. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  776. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  777. </head>
  778. <body>
  779. <div id="topbar"></div>
  780. <div class="secondbar"></div>
  781. <div id="wrapper">
  782. <div id="header">
  783. <ul id="navbar">
  784. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  785. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  786. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  787. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  788. </ul>
  789. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  790. <div class="spacer"></div>
  791. </div>
  792. <div class="secondbar"></div>
  793. <div class="spacer"></div>
  794. <div id="content">
  795. <div id="blog">
  796. <h2 class="sidetitle">Categories</h2>
  797. <div class="entry">
  798. {exp:weblog:category_archive weblog="{my_weblog}"}
  799. {categories}<h4>{category_name}</h4>{/categories}
  800. {entry_titles}<a href="{path={my_template_group}/comments}">{title}</a>{/entry_titles}
  801. {/exp:weblog:category_archive}
  802. </div>
  803. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  804. </div>
  805. <div id="sidebar">
  806. <?php if ($type != 'core') { ?>
  807. <p><b>Members:</b>
  808. <br />
  809. {if logged_in}
  810. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  811. {/if}
  812. {if logged_out}
  813. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  814. {/if}
  815. | <a href="{path=member/memberlist}">Member List</a>
  816. </p>
  817. <?php } ?>
  818. <h2 class="sidetitle">About</h2>
  819. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  820. <h2 class="sidetitle">Monthly Archives</h2>
  821. <ul>
  822. {exp:weblog:month_links weblog="{my_weblog}"}
  823. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  824. {/exp:weblog:month_links}
  825. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  826. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  827. </ul>
  828. <h2 class="sidetitle">Most recent entries</h2>
  829. <ul>
  830. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  831. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  832. {/exp:weblog:entries}
  833. </ul>
  834. <h2 class="sidetitle">Syndicate</h2>
  835. <ul>
  836. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  837. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  838. </ul>
  839. </div>
  840. </div>
  841. <br class="spacer" />
  842. <div id="footer">
  843. This page has been viewed {hits} times &#8226;
  844. Page rendered in {elapsed_time} seconds &#8226;
  845. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  846. </div>
  847. </div>
  848. </body>
  849. </html>
  850. <?php
  851. $buffer = ob_get_contents();
  852. ob_end_clean();
  853. return $buffer;
  854. }
  855. /* END */
  856. //-------------------------------------
  857. // Comments
  858. //-------------------------------------
  859. function comments()
  860. {
  861. global $type;
  862. ob_start();
  863. ?>
  864. {assign_variable:my_weblog="default_site"}
  865. {assign_variable:my_template_group="site"}
  866. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  867. <html xmlns="http://www.w3.org/1999/xhtml">
  868. <head>
  869. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  870. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  871. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  872. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  873. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  874. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  875. </head>
  876. <body>
  877. <div id="topbar"></div>
  878. <div class="secondbar"></div>
  879. <div id="wrapper">
  880. <div id="header">
  881. <ul id="navbar">
  882. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  883. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  884. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  885. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  886. </ul>
  887. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  888. <div class="spacer"></div>
  889. </div>
  890. <div class="secondbar"></div>
  891. <div class="spacer"></div>
  892. <div id="content">
  893. <div id="blog">
  894. {exp:weblog:entries limit="1" disable="member_data|trackbacks"}
  895. <div class="entry">
  896. <h2 class="title">{title}</h2>
  897. {summary}
  898. {body}
  899. <div class="posted">
  900. Posted by {url_or_email_as_author} on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}
  901. </div>
  902. </div>
  903. {/exp:weblog:entries}
  904. {exp:comment:entries weblog="{my_weblog}" limit="25"}
  905. <div class="entry">
  906. {comment}
  907. <div class="posted">Posted by {url_or_email_as_author} &nbsp;on&nbsp; {comment_date format='%m/%d'} &nbsp;at&nbsp; {comment_date format='%h:%i %A'}</div>
  908. {paginate}
  909. <div class="paginate">
  910. <span class="pagecount">Page {current_page} of {total_pages} pages</span> {pagination_links}
  911. </div>
  912. {/paginate}
  913. </div>
  914. {/exp:comment:entries}
  915. <div class="entry">
  916. {exp:comment:form preview="{my_template_group}/comment_preview"}
  917. {if logged_out}
  918. <p>
  919. Name:<br />
  920. <input type="text" name="name" value="{name}" size="50" />
  921. </p>
  922. <p>
  923. Email:<br />
  924. <input type="text" name="email" value="{email}" size="50" />
  925. </p>
  926. <p>
  927. Location:<br />
  928. <input type="text" name="location" value="{location}" size="50" />
  929. </p>
  930. <p>
  931. URL:<br />
  932. <input type="text" name="url" value="{url}" size="50" />
  933. </p>
  934. {/if}
  935. <p>
  936. <a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
  937. </p>
  938. <p>
  939. <textarea name="comment" cols="50" rows="12">{comment}</textarea>
  940. </p>
  941. {if logged_out}
  942. <p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
  943. {/if}
  944. <p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>
  945. {if captcha}
  946. <p>Submit the word you see below:</p>
  947. <p>
  948. {captcha}
  949. <br />
  950. <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
  951. </p>
  952. {/if}
  953. <input type="submit" name="submit" value="Submit" />
  954. <input type="submit" name="preview" value="Preview" />
  955. {/exp:comment:form}
  956. </div>
  957. <div class="center">
  958. {exp:weblog:next_entry weblog="{my_weblog}"}
  959. <p>Next entry: <a href="{path={my_template_group}/comments}">{title}</a></p>
  960. {/exp:weblog:next_entry}
  961. {exp:weblog:prev_entry weblog="{my_weblog}"}
  962. <p>Previous entry: <a href="{path={my_template_group}/comments}">{title}</a></p>
  963. {/exp:weblog:prev_entry}
  964. </div>
  965. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  966. </div>
  967. <div id="sidebar">
  968. <?php if ($type != 'core') { ?>
  969. <p><b>Members:</b>
  970. <br />
  971. {if logged_in}
  972. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  973. {/if}
  974. {if logged_out}
  975. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  976. {/if}
  977. | <a href="{path=member/memberlist}">Member List</a>
  978. </p>
  979. <?php } ?>
  980. <h2 class="sidetitle">About</h2>
  981. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  982. <h2 class="sidetitle">Monthly Archives</h2>
  983. <ul>
  984. {exp:weblog:month_links weblog="{my_weblog}"}
  985. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  986. {/exp:weblog:month_links}
  987. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  988. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  989. </ul>
  990. <h2 class="sidetitle">Most recent entries</h2>
  991. <ul>
  992. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  993. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  994. {/exp:weblog:entries}
  995. </ul>
  996. <h2 class="sidetitle">Syndicate</h2>
  997. <ul>
  998. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  999. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  1000. </ul>
  1001. </div>
  1002. </div>
  1003. <br class="spacer" />
  1004. <div id="footer">
  1005. This page has been viewed {hits} times &#8226;
  1006. Page rendered in {elapsed_time} seconds &#8226;
  1007. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  1008. </div>
  1009. </div>
  1010. </body>
  1011. </html>
  1012. <?php
  1013. $buffer = ob_get_contents();
  1014. ob_end_clean();
  1015. return $buffer;
  1016. }
  1017. /* END */
  1018. //-------------------------------------
  1019. // Comment preview
  1020. //-------------------------------------
  1021. function comment_preview()
  1022. {
  1023. global $type;
  1024. ob_start();
  1025. ?>
  1026. {assign_variable:my_weblog="default_site"}
  1027. {assign_variable:my_template_group="site"}
  1028. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  1029. <html xmlns="http://www.w3.org/1999/xhtml">
  1030. <head>
  1031. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  1032. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  1033. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  1034. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  1035. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  1036. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  1037. </head>
  1038. <body>
  1039. <div id="topbar"></div>
  1040. <div class="secondbar"></div>
  1041. <div id="wrapper">
  1042. <div id="header">
  1043. <ul id="navbar">
  1044. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  1045. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  1046. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  1047. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  1048. </ul>
  1049. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  1050. <div class="spacer"></div>
  1051. </div>
  1052. <div class="secondbar"></div>
  1053. <div class="spacer"></div>
  1054. <div id="content">
  1055. <div id="blog">
  1056. <div class="entry">
  1057. {exp:comment:preview}
  1058. {comment}
  1059. {/exp:comment:preview}
  1060. </div>
  1061. <div class="entry">
  1062. {exp:comment:form}
  1063. {if logged_out}
  1064. <p>
  1065. Name:<br />
  1066. <input type="text" name="name" value="{name}" size="50" />
  1067. </p>
  1068. <p>
  1069. Email:<br />
  1070. <input type="text" name="email" value="{email}" size="50" />
  1071. </p>
  1072. <p>
  1073. Location:<br />
  1074. <input type="text" name="location" value="{location}" size="50" />
  1075. </p>
  1076. <p>
  1077. URL:<br />
  1078. <input type="text" name="url" value="{url}" size="50" />
  1079. </p>
  1080. {/if}
  1081. <p>
  1082. <a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
  1083. </p>
  1084. <p>
  1085. <textarea name="comment" cols="50" rows="12">{comment}</textarea>
  1086. </p>
  1087. {if logged_out}
  1088. <p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
  1089. {/if}
  1090. <p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>
  1091. {if captcha}
  1092. <p>Submit the word you see below:</p>
  1093. <p>
  1094. {captcha}
  1095. <br />
  1096. <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
  1097. </p>
  1098. {/if}
  1099. <input type="submit" name="submit" value="Submit" />
  1100. <input type="submit" name="preview" value="Preview" />
  1101. {/exp:comment:form}
  1102. </div>
  1103. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  1104. </div>
  1105. <div id="sidebar">
  1106. <?php if ($type != 'core') { ?>
  1107. <p><b>Members:</b>
  1108. <br />
  1109. {if logged_in}
  1110. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  1111. {/if}
  1112. {if logged_out}
  1113. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  1114. {/if}
  1115. | <a href="{path=member/memberlist}">Member List</a>
  1116. </p>
  1117. <?php } ?>
  1118. <h2 class="sidetitle">About</h2>
  1119. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  1120. <h2 class="sidetitle">Monthly Archives</h2>
  1121. <ul>
  1122. {exp:weblog:month_links weblog="{my_weblog}"}
  1123. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  1124. {/exp:weblog:month_links}
  1125. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  1126. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  1127. </ul>
  1128. <h2 class="sidetitle">Most recent entries</h2>
  1129. <ul>
  1130. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  1131. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  1132. {/exp:weblog:entries}
  1133. </ul>
  1134. <h2 class="sidetitle">Syndicate</h2>
  1135. <ul>
  1136. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  1137. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  1138. </ul>
  1139. </div>
  1140. </div>
  1141. <br class="spacer" />
  1142. <div id="footer">
  1143. This page has been viewed {hits} times &#8226;
  1144. Page rendered in {elapsed_time} seconds &#8226;
  1145. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  1146. </div>
  1147. </div>
  1148. </body>
  1149. </html>
  1150. <?php
  1151. $buffer = ob_get_contents();
  1152. ob_end_clean();
  1153. return $buffer;
  1154. }
  1155. /* END */
  1156. //-------------------------------------
  1157. // Trackbacks
  1158. //-------------------------------------
  1159. function trackbacks()
  1160. {
  1161. global $type;
  1162. ob_start();
  1163. ?>
  1164. {assign_variable:my_weblog="default_site"}
  1165. {assign_variable:my_template_group="site"}
  1166. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  1167. <html xmlns="http://www.w3.org/1999/xhtml">
  1168. <head>
  1169. <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
  1170. <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
  1171. <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
  1172. <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  1173. <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
  1174. <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
  1175. </head>
  1176. <body>
  1177. <div id="topbar"></div>
  1178. <div class="secondbar"></div>
  1179. <div id="wrapper">
  1180. <div id="header">
  1181. <ul id="navbar">
  1182. <li id="home"><a href="{homepage}" title="Home">Home</a></li>
  1183. <li id="about"><a href="{path={my_template_group}/about}" title="About">About</a></li>
  1184. <li id="archives"><a href="{path={my_template_group}/archives}" title="Archives">Archives</a></li>
  1185. <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
  1186. </ul>
  1187. <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
  1188. <div class="spacer"></div>
  1189. </div>
  1190. <div class="secondbar"></div>
  1191. <div class="spacer"></div>
  1192. <div id="content">
  1193. <div id="blog">
  1194. <h2 class="title">The trackback URL for this entry is:</h2>
  1195. <form action="">
  1196. <input type="text" value="{exp:trackback:url}" size="60" class="input" />
  1197. </form>
  1198. <h2 class="title">Trackbacks:</h2>
  1199. <ol>
  1200. {exp:trackback:entries}
  1201. <li><strong>{title}</strong><br /><br />
  1202. {content}
  1203. <div class="posted">Tracked on: <a href="{trackback_url}">{weblog_name}</a> ({trackback_ip}) at {trackback_date format="%Y %m %d %H:%i:%s"}</div></li>
  1204. {/exp:trackback:entries}
  1205. </ol>
  1206. <p><a href="{homepage}">&lt;&lt; Back to main</a></p>
  1207. </div>
  1208. <div id="sidebar">
  1209. <?php if ($type != 'core') { ?>
  1210. <p><b>Members:</b>
  1211. <br />
  1212. {if logged_in}
  1213. <a href="{path=member/profile}">Your Account</a> | <a href="{path=logout}">Logout</a>
  1214. {/if}
  1215. {if logged_out}
  1216. <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
  1217. {/if}
  1218. | <a href="{path=member/memberlist}">Member List</a>
  1219. </p>
  1220. <?php } ?>
  1221. <h2 class="sidetitle">About</h2>
  1222. <p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
  1223. <h2 class="sidetitle">Monthly Archives</h2>
  1224. <ul>
  1225. {exp:weblog:month_links weblog="{my_weblog}"}
  1226. <li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
  1227. {/exp:weblog:month_links}
  1228. <li><a href="{path={my_template_group}/archives}">Complete Archives</a></li>
  1229. <li><a href="{path={my_template_group}/categories}">Category Archives</a></li>
  1230. </ul>
  1231. <h2 class="sidetitle">Most recent entries</h2>
  1232. <ul>
  1233. {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
  1234. <li><a href="{title_permalink={my_template_group}/index}">{title}</a></li>
  1235. {/exp:weblog:entries}
  1236. </ul>
  1237. <h2 class="sidetitle">Syndicate</h2>
  1238. <ul>
  1239. <li><a href="{path={my_template_group}/atom}">Atom</a></li>
  1240. <li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
  1241. </ul>
  1242. </div>
  1243. </div>
  1244. <br class="spacer" />
  1245. <div id="footer">
  1246. This page has been viewed {hits} times &#8226;
  1247. Page rendered in {elapsed_time} seconds &#8226;
  1248. <p><br /><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></p>
  1249. </div>
  1250. </div>
  1251. </body>
  1252. </html>
  1253. <?php
  1254. $buffer = ob_get_contents();
  1255. ob_end_clean();
  1256. return $buffer;
  1257. }
  1258. /* END */
  1259. //-------------------------------------
  1260. // Smileys
  1261. //-------------------------------------
  1262. function smileys()
  1263. {
  1264. global $type;
  1265. ob_start();
  1266. ?>
  1267. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  1268. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  1269. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang}" lang="{lang}">
  1270. <head>
  1271. <meta http-equiv="content-type" content="text/html; charset={charset}" />
  1272. <title>Smileys</title>
  1273. <style type="text/css">
  1274. body {
  1275. background-color: #ffffff;
  1276. margin-left: 40px;
  1277. margin-right: 40px;
  1278. margin-top: 30px;
  1279. font-size: 11px;
  1280. font-family: verdana,trebuchet,sans-serif;
  1281. }
  1282. a:link {
  1283. color: #990000;
  1284. font-size: 11px;
  1285. font-weight: normal;
  1286. text-decoration: underline;
  1287. }
  1288. a:visited {
  1289. color: #990000;
  1290. font-size: 11px;
  1291. font-weight: normal;
  1292. text-decoration: underline;
  1293. }
  1294. a:active {
  1295. color: #990000;
  1296. font-size: 11px;
  1297. font-weight: normal;
  1298. text-decoration: underline;
  1299. }
  1300. a:hover {
  1301. color: #990000;
  1302. font-size: 11px;
  1303. font-weight: normal;
  1304. text-decoration: none;
  1305. }
  1306. </style>
  1307. <script language="javascript">
  1308. <!--
  1309. function add_smiley(smiley)
  1310. {
  1311. opener.document.getElementById('comment_form').comment.value += " " + smiley + " ";
  1312. opener.window.document.getElementById('comment_form').comment.focus();
  1313. window.close();
  1314. }
  1315. //-->
  1316. </script>
  1317. </head>
  1318. <body>
  1319. <p>Click on an image to add it to your comment</p>
  1320. <table border="0" width="100%" cellpadding="6" cellspacing="1">
  1321. {exp:emoticon columns="4"}
  1322. <tr>
  1323. <td><div>{smiley}</div></td>
  1324. </tr>
  1325. {/exp:emoticon}
  1326. </table>
  1327. </body>
  1328. </html>
  1329. <?php
  1330. $buffer = ob_get_contents();
  1331. ob_end_clean();
  1332. return $buffer;
  1333. }
  1334. /* END */
  1335. //-------------------------------------
  1336. // Default referrers
  1337. //-------------------------------------
  1338. function referrers()
  1339. {
  1340. ob_start();
  1341. ?>
  1342. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  1343. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  1344. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang}" lang="{lang}">
  1345. <head>
  1346. <meta http-equiv="content-type" content="text/html; charset={charset}" />
  1347. <title>Referrers</title>
  1348. <style type="text/css">
  1349. body {
  1350. background-color: #ffffff;
  1351. margin-left: 40px;
  1352. margin-right: 40px;
  1353. margin-top: 30px;
  1354. font-size: 11px;
  1355. font-family: verdana,trebuchet,sans-serif;
  1356. }
  1357. h4 {
  1358. font-size: 14px;
  1359. font-family: verdana,trebuchet,sans-serif;
  1360. }
  1361. a:link {
  1362. color: #990000;
  1363. font-size: 11px;
  1364. font-weight: normal;
  1365. text-decoration: underline;
  1366. }
  1367. a:visited {
  1368. color: #990000;
  1369. font-size: 11px;
  1370. font-weight: normal;
  1371. text-decoration: underline;
  1372. }
  1373. a:active {
  1374. color: #990000;
  1375. font-size: 11px;
  1376. font-weight: normal;
  1377. text-decoration: underline;
  1378. }
  1379. a:hover {
  1380. color: #990000;
  1381. font-size: 11px;
  1382. font-weight: normal;
  1383. text-decoration: none;
  1384. }
  1385. </style>
  1386. </head>
  1387. <body>
  1388. <h4>Referrers</h4>
  1389. <table border="0" width="100%" cellpadding="6" cellspacing="1">
  1390. <tr>
  1391. <td>From</td>
  1392. <td>To</td>
  1393. <td>IP Address</td>
  1394. <td>Date</td>
  1395. </tr>
  1396. {exp:referrer limit="50" popup="yes"}
  1397. <tr class="row">
  1398. <td><div>{ref_from}</div></td>
  1399. <td><div>{ref_to}</div></td>
  1400. <td><div>{ref_ip}</div></td>
  1401. <td><div>{ref_date format="%m/%d/%Y"}</div></td>
  1402. </tr>
  1403. {/exp:referrer}
  1404. </table>
  1405. </body>
  1406. </html>
  1407. <?php
  1408. $buffer = ob_get_contents();
  1409. ob_end_clean();
  1410. return $buffer;
  1411. }
  1412. /* END */
  1413. ?>