Skip to content

Instantly share code, notes, and snippets.

@prajwal-stha
Created June 29, 2016 11:24
Show Gist options
  • Save prajwal-stha/656ef79323208dab06ecf9cda358a4a8 to your computer and use it in GitHub Desktop.
Save prajwal-stha/656ef79323208dab06ecf9cda358a4a8 to your computer and use it in GitHub Desktop.
vc_map( array(
"name" => esc_html__("Project Counter", 'danfe'),
"base" => "danfe_display_counter",
"category" => esc_html__('Danfe','danfe'),
"params" => array(
array(
'type' => 'textfield',
'heading' => esc_html__('Title', 'danfe'),
'param_name' => 'section_title',
'value' => '',
'description' => esc_html__('Counter Title', 'danfe')
),
array(
'type' => 'textfield',
'heading' => esc_html__('Counter', 'danfe'),
'param_name' => 'section_counter',
'value' => '',
'description' => esc_html__('Counter', 'danfe')
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon library', 'danfe' ),
'value' => array(
esc_html__( 'Select Library', 'danfe' ) => '',
esc_html__( 'Linea', 'danfe' ) => 'linea'
),
'admin_label' => true,
'param_name' => 'type',
'description' => esc_html__( 'Select icon library.', 'danfe' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'danfe' ),
'param_name' => 'danfe_counter_icons',
'settings' => array(
'emptyIcon' => false, // default true, display an "EMPTY" icon
'type' => 'linea',
'iconsPerPage' => 200, // default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'linea',
),
'description' => esc_html__( 'Select icon from library.', 'danfe' )
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment