Advertisement
webrur

Class 13

Apr 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. <?php
  2.  
  3. vc_map( array(
  4. "name" => __( "Factorian Slider", "my-text-domain" ),
  5. "base" => "factorian_slides",
  6. "category" => __( "Factorian", "my-text-domain"),
  7. "params" => array (
  8.  
  9. array(
  10. "type" => "textfield",
  11. "heading" => __( "Count", "my-text-domain" ),
  12. "param_name" => "count",
  13. "value" => __( "3", "my-text-domain" ),
  14. "description" => __( "Select number of slider you want to show.", "my-text-domain" )
  15. ),
  16.  
  17. array(
  18. "type" => "dropdown",
  19. "heading" => __( "Select Slide", "my-text-domain" ),
  20. "param_name" => "slide_id",
  21. "value" => factorian_toolkit_get_slide_as_list (),
  22. "description" => __( "Select the slide you want to show", "my-text-domain" ),
  23. "dependency" => array(
  24. "element" => "count",
  25. "value" => "1",
  26. ),
  27. ),
  28.  
  29. array(
  30. "type" => "textfield",
  31. "heading" => __( "Slider height", "my-text-domain" ),
  32. "param_name" => "slider_height",
  33. "std" => __( "730", "my-text-domain" ),
  34. "description" => __( "Type the height in number", "my-text-domain" )
  35. ),
  36.  
  37. array(
  38. "type" => "dropdown",
  39. "heading" => __( "Enable loop?", "my-text-domain" ),
  40. "param_name" => "loop",
  41. "std" => __( "true", "my-text-domain" ),
  42. "value" => array(
  43. 'Yes' => 'true',
  44. 'No' => 'false',
  45. ),
  46. "description" => __( "Want to enable loop of your slides?", "my-text-domain" ),
  47. "dependency" => array(
  48. "element" => "count",
  49. "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
  50. ),
  51. ),
  52.  
  53. array(
  54. "type" => "dropdown",
  55. "heading" => __( "Enable autoplay?", "my-text-domain" ),
  56. "param_name" => "autoplay",
  57. "std" => __( "false", "my-text-domain" ),
  58. "value" => array(
  59. 'Yes' => 'true',
  60. 'No' => 'false',
  61. ),
  62. "description" => __( "Want to enable autoplay?", "my-text-domain" ),
  63. "dependency" => array(
  64. "element" => "count",
  65. "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
  66. ),
  67. ),
  68.  
  69. array(
  70. "type" => "textfield",
  71. "heading" => __( "Slide timeout?", "my-text-domain" ),
  72. "param_name" => "autoplayTimeout",
  73. "value" => __( "5000", "my-text-domain" ),
  74. "description" => __( "How much time a slide should be visible?", "my-text-domain" ),
  75. "dependency" => array(
  76. "element" => "count",
  77. "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
  78. ),
  79. ),
  80.  
  81. array(
  82. "type" => "dropdown",
  83. "heading" => __( "Enable navigation button?", "my-text-domain" ),
  84. "param_name" => "nav",
  85. "std" => __( "true", "my-text-domain" ),
  86. "value" => array(
  87. 'Yes' => 'true',
  88. 'No' => 'false',
  89. ),
  90. "description" => __( "Want to show navigation buttons?", "my-text-domain" ),
  91. "dependency" => array(
  92. "element" => "count",
  93. "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
  94. ),
  95. ),
  96.  
  97. array(
  98. "type" => "dropdown",
  99. "heading" => __( "Enable dots?", "my-text-domain" ),
  100. "param_name" => "dots",
  101. "std" => __( "true", "my-text-domain" ),
  102. "value" => array(
  103. 'Yes' => 'true',
  104. 'No' => 'false',
  105. ),
  106. "description" => __( "Want to show navigation dot buttons?", "my-text-domain" ),
  107. "dependency" => array(
  108. "element" => "count",
  109. "value" => array( "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ),
  110. ),
  111. ),
  112. )
  113. )
  114. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement