[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/default/ -> 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:DATE_FORMAT_ENTRY}</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              {if $entry.categories}
  17              <span class="serendipity_entryIcon">
  18              {foreach from=$entry.categories item="entry_category"}
  19                  {if $entry_category.category_icon}
  20                      <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>
  21                  {/if}
  22              {/foreach}
  23              </span>
  24              {/if}
  25  
  26              <div class="serendipity_entry_body">
  27                  {$entry.body}
  28              </div>
  29  
  30              {if $entry.is_extended}
  31              <div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
  32              {/if}
  33  
  34              {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
  35              <br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br />
  36              {/if}
  37  
  38              <div class='serendipity_entryFooter'>
  39                  {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
  40                  {if $entry.categories}
  41                     {$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}
  42                  {/if}
  43  
  44                  {if $dategroup.is_sticky}
  45                      {$CONST.ON}
  46                  {else}
  47                      {$CONST.AT}
  48                  {/if} <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
  49  
  50                  {if $entry.has_comments}
  51                      {if $use_popups}
  52                          | <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>
  53                      {else}
  54                          | <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
  55                      {/if}
  56                  {/if}
  57  
  58                  {if $entry.has_trackbacks}
  59                      {if $use_popups}
  60                          | <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>
  61                      {else}
  62                          | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
  63                      {/if}
  64                  {/if}
  65  
  66                  {if $entry.is_entry_owner and not $is_preview}
  67                          | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
  68                  {/if}
  69  
  70                  {$entry.add_footer}
  71              </div>
  72          </div>
  73          <!--
  74          <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  75                   xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
  76                   xmlns:dc="http://purl.org/dc/elements/1.1/">
  77          <rdf:Description
  78                   rdf:about="{$entry.link_rdf}"
  79                   trackback:ping="{$entry.link_trackback}"
  80                   dc:title="{$entry.title_rdf|@default:$entry.title}"
  81                   dc:identifier="{$entry.rdf_ident}" />
  82          </rdf:RDF>
  83          -->
  84          {$entry.plugin_display_dat}
  85  
  86          {if $is_single_entry and not $use_popups and not $is_preview}
  87              {if $CONST.DATA_UNSUBSCRIBED}
  88                  <br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div><br />
  89              {/if}
  90  
  91              {if $CONST.DATA_TRACKBACK_DELETED}
  92                  <br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div><br />
  93              {/if}
  94  
  95              {if $CONST.DATA_TRACKBACK_APPROVED}
  96                  <br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</div><br />
  97              {/if}
  98  
  99              {if $CONST.DATA_COMMENT_DELETED}
 100                  <br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</div><br />
 101              {/if}
 102  
 103              {if $CONST.DATA_COMMENT_APPROVED}
 104                  <br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</div><br />
 105              {/if}
 106  
 107              <div class="serendipity_comments serendipity_section_trackbacks">
 108                  <br />
 109                  <a id="trackbacks"></a>
 110                  <div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div>
 111                      <div class="serendipity_center">
 112                          <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>
 113                      </div>
 114                      <br />
 115                          {serendipity_printTrackbacks entry=$entry.id}
 116              </div>
 117          {/if}
 118  
 119          {if $is_single_entry and not $is_preview}
 120              <div class="serendipity_comments serendipity_section_comments">
 121                  <br />
 122                  <a id="comments"></a>
 123                  <div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
 124                  <div class="serendipity_center">{$CONST.DISPLAY_COMMENTS_AS}
 125                  {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
 126                      ({$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>)
 127                  {else}
 128                      (<a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED})
 129                  {/if}
 130                  </div>
 131                  <br />
 132                      {serendipity_printComments entry=$entry.id mode=$entry.viewmode}
 133  
 134                  {if $entry.is_entry_owner}
 135                      {if $entry.allow_comments}
 136                      <div class="serendipity_center">(<a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>)</div>
 137                      {else}
 138                      <div class="serendipity_center">(<a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>)</div>
 139                      {/if}
 140                  {/if}
 141                  <a id="feedback"></a>
 142  
 143                  {foreach from=$comments_messagestack item="message"}
 144                  <div class="serendipity_center serendipity_msg_important">{$message}</div>
 145                  {/foreach}
 146  
 147                  {if $is_comment_added}
 148  
 149                  <br />
 150                  <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}</div>
 151  
 152                  {elseif $is_comment_moderate}
 153  
 154                  <br />
 155                  <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}<br />{$CONST.THIS_COMMENT_NEEDS_REVIEW}</div>
 156  
 157                  {elseif not $entry.allow_comments}
 158  
 159                  <br />
 160                  <div class="serendipity_center serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</div>
 161  
 162                  {else}
 163  
 164                  <br />
 165                  <div class="serendipity_section_commentform">
 166                      <div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
 167                      {$COMMENTFORM}
 168                  </div>
 169  
 170                  {/if}
 171              </div>
 172          {/if}
 173  
 174          {$entry.backend_preview}
 175          {/foreach}
 176      </div>
 177      {foreachelse}
 178      {if not $plugin_clean_page}
 179          {$CONST.NO_ENTRIES_TO_PRINT}
 180      {/if}
 181      {/foreach}
 182  
 183      <div class='serendipity_entryFooter' style="text-align: center">
 184      {if $footer_prev_page}
 185          <a href="{$footer_prev_page}">&laquo; {$CONST.PREVIOUS_PAGE}</a>&#160;&#160;
 186      {/if}
 187  
 188      {if $footer_info}
 189          ({$footer_info})
 190      {/if}
 191  
 192      {if $footer_next_page}
 193          <a href="{$footer_next_page}">&raquo; {$CONST.NEXT_PAGE}</a>
 194      {/if}
 195  
 196      {serendipity_hookPlugin hook="entries_footer"}
 197      </div>
 198  <!-- ENTRIES END -->


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