← All changes
|
admin/views/configs/generator/class-sps-carousel.php
+99
-152
2.4.21
→
2.2.10
View file →
| @@ -6,14 +6,13 @@ | ||
| 6 | 6 | * @subpackage Smart_Post_Show/admin |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | - die; | |
| 11 | -} // Cannot access pages directly. | |
| 10 | + die; } // Cannot access pages directly. | |
| 12 | 11 | |
| 13 | -/** | |
| 14 | - * The Carousel building class. | |
| 15 | - */ | |
| 12 | + /** | |
| 13 | + * The Carousel building class. | |
| 14 | + */ | |
| 16 | 15 | class SPS_Carousel { |
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Carousel section metabox. |
| @@ -24,24 +23,24 @@ | ||
| 24 | 23 | public static function section( $prefix ) { |
| 25 | 24 | SP_PC::createSection( |
| 26 | 25 | $prefix, |
| 27 | 26 | array( |
| 28 | - 'title' => __( 'Carousel Controls', 'post-carousel' ), | |
| 27 | + 'title' => __( 'Carousel Controls', 'smart-post-show' ), | |
| 29 | 28 | 'icon' => 'fa fa-sliders', |
| 30 | 29 | 'fields' => array( |
| 31 | 30 | array( |
| 32 | 31 | 'id' => 'pcp_carousel_mode', |
| 33 | 32 | 'type' => 'button_set', |
| 34 | - 'title' => __( 'Carousel Mode', 'post-carousel' ), | |
| 35 | - 'subtitle' => __( 'Choose a mode for the carousel.', 'post-carousel' ), | |
| 33 | + 'title' => __( 'Carousel Mode', 'smart-post-show' ), | |
| 34 | + 'subtitle' => __( 'Choose a mode for the carousel.', 'smart-post-show' ), | |
| 36 | 35 | 'options' => array( |
| 37 | - 'standard' => __( 'Standard', 'post-carousel' ), | |
| 36 | + 'standard' => __( 'Standard', 'smart-post-show' ), | |
| 38 | 37 | 'center' => array( |
| 39 | - 'text' => __( 'Center', 'post-carousel' ), | |
| 38 | + 'text' => __( 'Center', 'smart-post-show' ), | |
| 40 | 39 | 'pro_only' => true, |
| 41 | 40 | ), |
| 42 | 41 | 'ticker' => array( |
| 43 | - 'text' => __( 'Ticker', 'post-carousel' ), | |
| 42 | + 'text' => __( 'Ticker', 'smart-post-show' ), | |
| 44 | 43 | 'pro_only' => true, |
| 45 | 44 | ), |
| 46 | 45 | ), |
| 47 | 46 | 'default' => 'standard', |
| @@ -48,10 +47,10 @@ | ||
| 48 | 47 | ), |
| 49 | 48 | array( |
| 50 | 49 | 'id' => 'pcp_carousel_speed', |
| 51 | 50 | 'type' => 'spinner', |
| 52 | - 'title' => __( 'Carousel Speed', 'post-carousel' ), | |
| 53 | - 'subtitle' => __( 'Set carousel speed in millisecond.', 'post-carousel' ), | |
| 51 | + 'title' => __( 'Carousel Speed', 'smart-post-show' ), | |
| 52 | + 'subtitle' => __( 'Set carousel speed in millisecond.', 'smart-post-show' ), | |
| 54 | 53 | 'default' => '600', |
| 55 | 54 | 'min' => 0, |
| 56 | 55 | 'max' => 20000, |
| 57 | 56 | 'step' => 100, |
| @@ -57,22 +56,19 @@ | ||
| 57 | 56 | 'step' => 100, |
| 58 | 57 | 'unit' => 'ms', |
| 59 | 58 | ), |
| 60 | 59 | array( |
| 61 | - 'id' => 'pcp_autoplay', | |
| 62 | - 'type' => 'switcher', | |
| 63 | - 'title' => __( 'AutoPlay', 'post-carousel' ), | |
| 64 | - 'subtitle' => __( 'Enable/Disable carousel autoplay.', 'post-carousel' ), | |
| 65 | - 'default' => true, | |
| 66 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 67 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 68 | - 'text_width' => 94, | |
| 60 | + 'id' => 'pcp_autoplay', | |
| 61 | + 'type' => 'switcher', | |
| 62 | + 'title' => __( 'AutoPlay', 'smart-post-show' ), | |
| 63 | + 'subtitle' => __( 'On/Off carousel autoplay.', 'smart-post-show' ), | |
| 64 | + 'default' => true, | |
| 69 | 65 | ), |
| 70 | 66 | array( |
| 71 | 67 | 'id' => 'pcp_autoplay_speed', |
| 72 | 68 | 'type' => 'spinner', |
| 73 | - 'title' => __( 'AutoPlay Speed', 'post-carousel' ), | |
| 74 | - 'subtitle' => __( 'Set autoplay speed in millisecond.', 'post-carousel' ), | |
| 69 | + 'title' => __( 'AutoPlay Speed', 'smart-post-show' ), | |
| 70 | + 'subtitle' => __( 'Set autoplay speed in millisecond.', 'smart-post-show' ), | |
| 75 | 71 | 'default' => '2000', |
| 76 | 72 | 'min' => 0, |
| 77 | 73 | 'max' => 10000, |
| 78 | 74 | 'step' => 100, |
| @@ -79,47 +75,38 @@ | ||
| 79 | 75 | 'unit' => 'ms', |
| 80 | 76 | 'dependency' => array( 'pcp_autoplay', '==', true ), |
| 81 | 77 | ), |
| 82 | 78 | array( |
| 83 | - 'id' => 'pcp_pause_hover', | |
| 84 | - 'type' => 'switcher', | |
| 85 | - 'title' => __( 'Pause on Hover', 'post-carousel' ), | |
| 86 | - 'subtitle' => __( 'Enable/Disable carousel stop on hover.', 'post-carousel' ), | |
| 87 | - 'default' => true, | |
| 88 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 89 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 90 | - 'text_width' => 94, | |
| 79 | + 'id' => 'pcp_pause_hover', | |
| 80 | + 'type' => 'switcher', | |
| 81 | + 'title' => __( 'Pause on Hover', 'smart-post-show' ), | |
| 82 | + 'subtitle' => __( 'On/Off carousel stop on hover.', 'smart-post-show' ), | |
| 83 | + 'default' => true, | |
| 91 | 84 | 'dependency' => array( 'pcp_autoplay', '==', true ), |
| 92 | 85 | |
| 93 | 86 | ), |
| 94 | 87 | array( |
| 95 | - 'id' => 'pcp_infinite_loop', | |
| 96 | - 'type' => 'switcher', | |
| 97 | - 'title' => __( 'Infinite Loop', 'post-carousel' ), | |
| 98 | - 'subtitle' => __( 'Enable/Disable carousel infinite loop.', 'post-carousel' ), | |
| 99 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 100 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 101 | - 'text_width' => 94, | |
| 102 | - 'default' => true, | |
| 88 | + 'id' => 'pcp_infinite_loop', | |
| 89 | + 'type' => 'switcher', | |
| 90 | + 'title' => __( 'Infinite Loop', 'smart-post-show' ), | |
| 91 | + 'subtitle' => __( 'On/Off carousel infinite loop.', 'smart-post-show' ), | |
| 92 | + 'default' => true, | |
| 103 | 93 | ), |
| 104 | 94 | array( |
| 105 | - 'id' => 'pcp_lazy_load', | |
| 106 | - 'type' => 'switcher', | |
| 107 | - 'title' => __( 'Lazy Load', 'post-carousel' ), | |
| 108 | - 'subtitle' => __( 'Enable/Disable lazy load.', 'post-carousel' ), | |
| 109 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 110 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 111 | - 'text_width' => 94, | |
| 112 | - 'default' => true, | |
| 95 | + 'id' => 'pcp_lazy_load', | |
| 96 | + 'type' => 'switcher', | |
| 97 | + 'title' => __( 'Lazy Load', 'smart-post-show' ), | |
| 98 | + 'subtitle' => __( 'On/Off lazy load.', 'smart-post-show' ), | |
| 99 | + 'default' => true, | |
| 113 | 100 | ), |
| 114 | 101 | array( |
| 115 | 102 | 'id' => 'pcp_carousel_direction', |
| 116 | 103 | 'type' => 'button_set', |
| 117 | - 'title' => __( 'Carousel Direction', 'post-carousel' ), | |
| 118 | - 'subtitle' => __( 'Choose a carousel direction.', 'post-carousel' ), | |
| 104 | + 'title' => __( 'Carousel Direction', 'smart-post-show' ), | |
| 105 | + 'subtitle' => __( 'Choose a carousel direction.', 'smart-post-show' ), | |
| 119 | 106 | 'options' => array( |
| 120 | - 'ltr' => __( 'Right to Left', 'post-carousel' ), | |
| 121 | - 'rtl' => __( 'Left to Right', 'post-carousel' ), | |
| 107 | + 'ltr' => __( 'Right to Left', 'smart-post-show' ), | |
| 108 | + 'rtl' => __( 'Left to Right', 'smart-post-show' ), | |
| 122 | 109 | ), |
| 123 | 110 | 'default' => 'ltr', |
| 124 | 111 | ), |
| 125 | 112 | array( |
| @@ -124,38 +111,23 @@ | ||
| 124 | 111 | ), |
| 125 | 112 | array( |
| 126 | 113 | 'id' => 'pcp_slide_effect', |
| 127 | 114 | 'type' => 'select', |
| 128 | - 'title' => __( 'Transition Effect', 'post-carousel' ), | |
| 129 | - 'subtitle' => __( 'Select a slide transition effect.', 'post-carousel' ), | |
| 130 | - 'help' => __( 'Fade, cube, and flip transition effects work only for the single column view.', 'post-carousel' ), | |
| 115 | + 'title' => __( 'Transition Effect', 'smart-post-show-pro' ), | |
| 116 | + 'subtitle' => __( 'Select a slide transition effect.', 'smart-post-show-pro' ), | |
| 117 | + 'help' => __( 'Fade, cube, and flip transition effects work only for the single column view.', 'smart-post-show-pro' ), | |
| 131 | 118 | 'options' => array( |
| 132 | - 'slide' => __( 'Slide', 'post-carousel' ), | |
| 133 | - 'fade' => __( 'Fade (Pro)', 'post-carousel' ), | |
| 134 | - 'coverflow' => __( 'Coverflow (Pro)', 'post-carousel' ), | |
| 135 | - 'cube' => __( 'Cube (Pro)', 'post-carousel' ), | |
| 136 | - 'flip' => __( 'Flip (Pro)', 'post-carousel' ), | |
| 119 | + 'slide' => __( 'Slide', 'smart-post-show-pro' ), | |
| 120 | + 'fade' => __( 'Fade (Pro)', 'smart-post-show-pro' ), | |
| 121 | + 'coverflow' => __( 'Coverflow (Pro)', 'smart-post-show-pro' ), | |
| 122 | + 'cube' => __( 'Cube (Pro)', 'smart-post-show-pro' ), | |
| 123 | + 'flip' => __( 'Flip (Pro)', 'smart-post-show-pro' ), | |
| 137 | 124 | ), |
| 138 | 125 | 'default' => 'slide', |
| 139 | 126 | ), |
| 140 | 127 | array( |
| 141 | - 'id' => 'pcp_number_of_row', | |
| 142 | - 'type' => 'column', | |
| 143 | - 'class' => 'pcp_only_pro', | |
| 144 | - 'title' => __( 'Row', 'post-carousel' ), | |
| 145 | - 'subtitle' => __( 'Set number of row in different devices for responsive view.', 'post-carousel' ), | |
| 146 | - 'default' => array( | |
| 147 | - 'lg_desktop' => '1', | |
| 148 | - 'desktop' => '1', | |
| 149 | - 'tablet' => '1', | |
| 150 | - 'mobile_landscape' => '1', | |
| 151 | - 'mobile' => '1', | |
| 152 | - ), | |
| 153 | - 'min' => '1', | |
| 154 | - ), | |
| 155 | - array( | |
| 156 | 128 | 'type' => 'subheading', |
| 157 | - 'content' => __( 'Navigation', 'post-carousel' ), | |
| 129 | + 'content' => __( 'Navigation', 'smart-post-show' ), | |
| 158 | 130 | ), |
| 159 | 131 | |
| 160 | 132 | // Navigation Settings. |
| 161 | 133 | array( |
| @@ -160,14 +132,14 @@ | ||
| 160 | 132 | // Navigation Settings. |
| 161 | 133 | array( |
| 162 | 134 | 'id' => 'pcp_navigation', |
| 163 | 135 | 'type' => 'button_set', |
| 164 | - 'title' => __( 'Navigation', 'post-carousel' ), | |
| 165 | - 'subtitle' => __( 'Show/Hide carousel navigation.', 'post-carousel' ), | |
| 136 | + 'title' => __( 'Navigation', 'smart-post-show' ), | |
| 137 | + 'subtitle' => __( 'Show/Hide carousel navigation.', 'smart-post-show' ), | |
| 166 | 138 | 'options' => array( |
| 167 | - 'show' => __( 'Show', 'post-carousel' ), | |
| 168 | - 'hide' => __( 'Hide', 'post-carousel' ), | |
| 169 | - 'hide_on_mobile' => __( 'Hide on Mobile', 'post-carousel' ), | |
| 139 | + 'show' => __( 'Show', 'smart-post-show' ), | |
| 140 | + 'hide' => __( 'Hide', 'smart-post-show' ), | |
| 141 | + 'hide_on_mobile' => __( 'Hide on Mobile', 'smart-post-show' ), | |
| 170 | 142 | ), |
| 171 | 143 | 'default' => 'show', |
| 172 | 144 | ), |
| 173 | 145 | array( |
| @@ -172,25 +144,25 @@ | ||
| 172 | 144 | ), |
| 173 | 145 | array( |
| 174 | 146 | 'id' => 'pcp_nav_colors', |
| 175 | 147 | 'type' => 'color_group', |
| 176 | - 'title' => __( 'Navigation Color', 'post-carousel' ), | |
| 177 | - 'subtitle' => __( 'Set color for the carousel navigation.', 'post-carousel' ), | |
| 148 | + 'title' => __( 'Navigation Color', 'smart-post-show' ), | |
| 149 | + 'subtitle' => __( 'Set color for the carousel navigation.', 'smart-post-show' ), | |
| 178 | 150 | 'options' => array( |
| 179 | - 'color' => __( 'Color', 'post-carousel' ), | |
| 180 | - 'hover-color' => __( 'Hover Color', 'post-carousel' ), | |
| 181 | - 'bg' => __( 'Background', 'post-carousel' ), | |
| 182 | - 'hover-bg' => __( 'Hover Background', 'post-carousel' ), | |
| 183 | - 'border-color' => __( 'Border', 'post-carousel' ), | |
| 184 | - 'hover-border-color' => __( 'Hover Border', 'post-carousel' ), | |
| 151 | + 'color' => __( 'Color', 'smart-post-show' ), | |
| 152 | + 'hover-color' => __( 'Hover Color', 'smart-post-show' ), | |
| 153 | + 'bg' => __( 'Background', 'smart-post-show' ), | |
| 154 | + 'hover-bg' => __( 'Hover Background', 'smart-post-show' ), | |
| 155 | + 'border-color' => __( 'Border', 'smart-post-show' ), | |
| 156 | + 'hover-border-color' => __( 'Hover Border', 'smart-post-show' ), | |
| 185 | 157 | ), |
| 186 | 158 | 'default' => array( |
| 187 | 159 | 'color' => '#aaa', |
| 188 | 160 | 'hover-color' => '#fff', |
| 189 | 161 | 'bg' => '#fff', |
| 190 | - 'hover-bg' => '#D64224', | |
| 162 | + 'hover-bg' => '#e1624b', | |
| 191 | 163 | 'border-color' => '#aaa', |
| 192 | - 'hover-border-color' => '#D64224', | |
| 164 | + 'hover-border-color' => '#e1624b', | |
| 193 | 165 | ), |
| 194 | 166 | 'dependency' => array( 'pcp_navigation', '!=', 'hide' ), |
| 195 | 167 | ), |
| 196 | 168 | |
| @@ -196,19 +168,19 @@ | ||
| 196 | 168 | |
| 197 | 169 | // Pagination Settings. |
| 198 | 170 | array( |
| 199 | 171 | 'type' => 'subheading', |
| 200 | - 'content' => __( 'Pagination', 'post-carousel' ), | |
| 172 | + 'content' => __( 'Pagination', 'smart-post-show' ), | |
| 201 | 173 | ), |
| 202 | 174 | array( |
| 203 | 175 | 'id' => 'pcp_pagination', |
| 204 | 176 | 'type' => 'button_set', |
| 205 | - 'title' => __( 'Pagination', 'post-carousel' ), | |
| 206 | - 'subtitle' => __( 'Show/Hide carousel pagination.', 'post-carousel' ), | |
| 177 | + 'title' => __( 'Pagination', 'smart-post-show' ), | |
| 178 | + 'subtitle' => __( 'Show/Hide carousel pagination.', 'smart-post-show' ), | |
| 207 | 179 | 'options' => array( |
| 208 | - 'show' => __( 'Show', 'post-carousel' ), | |
| 209 | - 'hide' => __( 'Hide', 'post-carousel' ), | |
| 210 | - 'hide_on_mobile' => __( 'Hide on Mobile', 'post-carousel' ), | |
| 180 | + 'show' => __( 'Show', 'smart-post-show' ), | |
| 181 | + 'hide' => __( 'Hide', 'smart-post-show' ), | |
| 182 | + 'hide_on_mobile' => __( 'Hide on Mobile', 'smart-post-show' ), | |
| 211 | 183 | ), |
| 212 | 184 | 'default' => 'show', |
| 213 | 185 | ), |
| 214 | 186 | array( |
| @@ -214,21 +186,21 @@ | ||
| 214 | 186 | array( |
| 215 | 187 | 'id' => 'pcp_pagination_color_set', |
| 216 | 188 | 'type' => 'fieldset', |
| 217 | 189 | 'class' => 'pcp-pagination-color-set', |
| 218 | - 'title' => __( 'Pagination Color', 'post-carousel' ), | |
| 219 | - 'subtitle' => __( 'Set color for the carousel pagination.', 'post-carousel' ), | |
| 190 | + 'title' => __( 'Pagination Color', 'smart-post-show' ), | |
| 191 | + 'subtitle' => __( 'Set color for the carousel pagination.', 'smart-post-show' ), | |
| 220 | 192 | 'fields' => array( |
| 221 | 193 | array( |
| 222 | 194 | 'id' => 'pcp_pagination_color', |
| 223 | 195 | 'type' => 'color_group', |
| 224 | 196 | 'options' => array( |
| 225 | - 'color' => __( 'Color', 'post-carousel' ), | |
| 226 | - 'active-color' => __( 'Active Color', 'post-carousel' ), | |
| 197 | + 'color' => __( 'Color', 'smart-post-show' ), | |
| 198 | + 'active-color' => __( 'Active Color', 'smart-post-show' ), | |
| 227 | 199 | ), |
| 228 | 200 | 'default' => array( |
| 229 | 201 | 'color' => '#cccccc', |
| 230 | - 'active-color' => '#D64224', | |
| 202 | + 'active-color' => '#e1624b', | |
| 231 | 203 | ), |
| 232 | 204 | ), |
| 233 | 205 | ), |
| 234 | 206 | 'dependency' => array( 'pcp_pagination', '!=', 'hide' ), |
| @@ -236,69 +208,44 @@ | ||
| 236 | 208 | |
| 237 | 209 | // Miscellaneous Settings. |
| 238 | 210 | array( |
| 239 | 211 | 'type' => 'subheading', |
| 240 | - 'content' => __( 'Miscellaneous', 'post-carousel' ), | |
| 212 | + 'content' => __( 'Miscellaneous', 'smart-post-show' ), | |
| 241 | 213 | ), |
| 242 | 214 | array( |
| 243 | - 'id' => 'pcp_adaptive_height', | |
| 244 | - 'type' => 'switcher', | |
| 245 | - 'title' => __( 'Adaptive Carousel Height', 'post-carousel' ), | |
| 246 | - 'subtitle' => __( 'Dynamically adjust post carousel height based on each slide\'s height.', 'post-carousel' ), | |
| 247 | - 'default' => false, | |
| 248 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 249 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 250 | - 'text_width' => 94, | |
| 215 | + 'id' => 'pcp_adaptive_height', | |
| 216 | + 'type' => 'switcher', | |
| 217 | + 'title' => __( 'Adaptive Carousel Height', 'smart-post-show' ), | |
| 218 | + 'subtitle' => __( 'Dynamically adjust post carousel height based on each slide\'s height.', 'smart-post-show' ), | |
| 219 | + 'default' => false, | |
| 251 | 220 | ), |
| 252 | 221 | array( |
| 253 | - 'id' => 'pcp_accessibility', | |
| 254 | - 'type' => 'switcher', | |
| 255 | - 'title' => __( 'Tab and Key Navigation', 'post-carousel' ), | |
| 256 | - 'subtitle' => __( 'Enable/Disable carousel scroll with tab and keyboard.', 'post-carousel' ), | |
| 257 | - 'default' => true, | |
| 258 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 259 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 260 | - 'text_width' => 94, | |
| 222 | + 'id' => 'pcp_accessibility', | |
| 223 | + 'type' => 'switcher', | |
| 224 | + 'title' => __( 'Tab and Key Navigation', 'smart-post-show' ), | |
| 225 | + 'subtitle' => __( 'Enable/Disable carousel scroll with tab and keyboard.', 'smart-post-show' ), | |
| 226 | + 'default' => true, | |
| 261 | 227 | ), |
| 262 | 228 | array( |
| 263 | - 'id' => 'touch_swipe', | |
| 264 | - 'type' => 'switcher', | |
| 265 | - 'title' => __( 'Touch Swipe', 'post-carousel' ), | |
| 266 | - 'subtitle' => __( 'Enable/Disable touch swipe mode.', 'post-carousel' ), | |
| 267 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 268 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 269 | - 'text_width' => 94, | |
| 270 | - 'default' => true, | |
| 229 | + 'id' => 'touch_swipe', | |
| 230 | + 'type' => 'switcher', | |
| 231 | + 'title' => __( 'Touch Swipe', 'smart-post-show' ), | |
| 232 | + 'subtitle' => __( 'On/Off touch swipe mode.', 'smart-post-show' ), | |
| 233 | + 'default' => true, | |
| 271 | 234 | ), |
| 272 | 235 | array( |
| 273 | - 'id' => 'slider_draggable', | |
| 274 | - 'type' => 'switcher', | |
| 275 | - 'title' => __( 'Mouse Draggable', 'post-carousel' ), | |
| 276 | - 'subtitle' => __( 'Enable/Disable mouse draggable mode.', 'post-carousel' ), | |
| 277 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 278 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 279 | - 'text_width' => 94, | |
| 280 | - 'default' => true, | |
| 236 | + 'id' => 'slider_draggable', | |
| 237 | + 'type' => 'switcher', | |
| 238 | + 'title' => __( 'Mouse Draggable', 'smart-post-show' ), | |
| 239 | + 'subtitle' => __( 'On/Off mouse draggable mode.', 'smart-post-show' ), | |
| 240 | + 'default' => true, | |
| 281 | 241 | ), |
| 282 | 242 | array( |
| 283 | - 'id' => 'free_mode', | |
| 284 | - 'type' => 'switcher', | |
| 285 | - 'title' => __( 'Free Mode', 'post-carousel' ), | |
| 286 | - 'subtitle' => __( 'Enable/Disable free mode.', 'post-carousel' ), | |
| 287 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 288 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 289 | - 'text_width' => 94, | |
| 290 | - 'default' => false, | |
| 291 | - ), | |
| 292 | - array( | |
| 293 | - 'id' => 'slider_mouse_wheel', | |
| 294 | - 'type' => 'switcher', | |
| 295 | - 'title' => __( 'Mouse Wheel', 'post-carousel' ), | |
| 296 | - 'subtitle' => __( 'Enable/Disable mouse wheel mode.', 'post-carousel' ), | |
| 297 | - 'text_on' => __( 'Enabled', 'post-carousel' ), | |
| 298 | - 'text_off' => __( 'Disabled', 'post-carousel' ), | |
| 299 | - 'text_width' => 94, | |
| 300 | - 'default' => false, | |
| 243 | + 'id' => 'slider_mouse_wheel', | |
| 244 | + 'type' => 'switcher', | |
| 245 | + 'title' => __( 'Mousewheel Control', 'smart-post-show' ), | |
| 246 | + 'subtitle' => __( 'On/Off mousewheel control.', 'smart-post-show' ), | |
| 247 | + 'default' => false, | |
| 301 | 248 | ), |
| 302 | 249 | ), // End of fields array. |
| 303 | 250 | ) |
| 304 | 251 | ); // Carousel Controls section end. |