slider.php (2991B)
1 <?php 2 /** 3 * Redux Framework slider config. 4 * For full documentation, please visit: http://devs.redux.io/ 5 * 6 * @package Redux Framework 7 */ 8 9 defined( 'ABSPATH' ) || exit; 10 11 Redux::set_section( 12 $opt_name, 13 array( 14 'title' => esc_html__( 'Slider', 'your-textdomain-here' ), 15 'id' => 'slider_spinner-slider', 16 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/slider.html" target="_blank">https://devs.redux.io/core-fields/slider.html</a>', 17 'fields' => array( 18 array( 19 'id' => 'opt-slider-label', 20 'type' => 'slider', 21 'title' => esc_html__( 'Slider Example 1', 'your-textdomain-here' ), 22 'subtitle' => esc_html__( 'This slider displays the value as a label.', 'your-textdomain-here' ), 23 'desc' => esc_html__( 'Slider description. Min: 1, max: 500, step: 1, default value: 250', 'your-textdomain-here' ), 24 'default' => 250, 25 'min' => 1, 26 'step' => 1, 27 'max' => 500, 28 'display_value' => 'label', 29 ), 30 array( 31 'id' => 'opt-slider-text', 32 'type' => 'slider', 33 'title' => esc_html__( 'Slider Example 2 with Steps (5)', 'your-textdomain-here' ), 34 'subtitle' => esc_html__( 'This example displays the value in a text box', 'your-textdomain-here' ), 35 'desc' => esc_html__( 'Slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ), 36 'default' => 75, 37 'min' => 0, 38 'step' => 5, 39 'max' => 300, 40 'display_value' => 'text', 41 ), 42 array( 43 'id' => 'opt-slider-select', 44 'type' => 'slider', 45 'title' => esc_html__( 'Slider Example 3 with two sliders', 'your-textdomain-here' ), 46 'subtitle' => esc_html__( 'This example displays the values in select boxes', 'your-textdomain-here' ), 47 'desc' => esc_html__( 'Slider description. Min: 0, max: 500, step: 5, slider 1 default value: 100, slider 2 default value: 300', 'your-textdomain-here' ), 48 'default' => array( 49 1 => 100, 50 2 => 300, 51 ), 52 'min' => 0, 53 'step' => 5, 54 'max' => '500', 55 'display_value' => 'select', 56 'handles' => 2, 57 ), 58 array( 59 'id' => 'opt-slider-float', 60 'type' => 'slider', 61 'title' => esc_html__( 'Slider Example 4 with float values', 'your-textdomain-here' ), 62 'subtitle' => esc_html__( 'This example displays float values', 'your-textdomain-here' ), 63 'desc' => esc_html__( 'Slider description. Min: 0, max: 1, step: .1, default value: .5', 'your-textdomain-here' ), 64 'default' => .5, 65 'min' => 0, 66 'step' => .1, 67 'max' => 1, 68 'resolution' => 0.1, 69 'display_value' => 'text', 70 ), 71 ), 72 'subsection' => true, 73 ) 74 );