Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array(
- 'name' => __( 'Plans' ),
- 'id' => 'plans',
- 'type' => 'group',
- 'clone' => true,
- 'sort_clone' => true,
- 'collapsible' => true,
- 'save_state' => true,
- 'group_title' => __( 'Plan' ) . ' - {title}',
- 'add_button' => __( 'Add Plan' ),
- 'visible' => array( 'pricing_type', '=', 'table' ), // ======================== here ======================
- 'fields' => array(
- array(
- 'name' => __( 'Title' ),
- 'id' => 'title',
- 'type' => 'text',
- 'size' => 40,
- ),
- array(
- 'name' => __( 'Price prefix' ),
- 'id' => 'price_prefix',
- 'type' => 'text',
- 'columns' => 3,
- ),
- array(
- 'name' => __( 'Price' ),
- 'id' => 'price',
- 'type' => 'number',
- 'step' => 0.01,
- 'required' => true,
- 'columns' => 3,
- 'hidden' => array( 'seperate_pricing', true ),
- ),
- array(
- 'name' => __( 'Price monthly' ),
- 'id' => 'price_monthly',
- 'type' => 'number',
- 'step' => 0.01,
- 'required' => true,
- 'columns' => 3,
- 'visible' => array( 'seperate_pricing', true ),
- ),
- array(
- 'name' => __( 'Price yearly' ),
- 'id' => 'price_yearly',
- 'type' => 'number',
- 'step' => 0.01,
- 'required' => true,
- 'columns' => 3,
- 'visible' => array( 'seperate_pricing', true ),
- ),
- array(
- 'id' => 'btn',
- 'type' => 'group',
- 'visible' => array( 'pricing_type', '=', 'simple' ),
- 'fields' => array(
- array(
- 'name' => __( 'Label' ),
- 'id' => 'label',
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'URL' ),
- 'id' => 'url',
- 'type' => 'text',
- ),
- ),
- ),
- array(
- 'id' => 'features',
- 'type' => 'group',
- 'clone' => true,
- 'sort_clone' => true,
- 'collapsible' => true,
- 'save_state' => true,
- 'group_title' => '{#}. ' . __( 'Feature' ),
- 'add_button' => __( 'Add Feature' ),
- 'fields' => array(
- array(
- 'name' => __( 'Checked' ),
- 'id' => 'checked',
- 'type' => 'switch',
- 'visible' => array( 'pricing_enable_icons', true ),
- ),
- array(
- 'name' => __( 'Description' ),
- 'id' => 'desc',
- 'type' => 'text',
- 'size' => 60,
- ),
- array(
- 'id' => 'sub_features',
- 'type' => 'group',
- 'clone' => true,
- 'sort_clone' => true,
- 'collapsible' => true,
- 'save_state' => true,
- 'group_title' => __( 'Sub Feature' ),
- 'add_button' => __( 'Add Sub Feature' ),
- 'visible' => array( 'pricing_enable_icons', true ),
- 'fields' => array(
- array(
- 'name' => __( 'Checked' ),
- 'id' => 'checked',
- 'type' => 'switch',
- ),
- ),
- ),
- ),
- ),
- ),
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement