<?php $votes_articles = GDSRDB::front_page_article_totals(); $votes_comments = GDSRDB::front_page_comment_totals(); $moderation = GDSRDB::front_page_moderation_totals(); $moderation_articles = 0; $moderation_comments = 0; if (is_array($moderation)) { foreach ($moderation as $m) { if ($m->vote_type == 'article') { $moderate_articles = $m->queue; } else { $moderation_comments = $m->queue; } } } ?> <div id="gdpt_server" class="postbox gdrgrid frontleft"> <h3 class="hndle"><span><?php _e("Quick Rating Facts", "gd-star-rating"); ?> </span></h3> <div class="inside"> <p class="gdptyouhave" style="font-size:13px;"> <?php printf(__("Registered users rated %s articles with average rating of %s and %s comments with average rating of %s. Visitors rated %s articles with average rating of %s and %s comments with average rating of %s.", "gd-star-rating"), '<strong>' . $votes_articles->votersu . '</strong>', '<strong><span style="color: red">' . @number_format($votes_articles->votesu / $votes_articles->votersu, 1) . '</span></strong>', '<strong>' . $votes_comments->votersu . '</strong>', '<strong><span style="color: red">' . @number_format($votes_comments->votesu / $votes_comments->votersu, 1) . '</span></strong>', '<strong>' . $votes_articles->votersv . '</strong>', '<strong><span style="color: red">' . @number_format($votes_articles->votesv / $votes_articles->votersv, 1) . '</span></strong>', '<strong>' . $votes_comments->votersv . '</strong>', '<strong><span style="color: red">' . @number_format($votes_comments->votesv / $votes_comments->votersv, 1) . '</span></strong>'); if ($options["moderation_active"] == 1) { printf(__(" There are %s article and %s comments ratings waiting in moderation queue.", "gd-star-rating"), '<strong><span style="color: red">' . $moderation_articles . '</span></strong>', '<strong><span style="color: red">' . $moderation_comments . '</span></strong>'); } ?>