PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 1.0.2
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v1.0.2
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-template.php

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

26 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $class .= ' nx-template-field';
3 if( isset( $field['variables'] ) ) :
4 $variables = $field['variables'];
5 endif;
6 ?>
7 <div id="<?php echo $name; ?>">
8
9 <div contenteditable="true" class="nx-meta-template-editable">
10 <?php for( $i = 0; $i < 3; $i++ ) : ?>
11 <?php echo ! empty( $value[ $i ] ) ? $value[ $i ] . "\n<br>": "\n"; ?>
12 <?php endfor; ?>
13 </div>
14
15 <div class="nx-meta-template-hidden-field">
16 <?php for( $i = 0; $i < 3; $i++ ) : ?>
17 <input type="hidden" class="<?php echo esc_attr( $class ); ?>" name="<?php echo $name; ?>[]" value="<?php echo ! empty( $value[ $i ] ) ? $value[ $i ] : ''; ?>">
18 <?php endfor; ?>
19 </div>
20 <div class="<?php echo $name; ?>-variables">
21 <span class="<?php echo $name; ?>-variable-title"><?php _e( 'Variables: ', 'notificationx' ); ?></span>
22 <?php foreach ( $variables as $variable ) { ?>
23 <span class="nx-variable-tag"><?php echo $variable; ?></span>
24 <?php } ?>
25 </div>
26 </div>