templates
2 years ago
Admin_Settings.php
2 years ago
Assets.php
2 years ago
Module_Settings.php
2 years ago
notices.php
2 years ago
Module_Settings.php
392 lines
| 1 | <?php |
| 2 | namespace SPEL\includes\Admin; |
| 3 | |
| 4 | // Exit if accessed directly |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | class Module_Settings { |
| 10 | |
| 11 | public static function get_widget_settings() { |
| 12 | |
| 13 | $settings_fields = [ |
| 14 | |
| 15 | // All Widget List |
| 16 | 'spider_elements_widgets' => [ |
| 17 | [ |
| 18 | 'name' => 'docy_accordion', // widget name |
| 19 | 'className' => 'Accordion', // widget class name |
| 20 | 'label' => esc_html__('Accordion', 'spider-elements'), // widget label |
| 21 | 'type' => 'checkbox', |
| 22 | 'default' => 'on', |
| 23 | 'widget_type' => 'free', |
| 24 | 'demo_url' => '#', |
| 25 | 'video_url' => '#', |
| 26 | 'icon' => 'eicon-accordion', |
| 27 | ], |
| 28 | [ |
| 29 | 'name' => 'docly_alerts_box', |
| 30 | 'className' => 'Alerts_Box', // widget class name |
| 31 | 'label' => esc_html__('Alerts Box', 'spider-elements'), |
| 32 | 'type' => 'checkbox', |
| 33 | 'default' => 'on', |
| 34 | 'widget_type' => 'free', |
| 35 | 'demo_url' => '#', |
| 36 | 'video_url' => '#', |
| 37 | 'icon' => 'eicon-alert', |
| 38 | ], |
| 39 | [ |
| 40 | 'name' => 'spe_animated_heading', |
| 41 | 'className' => 'Animated_Heading', // widget class name |
| 42 | 'label' => esc_html__('Animated Heading', 'spider-elements'), |
| 43 | 'type' => 'checkbox', |
| 44 | 'default' => 'on', |
| 45 | 'widget_type' => 'free', |
| 46 | 'demo_url' => '#', |
| 47 | 'video_url' => '#', |
| 48 | 'icon' => 'eicon-heading', |
| 49 | ], |
| 50 | [ |
| 51 | 'name' => 'spe_after_before_widget', |
| 52 | 'className' => 'Before_After', // widget class name |
| 53 | 'label' => esc_html__('Before After', 'spider-elements'), |
| 54 | 'type' => 'checkbox', |
| 55 | 'default' => 'on', |
| 56 | 'widget_type' => 'free', |
| 57 | 'demo_url' => '#', |
| 58 | 'video_url' => '#', |
| 59 | 'icon' => 'eicon-thumbnails-half', |
| 60 | ], |
| 61 | [ |
| 62 | 'name' => 'docy_blog_grid', |
| 63 | 'className' => 'Blog_Grid', // widget class name |
| 64 | 'label' => esc_html__('Blog Grid', 'spider-elements'), |
| 65 | 'type' => 'checkbox', |
| 66 | 'default' => 'on', |
| 67 | 'widget_type' => 'free', |
| 68 | 'demo_url' => '#', |
| 69 | 'video_url' => '#', |
| 70 | 'icon' => 'eicon-post', |
| 71 | ], |
| 72 | [ |
| 73 | 'name' => 'spe_buttons', |
| 74 | 'className' => 'Buttons', // widget class name |
| 75 | 'label' => esc_html__('Buttons', 'spider-elements'), |
| 76 | 'type' => 'checkbox', |
| 77 | 'default' => 'on', |
| 78 | 'widget_type' => 'free', |
| 79 | 'demo_url' => '#', |
| 80 | 'video_url' => '#', |
| 81 | 'icon' => 'eicon-button', |
| 82 | ], |
| 83 | [ |
| 84 | 'name' => 'docly_cheatsheet', |
| 85 | 'className' => 'Cheat_sheet', // widget class name |
| 86 | 'label' => esc_html__('Cheat Sheet', 'spider-elements'), |
| 87 | 'type' => 'checkbox', |
| 88 | 'default' => 'on', |
| 89 | 'widget_type' => 'free', |
| 90 | 'demo_url' => '#', |
| 91 | 'video_url' => '#', |
| 92 | 'icon' => 'eicon-apps', |
| 93 | ], |
| 94 | [ |
| 95 | 'name' => 'spe_counter', |
| 96 | 'className' => 'Counter', // widget class name |
| 97 | 'label' => esc_html__('Counter', 'spider-elements'), |
| 98 | 'type' => 'checkbox', |
| 99 | 'default' => 'on', |
| 100 | 'widget_type' => 'free', |
| 101 | 'demo_url' => '#', |
| 102 | 'video_url' => '#', |
| 103 | 'icon' => 'eicon-counter', |
| 104 | ], |
| 105 | [ |
| 106 | 'name' => 'spe_instagram', |
| 107 | 'className' => 'Instagram', // widget class name |
| 108 | 'label' => esc_html__('Instagram', 'spider-elements'), |
| 109 | 'type' => 'checkbox', |
| 110 | 'default' => 'on', |
| 111 | 'widget_type' => 'free', |
| 112 | 'demo_url' => '#', |
| 113 | 'video_url' => '#', |
| 114 | 'icon' => 'eicon-instagram-post', |
| 115 | ], |
| 116 | [ |
| 117 | 'name' => 'docy_integrations', |
| 118 | 'className' => 'Integrations', // widget class name |
| 119 | 'label' => esc_html__('Integrations', 'spider-elements'), |
| 120 | 'type' => 'checkbox', |
| 121 | 'default' => 'on', |
| 122 | 'widget_type' => 'free', |
| 123 | 'demo_url' => '#', |
| 124 | 'video_url' => '#', |
| 125 | 'icon' => 'eicon-integration', |
| 126 | ], |
| 127 | [ |
| 128 | 'name' => 'docly_list_item', |
| 129 | 'className' => 'List_Item', // widget class name |
| 130 | 'label' => esc_html__('List Items', 'spider-elements'), |
| 131 | 'type' => 'checkbox', |
| 132 | 'default' => 'on', |
| 133 | 'widget_type' => 'free', |
| 134 | 'demo_url' => '#', |
| 135 | 'video_url' => '#', |
| 136 | 'icon' => 'eicon-bullet-list', |
| 137 | ], |
| 138 | [ |
| 139 | 'name' => 'spe_marquee_slides', |
| 140 | 'className' => 'Marquee_Slides', // widget class name |
| 141 | 'label' => esc_html__('Marquee Slides', 'spider-elements'), |
| 142 | 'type' => 'checkbox', |
| 143 | 'default' => 'on', |
| 144 | 'widget_type' => 'free', |
| 145 | 'demo_url' => '#', |
| 146 | 'video_url' => '#', |
| 147 | 'icon' => 'eicon-slider-push', |
| 148 | ], |
| 149 | [ |
| 150 | 'name' => 'landpagy_pricing_table_switcher', |
| 151 | 'className' => 'Pricing_Table_Switcher', // widget class name |
| 152 | 'label' => esc_html__('Pricing Table Switcher', 'spider-elements'), |
| 153 | 'type' => 'checkbox', |
| 154 | 'default' => 'on', |
| 155 | 'widget_type' => 'free', |
| 156 | 'demo_url' => '#', |
| 157 | 'video_url' => '#', |
| 158 | 'icon' => 'eicon-price-table', |
| 159 | ], |
| 160 | [ |
| 161 | 'name' => 'landpagy_pricing_table_tabs', |
| 162 | 'className' => 'Pricing_Table_Tabs', // widget class name |
| 163 | 'label' => esc_html__('Pricing Table Tabs', 'spider-elements'), |
| 164 | 'type' => 'checkbox', |
| 165 | 'default' => 'on', |
| 166 | 'widget_type' => 'free', |
| 167 | 'demo_url' => '#', |
| 168 | 'video_url' => '#', |
| 169 | 'icon' => 'eicon-price-table', |
| 170 | ], |
| 171 | [ |
| 172 | 'name' => 'spe_skill_showcase_widget', |
| 173 | 'className' => 'Skill_Showcase', // widget class name |
| 174 | 'label' => esc_html__('Skill Showcase', 'spider-elements'), |
| 175 | 'type' => 'checkbox', |
| 176 | 'default' => 'on', |
| 177 | 'widget_type' => 'free', |
| 178 | 'demo_url' => '#', |
| 179 | 'video_url' => '#', |
| 180 | 'icon' => 'eicon-woo-settings', |
| 181 | ], |
| 182 | [ |
| 183 | 'name' => 'docy_tabs', |
| 184 | 'className' => 'Tabs', |
| 185 | 'label' => esc_html__('Tabs', 'spider-elements'), |
| 186 | 'type' => 'checkbox', |
| 187 | 'default' => 'on', |
| 188 | 'widget_type' => 'free', |
| 189 | 'demo_url' => '#', |
| 190 | 'video_url' => '#', |
| 191 | 'icon' => 'eicon-tabs', |
| 192 | ], |
| 193 | [ |
| 194 | 'name' => 'docy_team_carousel', |
| 195 | 'className' => 'Team_Carousel', // widget class name |
| 196 | 'label' => esc_html__('Team Carousel', 'spider-elements'), |
| 197 | 'type' => 'checkbox', |
| 198 | 'default' => 'on', |
| 199 | 'widget_type' => 'free', |
| 200 | 'demo_url' => '#', |
| 201 | 'video_url' => '#', |
| 202 | 'icon' => 'eicon-nested-carousel', |
| 203 | ], |
| 204 | [ |
| 205 | 'name' => 'docy_testimonial', |
| 206 | 'className' => 'Testimonial', // widget class name |
| 207 | 'label' => esc_html__('Testimonials', 'spider-elements'), |
| 208 | 'type' => 'checkbox', |
| 209 | 'default' => 'on', |
| 210 | 'widget_type' => 'free', |
| 211 | 'demo_url' => '#', |
| 212 | 'video_url' => '#', |
| 213 | 'icon' => 'eicon-testimonial-carousel', |
| 214 | ], |
| 215 | [ |
| 216 | 'name' => 'spe_timeline_widget', |
| 217 | 'className' => 'Timeline', // widget class name |
| 218 | 'label' => esc_html__('Timeline', 'spider-elements'), |
| 219 | 'type' => 'checkbox', |
| 220 | 'default' => 'on', |
| 221 | 'widget_type' => 'free', |
| 222 | 'demo_url' => '#', |
| 223 | 'video_url' => '#', |
| 224 | 'icon' => 'eicon-time-line', |
| 225 | ], |
| 226 | [ |
| 227 | 'name' => 'docy_videos_playlist', |
| 228 | 'className' => 'Video_Playlist', // widget class name |
| 229 | 'label' => esc_html__('Video Playlist', 'spider-elements'), |
| 230 | 'type' => 'checkbox', |
| 231 | 'default' => 'on', |
| 232 | 'widget_type' => 'free', |
| 233 | 'demo_url' => '#', |
| 234 | 'video_url' => '#', |
| 235 | 'icon' => 'eicon-video-playlist', |
| 236 | ], |
| 237 | [ |
| 238 | 'name' => 'docy_video_popup', |
| 239 | 'className' => 'Video_Popup', // widget class name |
| 240 | 'label' => esc_html__('Video Popup', 'spider-elements'), |
| 241 | 'type' => 'checkbox', |
| 242 | 'default' => 'on', |
| 243 | 'widget_type' => 'free', |
| 244 | 'demo_url' => '#', |
| 245 | 'video_url' => '#', |
| 246 | 'icon' => 'eicon-play', |
| 247 | ], |
| 248 | [ |
| 249 | 'name' => 'spel_icon_box', |
| 250 | 'className' => 'Icon_box', // widget class name |
| 251 | 'label' => esc_html__('Icon Box', 'spider-elements'), |
| 252 | 'type' => 'checkbox', |
| 253 | 'default' => 'on', |
| 254 | 'widget_type' => 'free', |
| 255 | 'demo_url' => '#', |
| 256 | 'video_url' => '#', |
| 257 | 'icon' => 'eicon-icon-box', |
| 258 | ], |
| 259 | |
| 260 | |
| 261 | /*[ |
| 262 | 'name' => 'spe_animated_heading', |
| 263 | 'className' => 'Animated_Heading', // widget class name |
| 264 | 'label' => esc_html__('Animated Heading', 'spider-elements'), |
| 265 | 'type' => 'checkbox', |
| 266 | 'default' => 'on', |
| 267 | 'widget_type' => 'pro', |
| 268 | 'demo_url' => '#', |
| 269 | 'video_url' => '#', |
| 270 | 'icon' => 'eicon-heading', |
| 271 | ],*/ |
| 272 | |
| 273 | ], |
| 274 | |
| 275 | // All Feature List |
| 276 | 'spider_elements_features' => [ |
| 277 | /*[ |
| 278 | 'name' => '', // widget name |
| 279 | 'className' => '', // widget class name |
| 280 | 'label' => esc_html__('Template cloud', 'spider-elements'), // widget label |
| 281 | 'type' => 'checkbox', |
| 282 | 'default' => 'on', |
| 283 | 'widget_type' => 'pro', |
| 284 | 'demo_url' => '', |
| 285 | 'video_url' => '', |
| 286 | 'icon' => 'icon-cloud', |
| 287 | ],*/ |
| 288 | /*[ |
| 289 | 'name' => '', // widget name |
| 290 | 'className' => '', // widget class name |
| 291 | 'label' => esc_html__('Mega Menu', 'spider-elements'), // widget label |
| 292 | 'type' => 'checkbox', |
| 293 | 'default' => 'on', |
| 294 | 'widget_type' => 'pro', |
| 295 | 'demo_url' => '', |
| 296 | 'video_url' => '', |
| 297 | 'icon' => 'icon-mega-menu', |
| 298 | ],*/ |
| 299 | /*[ |
| 300 | 'name' => '', // widget name |
| 301 | 'className' => '', // widget class name |
| 302 | 'label' => esc_html__('Image Shadow', 'spider-elements'), // widget label |
| 303 | 'type' => 'checkbox', |
| 304 | 'default' => 'on', |
| 305 | 'widget_type' => 'pro', |
| 306 | 'demo_url' => '', |
| 307 | 'video_url' => '', |
| 308 | 'icon' => 'icon-image-shadow', |
| 309 | ],*/ |
| 310 | /*[ |
| 311 | 'name' => '', // widget name |
| 312 | 'className' => '', // widget class name |
| 313 | 'label' => esc_html__('Scroll Trigger', 'spider-elements'), // widget label |
| 314 | 'type' => 'checkbox', |
| 315 | 'default' => 'on', |
| 316 | 'widget_type' => 'pro', |
| 317 | 'demo_url' => '', |
| 318 | 'video_url' => '', |
| 319 | 'icon' => 'icon-hotspot', |
| 320 | ],*/ |
| 321 | /*[ |
| 322 | 'name' => '', // widget name |
| 323 | 'className' => '', // widget class name |
| 324 | 'label' => esc_html__('Tilt Effect on Hover', 'spider-elements'), // widget label |
| 325 | 'type' => 'checkbox', |
| 326 | 'default' => 'on', |
| 327 | 'widget_type' => 'pro', |
| 328 | 'demo_url' => '', |
| 329 | 'video_url' => '', |
| 330 | 'icon' => 'icon-effect', |
| 331 | ],*/ |
| 332 | [ |
| 333 | 'name' => 'spel_reveal_animation', // widget name |
| 334 | 'className' => '', // widget class name |
| 335 | 'label' => esc_html__('Reveal Animation', 'spider-elements'), // widget label |
| 336 | 'type' => 'checkbox', |
| 337 | 'default' => 'on', |
| 338 | 'widget_type' => 'free', |
| 339 | 'demo_url' => '', |
| 340 | 'video_url' => '', |
| 341 | 'icon' => 'icon-revel-animation', |
| 342 | ], |
| 343 | /*[ |
| 344 | 'name' => '', // widget name |
| 345 | 'className' => '', // widget class name |
| 346 | 'label' => esc_html__('Tooltip / Element', 'spider-elements'), // widget label |
| 347 | 'type' => 'checkbox', |
| 348 | 'default' => 'on', |
| 349 | 'widget_type' => 'pro', |
| 350 | 'demo_url' => '', |
| 351 | 'video_url' => '', |
| 352 | 'icon' => 'icon-tooltip', |
| 353 | ],*/ |
| 354 | [ |
| 355 | 'name' => 'spel_badge', // widget name |
| 356 | 'label' => esc_html__('Badge', 'spider-elements'), // widget label |
| 357 | 'type' => 'checkbox', |
| 358 | 'default' => 'on', |
| 359 | 'widget_type' => 'free', |
| 360 | 'demo_url' => '', |
| 361 | 'video_url' => '', |
| 362 | 'icon' => 'icon-badge', |
| 363 | ], |
| 364 | [ |
| 365 | 'name' => 'spel_smooth_animation', // widget name |
| 366 | 'label' => esc_html__('Smooth Animation', 'spider-elements'), // widget label |
| 367 | 'type' => 'checkbox', |
| 368 | 'default' => 'on', |
| 369 | 'widget_type' => 'free', |
| 370 | 'demo_url' => '', |
| 371 | 'video_url' => '', |
| 372 | 'icon' => 'icon-smooth-animation', |
| 373 | ], |
| 374 | /*[ |
| 375 | 'name' => '', // widget name |
| 376 | 'className' => '', // widget class name |
| 377 | 'label' => esc_html__('Gradient Color from Image', 'spider-elements'), // widget label |
| 378 | 'type' => 'checkbox', |
| 379 | 'default' => 'on', |
| 380 | 'widget_type' => 'pro', |
| 381 | 'demo_url' => '', |
| 382 | 'video_url' => '', |
| 383 | 'icon' => 'icon-gallery', |
| 384 | ],*/ |
| 385 | ] |
| 386 | ]; |
| 387 | |
| 388 | return $settings_fields; |
| 389 | |
| 390 | } |
| 391 | |
| 392 | } |