Advertisement
urosevic

Master Slider Visual Composer v4.6 compatibility fix

Aug 5th, 2015
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.82 KB | None | 0 0
  1. <?php
  2. /**
  3.  * ---------------------------------------------------------------------------*
  4.  * Compatibility for Visual Composer Plugin
  5.  * @package Master Slider
  6.  * @file /master-slider/includes/lib/vcomposer.php
  7.  * ----------------------------------------------------------------------------
  8.  */
  9.  
  10. if ( defined( 'WPB_VC_VERSION' ) ) {
  11.  
  12.     wpb_map(
  13.         array(
  14.                 'name'        => __( 'Master Slider', MSWP_TEXT_DOMAIN ),
  15.                 'base'        => 'masterslider_pb',
  16.                 'class'       => '',
  17.                 'controls'    => 'full',
  18.                 'icon'        => 'icon-vc-msslider-el',
  19.                 'category'    => __( 'Content', MSWP_TEXT_DOMAIN ),
  20.                 'description' => __( 'Add Master Slider', MSWP_TEXT_DOMAIN ),
  21.  
  22.                 'params' => array(
  23.                         array(
  24.                             'type'        => 'textfield',
  25.                             'heading'     => __( 'Title ', MSWP_TEXT_DOMAIN ),
  26.                             'param_name'  => 'title',
  27.                             'value'       => '',
  28.                             'description' => __( 'What text use as slider title. Leave blank if no title is needed', MSWP_TEXT_DOMAIN ),
  29.                         ),
  30.                         array(
  31.                             'type'        => 'dropdown',
  32.                             'admin_label' => true,
  33.                             'heading'     => __( 'Master Slider', MSWP_TEXT_DOMAIN ),
  34.                             'param_name'  => 'id',
  35.                             'value'       => get_masterslider_names( false ),
  36.                             'std'         => '0',
  37.                             'description' => __( 'Select slider from list', MSWP_TEXT_DOMAIN ),
  38.                         ),
  39.                         array(
  40.                             'type'        => 'textfield',
  41.                             'heading'     => __( 'Extra CSS Class Name', MSWP_TEXT_DOMAIN ),
  42.                             'param_name'  => 'class',
  43.                             'value'       => '',
  44.                             'description' => __( 'If you wish to style particular element differently, then use this field to add a class name and then refer to it in your css file.', MSWP_TEXT_DOMAIN ),
  45.                         ),
  46.                 ),
  47.         )
  48.     );
  49.  
  50. }
  51.  
  52. /*----------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement