| @@ -1,65 +1,65 @@ | ||
| 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 | -} | |
| 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 | +} | |