__( ‘Progress Bar’, ‘us’ ),
‘base’ => ‘us_progbar’,
‘icon’ => ‘icon-wpb-graph’,
‘category’ => us_translate_with_external_domain( ‘Content’, ‘js_composer’ ),
‘weight’ => 125,
‘params’ => array(
array(
‘param_name’ => ‘title’,
‘heading’ => __( ‘Title’, ‘us’ ),
‘type’ => ‘textfield’,
‘holder’ => ‘div’,
‘std’ => $config[‘atts’][‘title’],
‘edit_field_class’ => ‘vc_col-sm-6’,
‘weight’ => 80,
),
array(
‘param_name’ => ‘count’,
‘heading’ => __( ‘Progress Value’, ‘us’ ),
‘type’ => ‘textfield’,
‘std’ => $config[‘atts’][‘count’],
‘holder’ => ‘span’,
‘edit_field_class’ => ‘vc_col-sm-6’,
‘weight’ => 70,
),
array(
‘param_name’ => ‘style’,
‘heading’ => __( ‘Style’, ‘us’ ),
‘type’ => ‘dropdown’,
‘value’ => array(
sprintf( __( ‘Style %d’, ‘us’ ), 1 ) => ‘1’,
sprintf( __( ‘Style %d’, ‘us’ ), 2 ) => ‘2’,
sprintf( __( ‘Style %d’, ‘us’ ), 3 ) => ‘3’,
sprintf( __( ‘Style %d’, ‘us’ ), 4 ) => ‘4’,
sprintf( __( ‘Style %d’, ‘us’ ), 5 ) => ‘5’,
),
‘std’ => $config[‘atts’][‘style’],
‘edit_field_class’ => ‘vc_col-sm-6’,
‘weight’ => 60,
),
array(
‘param_name’ => ‘size’,
‘heading’ => __( ‘Size’, ‘us’ ),
‘type’ => ‘dropdown’,
‘value’ => array(
__( ‘Small’, ‘us’ ) => ‘small’,
__( ‘Medium’, ‘us’ ) => ‘medium’,
__( ‘Large’, ‘us’ ) => ‘large’,
),
‘std’ => $config[‘atts’][‘size’],
‘edit_field_class’ => ‘vc_col-sm-6’,
‘weight’ => 50,
),
array(
‘param_name’ => ‘color’,
‘heading’ => __( ‘Progress Bar Color’, ‘us’ ),
‘type’ => ‘dropdown’,
‘value’ => array(
__( ‘Primary (theme color)’, ‘us’ ) => ‘primary’,
__( ‘Secondary (theme color)’, ‘us’ ) => ‘secondary’,
__( ‘Contrast (theme color)’, ‘us’ ) => ‘contrast’,
__( ‘Custom Color’, ‘us’ ) => ‘custom’,
),
‘std’ => $config[‘atts’][‘color’],
‘weight’ => 40,
),
array(
‘param_name’ => ‘bar_color’,
‘type’ => ‘colorpicker’,
‘std’ => $config[‘atts’][‘bar_color’],
‘dependency’ => array( ‘element’ => ‘color’, ‘value’ => ‘custom’ ),
‘weight’ => 30,
),
array(
‘param_name’ => ‘hide_count’,
‘type’ => ‘checkbox’,
‘value’ => array( __( ‘Hide progress value counter’, ‘us’ ) => TRUE ),
( ( $config[‘atts’][‘hide_count’] !== FALSE ) ? ‘std’ : ‘_std’ ) => $config[‘atts’][‘hide_count’],
‘weight’ => 20,
),
array(
‘param_name’ => ‘el_class’,
‘heading’ => us_translate_with_external_domain( ‘Extra class name’, ‘js_composer’ ),
‘description’ => us_translate_with_external_domain( ‘Style particular content element differently – add a class name and refer to it in custom CSS.’, ‘js_composer’ ),
‘type’ => ‘textfield’,
‘std’ => $config[‘atts’][‘el_class’],
‘weight’ => 10,
),
),
)
);