File tree 4 files changed +13
-0
lines changed
4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,11 @@ public function enqueue_options_assets() {
169
169
]
170
170
)
171
171
);
172
+
173
+ $ has_pro = apply_filters ( 'product_hyve_license_status ' , false );
174
+ if ( ! $ has_pro ) {
175
+ do_action ( 'themeisle_sdk_load_banner ' , 'hyve ' );
176
+ }
172
177
}
173
178
174
179
/**
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ const App = () => {
41
41
42
42
setSettings ( response ) ;
43
43
setLoading ( ) ;
44
+
45
+ const sdkEvent = new Event ( 'themeisle:banner:init' ) ;
46
+ document . dispatchEvent ( sdkEvent ) ;
44
47
} ;
45
48
46
49
fetchData ( ) ;
@@ -80,6 +83,7 @@ const App = () => {
80
83
) }
81
84
82
85
< div className = "mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10" >
86
+ < div id = "tsdk_banner" class = "hyve-banner mb-4 md:mb-6 2xl:mb-10 hidden" > </ div >
83
87
< div className = "mx-auto max-w-270" >
84
88
< div className = "grid grid-cols-6 gap-8" >
85
89
< Sidebar />
Original file line number Diff line number Diff line change 79
79
color : #333 ;
80
80
}
81
81
}
82
+
83
+ .hyve-banner :has (.tsdk-banner-cta ) {
84
+ display : block ;
85
+ }
You can’t perform that action at this time.
0 commit comments