10-1 最近のコメント・トラックバックを記事別に表示する

186ページ

<mt:if tag="BlogCommentCount">
<div class="widget-recent-comments widget">
  <h3 class="widget-header">最近のコメント</h3>
  <div class="widget-content">
  <mt:Entries recently_commented_on="3" sort_order="descend">
    <ul>
      <li><a href="<mt:EntryPermalink />"><mt:EntryTitle /></a>
        <ul>
    <mt:Comments lastn="2">
          <li><a href="<mt:EntryLink archive_type="Individual" />#c<mt:CommentID />" title="comment-<mt:CommentID />"><mt:CommentAuthor default="Anonymous"></a><mt:CommentDate format="%m/%d" /></li>
    </mt:Comments>
        </ul>
      </li>
    </ul>
  </mt:Entries>
  </div>
</div>
</mt:if>

187ページ

「最近のコメント」ウィジェットテンプレート

<mt:if tag="BlogCommentCount">
  <mt:Comments sort_order="descend" lastn="10">
    <mt:CommentEntry><mt:SetVarBlock name="entry_title"><a href="<mt:EntryPermalink valid_html="1" />"><mt:EntryTitle encode_html="1"></a></mt:SetVarBlock></mt:CommentEntry>
    <mt:SetVarBlock name="entry_comment"><li><a href="<mt:CommentEntry><mt:EntryLink archive_type="Individual" /></mt:CommentEntry>#c<mt:CommentID />" title="comment-<mt:CommentID />"><mt:CommentAuthor default="Anonymous"></a> <mt:CommentDate format="%m/%d" /></li></mt:SetVarBlock>
    <mt:SetVar name="comment_list{$entry_title}" value="$entry_comment" prepend="1" />
    <mt:SetVar name="flag" value="0" />
    <mt:loop name="title_list">
      <mt:if name="entry_title" eq="$__value__">
        <mt:SetVar name="flag" value="1" />
      </mt:if>
    </mt:loop>
    <mt:unless name="flag">
      <mt:SetVar name="push(title_list)" value="$entry_title" />
    </mt:unless>
  </mt:Comments>
<div class="widget-recent-comments widget">
  <h3 class="widget-header">最近のコメント</h3>
  <div class="widget-content">
  <mt:loop name="title_list">
    <ul>
      <li>
    <mt:GetVar name="__value__" />
        <ul>
      <mt:GetVar name="comment_list{$__value__}" />
        </ul>
      </li>
    </ul>
  </mt:loop>
  </div>
</div>
</mt:if>

189ページ

「最近のトラックバック」ウィジェットテンプレート

<mt:if tag="blogPingCount">
  <mt:Pings sort_order="descend" lastn="10">
    <mt:PingEntry><mt:SetVarBlock name="entry_title"><a href="<mt:EntryPermalink valid_html="1" />"><mt:EntryTitle encode_html="1"></a></mt:SetVarBlock></mt:PingEntry>
    <mt:SetVarBlock name="entry_trackback"><li><a href="<mt:PingURL />" title="trackback-<mt:PingID />"><mt:PingBlogName /></a> <mt:PingDate format="%m/%d" /></li></mt:SetVarBlock>
    <mt:SetVar name="trackback_list{$entry_title}" value="$entry_trackback" prepend="1" />
    <mt:SetVar name="flag" value="0" />
    <mt:loop name="title_list">
      <mt:if name="entry_title" eq="$__value__">
        <mt:SetVar name="flag" value="1" />
      </mt:if>
    </mt:loop>
    <mt:unless name="flag">
      <mt:SetVar name="push(title_list)" value="$entry_title" />
    </mt:unless>
  </mt:Pings>
<div class="widget-recent-comments widget">
  <h3 class="widget-header">最近のトラックバック一覧</h3>
  <div class="widget-content">
  <mt:loop name="title_list">
  <ul>
    <li>
    <mt:GetVar name="__value__" />
      <ul>
      <mt:GetVar name="trackback_list{$__value__}" />
      </ul>
    </li>
  </ul>
  </mt:loop>
  </div>
</div>
</mt:if>

このアーカイブについて

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。