Permalink
Browse files

Full Disqus plugin support, thanks to @gbrockhaus.

  • Loading branch information...
1 parent 83d7338 commit 4ff7cb48da9107aecc5636bb3cfdbc3776ae8f47 @yellowled committed Jun 8, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 entries.tpl
View
@@ -25,10 +25,14 @@
{if $entry.categories}
<span class="visuallyhidden">{$CONST.CATEGORIES}: </span>{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}
{/if}
- {if $entry.categories and $entry.has_comments} | {/if}
- {if $entry.has_comments}
+ {if $entry.categories and ($entry.has_comments or $entry.has_disqus)} | {/if}
+ {if ($entry.has_comments or $entry.has_disqus)}
+ {if $entry.has_disqus }
+ {$entry.comments}{if $entry.has_trackbacks}, <a href="{$entry.link}#trackbacks">{$entry.trackbacks} {$entry.label_trackbacks}</a>{/if}
+ {else}
<a href="{$entry.link}#comments" title="{$entry.comments} {$entry.label_comments}{if $entry.has_trackbacks}, {$entry.trackbacks} {$entry.label_trackbacks}{/if}">{$entry.comments} {$entry.label_comments}</a>
{/if}
+ {/if}
{if $entry.url_tweetthis}
| <a href="{$entry.url_tweetthis}" title="{$CONST.TWOK11_TWEET_THIS}">Twitter</a>
{/if}

0 comments on commit 4ff7cb4

Please sign in to comment.