/**
  * Get forum posts for forums current user is enrolled on.
  *
  * @return string
  */
 public function get_forumposts_action()
 {
     return json_encode(array('html' => \theme_snap\local::render_recent_forum_activity()));
 }