PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 1.2.1
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v1.2.1
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
notificationx / admin / includes / fields / nx-theme.php

nx-theme.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 1.2.1, at admin/includes/fields/nx-theme.php

50 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $options = '';
3 if( isset( $field['options'] ) && ! empty( $field['options'] ) ) {
4 $options = $field['options'];
5 }
6 if( isset( $field['inner_title'] ) && ! empty( $field['inner_title'] ) ) {
7 $inner_title = $field['inner_title'];
8 }
9
10 $theme_title = '';
11 $type_content = isset( $field['type_content'] ) ? $field['type_content'] : false;
12 ?>
13
14
15 <div class="nx-theme-control-wrapper" data-name="<?php echo $name; ?>">
16 <?php if( ! empty( $inner_title ) ) : ?>
17 <h3><?php echo $inner_title; ?></h3>
18 <?php endif; ?>
19 <div class="nx-theme-field-inner">
20 <?php
21 if( is_array( $options ) ) {
22 $is_pro = false;
23 foreach( $options as $opt_key => $opt_value ) {
24 $selected = ( $value == $opt_key ) ? 'checked="true"' : '';
25 if( is_array( $opt_value ) ) {
26 $is_pro = isset( $opt_value['is_pro'] ) ? $opt_value['is_pro'] : $is_pro;
27 $opt_value = isset( $opt_value['source'] ) ? $opt_value['source'] : '';
28 }
29 ?>
30 <div class="nx-single-theme-wrapper <?php echo $is_pro ? 'nx-radio-pro' : ''; ?>">
31 <?php if( $is_pro ) : ?><sup class="pro-label">Pro</sup><?php endif; ?>
32 <input <?php echo $is_pro ? 'disabled' : ''; ?> <?php echo $selected; ?> class="nx-meta-radio nx-meta-field <?php echo $name; ?>" id="<?php echo $opt_key . '_' . $name; ?>" type="radio" name="<?php echo $name; ?>" value="<?php echo $opt_key; ?>">
33 <label for="<?php echo $opt_key . '_' . $name; ?>">
34 <?php
35 if( $type_content != 'text' ) {
36 echo '<img src="'. $opt_value .'" alt="'. $theme_title .'">';
37 } else {
38 echo $opt_value;
39 }
40 ?>
41 </label>
42 </div>
43 <?php
44 $is_pro = false;
45 }
46 }
47 ?>
48 </div>
49
50 </div>