| @@ -1,41 +1,25 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * ShopBuilder Module List. | |
| 4 | - * | |
| 5 | - * @package RadiusTheme\SB | |
| 6 | - */ | |
| 7 | 2 | |
| 8 | 3 | namespace RadiusTheme\SB\Models; |
| 9 | 4 | |
| 10 | 5 | use RadiusTheme\SB\Helpers\Fns; |
| 11 | 6 | use RadiusTheme\SB\Models\Base\ListModel; |
| 12 | -use RadiusTheme\SB\Traits\SingletonTrait; | |
| 13 | 7 | use RadiusTheme\SB\Modules\Compare\Compare; |
| 14 | -use RadiusTheme\SB\Modules\WishList\Wishlist; | |
| 15 | 8 | use RadiusTheme\SB\Modules\Compare\CompareFns; |
| 16 | 9 | use RadiusTheme\SB\Modules\QuickView\QuickView; |
| 10 | +use RadiusTheme\SB\Modules\WishList\Wishlist; | |
| 17 | 11 | use RadiusTheme\SB\Modules\WishList\WishlistFns; |
| 12 | +use RadiusTheme\SB\Traits\SingletonTrait; | |
| 18 | 13 | |
| 19 | 14 | defined( 'ABSPATH' ) || exit; |
| 20 | 15 | |
| 21 | -/** | |
| 22 | - * ShopBuilder Module List. | |
| 23 | - */ | |
| 24 | 16 | class ModuleList extends ListModel { |
| 25 | 17 | |
| 26 | 18 | use SingletonTrait; |
| 27 | 19 | |
| 28 | - /** | |
| 29 | - * List ID. | |
| 30 | - * | |
| 31 | - * @var string | |
| 32 | - */ | |
| 33 | 20 | protected $list_id = 'modules'; |
| 34 | 21 | |
| 35 | - /** | |
| 36 | - * Class constructor. | |
| 37 | - */ | |
| 38 | 22 | public function __construct() { |
| 39 | 23 | parent::__construct(); |
| 40 | 24 | $this->title = esc_html__( 'Modules', 'shopbuilder' ); |
| 41 | 25 | $this->description = esc_html__( 'Here you can find the list of all the modules. You can individually enable or disable the modules. Or you can do that by one click.', 'shopbuilder' ); |
| @@ -40,13 +24,8 @@ | ||
| 40 | 24 | $this->title = esc_html__( 'Modules', 'shopbuilder' ); |
| 41 | 25 | $this->description = esc_html__( 'Here you can find the list of all the modules. You can individually enable or disable the modules. Or you can do that by one click.', 'shopbuilder' ); |
| 42 | 26 | } |
| 43 | 27 | |
| 44 | - /** | |
| 45 | - * Module list. | |
| 46 | - * | |
| 47 | - * @return mixed|null | |
| 48 | - */ | |
| 49 | 28 | protected function raw_list() { |
| 50 | 29 | $list = [ |
| 51 | 30 | 'quick_view' => apply_filters( |
| 52 | 31 | 'rtsb/module/quick_view/options', |
| @@ -60,16 +39,8 @@ | ||
| 60 | 39 | 'active_field' => [ |
| 61 | 40 | 'label' => esc_html__( 'Enable Quick View?', 'shopbuilder' ), |
| 62 | 41 | 'help' => esc_html__( 'Switch on to enable quick view module.', 'shopbuilder' ), |
| 63 | 42 | ], |
| 64 | - 'tabs' => [ | |
| 65 | - 'general' => [ | |
| 66 | - 'title' => esc_html__( 'General', 'shopbuilder' ), | |
| 67 | - ], | |
| 68 | - 'style' => [ | |
| 69 | - 'title' => esc_html__( 'Style', 'shopbuilder' ), | |
| 70 | - ], | |
| 71 | - ], | |
| 72 | 43 | 'fields' => apply_filters( |
| 73 | 44 | 'rtsb/module/quick_view/fields', |
| 74 | 45 | [ |
| 75 | 46 | 'loop_btn_position' => [ |
| @@ -77,9 +48,8 @@ | ||
| 77 | 48 | 'type' => 'select', |
| 78 | 49 | 'value' => 'custom', |
| 79 | 50 | 'label' => esc_html__( 'Shop Page Button Position', 'shopbuilder' ), |
| 80 | 51 | 'help' => esc_html__( 'You can manage quick view button position in shop page.', 'shopbuilder' ), |
| 81 | - 'tab' => 'general', | |
| 82 | 52 | 'options' => [ |
| 83 | 53 | 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ), |
| 84 | 54 | 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ), |
| 85 | 55 | 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ), |
| @@ -84,9 +54,8 @@ | ||
| 84 | 54 | 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ), |
| 85 | 55 | 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ), |
| 86 | 56 | 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ), |
| 87 | 57 | ], |
| 88 | - | |
| 89 | 58 | ], |
| 90 | 59 | 'loop_btn_position_shortcode' => [ |
| 91 | 60 | 'type' => 'raw', |
| 92 | 61 | 'label' => ' ', |
| @@ -94,9 +63,8 @@ | ||
| 94 | 63 | /* translators: 1: The shortcode.*/ |
| 95 | 64 | esc_html__( 'Choose where to show button in WooCommerce product\'s loop. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ), |
| 96 | 65 | '<code>[rtsb_quick_view_button]</code>' |
| 97 | 66 | ), |
| 98 | - 'tab' => 'general', | |
| 99 | 67 | 'dependency' => [ |
| 100 | 68 | 'rules' => [ |
| 101 | 69 | [ |
| 102 | 70 | 'item' => 'modules.quick_view.loop_btn_position', |
| @@ -112,11 +80,10 @@ | ||
| 112 | 80 | 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ), |
| 113 | 81 | 'help' => sprintf( |
| 114 | 82 | /* translators: 1: The shortcode.*/ |
| 115 | 83 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 116 | - "<br /><code><?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?></code><br />" | |
| 84 | + "<code><?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?></code>" | |
| 117 | 85 | ), |
| 118 | - 'tab' => 'general', | |
| 119 | 86 | 'dependency' => [ |
| 120 | 87 | 'rules' => [ |
| 121 | 88 | [ |
| 122 | 89 | 'item' => 'modules.quick_view.loop_btn_position', |
| @@ -133,9 +100,8 @@ | ||
| 133 | 100 | 'size' => 'small', |
| 134 | 101 | 'min' => 0, |
| 135 | 102 | 'max' => 999, |
| 136 | 103 | 'label' => esc_html__( 'Hook Priority', 'shopbuilder' ), |
| 137 | - 'tab' => 'general', | |
| 138 | 104 | 'dependency' => [ |
| 139 | 105 | 'rules' => [ |
| 140 | 106 | [ |
| 141 | 107 | 'item' => 'modules.quick_view.loop_btn_position', |
| @@ -151,64 +117,9 @@ | ||
| 151 | 117 | 'help' => esc_html__( 'Enter your quick view button text.', 'shopbuilder' ), |
| 152 | 118 | 'type' => 'text', |
| 153 | 119 | 'value' => 'Quick View', |
| 154 | 120 | 'placeholder' => 'Quick View', |
| 155 | - 'tab' => 'general', | |
| 156 | 121 | ], |
| 157 | - | |
| 158 | - // Module Style. | |
| 159 | - 'modal_width' => [ | |
| 160 | - 'id' => 'modal_width', | |
| 161 | - 'label' => esc_html__( 'Modal Width (in px)', 'shopbuilder' ), | |
| 162 | - 'help' => esc_html__( 'Quick view button modal width. Example: 950', 'shopbuilder' ), | |
| 163 | - 'type' => 'number', | |
| 164 | - 'value' => '', | |
| 165 | - 'tab' => 'style', | |
| 166 | - ], | |
| 167 | - | |
| 168 | - 'modal_height' => [ | |
| 169 | - 'id' => 'modal_height', | |
| 170 | - 'label' => esc_html__( 'Modal Height', 'shopbuilder' ), | |
| 171 | - 'help' => esc_html__( 'Quick view button modal height. Example: 450px', 'shopbuilder' ), | |
| 172 | - 'type' => 'text', | |
| 173 | - 'value' => '', | |
| 174 | - 'tab' => 'style', | |
| 175 | - ], | |
| 176 | - | |
| 177 | - 'modal_wrapper_padding' => [ | |
| 178 | - 'id' => 'modal_wrapper_padding', | |
| 179 | - 'label' => esc_html__( 'Modal Wrapper Padding', 'shopbuilder' ), | |
| 180 | - 'help' => esc_html__( 'Quick view modal wrapper padding. Example 1: 20px, Example 2: 20px 20px 20px 20px', 'shopbuilder' ), | |
| 181 | - 'type' => 'text', | |
| 182 | - 'value' => '', | |
| 183 | - 'tab' => 'style', | |
| 184 | - ], | |
| 185 | - 'modal_bg_color' => [ | |
| 186 | - 'id' => 'modal_bg_color', | |
| 187 | - 'label' => esc_html__( 'Modal Backgroud Color', 'shopbuilder' ), | |
| 188 | - 'help' => esc_html__( 'Quick view modal background color. Example: #fff', 'shopbuilder' ), | |
| 189 | - 'type' => 'color', | |
| 190 | - 'value' => '', | |
| 191 | - 'tab' => 'style', | |
| 192 | - ], | |
| 193 | - 'modal_box_shadow_color' => [ | |
| 194 | - 'id' => 'modal_box_shadow_color', | |
| 195 | - 'label' => esc_html__( 'Modal Box Shadow Color', 'shopbuilder' ), | |
| 196 | - 'help' => esc_html__( 'Quick view modal box shadow. Example: #000', 'shopbuilder' ), | |
| 197 | - 'type' => 'color', | |
| 198 | - 'value' => '', | |
| 199 | - 'tab' => 'style', | |
| 200 | - ], | |
| 201 | - | |
| 202 | - 'modal_overly_color' => [ | |
| 203 | - 'id' => 'modal_overly_color', | |
| 204 | - 'label' => esc_html__( 'Modal Overly Color', 'shopbuilder' ), | |
| 205 | - 'help' => esc_html__( 'Quick view modal overly. Example: #000', 'shopbuilder' ), | |
| 206 | - 'type' => 'color', | |
| 207 | - 'value' => '', | |
| 208 | - 'tab' => 'style', | |
| 209 | - ], | |
| 210 | - | |
| 211 | 122 | ] |
| 212 | 123 | ), |
| 213 | 124 | ] |
| 214 | 125 | ), |
| @@ -234,24 +145,8 @@ | ||
| 234 | 145 | 'label' => esc_html__( 'Limit Wishlist Use', 'shopbuilder' ), |
| 235 | 146 | 'help' => esc_html__( 'Enable this option to allow only the logged-in users to use the Wishlist feature.', 'shopbuilder' ), |
| 236 | 147 | 'tab' => 'general', |
| 237 | 148 | ], |
| 238 | - 'hide_wishlist_non_logged_in' => [ | |
| 239 | - 'id' => 'hide_wishlist_non_logged_in', | |
| 240 | - 'type' => 'switch', | |
| 241 | - 'label' => esc_html__( 'Hide Wishlist Button', 'shopbuilder' ), | |
| 242 | - 'help' => esc_html__( 'Hide Wishlist Button For non logged-in users (guest users).', 'shopbuilder' ), | |
| 243 | - 'dependency' => [ | |
| 244 | - 'rules' => [ | |
| 245 | - [ | |
| 246 | - 'item' => 'modules.wishlist.enable_login_limit', | |
| 247 | - 'value' => 'on', | |
| 248 | - 'operator' => '==', | |
| 249 | - ], | |
| 250 | - ], | |
| 251 | - ], | |
| 252 | - 'tab' => 'general', | |
| 253 | - ], | |
| 254 | 149 | 'wishlist_shop_wrapper_heading' => [ |
| 255 | 150 | 'id' => 'wishlist_shop_wrapper_heading', |
| 256 | 151 | 'type' => 'title', |
| 257 | 152 | 'label' => esc_html__( 'Shop Page Settings', 'shopbuilder' ), |
| @@ -318,9 +213,9 @@ | ||
| 318 | 213 | 'tab' => 'button', |
| 319 | 214 | 'help' => sprintf( |
| 320 | 215 | /* translators: 1: The shortcode.*/ |
| 321 | 216 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 322 | - "<br /><code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code><br />" | |
| 217 | + "<code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code>" | |
| 323 | 218 | ), |
| 324 | 219 | 'dependency' => [ |
| 325 | 220 | 'rules' => [ |
| 326 | 221 | [ |
| @@ -430,9 +325,9 @@ | ||
| 430 | 325 | 'tab' => 'button', |
| 431 | 326 | 'help' => sprintf( |
| 432 | 327 | /* translators: 1: The shortcode.*/ |
| 433 | 328 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 434 | - "<br /><code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code><br />" | |
| 329 | + "<code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code>" | |
| 435 | 330 | ), |
| 436 | 331 | 'dependency' => [ |
| 437 | 332 | 'rules' => [ |
| 438 | 333 | [ |
| @@ -526,8 +421,9 @@ | ||
| 526 | 421 | 'label' => esc_html__( 'Remove if Added to Cart', 'shopbuilder' ), |
| 527 | 422 | 'tab' => 'page', |
| 528 | 423 | ), |
| 529 | 424 | */ |
| 425 | + | |
| 530 | 426 | 'page' => [ |
| 531 | 427 | 'id' => 'page', |
| 532 | 428 | 'type' => 'select', |
| 533 | 429 | 'label' => esc_html__( 'Select Wishlist Page', 'shopbuilder' ), |
| @@ -538,8 +434,9 @@ | ||
| 538 | 434 | ), |
| 539 | 435 | 'options' => Fns::get_pages(), |
| 540 | 436 | 'tab' => 'page', |
| 541 | 437 | ], |
| 438 | + | |
| 542 | 439 | 'page_show_fields' => [ |
| 543 | 440 | 'value' => WishlistFns::instance()->get_field_ids(), |
| 544 | 441 | 'id' => 'page_show_fields', |
| 545 | 442 | 'multiple' => true, |
| @@ -649,9 +546,9 @@ | ||
| 649 | 546 | 'tab' => 'button', |
| 650 | 547 | 'help' => sprintf( |
| 651 | 548 | /* translators: 1: The shortcode.*/ |
| 652 | 549 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 653 | - "<br /><code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code><br />" | |
| 550 | + "<code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code>" | |
| 654 | 551 | ), |
| 655 | 552 | 'dependency' => [ |
| 656 | 553 | 'rules' => [ |
| 657 | 554 | [ |
| @@ -761,9 +658,9 @@ | ||
| 761 | 658 | 'tab' => 'button', |
| 762 | 659 | 'help' => sprintf( |
| 763 | 660 | /* translators: 1: The shortcode.*/ |
| 764 | 661 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 765 | - "<br /><code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code><br />" | |
| 662 | + "<code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code>" | |
| 766 | 663 | ), |
| 767 | 664 | 'dependency' => [ |
| 768 | 665 | 'rules' => [ |
| 769 | 666 | [ |
| @@ -889,27 +786,27 @@ | ||
| 889 | 786 | |
| 890 | 787 | ], |
| 891 | 788 | ] |
| 892 | 789 | ), |
| 893 | - 'variation_swatches' => apply_filters( | |
| 894 | - 'rtsb/module/variation_swatches/options', | |
| 790 | + 'variation_gallery' => apply_filters( | |
| 791 | + 'rtsb/module/variation_gallery/options', | |
| 895 | 792 | [ |
| 896 | - 'id' => 'variation_swatches', | |
| 793 | + 'id' => 'variation_gallery', | |
| 897 | 794 | 'external' => true, |
| 898 | 795 | 'category' => 'general', |
| 899 | - 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ), | |
| 900 | - 'pluginSlug' => 'woo-product-variation-swatches', | |
| 901 | - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 902 | - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 796 | + 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ), | |
| 797 | + 'pluginSlug' => 'woo-product-variation-gallery', | |
| 798 | + 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 799 | + 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 903 | 800 | 'pluginActiveUrl' => add_query_arg( |
| 904 | 801 | [ |
| 905 | - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 802 | + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 906 | 803 | 'action' => 'activate', |
| 907 | - 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php', | |
| 804 | + 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php', | |
| 908 | 805 | ], |
| 909 | 806 | admin_url( 'plugins.php' ) |
| 910 | 807 | ), |
| 911 | - 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ), | |
| 808 | + 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ), | |
| 912 | 809 | 'package' => 'free', |
| 913 | 810 | 'active_field' => [ |
| 914 | 811 | 'disable' => false, |
| 915 | 812 | ], |
| @@ -915,27 +812,27 @@ | ||
| 915 | 812 | ], |
| 916 | 813 | 'fields' => [], |
| 917 | 814 | ] |
| 918 | 815 | ), |
| 919 | - 'variation_gallery' => apply_filters( | |
| 920 | - 'rtsb/module/variation_gallery/options', | |
| 816 | + 'variation_swatches' => apply_filters( | |
| 817 | + 'rtsb/module/variation_swatches/options', | |
| 921 | 818 | [ |
| 922 | - 'id' => 'variation_gallery', | |
| 819 | + 'id' => 'variation_swatches', | |
| 923 | 820 | 'external' => true, |
| 924 | 821 | 'category' => 'general', |
| 925 | - 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ), | |
| 926 | - 'pluginSlug' => 'woo-product-variation-gallery', | |
| 927 | - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 928 | - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 822 | + 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ), | |
| 823 | + 'pluginSlug' => 'woo-product-variation-swatches', | |
| 824 | + 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 825 | + 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 929 | 826 | 'pluginActiveUrl' => add_query_arg( |
| 930 | 827 | [ |
| 931 | - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 828 | + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 932 | 829 | 'action' => 'activate', |
| 933 | - 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php', | |
| 830 | + 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php', | |
| 934 | 831 | ], |
| 935 | 832 | admin_url( 'plugins.php' ) |
| 936 | 833 | ), |
| 937 | - 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ), | |
| 834 | + 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ), | |
| 938 | 835 | 'package' => 'free', |
| 939 | 836 | 'active_field' => [ |
| 940 | 837 | 'disable' => false, |
| 941 | 838 | ], |
| @@ -941,110 +838,8 @@ | ||
| 941 | 838 | ], |
| 942 | 839 | 'fields' => [], |
| 943 | 840 | ] |
| 944 | 841 | ), |
| 945 | - 'mini_cart' => apply_filters( | |
| 946 | - 'rtsb/module/mini_cart/options', | |
| 947 | - [ | |
| 948 | - 'id' => 'mini_cart', | |
| 949 | - 'active' => '', | |
| 950 | - 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ), | |
| 951 | - 'package' => $this->pro_package(), | |
| 952 | - 'active_field' => [ | |
| 953 | - 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ), | |
| 954 | - 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ), | |
| 955 | - ], | |
| 956 | - 'is_active' => true, | |
| 957 | - 'fields' => [], | |
| 958 | - ] | |
| 959 | - ), | |
| 960 | - 'product_size_chart' => apply_filters( | |
| 961 | - 'rtsb/module/product_size_chart/options', | |
| 962 | - [ | |
| 963 | - 'id' => 'product_size_chart', | |
| 964 | - 'active' => '', | |
| 965 | - 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ), | |
| 966 | - 'package' => $this->pro_package(), | |
| 967 | - 'active_field' => [ | |
| 968 | - 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ), | |
| 969 | - 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ), | |
| 970 | - ], | |
| 971 | - 'fields' => [], | |
| 972 | - ] | |
| 973 | - ), | |
| 974 | - 'product_badges' => apply_filters( | |
| 975 | - 'rtsb/module/product_badges/options', | |
| 976 | - [ | |
| 977 | - 'id' => 'product_badges', | |
| 978 | - 'active' => '', | |
| 979 | - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ), | |
| 980 | - 'package' => $this->pro_package(), | |
| 981 | - 'active_field' => [ | |
| 982 | - 'label' => esc_html__( 'Enable Product Badges?', 'shopbuilder' ), | |
| 983 | - 'help' => esc_html__( 'Switch on to enable product badges module.', 'shopbuilder' ), | |
| 984 | - ], | |
| 985 | - 'fields' => [], | |
| 986 | - ] | |
| 987 | - ), | |
| 988 | - 'customize_my_account' => apply_filters( | |
| 989 | - 'rtsb/module/customize_my_account/options', | |
| 990 | - [ | |
| 991 | - 'id' => 'customize_my_account', | |
| 992 | - 'active' => '', | |
| 993 | - 'title' => esc_html__( 'Customize My Account', 'shopbuilder' ), | |
| 994 | - 'package' => $this->pro_package(), | |
| 995 | - 'active_field' => [ | |
| 996 | - 'label' => esc_html__( 'Enable Customize My Account?', 'shopbuilder' ), | |
| 997 | - 'help' => esc_html__( 'Switch on to enable customize my account module.', 'shopbuilder' ), | |
| 998 | - ], | |
| 999 | - 'fields' => [], | |
| 1000 | - ] | |
| 1001 | - ), | |
| 1002 | - 'pre_order' => apply_filters( | |
| 1003 | - 'rtsb/module/pre_order/options', | |
| 1004 | - [ | |
| 1005 | - 'id' => 'pre_order', | |
| 1006 | - 'active' => '', | |
| 1007 | - 'title' => esc_html__( 'Pre-Order', 'shopbuilder' ), | |
| 1008 | - 'package' => $this->pro_package(), | |
| 1009 | - 'active_field' => [ | |
| 1010 | - 'label' => esc_html__( 'Enable Pre-Order?', 'shopbuilder' ), | |
| 1011 | - 'help' => esc_html__( 'Switch on to enable pre-order module.', 'shopbuilder' ), | |
| 1012 | - ], | |
| 1013 | - 'fields' => [], | |
| 1014 | - ] | |
| 1015 | - ), | |
| 1016 | - 'currency_switcher' => apply_filters( | |
| 1017 | - 'rtsb/module/currency_switcher/options', | |
| 1018 | - [ | |
| 1019 | - 'id' => 'currency_switcher', | |
| 1020 | - 'active' => '', | |
| 1021 | - 'title' => esc_html__( 'Currency Switcher', 'shopbuilder' ), | |
| 1022 | - 'package' => $this->pro_package(), | |
| 1023 | - 'active_field' => [ | |
| 1024 | - 'label' => esc_html__( 'Enable Currency Switcher?', 'shopbuilder' ), | |
| 1025 | - 'help' => esc_html__( 'Switch on to enable currency switcher module.', 'shopbuilder' ), | |
| 1026 | - ], | |
| 1027 | - 'is_active' => true, | |
| 1028 | - 'fields' => [], | |
| 1029 | - ] | |
| 1030 | - ), | |
| 1031 | - 'product_add_ons' => apply_filters( | |
| 1032 | - 'rtsb/module/product_add_ons/options', | |
| 1033 | - [ | |
| 1034 | - 'id' => 'product_add_ons', | |
| 1035 | - 'active' => '', | |
| 1036 | - 'title' => esc_html__( 'Product Add-Ons', 'shopbuilder' ), | |
| 1037 | - 'package' => $this->pro_package(), | |
| 1038 | - 'active_field' => [ | |
| 1039 | - 'label' => esc_html__( 'Enable Product Add-Ons?', 'shopbuilder' ), | |
| 1040 | - 'help' => esc_html__( 'Switch on to enable product add-ons module.', 'shopbuilder' ), | |
| 1041 | - ], | |
| 1042 | - 'is_active' => true, | |
| 1043 | - 'fields' => [], | |
| 1044 | - ] | |
| 1045 | - ), | |
| 1046 | - // Checkout Fields Manager. | |
| 1047 | 842 | 'sales_notification' => apply_filters( |
| 1048 | 843 | 'rtsb/module/sales_notification/options', |
| 1049 | 844 | [ |
| 1050 | 845 | 'id' => 'sales_notification', |
| @@ -1071,8 +866,23 @@ | ||
| 1071 | 866 | ], |
| 1072 | 867 | 'fields' => [], |
| 1073 | 868 | ] |
| 1074 | 869 | ), |
| 870 | + 'mini_cart' => apply_filters( | |
| 871 | + 'rtsb/module/mini_cart/options', | |
| 872 | + [ | |
| 873 | + 'id' => 'mini_cart', | |
| 874 | + 'active' => '', | |
| 875 | + 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ), | |
| 876 | + 'package' => $this->pro_package(), | |
| 877 | + 'active_field' => [ | |
| 878 | + 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ), | |
| 879 | + 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ), | |
| 880 | + ], | |
| 881 | + 'is_active' => true, | |
| 882 | + 'fields' => [], | |
| 883 | + ] | |
| 884 | + ), | |
| 1075 | 885 | 'quick_checkout' => apply_filters( |
| 1076 | 886 | 'rtsb/module/quick_checkout/options', |
| 1077 | 887 | [ |
| 1078 | 888 | 'id' => 'quick_checkout', |
| @@ -1099,22 +909,36 @@ | ||
| 1099 | 909 | ], |
| 1100 | 910 | 'fields' => [], |
| 1101 | 911 | ] |
| 1102 | 912 | ), |
| 1103 | - 'back_order' => apply_filters( | |
| 1104 | - 'rtsb/module/back_order/options', | |
| 913 | + 'product_size_chart' => apply_filters( | |
| 914 | + 'rtsb/module/product_size_chart/options', | |
| 1105 | 915 | [ |
| 1106 | - 'id' => 'back_order', | |
| 916 | + 'id' => 'product_size_chart', | |
| 1107 | 917 | 'active' => '', |
| 1108 | - 'title' => esc_html__( 'Back-Order', 'shopbuilder' ), | |
| 918 | + 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ), | |
| 1109 | 919 | 'package' => $this->pro_package(), |
| 1110 | 920 | 'active_field' => [ |
| 1111 | - 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ), | |
| 1112 | - 'help' => esc_html__( 'Switch on to enable back-order module.', 'shopbuilder' ), | |
| 921 | + 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ), | |
| 922 | + 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ), | |
| 1113 | 923 | ], |
| 1114 | 924 | 'fields' => [], |
| 1115 | 925 | ] |
| 1116 | 926 | ), |
| 927 | +// 'product_badges' => apply_filters( | |
| 928 | +// 'rtsb/module/product_badges/options', | |
| 929 | +// [ | |
| 930 | +// 'id' => 'product_badges', | |
| 931 | +// 'active' => '', | |
| 932 | +// 'title' => esc_html__( 'Product Badges', 'shopbuilder' ), | |
| 933 | +// 'package' => $this->pro_package(), | |
| 934 | +// 'active_field' => [ | |
| 935 | +// 'label' => esc_html__( 'Enable Product Badges?', 'shopbuilder' ), | |
| 936 | +// 'help' => esc_html__( 'Switch on to enable product badges module.', 'shopbuilder' ), | |
| 937 | +// ], | |
| 938 | +// 'fields' => [], | |
| 939 | +// ] | |
| 940 | +// ), | |
| 1117 | 941 | ]; |
| 1118 | 942 | return apply_filters( 'rtsb/core/modules/raw_list', $list ); |
| 1119 | 943 | } |
| 1120 | 944 | } |