[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

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


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