Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function factorian_slider_vc_addon() {
- vc_map(
- array(
- "name" => __( "Factorian Slider", "factorian-sctheme" ),
- "base" => "factorian_slider",
- "icon" => "https://en.share-gate.com/app/archive/media/Sharegate/Images/2013/header_IMGSlider_616161.jpg",
- "category" => __( "Factorian", "factorian-sctheme"),
- "params" => array(
- array(
- "type" => "textfield",
- "heading" => __( "Count ", "factorian-sctheme" ),
- "param_name" => "count",
- "value" => __( "3", "factorian-sctheme" ),
- "description" => __( "Enter The Digit How Many Slide You Want ", "factorian-sctheme" )
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Select Slide ", "factorian-sctheme" ),
- "param_name" => "slide_id",
- "value" => factorian_toolkit_get_post_as_list(),
- "description" => __( "Select Slide ", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("1"),
- ),
- ),
- array(
- "type" => "textfield",
- "heading" => __( "Factorian Slide Hight ", "factorian-sctheme" ),
- "param_name" => "height",
- "std" => __( "590", "factorian-sctheme" ),
- "description" => __( "Type The Slide Height in px ", "factorian-sctheme" )
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Enable Loop ", "factorian-sctheme" ),
- "param_name" => "loop",
- "value" => array(
- "Select" => "select",
- "Yes" => "true",
- "NO" => "false"
- ),
- "description" => __( "Select Yes or No", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"),
- ),
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Enable AutoPlay ", "factorian-sctheme" ),
- "param_name" => "autoPlay",
- "value" => array(
- "Select" => "select",
- "Yes" => "true",
- "NO" => "false"
- ),
- "description" => __( "Select Yes or No", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"),
- ),
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Enable Navigation with Arrow Icon ", "factorian-sctheme" ),
- "param_name" => "navigation",
- "value" => array(
- "Select" => "select",
- "Yes" => "true",
- "NO" => "false"
- ),
- "description" => __( "Select Yes or No", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"),
- ),
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Enable Dots Navigation ", "factorian-sctheme" ),
- "param_name" => "pagination",
- "value" => array(
- "Select" => "select",
- "Yes" => "true",
- "NO" => "false"
- ),
- "description" => __( "Select Yes or No", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"),
- ),
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Slide AutoPlayTimeOut ", "factorian-sctheme" ),
- "param_name" => "autoPlayTimeOut",
- "value" => array(
- "1 Second" => "1000",
- "2 Seconds" => "2000",
- "3 Seconds" => "3000",
- "4 Seconds" => "4000",
- "5 Seconds" => "5000",
- "10 Seconds" => "10000",
- "15 Seconds" => "15000",
- "20 Seconds" => "20000"
- ),
- "description" => __( "Select Your Second , speed in milliseconds", "factorian-sctheme" ),
- "dependency" => array(
- "element" => "count",
- "value" => array("2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"),
- ),
- ),
- )
- ) );
- }
- add_action( 'vc_before_init', 'factorian_slider_vc_addon' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement