Ejemplo n.º 1
0
function comments_evolved_get_total_count()
{
    $total_count = 0;
    $wordpress_count = comments_evolved_get_wordpress_count();
    $gplus_count = comments_evolved_get_gplus_count();
    $trackback_count = comments_evolved_get_trackback_count();
    $facebook_count = comments_evolved_get_facebook_count();
    $disqus_count = comments_evolved_get_disqus_count();
    $total_count = $total_count + $wordpress_count + $gplus_count + $trackback_count + $facebook_count + $disqus_count;
    return $total_count;
}
Ejemplo n.º 2
0
</script>
<div id="comment-tabs">
<a name="comments"></a>
  <?php 
if (!empty($options['comment_area_label'])) {
    echo "<h4 id='comment-tabs-label'>" . $options['comment_area_label'] . "</h4>";
}
?>
  <ul class="controls inline clearfix">
    <?php 
$tab_order = explode(',', $options['tab_order']);
if (empty($options['icon_theme'])) {
    $options['icon_theme'] = 'default';
}
$active = ' class="active"';
$wordpress_count = comments_evolved_get_wordpress_count();
$gplus_count = comments_evolved_get_gplus_count();
$trackback_count = comments_evolved_get_trackback_count();
$facebook_count = comments_evolved_get_facebook_count();
$disqus_count = comments_evolved_get_disqus_count();
foreach ($tab_order as &$tab) {
    $tab = trim($tab);
    if (empty(${$tab . '_count'})) {
        ${$tab . '_count'} = 0;
    }
    echo "<li" . $active . " id='" . $tab . "-control'><a href='#" . $tab . "-tab'>";
    if (!$options['hide_icons']) {
        echo "<img id='" . $tab . "-icon' src='" . COMMENTS_EVOLVED_URL . "/assets/images/icons/" . $options['icon_theme'] . "/" . $tab . ".png'>";
    }
    echo "<span id='" . $tab . "-label'>" . $options[${tab} . '_label'] . "</span>";
    echo "<span id='" . $tab . "-count'> ({${$tab . '_count'}})</span>";