function rcl_register_rating_review_type()
{
    global $active_addons;
    if (!$active_addons['rating-system']) {
        return false;
    }
    rcl_register_rating_type(array('rating_type' => 'rcl-review', 'type_name' => 'Отзывы', 'icon' => 'fa-trophy'));
    rcl_register_rating_type(array('rating_type' => 'review-content', 'type_name' => 'Текст отзыва', 'style' => true, 'icon' => 'fa-commenting-o'));
}
示例#2
0
 function rcl_register_rating_group_type()
 {
     rcl_register_rating_type(array('post_type' => 'post-group', 'type_name' => __('Record groups', 'wp-recall'), 'style' => true));
 }
示例#3
0
function rcl_register_rating_base_type()
{
    rcl_register_rating_type(array('post_type' => 'post', 'type_name' => __('Posts', 'wp-recall'), 'style' => true, 'data_type' => true, 'limit_votes' => true, 'icon' => 'fa-thumbs-o-up'));
    rcl_register_rating_type(array('rating_type' => 'comment', 'type_name' => __('Comments', 'wp-recall'), 'style' => true, 'data_type' => true, 'limit_votes' => true, 'icon' => 'fa-thumbs-o-up'));
}