diff options
Diffstat (limited to 'theme/post.tpl')
-rwxr-xr-x | theme/post.tpl | 135 |
1 files changed, 86 insertions, 49 deletions
diff --git a/theme/post.tpl b/theme/post.tpl index 7f29ff2..2c65e51 100755 --- a/theme/post.tpl +++ b/theme/post.tpl | |||
@@ -1,66 +1,103 @@ | |||
1 | <!--BEGIN INTERNAL--> | 1 | <!--BEGIN INTERNAL--> |
2 | <!--BEGIN BACK--><SPAN CLASS="back-post">« <A HREF="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></A></SPAN><!--END BACK--> | 2 | <!--BEGIN BACK--><span class="back-post">« <a href="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></a></span><!--END BACK--> |
3 | <!--BEGIN NEXT--><SPAN CLASS="next-post"><A HREF="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></A> »</SPAN><!--END NEXT--> | 3 | <!--BEGIN NEXT--><span class="next-post"><a href="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></a> »</span><!--END NEXT--> |
4 | <!--END INTERNAL--> | 4 | <!--END INTERNAL--> |
5 | 5 | ||
6 | <script type="text/javascript"> | ||
7 | |||
8 | function ratePost(id, dir) | ||
9 | { | ||
10 | jQuery("#post-"+id+" .post-rating-up").addClass("post-action-done").html("<img src='/theme/images/icons/thumb_up.png' alt='+1' />"); | ||
11 | jQuery("#post-"+id+" .post-rating-down").addClass("post-action-done").html("<img src='/theme/images/icons/thumb_down.png' alt='-1' />"); | ||
12 | jQuery("#flash").text("Processing....").slideDown(); | ||
13 | jQuery.ajax({ | ||
14 | type: "GET", | ||
15 | url: "/vote.php", | ||
16 | data: "id="+id+"&dir="+dir, | ||
17 | dataType: "text", | ||
18 | success: function(msg) { | ||
19 | if (msg != "") | ||
20 | { | ||
21 | jQuery("#post-"+id+" .post-rating").text(msg); | ||
22 | jQuery("#flash").text("Your vote has been sucessfully placed."); | ||
23 | } else { | ||
24 | jQuery("#flash").text("There was an error in placing your vote."); | ||
25 | } | ||
26 | }, | ||
27 | error: function() { | ||
28 | jQuery("#flash").text("There was an error in placing your vote."); | ||
29 | } | ||
30 | }); | ||
31 | } | ||
32 | |||
33 | </script> | ||
34 | |||
6 | <!--BEGIN POST--> | 35 | <!--BEGIN POST--> |
7 | <DIV CLASS="post vevent" ID="post-<!--POST.ID-->"> | 36 | <div class="post vevent" id="post-<!--POST.ID-->"> |
8 | <DIV CLASS="post-date-<!--POST.YEARID-->"> | 37 | <div class="post-date-<!--POST.YEARID-->"> |
9 | <ABBR CLASS="dtstart" TITLE="<!--POST.DATE-->"> | 38 | <abbr class="dtstart" title="<!--POST.DATE-->"> |
10 | <SPAN CLASS="post-month"><!--POST.MONTH--></SPAN> | 39 | <span class="post-month"><!--POST.MONTH--></span> |
11 | <SPAN CLASS="post-day"><!--POST.DAY--></SPAN> | 40 | <span class="post-day"><!--POST.DAY--></span> |
12 | </ABBR> | 41 | </abbr> |
13 | </DIV> | 42 | </div> |
14 | 43 | ||
15 | <DIV CLASS="post-title"> | 44 | <div class="post-title"> |
16 | <H2> | 45 | <h2> |
17 | <!--BEGIN EXTERNAL--><A CLASS="url" HREF="/blog/<!--POST.CODED-->/" REL="bookmark" TITLE="Permalink for <!--POST.TITLE-->"><!--END EXTERNAL--> | 46 | <!--BEGIN EXTERNAL--> |
18 | <SPAN CLASS="summary"><!--POST.TITLE--></SPAN> | 47 | <a class="url" href="/blog/<!--POST.CODED-->/" rel="bookmark" title="Permalink for <!--POST.TITLE-->"><span class="summary"><!--POST.TITLE--></span></a> |
19 | <!--BEGIN EXTERNAL--></A><!--END EXTERNAL--> | 48 | <!--END EXTERNAL--> |
20 | </H2> | 49 | <!--BEGIN INTERNAL--> |
50 | <span class="summary light-at-night"><!--POST.TITLE--></span> | ||
51 | <!--END INTERNAL--> | ||
52 | </h2> | ||
21 | 53 | ||
22 | <SPAN CLASS="post-cat-<!--POST.AUTHOR--> category"> | 54 | <span class="post-cat-<!--POST.AUTHOR--> category"> |
23 | <A HREF="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></A> | 55 | <a href="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></a> |
24 | </SPAN> | 56 | </span> |
25 | 57 | ||
26 | <SPAN CLASS="post-tag-3 category"> | 58 | <span class="post-tag-3 category"> |
27 | <!--BEGIN POST.TAGS--> | 59 | <!--BEGIN POST.TAGS--> |
28 | <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAGS.TAG-->.php" REL="tag" TITLE="<!--POST.TAGS.TAG-->"><!--POST.TAGS.TAG--></A> | 60 | <a class="noVisit" href="/blog/tag/<!--POST.TAGS.TAG-->.php" rel="tag" title="<!--POST.TAGS.TAG-->"><!--POST.TAGS.TAG--></a> |
29 | <!--END POST.TAGS--> | 61 | <!--END POST.TAGS--> |
30 | </SPAN> | 62 | </span> |
31 | 63 | ||
32 | <!--BEGIN EXTERNAL--> | 64 | <!--BEGIN EXTERNAL--> |
33 | <SPAN CLASS="post-comment<!--POST.PLURALCOMMENT-->"> | 65 | <span class="post-comment<!--POST.PLURALCOMMENT-->"> |
34 | <A CLASS="noVisit" HREF="/blog/<!--POST.CODED-->/#comments"><!--POST.COMMENTS--> »</A> | 66 | <a class="noVisit" href="/blog/<!--POST.CODED-->/#comments"><!--POST.COMMENTS--> »</a> |
35 | </SPAN> | 67 | </span> |
36 | <!--END EXTERNAL--><!--BEGIN INTERNAL--> | 68 | <!--END EXTERNAL--><!--BEGIN INTERNAL--> |
37 | <SPAN CLASS="mini-add-comment"> | 69 | <span class="mini-add-comment"> |
38 | <A CLASS="noVisit" HREF="/blog/<!--POST.CODED-->/#comments">Add Comment »</A> | 70 | <a class="noVisit" href="/blog/<!--POST.CODED-->/#comments">Add Comment »</a> |
39 | </SPAN> | 71 | </span> |
40 | <!--END INTERNAL--> | 72 | <!--END INTERNAL--> |
41 | </DIV> | 73 | </div> |
42 | 74 | ||
43 | <DIV CLASS="entry description"> | 75 | <div class="entry description"> |
44 | <DIV CLASS="bubble"> | 76 | <div class="module rounded"> |
45 | <DIV CLASS="rounded"> | 77 | <!--POST.TEXT--> |
46 | <BLOCKQUOTE> | ||
47 | <DIV> | ||
48 | <!--POST.TEXT--> | ||
49 | 78 | ||
50 | <!--BEGIN POST.EXCERPT--> | 79 | <!--BEGIN POST.EXCERPT--> |
51 | <P>[....] <A HREF="/blog/<!--POST.CODED-->/">Click here to read the rest of this post</A>.</P> | 80 | <p>[....] <a href="/blog/<!--POST.CODED-->/">Click here to read the rest of this post</a>.</p> |
52 | <!--END POST.EXCERPT--> | 81 | <!--END POST.EXCERPT--> |
53 | </DIV> | 82 | </div> |
54 | </BLOCKQUOTE> | 83 | |
55 | </DIV> | 84 | <cite class="rounded light-at-night"><strong><!--POST.AUTHOR--></strong> on <!--POST.DATE--></cite> |
56 | <CITE CLASS="rounded"><STRONG><!--POST.AUTHOR--></STRONG> on <!--POST.DATE--></CITE> | ||
57 | 85 | ||
58 | <SPAN CLASS="post-vote"> | 86 | <span class="post-vote"> |
59 | <A HREF="/vote.php?id=<!--POST.ID-->&dir=plus" REL="nofollow"><IMG SRC="/theme/images/icons/thumb_up.png" ALT="+1"></A> | 87 | <!--BEGIN POST.CANVOTE--> |
60 | <BIG><!--POST.RATING--></BIG> | 88 | <span class="post-rating-up"><a href="javascript:ratePost('<!--POST.ID-->','plus');" rel="nofollow"><img src="/theme/images/icons/thumb_up.png" alt="+1" /></a></span> |
61 | <A HREF="/vote.php?id=<!--POST.ID-->&dir=minus" REL="nofollow"><IMG SRC="/theme/images/icons/thumb_down.png" ALT="-1"></A> | 89 | <!--END POST.CANVOTE--> |
62 | </SPAN> | 90 | <!--BEGIN POST.NOVOTE--> |
63 | </DIV> | 91 | <span class="post-rating-up post-action-done"><img src="/theme/images/icons/thumb_up.png" alt="-1" /></span> |
64 | </DIV> | 92 | <!--END POST.NOVOTE--> |
65 | </DIV> | 93 | <span class="post-rating light-at-night"><!--POST.RATING--></span> |
94 | <!--BEGIN POST.CANVOTE--> | ||
95 | <span class="post-rating-down"><a href="javascript:ratePost('<!--POST.ID-->','minus');" rel="nofollow"><img src="/theme/images/icons/thumb_down.png" alt="-1" /></a></span> | ||
96 | <!--END POST.CANVOTE--> | ||
97 | <!--BEGIN POST.NOVOTE--> | ||
98 | <span class="post-rating-down post-action-done"><img src="/theme/images/icons/thumb_down.png" alt="-1" /></span> | ||
99 | <!--END POST.NOVOTE--> | ||
100 | </span> | ||
101 | </div> | ||
102 | </div> | ||
66 | <!--END POST--> | 103 | <!--END POST--> |