Created
April 27, 2017 13:53
-
-
Save salmancreation/73dbd0532e714e0966405723f8c26910 to your computer and use it in GitHub Desktop.
VC-countUp.php
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
<?php | |
function factorian_countTo_vc_addon() { | |
vc_map( | |
array( | |
"name" => __( "Factorian CountUp Box", "factorian-sctheme" ), | |
"base" => "factorian_countup_box", | |
"category" => __( "Factorian", "factorian-sctheme"), | |
"params" => array( | |
array( | |
"type" => "iconpicker", | |
"heading" => __( "Select Icon", "factorian-sctheme" ), | |
"param_name" => "countup_icon", | |
"description" => __( "Select FontAwesome Icon For Item ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "colorpicker", | |
"heading" => __( "Icon Color", "factorian-sctheme" ), | |
"param_name" => "countup_icon_color", | |
"description" => __( "Select The Icon Color ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "textfield", | |
"heading" => __( "CountTo Up Digits", "factorian-sctheme" ), | |
"param_name" => "countup_start_from", | |
"value" => __( "100", "factorian-sctheme" ), | |
"description" => __( "CountUp Digits write here ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "textfield", | |
"heading" => __( "CountUp Delay", "factorian-sctheme" ), | |
"param_name" => "countup_delay", | |
"value" => __( "10", "factorian-sctheme" ), | |
"description" => __( "Delay Time(s) write here ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "textfield", | |
"heading" => __( "CountUp Speed", "factorian-sctheme" ), | |
"param_name" => "countup_speed", | |
"description" => __( "Speed Digits write here ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "textfield", | |
"heading" => __( "CountUp Box Title", "factorian-sctheme" ), | |
"param_name" => "countup_title", | |
"description" => __( "Title write here ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "colorpicker", | |
"heading" => __( "CountUp Box Title Color", "factorian-sctheme" ), | |
"param_name" => "countup_title_color", | |
"description" => __( "Select Color ", "factorian-sctheme" ) | |
), | |
array( | |
"type" => "colorpicker", | |
"heading" => __( "CountTo Up Box Background Color", "factorian-sctheme" ), | |
"param_name" => "countup_box_background", | |
"description" => __( "Select Color ", "factorian-sctheme" ) | |
), | |
) | |
) ); | |
} | |
add_action( 'vc_before_init', 'factorian_countTo_vc_addon' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment