Skip to content
Newer
Older
100644 143 lines (130 sloc) 6.86 KB
da9748f Initial version.
Matthias Mees authored
1 <!-- TODO: * jQuery code for trackback link etc. -->
2 {serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
3 {foreach from=$entries item="dategroup"}
4 {foreach from=$dategroup.entries item="entry"}
5 <article id="post_{$entry.id}" class="serendipity_entry{if $dategroup.is_sticky} sticky{/if}" role="article">
6 <header>
cea12ad Some additional headline to fix document outline.
Matthias Mees authored
7 <h2><a href="{$entry.link}">{$entry.title}</a></h2>
da9748f Initial version.
Matthias Mees authored
8
9 <span class="serendipity_byline">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} <time datetime="{$entry.timestamp|@formatTime:'%Y-%m-%dT%H:%M:%S'}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time></span>
10 {if $entry.categories}
11 {foreach from=$entry.categories item="entry_category"}
12 {if $entry_category.category_icon}
260e944 Lost (potentially empty) span element for category icon.
Matthias Mees authored
13 <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}"/></a>
da9748f Initial version.
Matthias Mees authored
14 {/if}
15 {/foreach}
16 {/if}
17 </header>
18
19 <div class="clearfix serendipity_entry_body">
20 {$entry.body}
21 {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
22 <a class="read_more" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a>
23 {/if}
24 </div>
25 {if $entry.is_extended}
26 <div id="extended">
27 {$entry.extended}
28 </div>
29 {/if}
30
31 <footer>
32 {if $entry.categories}
33 {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
34 {/if}
35 {if $entry.has_comments}
36 | <a href="{$entry.link}#comments" title="{$entry.comments} {$entry.label_comments}{if $entry.has_trackbacks}, {$entry.trackbacks} {$entry.label_trackbacks}{/if}">{$entry.comments} {$entry.label_comments}</a>
37 {/if}
38 {if $entry.is_entry_owner and not $is_preview}
39 | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
40 {/if}
41 {$entry.add_footer}
42 {$entry.plugin_display_dat}
43 </footer>
44
45 <!--
46 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
47 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
48 xmlns:dc="http://purl.org/dc/elements/1.1/">
49 <rdf:Description
50 rdf:about="{$entry.link_rdf}"
51 trackback:ping="{$entry.link_trackback}"
52 dc:title="{$entry.title_rdf|@default:$entry.title}"
53 dc:identifier="{$entry.rdf_ident}" />
54 </rdf:RDF>
55 -->
56
57 {if $is_single_entry and not $is_preview}
58 {if $CONST.DATA_UNSUBSCRIBED}
59 <p class="serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</p>
60 {/if}
61 {if $CONST.DATA_TRACKBACK_DELETED}
62 <p class="serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</p>
63 {/if}
64 {if $CONST.DATA_TRACKBACK_APPROVED}
65 <p class="serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</p>
66 {/if}
67 {if $CONST.DATA_COMMENT_DELETED}
68 <p class="serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</p>
69 {/if}
70 {if $CONST.DATA_COMMENT_APPROVED}
71 <p class="serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</p>
72 {/if}
73
74 <section id="trackbacks" class="serendipity_comments">
75 <h3>{$CONST.TRACKBACKS}</h3>
76
3da575e Tweaked blockquote display.
Matthias Mees authored
77 <div id="trackback_url"><a rel="nofollow" href="{$entry.link_trackback}" onclick="alert('{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape:html}'); return false;" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a></div>
da9748f Initial version.
Matthias Mees authored
78
79 {serendipity_printTrackbacks entry=$entry.id}
80 </section>
81
82 <section id="comments" class="serendipity_comments">
83 <h3>{$CONST.COMMENTS}</h3>
84
5c7224a Edited classes and display for comment management.
Matthias Mees authored
85 <p class="manage_comments">{$CONST.DISPLAY_COMMENTS_AS}
da9748f Initial version.
Matthias Mees authored
86 {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
87 {$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>
88 {else}
89 <a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED}
90 {/if}
91 </p>
92
93 {serendipity_printComments entry=$entry.id mode=$entry.viewmode}
94 {if $entry.is_entry_owner}
5c7224a Edited classes and display for comment management.
Matthias Mees authored
95 <p class="manage_comments">
da9748f Initial version.
Matthias Mees authored
96 {if $entry.allow_comments}
97 <a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>
98 {else}
99 <a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>
100 {/if}
5c7224a Edited classes and display for comment management.
Matthias Mees authored
101 </p>
da9748f Initial version.
Matthias Mees authored
102 {/if}
103 </section>
104 <a id="feedback"></a>
105 {foreach from=$comments_messagestack item="message"}
106 <p class="serendipity_msg_important">{$message}</p>
107 {/foreach}
108 {if $is_comment_added}
109 <p class="serendipity_msg_notice">{$CONST.COMMENT_ADDED}</p>
110 {elseif $is_comment_moderate}
111 <p class="serendipity_msg_notice">{$CONST.COMMENT_ADDED}: {$CONST.THIS_COMMENT_NEEDS_REVIEW}</p>
112 {elseif not $entry.allow_comments}
113 <p class="serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</p>
114 {else}
115 <section id="respond" class="serendipity_section_commentform">
116 <h3>{$CONST.ADD_COMMENT}</h3>
117 {$COMMENTFORM}
118 </section>
119 {/if}
120 {/if}
121 {$entry.backend_preview}
122 </article>
123 {/foreach}
124 {foreachelse}
125 {if not $plugin_clean_page}
587fa03 Added nocontent class.
Matthias Mees authored
126 <p class="nocontent">{$CONST.NO_ENTRIES_TO_PRINT}</p>
da9748f Initial version.
Matthias Mees authored
127 {/if}
128 {/foreach}
cea12ad Some additional headline to fix document outline.
Matthias Mees authored
129 {if $footer_info or $footer_prev_page or $footer_next_page}
da9748f Initial version.
Matthias Mees authored
130 <nav class="serendipity_pagination" role="navigation">
cea12ad Some additional headline to fix document outline.
Matthias Mees authored
131 <h2 class="visuallyhidden">Pagination</h2>
132
da9748f Initial version.
Matthias Mees authored
133 <ul class="clearfix">
134 {if $footer_info}
135 <li class="info"><span>{$footer_info}</span></li>
136 {/if}
137 <li class="prev">{if $footer_prev_page}<a href="{$footer_prev_page}">{/if}{if $footer_prev_page}&larr; {$CONST.PREVIOUS_PAGE}{else}&nbsp;{/if}{if $footer_prev_page}</a>{/if}</li>
138 <li class="next">{if $footer_next_page}<a href="{$footer_next_page}">{/if}{if $footer_next_page}{$CONST.NEXT_PAGE} &rarr;{else}&nbsp;{/if}{if $footer_next_page}</a>{/if}</li>
139 </ul>
140 </nav>
cea12ad Some additional headline to fix document outline.
Matthias Mees authored
141 {/if}
da9748f Initial version.
Matthias Mees authored
142 {serendipity_hookPlugin hook="entries_footer"}
Something went wrong with that request. Please try again.