[ Index ] |
|
Code source de Serendipity 1.2 |
1 <!-- ENTRIES START --> 2 <?php serendipity_plugin_api::hook_event('entries_header', $GLOBALS['tpl']['entry_id']); ?> 3 4 <?php if (count($GLOBALS['tpl']['entries']) < 1): ?> 5 <?= NO_ENTRIES_TO_PRINT ?> 6 <?php endif; ?> 7 8 <?php foreach($GLOBALS['tpl']['entries'] AS $dategroup): ?> 9 <div class="serendipity_Entry_Date"> 10 <?php if ($dategroup['is_sticky']): ?> 11 <h3 class="serendipity_date"><?= STICKY_POSTINGS ?></h3> 12 <?php else: ?> 13 <h3 class="serendipity_date"><?= serendipity_formatTime(DATE_FORMAT_ENTRY, $dategroup['date']); ?></h3> 14 <?php endif; ?> 15 16 <?php foreach($dategroup['entries'] AS $entry): ?> 17 <h4 class="serendipity_title"><a href="<?= $entry['link'] ?>"><?= $entry['title'] ?></a></h4> 18 19 <div class="serendipity_entry serendipity_entry_author_<?= serendipity_makeFilename($entry['author']); ?> <?php if ($entry['is_entry_owner']): ?>serendipity_entry_author_self<?php endif; ?>"> 20 <?php if ($entry['categories']): ?> 21 <span class="serendipity_entryIcon"> 22 <?php foreach($entry['categories'] AS $entry_category): ?> 23 <?php if ($entry_category.category_icon): ?> 24 <a href="<?= $entry_category['category_link'] ?>"><img class="serendipity_entryIcon" title="<?= htmlspecialchars($entry_category['category_name']) ?> <?= $entry_category['category_description'] ?>" alt="<?= htmlspecialchars($entry_category['category_name']) ?>" src="<?= $entry_category['category_icon'] ?>" /></a> 25 <?php endif; ?> 26 <?php endforeach; ?> 27 </span> 28 <?php endif; ?> 29 30 <div class="serendipity_entry_body"> 31 <?= $entry['body'] ?> 32 </div> 33 34 <?php if ($entry['is_extended']): ?> 35 <div class="serendipity_entry_extended"><a id="extended"></a><?= $entry['extended'] ?></div> 36 <?php endif; ?> 37 38 <?php if ($entry['has_extended'] AND !$GLOBALS['tpl']['is_single_entry'] AND !$entry['is_extended']): ?> 39 <br /><a href="<?= $entry['link'] ?>#extended"><?php printf(VIEW_EXTENDED_ENTRY, $entry['title']) ?></a><br /><br /> 40 <?php endif; ?> 41 42 <div class='serendipity_entryFooter'> 43 <?= POSTED_BY ?> <a href="<?= $entry['link_author'] ?>"><?= $entry['author'] ?></a> 44 <?php if ($entry['categories']): ?> 45 <?= IN ?> <?php foreach($entry['categories'] AS $entry_category): ?><a href="<?= $entry_category['category_link'] ?>"><?= htmlspecialchars($entry_category['category_name']); ?></a>, <?php endforeach; ?> 46 <?php endif; ?> 47 48 <?php if ($dategroup['is_sticky']): ?> 49 <?= ON ?> 50 <?php else: ?> 51 <?= AT ?> 52 <?php endif; ?> <a href="<?= $entry['link'] ?>"><?php if ($dategroup['is_sticky']): ?><?= serendipity_formatTime(DATE_FORMAT_ENTRY, $entry['timestamp']); ?> <?php endif; ?><?= serendipity_formatTime('%H:%M', $entry['timestamp']); ?></a> 53 54 <?php if ($entry['has_comments']): ?> 55 <?php if ($GLOBALS['tpl']['use_popups']): ?> 56 | <a href="<?= $entry['link_popup_comments'] ?>" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;"><?= $entry['label_comments'] ?> (<?= $entry['comments'] ?>)</a> 57 <?php else: ?> 58 | <a href="<?= $entry['link'] ?>#comments"><?= $entry['label_comments'] ?> (<?= $entry['comments'] ?>)</a> 59 <?php endif; ?> 60 <?php endif; ?> 61 62 <?php if ($entry['has_trackbacks']): ?> 63 <?php if ($GLOBALS['tpl']['use_popups']): ?> 64 | <a href="<?= $entry['link_popup_trackbacks'] ?>" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;"><?= $entry['label_trackbacks'] ?> (<?= $entry['trackbacks'] ?>)</a> 65 <?php else: ?> 66 | <a href="<?= $entry['link'] ?>#trackbacks"><?= $entry['label_trackbacks'] ?> (<?= $entry['trackbacks'] ?>)</a> 67 <?php endif; ?> 68 <?php endif; ?> 69 70 <?php if ($entry['is_entry_owner'] AND !$GLOBALS['tpl']['is_preview']): ?> 71 | <a href="<?= $entry['link_edit'] ?>"><?= EDIT_ENTRY; ?></a> 72 <?php endif; ?> 73 74 <?= $entry['add_footer'] ?> 75 </div> 76 </div> 77 <!-- 78 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 79 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" 80 xmlns:dc="http://purl.org/dc/elements/1.1/"> 81 <rdf:Description 82 rdf:about="<?= $entry['link_rdf'] ?>" 83 trackback:ping="<?= $entry['link_trackback'] ?>" 84 dc:title="<?= $GLOBALS['template']->getdefault($entry['title_rdf'], $entry['title']) ?>" 85 dc:identifier="<?= $entry['rdf_ident'] ?>" /> 86 </rdf:RDF> 87 --> 88 <?= $entry['plugin_display_dat'] ?> 89 90 <?php if ($GLOBALS['tpl']['is_single_entry'] AND !$GLOBALS['tpl']['use_popups'] AND !$GLOBALS['tpl']['is_preview']): ?> 91 <?php if (defined('DATA_UNSUBSCRIBED')): ?> 92 <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_UNSUBSCRIBED, UNSUBSCRIBE_OK) ?></div><br /> 93 <?php endif; ?> 94 95 <?php if (defined('DATA_TRACKBACK_DELETED')): ?> 96 <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_TRACKBACK_DELETED, TRACKBACK_DELETED) ?></div><br /> 97 <?php endif; ?> 98 99 <?php if (defined('DATA_TRACKBACK_APPROVED')): ?> 100 <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_TRACKBACK_APPROVED, TRACKBACK_APPROVED) ?></div><br /> 101 <?php endif; ?> 102 103 <?php if (defined('DATA_COMMENT_DELETED')): ?> 104 <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_COMMENT_DELETED, COMMENT_DELETED) ?></div><br /> 105 <?php endif; ?> 106 107 <?php if (defined('DATA_COMMENT_APPROVED')): ?> 108 <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_COMMENT_APPROVED, COMMENT_APPROVED) ?></div><br /> 109 <?php endif; ?> 110 111 <div class="serendipity_comments serendipity_section_trackbacks"> 112 <br /> 113 <a id="trackbacks"></a> 114 <div class="serendipity_commentsTitle"><?= TRACKBACKS ?></div> 115 <div class="serendipity_center"> 116 <a rel="nofollow" style="font-weight: normal" href="<?= $entry['link_trackback'] ?>" onclick="alert('<?= htmlspecialchars(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?= htmlspecialchars(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?= TRACKBACK_SPECIFIC; ?></a> 117 </div> 118 <br /> 119 <?php echo serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id'])) ?> 120 </div> 121 <?php endif; ?> 122 123 <?php if ($GLOBALS['tpl']['is_single_entry'] AND !$GLOBALS['tpl']['is_preview']): ?> 124 <div class="serendipity_comments serendipity_section_comments"> 125 <br /> 126 <a id="comments"></a> 127 <div class="serendipity_commentsTitle"><?= COMMENTS; ?></div> 128 <div class="serendipity_center"><?= DISPLAY_COMMENTS_AS; ?> 129 <?php if ($entry['viewmode'] == VIEWMODE_LINEAR): ?> 130 (<?= COMMENTS_VIEWMODE_LINEAR; ?> | <a href="<?= $entry['link_viewmode_threaded'] ?>#comments" rel="nofollow"><?= COMMENTS_VIEWMODE_THREADED; ?></a>) 131 <?php else: ?> 132 (<a rel="nofollow" href="<?= $entry['link_viewmode_linear'] ?>#comments"><?= COMMENTS_VIEWMODE_LINEAR; ?></a> | <?= COMMENTS_VIEWMODE_THREADED; ?>) 133 <?php endif; ?> 134 </div> 135 <br /> 136 <?php $GLOBALS['template']->call('printComments', array('entry' => $entry['id'], 'mode' => $entry['viewmode'])); ?> 137 138 <?php if ($entry['is_entry_owner']): ?> 139 <?php if ($entry['allow_comments']): ?> 140 <div class="serendipity_center">(<a href="<?= $entry['link_deny_comments'] ?>"><?= COMMENTS_DISABLE ?></a>)</div> 141 <?php else: ?> 142 <div class="serendipity_center">(<a href="<?= $entry['link_allow_comments'] ?>"><?= COMMENTS_ENABLE ?></a>)</div> 143 <?php endif; ?> 144 <?php endif; ?> 145 <a id="feedback"></a> 146 147 <?php foreach($GLOBALS['tpl']['comments_messagestack'] AS $message): ?> 148 <div class="serendipity_center serendipity_msg_important"><?= $GLOBALS['tpl']['message'] ?></div> 149 <?php endforeach; ?> 150 151 <?php if ($GLOBALS['tpl']['is_comment_added']): ?> 152 153 <br /> 154 <div class="serendipity_center serendipity_msg_notice"><?= COMMENT_ADDED; ?></div> 155 156 <?php elseif ($GLOBALS['tpl']['is_comment_moderate']): ?> 157 158 <br /> 159 <div class="serendipity_center serendipity_msg_notice"><?= COMMENT_ADDED; ?><br /><?= THIS_COMMENT_NEEDS_REVIEW ?></div> 160 161 <?php elseif ($entry['allow_comments']): ?> 162 163 <br /> 164 <div class="serendipity_center serendipity_msg_important"><?= COMMENTS_CLOSED; ?></div> 165 166 <?php else: ?> 167 168 <br /> 169 <div class="serendipity_section_commentform"> 170 <div class="serendipity_commentsTitle"><?= ADD_COMMENT; ?></div> 171 <?= $GLOBALS['tpl']['COMMENTFORM']; ?> 172 </div> 173 174 <?php endif; ?> 175 </div> 176 <?php endif; ?> 177 178 <?= $entry['backend_preview'] ?> 179 <?php endforeach; ?> 180 </div> 181 <?php endforeach; ?> 182 183 <div class='serendipity_entryFooter' style="text-align: center"> 184 <?php if ($GLOBALS['tpl']['footer_prev_page']): ?> 185 <a href="<?= $GLOBALS['tpl']['footer_prev_page'] ?>">« <?= PREVIOUS_PAGE; ?></a>   186 <?php endif; ?> 187 188 <?php if ($GLOBALS['tpl']['footer_info']): ?> 189 (<?= $GLOBALS['tpl']['footer_info'] ?>) 190 <?php endif; ?> 191 192 <?php if ($GLOBALS['tpl']['footer_next_page']): ?> 193 <a href="<?= $GLOBALS['tpl']['footer_next_page'] ?>">» <?= NEXT_PAGE; ?></a> 194 <?php endif; ?> 195 196 <?php serendipity_plugin_api::hook_event('entries_footer', $GLOBALS['template']); ?> 197 </div> 198 <!-- ENTRIES END -->
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |