| 1 | <mt:setvarblock name="html_head" append="1"> |
|---|
| 2 | <mt:if name="stat_url"> |
|---|
| 3 | <script type="text/javascript"> |
|---|
| 4 | /* <![CDATA[ */ |
|---|
| 5 | var slider_variable = '<__trans phrase="Comments" escape="js">'; |
|---|
| 6 | var slider_variable_singular = '<__trans phrase="Comment" escape="js">'; |
|---|
| 7 | var file_name = '<mt:var name="stat_url">'; |
|---|
| 8 | |
|---|
| 9 | var commentsSlider = new FlashTag("<mt:var name="static_uri">flash/date_slider_open.swf?date_range="+date_range+"&file_name="+file_name+"&box_color="+box_color+"&bar_color="+bar_color+"&line_color="+line_color+"&slider_variable="+slider_variable+"&slider_variable_singular="+slider_variable_singular+"&lang=<mt:var name="language_tag">&static_path="+escape(StaticURI+"flash"), 540, 122); |
|---|
| 10 | commentsSlider.setFlashvars("lcId=" + lcId); |
|---|
| 11 | commentsSlider.setFlashvars("flashSource=http://www.measuremap.com/developer/slider/&contentLicense=http://creativecommons.org/licenses/by/2.0/"); |
|---|
| 12 | /* ]]> */ |
|---|
| 13 | </script> |
|---|
| 14 | </mt:if> |
|---|
| 15 | </mt:setvarblock> |
|---|
| 16 | |
|---|
| 17 | <mt:setvarblock name="tabs" append="1"> |
|---|
| 18 | <li id="comment-tab" class="tab <mt:if name="tab" eq="comment">selected-tab</mt:if>" mt:tab="comment" mt:command="select-tab" onclick="blogStatsTabSelect('comment')"><a href="javascript:void(0)"><span><__trans phrase="Comments"></span></a></li> |
|---|
| 19 | </mt:setvarblock> |
|---|
| 20 | |
|---|
| 21 | <div id="comment-panel" class="<mt:unless name="tab" eq="comment">hidden</mt:unless>" mt:tab-content="comment"> |
|---|
| 22 | <mt:if name="stat_url"> |
|---|
| 23 | <script type="text/javascript"> |
|---|
| 24 | /* <![CDATA[ */ |
|---|
| 25 | commentsSlider.write(document); |
|---|
| 26 | /* ]]> */ |
|---|
| 27 | </script> |
|---|
| 28 | <div class="stats-summary" id="stats-summary-comment"> </div> |
|---|
| 29 | </mt:if> |
|---|
| 30 | |
|---|
| 31 | <h4 class="tab-panel-header"><__trans phrase="Most Recent Comments"></h4> |
|---|
| 32 | |
|---|
| 33 | <MTComments sort_order="descend"> |
|---|
| 34 | <div id="comment-<$MTCommentID$>" class="comment comment-<mt:if name="__odd__">odd<mt:else>even</mt:if> comment-<MTCommentIfModerated>status-publish<MTElse>status-pending</MTCommentIfModerated>"> |
|---|
| 35 | <div class="comment-inner"> |
|---|
| 36 | <div class="comment-content"> |
|---|
| 37 | <$MTCommentBody$> |
|---|
| 38 | </div> |
|---|
| 39 | <div class="comment-meta"> |
|---|
| 40 | <__trans phrase="[_1] [_2], [_3] on [_4]" params="<MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty>%%<$MTCommentAuthorLink default_name="Anonymous"$>%%<$MTCommentDate relative="1"$>%%<MTCommentEntry><MTEntryAuthorID setvar="entry_author_id"><MTIf name="editable"><a href="<$mt:var name="script_url"$>?__mode=view&_type=<$MTEntryClass lower_case="1"$>&id=<$MTEntryID$>&blog_id=<$MTEntryBlogID$>"><$MTEntryTitle$></a><MTElse name="author_id" eq="$entry_author_id"><a href="<$mt:var name="script_url"$>?__mode=view&_type=<$MTEntryClass lower_case="1"$>&id=<$MTEntryID$>&blog_id=<$MTEntryBlogID$>"><$MTEntryTitle$></a><MTElse><$MTEntryTitle$></MTIf></MTCommentEntry>"> |
|---|
| 41 | <MTIf name="editable">(<a href="<mt:var name="script_url">?__mode=view&_type=comment&id=<$MTCommentID$>&blog_id=<$MTCommentBlogID$>"><__trans phrase="Edit Comment"></a>)<MTElse name="author_id" eq="$entry_author_id">(<a href="<mt:var name="script_url">?__mode=view&_type=comment&id=<$MTCommentID$>&blog_id=<$MTCommentBlogID$>"><__trans phrase="Edit Comment"></a>)</MTIf> |
|---|
| 42 | </div> |
|---|
| 43 | </div> |
|---|
| 44 | </div> |
|---|
| 45 | <mt:if name="__last__"><mt:if name="comment_editable"> |
|---|
| 46 | <div class="view-all"><a href="<mt:var name="script_url">?__mode=list_comment&blog_id=<$mt:var name="blog_id"$>"><__trans phrase="View all comments"></a></div> |
|---|
| 47 | </mt:if></mt:if> |
|---|
| 48 | <MTElse> |
|---|
| 49 | <__trans phrase="No comments available."> |
|---|
| 50 | </MTComments> |
|---|
| 51 | </div> |
|---|