File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ function product_meta() {
212
212
<?php endif ; ?>
213
213
</div>
214
214
</div>
215
+ <div id="tsdk_banner" class="ppom-banner"></div>
215
216
<?php
216
217
echo '<p> ' . __ ( 'You can create different meta groups for different products. ' , 'woocommerce-product-addon ' ) . '</p> ' ;
217
218
}
@@ -238,6 +239,19 @@ function product_meta() {
238
239
// existing meta group tables show only ppom main page
239
240
if ( $ action != 'new ' && $ do_meta != 'edit ' && $ view != 'addons ' && $ view != 'changelog ' ) {
240
241
ppom_load_template ( 'admin/existing-meta.php ' );
242
+
243
+ $ should_load_banner = ! ppom_pro_is_installed ();
244
+ if ( ppom_pro_is_installed () ) {
245
+ $ license_data = get_option ( 'ppom_pro_license_data ' , array () );
246
+ $ should_load_banner = isset ( $ license_data ->plan ) &&
247
+ is_numeric ( $ license_data ->plan ) &&
248
+ NM_PersonalizedProduct::LICENSE_PLAN_1 <= NM_PersonalizedProduct::get_license_category ( intval ( $ license_data ->plan ) );
249
+ }
250
+
251
+ if ( $ should_load_banner ) {
252
+ do_action ( 'themeisle_sdk_load_banner ' , 'ppom ' );
253
+ }
254
+
241
255
}
242
256
243
257
echo '</div> ' ;
Original file line number Diff line number Diff line change @@ -1862,3 +1862,7 @@ header.ppom-modal-header {
1862
1862
.ppom-wrapper a .ppom-upsell-condition : hover {
1863
1863
text-decoration : none;
1864
1864
}
1865
+
1866
+ .ppom-banner : has (.tsdk-banner-cta ) {
1867
+ margin : 20px 0 ;
1868
+ }
You can’t perform that action at this time.
0 commit comments