PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.2
ShopBuilder – WooCommerce Builder For Elementor v1.1.2
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 1.1.2, at app/Controllers/ThemesSupport/Storefront/ThemeSupport.php

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