[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/bulletproof/ -> entries.tpl (source)

   1  <!-- ENTRIES START -->
   2  {serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
   3  
   4  {foreach from=$entries item="dategroup"}
   5  <div class="serendipity_Entry_Date">
   6      {if $dategroup.is_sticky}
   7          <h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
   8      {else}
   9          <h3 class="serendipity_date">{$dategroup.date|@formatTime:$template_option.date_format}</h3>
  10      {/if}
  11  
  12      {foreach from=$dategroup.entries item="entry"}
  13          <h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>
  14  
  15          <div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
  16  
  17              {if $template_option.entryfooterpos == 'belowtitle'}
  18                  <div class='serendipity_entryFooter belowtitle'>
  19                      {if $template_option.footerauthor == 'true'}
  20                          {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
  21                      {/if}
  22  
  23                      {if $template_option.footercategories == 'true'}
  24                          {if $entry.categories}
  25                              {$CONST.IN} {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}
  26                          {/if}
  27                      {/if}
  28  
  29                      {if $template_option.footertimestamp == 'true'}
  30                          {if $dategroup.is_sticky}
  31                              {$CONST.ON}
  32                          {else}
  33                              {$CONST.AT}
  34                          {/if}
  35                          <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
  36                      {/if}
  37  
  38                      {if $template_option.footercomments == 'true'}
  39                          {if $entry.has_comments}
  40                              {if $use_popups}
  41                                  | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
  42                              {else}
  43                                  | <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
  44                              {/if}
  45                          {/if}
  46                      {/if}
  47  
  48                      {if $template_option.footertrackbacks == 'true'}
  49                          {if $entry.has_trackbacks}
  50                              {if $use_popups}
  51                                  | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
  52                              {else}
  53                                  | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
  54                              {/if}
  55                          {/if}
  56                      {/if}
  57  
  58                      {if $entry.is_entry_owner and not $is_preview}
  59                          <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
  60                      {/if}
  61  
  62                      {$entry.add_footer}
  63                  </div>
  64              {/if}
  65  
  66              {if $template_option.entryfooterpos == 'splitfoot'}
  67                  <div class='serendipity_entryFooter byline'>
  68                      {if $template_option.footerauthor == 'true'}
  69                          {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
  70                      {/if}
  71  
  72                      {if $template_option.footercategories == 'true'}
  73                          {if $entry.categories}
  74                              {$CONST.IN} {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}
  75                          {/if}
  76                      {/if}
  77  
  78                      {if $template_option.footertimestamp == 'true'}
  79                          {if $dategroup.is_sticky}
  80                              {$CONST.ON}
  81                          {else}
  82                              {$CONST.AT}
  83                          {/if}
  84                          <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
  85                      {/if}
  86                  </div>
  87              {/if}
  88  
  89              {if $entry.categories}
  90                  <span class="serendipity_entryIcon">
  91                      {foreach from=$entry.categories item="entry_category"}
  92                          {if $entry_category.category_icon}
  93                              <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>
  94                          {/if}
  95                      {/foreach}
  96                 </span>
  97              {/if}
  98    
  99              <div class="serendipity_entry_body">
 100                  {$entry.body}
 101                  {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
 102                      <span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} &raquo;</a></span>
 103                  {/if}
 104             </div>
 105  
 106              {if $entry.is_extended}
 107                  <div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
 108              {/if}
 109  
 110              {if $template_option.entryfooterpos == 'belowentry'}
 111                  <div class='serendipity_entryFooter belowentry'>
 112                      {if $template_option.footerauthor == 'true'}
 113                          {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
 114                      {/if}
 115  
 116                      {if $template_option.footercategories == 'true'}
 117                          {if $entry.categories}
 118                              {$CONST.IN} {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}
 119                          {/if}
 120                      {/if}
 121  
 122                      {if $template_option.footertimestamp == 'true'}
 123                          {if $dategroup.is_sticky}
 124                              {$CONST.ON}
 125                          {else}
 126                              {$CONST.AT}
 127                          {/if}
 128                              <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
 129                      {/if}
 130  
 131                      {if $template_option.footercomments == 'true'}
 132                          {if $entry.has_comments}
 133                              {if $use_popups}
 134                                  | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
 135                              {else}
 136                                  | <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
 137                              {/if}
 138                          {/if}
 139                      {/if}
 140  
 141                      {if $template_option.footertrackbacks == 'true'}
 142                          {if $entry.has_trackbacks}
 143                              {if $use_popups}
 144                                  | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
 145                              {else}
 146                                  | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
 147                              {/if}
 148                          {/if}
 149                      {/if}
 150  
 151                      {if $entry.is_entry_owner and not $is_preview}
 152                          <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
 153                      {/if}
 154  
 155                      {$entry.add_footer}
 156                  </div>
 157              {/if}
 158  
 159              {if $template_option.entryfooterpos == 'splitfoot'}
 160                  <div class='serendipity_entryFooter infofooter'>
 161                      {if $template_option.footercomments == 'true'}
 162                          {if $entry.has_comments}
 163                              {if $use_popups}
 164                                  <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
 165                              {else}
 166                                  <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
 167                              {/if}
 168                          {/if}
 169                      {/if}
 170  
 171                      {if $template_option.footertrackbacks == 'true'}
 172                          {if $entry.has_trackbacks}
 173                              {if $use_popups}
 174                                  | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
 175                              {else}
 176                                  | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
 177                              {/if}
 178                          {/if}
 179                      {/if}
 180  
 181                      {if $entry.is_entry_owner and not $is_preview}
 182                          <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
 183                      {/if}
 184  
 185                      {$entry.add_footer}
 186                  </div>
 187              {/if}
 188          </div>
 189  
 190          <!--
 191          <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 192                   xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 193                   xmlns:dc="http://purl.org/dc/elements/1.1/">
 194          <rdf:Description
 195                   rdf:about="{$entry.link_rdf}"
 196                   trackback:ping="{$entry.link_trackback}"
 197                   dc:title="{$entry.title_rdf|@default:$entry.title}"
 198                   dc:identifier="{$entry.rdf_ident}" />
 199          </rdf:RDF>
 200          -->
 201          {$entry.plugin_display_dat}
 202  
 203          {if $is_single_entry and not $use_popups and not $is_preview}
 204              {if $CONST.DATA_UNSUBSCRIBED}
 205                  <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div>
 206              {/if}
 207  
 208              {if $CONST.DATA_TRACKBACK_DELETED}
 209                  <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div>
 210              {/if}
 211  
 212              {if $CONST.DATA_TRACKBACK_APPROVED}
 213                  <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</div>
 214              {/if}
 215  
 216              {if $CONST.DATA_COMMENT_DELETED}
 217                  <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</div>
 218              {/if}
 219  
 220              {if $CONST.DATA_COMMENT_APPROVED}
 221                  <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</div>
 222              {/if}
 223  
 224              <div class="serendipity_comments serendipity_section_trackbacks">
 225                  <a id="trackbacks"></a>
 226                  <div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div>
 227                  <div class="serendipity_center">
 228                      <a rel="nofollow" style="font-weight: normal" 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>
 229                  </div>
 230                  <div id="serendipity_trackbacklist">{serendipity_printTrackbacks entry=$entry.id}</div>
 231              </div>
 232          {/if}
 233  
 234          {if $is_single_entry and not $is_preview}
 235              <div class="serendipity_comments serendipity_section_comments">
 236                  <a id="comments"></a>
 237                  <div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
 238                  <div class="serendipity_center">{$CONST.DISPLAY_COMMENTS_AS}
 239                      {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
 240                          ({$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>)
 241                      {else}
 242                          (<a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED})
 243                      {/if}
 244                  </div>
 245                  <div id="serendipity_commentlist">{serendipity_printComments entry=$entry.id mode=$entry.viewmode}</div>
 246  
 247                  {if $entry.is_entry_owner}
 248                      {if $entry.allow_comments}
 249                          <div class="serendipity_center">(<a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>)</div>
 250                      {else}
 251                          <div class="serendipity_center">(<a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>)</div>
 252                      {/if}
 253                  {/if}
 254                  <a id="feedback"></a>
 255  
 256                  {foreach from=$comments_messagestack item="message"}
 257                      <div class="serendipity_center serendipity_msg_important">{$message}</div>
 258                  {/foreach}
 259  
 260                  {if $is_comment_added}
 261                      <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}</div>
 262                  {elseif $is_comment_moderate}
 263                      <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}<br />{$CONST.THIS_COMMENT_NEEDS_REVIEW}</div>
 264                  {elseif not $entry.allow_comments}
 265                      <div class="serendipity_center serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</div>
 266                  {else}
 267                     <div class="serendipity_section_commentform">
 268                         <div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
 269                         {$COMMENTFORM}
 270                     </div>
 271                  {/if}
 272              </div>
 273          {/if}
 274  
 275          {$entry.backend_preview}
 276      {/foreach}
 277  </div>
 278  
 279  {foreachelse}
 280      {if not $plugin_clean_page}
 281          <div class="serendipity_overview_noentries">
 282              {$CONST.NO_ENTRIES_TO_PRINT}
 283          </div>
 284      {/if}
 285  {/foreach}
 286  
 287  <div class='serendipity_pageFooter' style="text-align: center">
 288      {if $footer_prev_page}
 289          <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}">&laquo; {$CONST.PREVIOUS_PAGE}</a>&#160;&#160;
 290      {/if}
 291  
 292      {if $footer_info}
 293          ({$footer_info})
 294      {/if}
 295  
 296      {if $footer_next_page}
 297          <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE} &raquo;</a>
 298      {/if}
 299  
 300      {serendipity_hookPlugin hook="entries_footer"}
 301  </div>
 302  <!-- ENTRIES END -->


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics