PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.8
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.8
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / compatibility / class-merchant-kadence-theme.php

class-merchant-kadence-theme.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.8, at inc/compatibility/class-merchant-kadence-theme.php

44 lines 967 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 /**
7 * Kadence theme compatibility layer
8 */
9 if ( ! class_exists( 'Merchant_Kadence_Theme' ) ) {
10 class Merchant_Kadence_Theme {
11
12 /**
13 * Constructor.
14 */
15 public function __construct() {
16 add_action( 'wp_enqueue_scripts', [ $this, 'styles' ] );
17 }
18
19 /**
20 * Load compatibility styles if the Kadence theme is installed and active.
21 *
22 * @return void
23 */
24 public function styles() {
25 if ( ! merchant_is_kadence_active() ) {
26 return;
27 }
28
29 wp_enqueue_style(
30 'merchant-kadence-compatibility',
31 MERCHANT_URI . 'assets/css/compatibility/kadence/style.min.css',
32 array(),
33 '1.0.0'
34 );
35 }
36 }
37
38 /**
39 * The class object can be accessed with "global $kadence_compatibility", to allow removing actions.
40 * Improving Third-party integrations.
41 */
42 $merchant_kadence_compatibility = new Merchant_Kadence_Theme();
43 }
44