oh, ok here it is:
// PayPal Box
add_action( 'cmb2_init', 'add_pro_paypal_box' );
function add_pro_paypal_box() {
global $listmesettings_id;
$pro_paypal_box = new_cmb2_box( array(
'id' => '_pro_paypal_box',
'title' => '???? ????? ????????',
'object_types' => array( 'post_type_pros' ),
'context' => 'normal',
'priority' => 'high',
) );
// Set places holder var (for Kidum group)
foreach (get_categories('taxonomy=places_taxonomy&hide_empty=0') as $places_term ) { $places_options[$places_term->cat_ID] = $places_term->name;}
// Kidum group
$pro_paypal_kidum = $pro_paypal_box->add_field( array(
'id' => 'pro_paypal_kidum',
'type' => 'group',
'options' => array(
'group_title' => '??? ????? {#}',
'add_button' => '???? ??? ?????',
'remove_button' => '??? ??? ?????',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'place',
'type' => 'select',
'show_option_none' => true,
'options' => $places_options,
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '??? ?????',
'id' => 'state',
'type' => 'select',
'show_option_none' => true,
'options' => array(
'active' => '????',
'canceled' => '?????',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '???? ?? ????? ????',
'id' => 'payer_mail',
'type' => 'text',
'attributes' => array(
'readonly' => 'readonly',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '?????',
'id' => 'start',
'type' => 'text_small',
'attributes' => array(
'readonly' => 'readonly',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'end',
'type' => 'text_small',
'attributes' => array(
'readonly' => 'readonly',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '???? ????? ????',
'id' => 'subscr_id',
'type' => 'text_small',
'attributes' => array(
'readonly' => 'readonly',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'price',
'type' => 'text_small',
'attributes' => array(
'readonly' => 'readonly',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'fee',
'type' => 'text_small',
'attributes' => array(
'readonly' => 'readonly',
),
) );
}