Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- vc_map( array(
- "name" => __( "Factorian Slider", "my-text-domain" ),
- "base" => "factorian_slides",
- "category" => __( "Factorian", "my-text-domain"),
- "params" => array (
- array(
- "type" => "textfield",
- "heading" => __( "Count", "my-text-domain" ),
- "param_name" => "count",
- "value" => __( "3", "my-text-domain" ),
- "description" => __( "Select number of slider you want to show.", "my-text-domain" )
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Select Slide", "my-text-domain" ),
- "param_name" => "slide_id",
- "value" => factorian_toolkit_get_slide_as_list (),
- "description" => __( "Select the slide you want to show", "my-text-domain" ),
- "dependency" => array(
- "element" => "count",
- "value" => "1",
- ),
- ),
- array(
- "type" => "textfield",
- "heading" => __( "Slider height", "my-text-domain" ),
- "param_name" => "slider_height",
- "std" => __( "730", "my-text-domain" ),
- "description" => __( "Type the height in number", "my-text-domain" )
- ),
- array(
- "type" => "dropdown",
- "heading" => __( "Enable loop?", "my-text-domain" ),
- "param_name" => "loop",
- "std" => __( "true", "my-text-domain" ),
- "value" => array(
- 'Yes' => 'true',
- 'No' => 'false',
- ),
- "description" => __( "Want to enable loop of your slides?", "my-text-domain" ),
- "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?", "my-text-domain" ),
- "param_name" => "autoplay",
- "std" => __( "false", "my-text-domain" ),
- "value" => array(
- 'Yes' => 'true',
- 'No' => 'false',
- ),
- "description" => __( "Want to enable autoplay?", "my-text-domain" ),
- "dependency" => array(
- "element" => "count",
- "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
- ),
- ),
- array(
- "type" => "textfield",
- "heading" => __( "Slide timeout?", "my-text-domain" ),
- "param_name" => "autoplayTimeout",
- "value" => __( "5000", "my-text-domain" ),
- "description" => __( "How much time a slide should be visible?", "my-text-domain" ),
- "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 button?", "my-text-domain" ),
- "param_name" => "nav",
- "std" => __( "true", "my-text-domain" ),
- "value" => array(
- 'Yes' => 'true',
- 'No' => 'false',
- ),
- "description" => __( "Want to show navigation buttons?", "my-text-domain" ),
- "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?", "my-text-domain" ),
- "param_name" => "dots",
- "std" => __( "true", "my-text-domain" ),
- "value" => array(
- 'Yes' => 'true',
- 'No' => 'false',
- ),
- "description" => __( "Want to show navigation dot buttons?", "my-text-domain" ),
- "dependency" => array(
- "element" => "count",
- "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
- ),
- ),
- )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement