Function: Get a single vote from database.
Function: Count votes of a post and property format.
Function: Get votes count.
Function: Return votes.
Function: Insert vote in ap_votes table.
Function: Check if user is allowed to cast a vote on post.
Function: Echo total votes count of a post.
Function: Count flag votes.
Function: Add flag vote data to ap_votes table.