PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.6
ShopBuilder – WooCommerce Builder For Elementor v2.1.6
3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.3.0 All 62 releases
shopbuilder / app / Resources / Options.php

Options.php in ShopBuilder – WooCommerce Builder For Elementor 2.1.6, at app/Resources/Options.php

66 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RadiusTheme\SB\Resources;
4
5 // Do not allow directly accessing this file.
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit( 'This script cannot be accessed directly.' );
8 }
9
10 class Options {
11
12 /**
13 * @return array
14 */
15 public static function settings_options() {
16 $options = [
17 'general' => [],
18 'gutenberg' => [],
19 'elements' => [],
20 'modules' => [
21 'id' => 'modules',
22 'title' => esc_html__( 'Modules', 'shopbuilder' ),
23 'description' => esc_html__( 'Modules', 'shopbuilder' ),
24 'items' => [
25 'quick_view' => self::module_quick_view_options(),
26 'compare' => self::module_compare_options(),
27 'wishlist' => self::module_wishlist_options(),
28 ],
29 ],
30 'extensions' => [],
31 ];
32
33 return apply_filters( 'rtsb_settings_options', $options );
34 }
35
36 public static function module_quick_view_options() {
37 $options = [
38 'id' => 'quick_view',
39 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
40 'has_options' => true,
41 ];
42
43 return apply_filters( 'rtsb_module_quick_view_options', $options );
44 }
45
46 public static function module_compare_options() {
47 $options = [
48 'id' => 'compare',
49 'title' => esc_html__( 'Compare', 'shopbuilder' ),
50 'has_options' => true,
51 ];
52
53 return apply_filters( 'rtsb_module_compare_options', $options );
54 }
55
56 public static function module_wishlist_options() {
57 $options = [
58 'id' => 'wishlist',
59 'title' => esc_html__( 'Wishlist', 'shopbuilder' ),
60 'has_options' => true,
61 ];
62
63 return apply_filters( 'rtsb_module_wishlist_options', $options );
64 }
65 }
66