function display_article($content) { global $post, $userdata; if (is_admin()) { return $content; } if (!is_feed()) { if (is_single() || is_page()) { GDSRDatabase::add_new_view($post->ID); $this->widget_post_id = $post->ID; } if (is_single() && $this->o["display_posts"] == 1 || is_page() && $this->o["display_pages"] == 1 || is_home() && $this->o["display_home"] == 1 || is_archive() && $this->o["display_archive"] == 1 || is_search() && $this->o["display_search"] == 1) { $rendered = $this->render_article($post, $userdata); if ($this->o["auto_display_position"] == "top" || $this->o["auto_display_position"] == "both") { $content = $rendered . $content; } if ($this->o["auto_display_position"] == "bottom" || $this->o["auto_display_position"] == "both") { $content = $content . $rendered; } } $content = $this->display_multi_rating("top", $post, $userdata) . $content; $content = $content . $this->display_multi_rating("bottom", $post, $userdata); } return $content; }