PluginProbe
Visual Slider / trunk
Visual Slider vtrunk
visual-slider / admin / slide-options.php

slide-options.php in Visual Slider trunk, at admin/slide-options.php

130 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5 if( ! function_exists( 'vs_slide_options' ) ) {
6 add_filter('vs_slide_options', 'vs_slide_options');
7 function vs_slide_options( $option ) {
8 $option = array();
9
10 $option[]= array(
11 "name" => __('Slide Title','visual-slider'),
12 "id" => "title",
13 "width" => "100%",
14 "type" => "text",
15 );
16
17 $option[]= array(
18 "name" => __('Link','visual-slider'),
19 "id" => "link",
20 "width" => "100%",
21 "warp_width" => "100%",
22
23 "placeholder" => "http://",
24 "type" => "text",
25 );
26
27 $option[]= array(
28 "name" => __('Background color','visual-slider'),
29 "id" => "background_color",
30 "group" => __('Background','visual-slider'),
31 "type" => "multi_options",
32 "options" => array(
33 array(
34 "id" => "first",
35 "type" => "color_rgba",
36 ),
37 array(
38 "id" => "second",
39 "type" => "color_rgba",
40 ),
41 array(
42 "id" => "third",
43 "type" => "color_rgba",
44 ),
45 array(
46 "id" => "orientation",
47 "type" => "select",
48 "options" => array(
49 "horizontal" => esc_html__('','visual-slider'),
50 "vertical" => esc_html__('','visual-slider'),
51 "diagonal" => esc_html__('','visual-slider'),
52 "diagonal-bottom" => esc_html__('','visual-slider'),
53 "radial" => esc_html__('','visual-slider'),
54
55 ),
56 ),
57
58 ),
59 );
60
61
62 $option[]= array(
63 "name" => __('Background Image','visual-slider'),
64 "id" => "background_image",
65 "width" => "100%",
66
67 "group" => __('Background','visual-slider'),
68 "type" => "image",
69 );
70
71
72 $option[]= array(
73 "responsive" => "desktop",
74 "name" => __('Background Image Position','visual-slider'),
75 "id" => "background_image_position",
76 "group" => __('Background','visual-slider'),
77 "type" => "select",
78 "options" => vs_array_options('image_position')
79 );
80
81
82 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_tablet', FILTER_VALIDATE_BOOLEAN )))){
83
84 $option[]= array(
85 "responsive" => "tablet",
86 "name" => __('Responsive on Tablet','visual-slider'),
87 "group" => __('Background','visual-slider'),
88 "id" => "tablet_background_heading",
89 "type" => "heading",
90 );
91 $option[]= array(
92 "responsive" => "tablet",
93 "name" => __('Background Image Position on Tablet','visual-slider'),
94 "id" => "tablet_background_image_position",
95 "group" => __('Background','visual-slider'),
96 "type" => "select",
97 "options" => vs_array_options('image_position')
98 );
99
100
101
102 }
103 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_mobile', FILTER_VALIDATE_BOOLEAN )))){
104
105 $option[]= array(
106 "responsive" => "mobile",
107 "name" => __('Responsive on Mobile','visual-slider'),
108 "group" => __('Background','visual-slider'),
109 "id" => "mobile_background_heading",
110 "type" => "heading",
111 );
112 $option[]= array(
113 "responsive" => "mobile",
114 "name" => __('Background Image Position on Mobile','visual-slider'),
115 "id" => "mobile_background_image_position",
116 "group" => __('Background','visual-slider'),
117 "type" => "select",
118 "options" => vs_array_options('image_position')
119 );
120
121
122 }
123
124
125
126
127
128 return $option;
129 }
130 }