$fields['answers'] = ($post['acount'] == 1) ? qa_lang_html_sub_split('main/x_answer', '1', '1')
: qa_lang_html_sub_split('main/2_answers', qa_format_number($post['acount'], 0, true));
function get_favorites( $post_type = 'all', $user_id = 0, $count = 10, $offset = 0 ) {
$where = 'WHERE user_id = ';
$where .= $user_id ? $user_id : get_current_user_id();
$where .= $post_type == 'all' ? '' : " AND post_type = '$post_type'";
$sql = "SELECT post_id, post_type
FROM {$this->table}
$where
GROUP BY post_id
ORDER BY post_type
LIMIT $offset, $count";
$result = $this->db->get_results( $sql );
return $result;
}
function tax_img() {
$taxImg = "";
echo get_the_term_list($post->ID, 'actors', '<h3>В ролях</h3>', '<img src="'.$taxImg.'"/>'.'<br/>', '');
}
dwls-ru_RU.po >> daves-wordpress-live-search-ru_RU.po
dwls-ru_RU.mo >> daves-wordpress-live-search-ru_RU.mo