Advertisement
SMSabuj

vc-addon.php

Apr 6th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.66 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.     vc_map( array(
  5.           "name" => __( "Factorian Slider", "my-text-domain" ),
  6.           "base" => "factorian_slides",
  7.           "category" => __( "Factorian", "my-text-domain"),
  8.           "params" => array(
  9.              array(
  10.                 "type" => "textfield",
  11.                 "heading" => __( "Count", "my-text-domain" ),
  12.                 "param_name" => "count",
  13.                 "value" => __( "3", "my-text-domain" ),
  14.                 "description" => __( "Select Slide Count. If you want to show unlimited slide, type -1.", "my-text-domain" )
  15.              ),
  16.              array(
  17.                 "type" => "dropdown",
  18.                 "heading" => __( "Select Slide", "my-text-domain" ),
  19.                 "param_name" => "slider_id",
  20.                 "value" => factorian_toolkit_get_slide_as_list(),
  21.                 "description" => __( "", "my-text-domain" ),
  22.                 "dependency"   => array(
  23.                             "element" => "count",
  24.                             "value" => array("1"),
  25.                             )
  26.              ),
  27.              array(
  28.                 "type" => "textfield",
  29.                 "heading" => __( "Slider Height", "my-text-domain" ),
  30.                 "param_name" => "height",
  31.                 "std" => __( "590", "my-text-domain" ),
  32.                 "description" => __( "Type slider height in px. Numbers only.", "my-text-domain" )
  33.              ),
  34.              array(
  35.                 "type" => "dropdown",
  36.                 "heading" => __( "Enable Loop?", "my-text-domain" ),
  37.                 "param_name" => "loop",
  38.                 "std" => __( "true", "my-text-domain" ),
  39.                 "value" => array(
  40.                                 "yes" => "true",
  41.                                 "no" => "false",
  42.                             ),
  43.                 "description" => __( "", "my-text-domain" ),
  44.                 "dependency"   => array(
  45.                             "element" => "count",
  46.                             "value" => array("2","3","4","5","6","7","8","9","10","11","12","13","14","15"),
  47.                             )
  48.              ),
  49.              array(
  50.                 "type" => "dropdown",
  51.                 "heading" => __( "Enable Autoplay", "my-text-domain" ),
  52.                 "param_name" => "autoplay",
  53.                 "std" => __( "true", "my-text-domain" ),
  54.                 "value" => array(
  55.                                 "yes" => "true",
  56.                                 "no" => "false",
  57.                             ),
  58.                 "description" => __( "", "my-text-domain" ),
  59.                 "dependency"   => array(
  60.                             "element" => "count",
  61.                             "value" => array("2","3","4","5","6","7","8","9","10","11","12","13","14","15"),
  62.                             )
  63.              ),
  64.              array(
  65.                 "type" => "dropdown",
  66.                 "heading" => __( "Slide Timeout", "my-text-domain" ),
  67.                 "param_name" => "autoplayTimeout",
  68.                 "std" => __( "5000", "my-text-domain" ),
  69.                 "value" => array(
  70.                                 "1 second" => "1000",
  71.                                 "2 seconds" => "2000",
  72.                                 "3 seconds" => "3000",
  73.                                 "4 seconds" => "4000",
  74.                                 "5 seconds" => "5000",
  75.                                 "6 seconds" => "6000",
  76.                                 "7 seconds" => "7000",
  77.                                 "8 seconds" => "8000",
  78.                                 "9 seconds" => "9000",
  79.                                 "10 seconds" => "10000",
  80.                                 "11 seconds" => "11000",
  81.                                 "12 seconds" => "12000",
  82.                                 "13 seconds" => "13000",
  83.                                 "14 seconds" => "14000",
  84.                                 "15 seconds" => "15000",
  85.                             ),
  86.                 "description" => __( "", "my-text-domain" ),
  87.                 "dependency"   => array(
  88.                             "element" => "count",
  89.                             "value" => array("2","3","4","5","6","7","8","9","10","11","12","13","14","15"),
  90.                             )
  91.              ),
  92.              array(
  93.                 "type" => "dropdown",
  94.                 "heading" => __( "Enable Navigation Icon?", "my-text-domain" ),
  95.                 "param_name" => "nav",
  96.                 "std" => __( "true", "my-text-domain" ),
  97.                 "value" => array(
  98.                                 "yes" => "true",
  99.                                 "no" => "false",
  100.                             ),
  101.                 "description" => __( "", "my-text-domain" ),
  102.                 "dependency"   => array(
  103.                             "element" => "count",
  104.                             "value" => array("2","3","4","5","6","7","8","9","10","11","12","13","14","15"),
  105.                             )
  106.              ),
  107.              array(
  108.                 "type" => "dropdown",
  109.                 "heading" => __( "Enable Dots?", "my-text-domain" ),
  110.                 "param_name" => "dots",
  111.                 "std" => __( "true", "my-text-domain" ),
  112.                 "value" => array(
  113.                                 "yes" => "true",
  114.                                 "no" => "false",
  115.                             ),
  116.                 "description" => __( "", "my-text-domain" ),
  117.                 "dependency"   => array(
  118.                             "element" => "count",
  119.                             "value" => array("2","3","4","5","6","7","8","9","10","11","12","13","14","15"),
  120.                             )
  121.              )
  122.           )
  123.        ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement