Skip to content

Instantly share code, notes, and snippets.

@prajwal-stha
Created June 29, 2016 11:11
Show Gist options
  • Save prajwal-stha/d68d31b207cb088eb290592f6e01c1b4 to your computer and use it in GitHub Desktop.
Save prajwal-stha/d68d31b207cb088eb290592f6e01c1b4 to your computer and use it in GitHub Desktop.
<?php
function danfe_display_contact_info_fn()
{
vc_map(
array(
"name" => esc_html__('Contact Info', 'danfe'),
"base" => 'danfe_display_contact_info',
"category" => esc_html__('Danfe', 'danfe'),
"params" => array(
array(
'type' => 'iconpicker',
'heading' => esc_html__('Icons', 'danfe'),
'param_name' => 'icons',
'value' => '',
'description' => esc_html__('Icons', 'danfe'),
'settings' => array(
'emptyIcon' => false, // default true, display an "EMPTY" icon
'type' => 'linea',
'iconsPerPage' => 200, // default 100, how many icons per/page to display
),
),
array(
'type' => 'textfield',
'heading' => esc_html__('Title', 'danfe'),
'param_name' => 'title',
'description' => esc_html__('Enter the title for this section', 'danfe')
),
array(
'type' => 'textarea_html',
'heading' => esc_html__('Content', 'danfe'),
'param_name' => 'content',
'description' => esc_html__('Enter the content for the section', 'danfe')
)
)
)
);
}
danfe_display_contact_info_fn();
class WPBakeryShortCode_Danfe_Display_Contact_Info extends WPBakeryShortCode
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment