Advertisement
asif90

Slider addon part-2

Jun 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. vc_map( array(
  5. "name" => __( "SEO Slider", "seo-peencik" ),
  6. "base" => "carosaul",
  7. "category" => __( "SEO", "seo-peencik"),
  8. "params" => array(
  9. array(
  10. "type" => "textfield",
  11. "heading" => __( "Count Slider", "seo-peencik" ),
  12. "param_name" => "count",
  13. "value" => __( "1", "seo-peencik" ), //value of attribute
  14. "description" => __( "Input max number of slider you want to view. -1 is unlimited view.", "seo-peencik" )
  15. ),
  16.  
  17. array(
  18. "type" => "dropdown",
  19. "heading" => __( "Select slider", "seo-peencik" ),
  20. "param_name" => "slider_id", //attribute name
  21. "value" => seo_slider_list(),
  22. "description" => __( "Select slider from list ", "seo-peencik" ),
  23. ),
  24. array(
  25. "type" => "textfield",
  26. "heading" => __( "Slider height", "seo-peencik" ),
  27. "param_name" => "slider_height", //attribute name
  28. "std" => __( "650", "seo-peencik" ), //value of attribute
  29. "description" => __( "Input slider height", "seo-peencik" ),
  30. ),
  31. array(
  32. "type" => "textfield",
  33. "heading" => __( "Slider item", "seo-peencik" ),
  34. "param_name" => "slider_item", //attribute name
  35. "value" => __( "1", "seo-peencik" ), //value of attribute
  36. "description" => __( "Input to show slider per page", "seo-peencik" ),
  37. array(
  38. "type" => "dropdown",
  39. "heading" => __( "Slider loop", "seo-peencik" ),
  40. "param_name" => "slider_loop", //attribute name
  41. "std" => __( "true", "seo-peencik" ),
  42. "value" => array(
  43. 'Yes' => 'true',
  44. 'No' => 'false',
  45. ),
  46. "description" => __( "Select yes or no for looping ", "seo-peencik" ),
  47. ),
  48.  
  49. array(
  50. "type" => "dropdown",
  51. "heading" => __( "Slider Autoplay", "seo-peencik" ),
  52. "param_name" => "slider_autoplay", //attribute name
  53. "std" => __( "true", "seo-peencik" ),
  54. "value" => array(
  55. 'Yes' => 'true',
  56. 'No' => 'false',
  57. ),
  58. "description" => __( "Select yes or no for autoplay ", "seo-peencik" ),
  59. ),
  60.  
  61. array(
  62. "type" => "dropdown",
  63. "heading" => __( "Slider Autoplay Timeout", "seo-peencik" ),
  64. "param_name" => "slider_timeout", //attribute name
  65. "std" => __( "5000", "seo-peencik" ),
  66. "value" => array(
  67. '1 second' => '1000',
  68. '2 second' => '2000',
  69. '3 second' => '3000',
  70. '4 second' => '4000',
  71. '5 second' => '5000',
  72. '6 second' => '6000',
  73. '7 second' => '7000',
  74. '8 second' => '8000',
  75. '9 second' => '9000',
  76. '10 second' => '10000',
  77. ),
  78. "description" => __( "Select yes or no for autoplay timeout ", "seo-peencik" ),
  79. ),
  80. array(
  81. "type" => "dropdown",
  82. "heading" => __( "Slider nav", "seo-peencik" ),
  83. "param_name" => "slider_nav", //attribute name
  84. "std" => __( "true", "seo-peencik" ),
  85. "value" => array(
  86. 'Yes' => 'true',
  87. 'No' => 'false',
  88. ),
  89. "description" => __( "Select yes or no ", "seo-peencik" ),
  90. ),
  91. array(
  92. "type" => "dropdown",
  93. "heading" => __( "Slider dots", "seo-peencik" ),
  94. "param_name" => "slider_dots", //attribute name
  95. "std" => __( "true", "seo-peencik" ),
  96. "value" => array(
  97. 'Yes' => 'true',
  98. 'No' => 'false',
  99. ),
  100. "description" => __( "Select yes or no ", "seo-peencik" ),
  101. ),
  102. ),
  103. )
  104. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement