__( 'Point', 'gamipress' ), 'plural_name' => __( 'Points', 'gamipress' ) ); // Check to meet if points showed comes from current logged in user $is_current_user = ( absint( $a['user_id'] ) === get_current_user_id() ); // Setup thumbnail size $thumbnail_size = absint( $a['thumbnail_size'] ); if( $thumbnail_size === 0 ) { $thumbnail_size = 'gamipress-points'; } else { $thumbnail_size = array( $thumbnail_size, $thumbnail_size ); } // Setup points classes $classes = array( 'gamipress-user-points', ( $is_current_user ? 'gamipress-is-current-user' : '' ), 'gamipress-columns-' . $a['columns'], 'gamipress-columns-small-' . $a['columns_small'], 'gamipress-layout-' . $a['layout'], 'gamipress-align-' . $a['align'] ); /** * Points classes * * @since 1.4.0 * * @param array $classes Array of points classes * @param integer $points_types Array of points types to be rendered * @param array $template_args Template received arguments */ $classes = apply_filters( 'gamipress_points_classes', $classes, $points_types, $a ); ?>
$amount ) : $label_position = gamipress_get_points_type_label_position( $points_type ); ?>