PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.2.0
ShopBuilder – WooCommerce Builder For Elementor v2.2.0
3.4.2 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 All 63 releases
shopbuilder / app / Controllers / ThemesSupport / Storefront / ThemeSupport.php

ThemeSupport.php in ShopBuilder – WooCommerce Builder For Elementor 2.2.0, at app/Controllers/ThemesSupport/Storefront/ThemeSupport.php

58 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main StorefrontSupport class Only Work for storefront theme.
4 *
5 * @package RadiusTheme\SB
6 */
7
8 namespace RadiusTheme\SB\Controllers\ThemesSupport\Storefront;
9
10 use RadiusTheme\SB\Helpers\BuilderFns;
11 use RadiusTheme\SB\Traits\SingletonTrait;
12
13 // Do not allow directly accessing this file.
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit( 'This script cannot be accessed directly.' );
16 }
17
18 /**
19 * Product Description class
20 */
21 class ThemeSupport {
22 /**
23 * Singleton
24 */
25 use SingletonTrait;
26
27 /**
28 * Construct function
29 */
30 private function __construct() {
31 add_filter( 'rtsb/builder/wrapper/parent_class', [ $this, 'builder_wrapper_class' ] );
32 remove_action( 'storefront_after_footer', 'storefront_sticky_single_add_to_cart', 999 );
33 }
34 /**
35 * Get class instance.
36 *
37 * @return object Instance.
38 */
39 public static function init() {
40 if ( ! self::$instance ) {
41 self::$instance = new self();
42 }
43 return self::$instance;
44 }
45
46 /**
47 * Builder wrapper class.
48 *
49 * @param array $classes Classes.
50 * @return array
51 */
52 public function builder_wrapper_class( $classes ) {
53 $classes[] = 'site-main';
54 return $classes;
55 }
56
57 }
58