Last active
February 24, 2016 22:47
-
-
Save goranefbl/7b4bbbae17870ab7606d to your computer and use it in GitHub Desktop.
vc_map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Not Working for Defaults | |
vc_map(array( | |
"name" => __("Google Map Holder", "js_composer") , | |
"icon" => YES_ADDON_ASSETS_URL ."images/yes-icon.png", | |
"weight" => 21, | |
"base" => "map_holder", | |
"description" => __("Add all locations inside this container", "js_composer") , | |
"as_parent" => array( | |
'only' => 'map_location' | |
) , | |
"content_element" => true, | |
"show_settings_on_create" => false, | |
"category" => __("Built for Yes", "js_composer") , | |
"params" => array( | |
array( | |
"type" => "dropdown", | |
"class" => "", | |
"admin_label" => true, | |
"heading" => __("Select Map Type", "js_composer") , | |
"value" => array('ROADMAP' => 'ROADMAP','SATELLITE' => 'SATELLITE','HYBRID' => 'HYBRID','TERRAIN' => 'TERRAIN' ), | |
"param_name" => "map_type", | |
"description" => __("Choose map type.", "js_composer") | |
), | |
array( | |
"type" => "checkbox", | |
"heading" => __("Icons to show", "js_composer") , | |
"param_name" => "map_icons", | |
'value' => array( | |
__( 'Hotel', 'js_composer' ) => 'hotel', | |
__( 'Restaurant', 'js_composer' ) => 'restaurant', | |
), | |
"description" => __("Chose which icons to show on left side", "js_composer") | |
) | |
) , | |
"js_view" => 'VcColumnView' | |
)); | |
// Working One | |
vc_map( array( | |
'name' => __( 'Round Chart', 'js_composer' ), | |
'base' => 'vc_round_chart', | |
'class' => '', | |
'icon' => 'icon-wpb-vc-round-chart', | |
'category' => __( 'Content', 'js_composer' ), | |
'description' => __( 'Pie and Doughnat charts', 'js_composer' ), | |
'params' => array( | |
array( | |
'type' => 'textfield', | |
'heading' => __( 'Widget title', 'js_composer' ), | |
'param_name' => 'title', | |
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), | |
'admin_label' => true | |
), | |
array( | |
'type' => 'dropdown', | |
'heading' => __( 'Design', 'js_composer' ), | |
'param_name' => 'type', | |
'value' => array( | |
__( 'Pie', 'js_composer' ) => 'pie', | |
__( 'Doughnut', 'js_composer' ) => 'doughnut', | |
), | |
'description' => __( 'Select type of chart.', 'js_composer' ) | |
), | |
array( | |
'type' => 'dropdown', | |
'heading' => __( 'Style', 'js_composer' ), | |
'description' => __( 'Select chart color style.', 'js_composer' ), | |
'param_name' => 'style', | |
'value' => array( | |
__( 'Flat', 'js_composer' ) => 'flat', | |
__( 'Modern', 'js_composer' ) => 'modern', | |
__( 'Custom', 'js_composer' ) => 'custom', | |
), | |
'dependency' => array( | |
'callback' => 'vcChartCustomColorDependency', | |
) | |
), | |
) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for share code!