PluginProbe ʕ •ᴥ•ʔ
WP Chat App / 3.4.4
WP Chat App v3.4.4
3.8.1 3.8.2 trunk 2.6 3.4 3.4.1 3.4.2 3.4.4 3.4.5 3.4.6 3.5 3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0
wp-whatsapp / views / display-settings.php
wp-whatsapp / views Last commit date
analytics.php 2 years ago design-preview.php 2 years ago design-settings.php 2 years ago display-settings.php 2 years ago floating-widget-settings.php 2 years ago meta-accounts.php 2 years ago meta-button-style.php 2 years ago selected-accounts.php 2 years ago settings.php 2 years ago url-settings.php 2 years ago woocommerce-button.php 2 years ago
display-settings.php
106 lines
1 <table class="form-table">
2 <p><?php echo __( 'Setting text and style for the floating widget.', 'ninjateam-whatsapp' ); ?></p>
3 <tbody>
4 <tr>
5 <th scope="row"><label for="time_symbols"><?php echo __( 'Time Symbols', 'ninjateam-whatsapp' ); ?></label></th>
6 <td>
7 <input name="time_symbols[hourSymbol]" placeholder="h" type="text" id="time_symbols-hour" value="<?php echo esc_attr( $option['time_symbols'][0] ); ?>" class="small-text code" style="text-align: center">
8 <span>:<span>
9 <input name="time_symbols[minSymbol]" placeholder="m" type="text" id="time_symbols-minutes" value="<?php echo esc_attr( $option['time_symbols'][1] ); ?>" class="small-text code" style="text-align: center">
10 </td>
11 </tr>
12 <tr>
13 <th scope="row"><label for="nta-wa-switch-control"><?php echo __( 'Show on desktop', 'ninjateam-whatsapp' ); ?></label></th>
14 <td>
15 <div class="nta-wa-switch-control">
16 <input type="checkbox" id="nta-wa-switch" name="showOnDesktop" <?php checked( $option['showOnDesktop'], 'ON' ); ?>>
17 <label for="nta-wa-switch" class="green"></label>
18 </div>
19 </td>
20 </tr>
21 <tr>
22 <th scope="row"><label for="nta-wa-switch-control"><?php echo __( 'Show on mobile', 'ninjateam-whatsapp' ); ?></label></th>
23 <td>
24 <div class="nta-wa-switch-control">
25 <input type="checkbox" id="nta-wa-switch-mb" name="showOnMobile" <?php checked( $option['showOnMobile'], 'ON' ); ?>>
26 <label for="nta-wa-switch-mb" class="green"></label>
27 </div>
28 </td>
29 </tr>
30 <tr>
31 <th scope="row"><label for="displayCondition"><?php echo __( 'Display on Pages', 'ninjateam-whatsapp' ); ?></label></th>
32 <td>
33 <select name="displayCondition" id="displayCondition">
34 <option <?php selected( $option['displayCondition'], 'showAllPage' ); ?> value="showAllPage"><?php echo __( 'Show on all pages and posts', 'ninjateam-whatsapp' ); ?></option>
35 <option <?php selected( $option['displayCondition'], 'includePages' ); ?> value="includePages"><?php echo __( 'Show on these pages...', 'ninjateam-whatsapp' ); ?></option>
36 <option <?php selected( $option['displayCondition'], 'excludePages' ); ?> value="excludePages"><?php echo __( 'Hide on these pages...', 'ninjateam-whatsapp' ); ?></option>
37 </select>
38 </td>
39 </tr>
40 <th scope="row">
41 <!-- <label for="widget_show_on_pages">
42 <?php // echo __('Select pages', 'ninjateam-whatsapp') ?>
43 </label> -->
44 </th>
45 <td class="nta-wa-pages-content include-pages <?php echo esc_attr( $option['displayCondition'] == 'includePages' ? '' : 'hide-select' ); ?>">
46 <!-- <input type="checkbox" id="include-pages-checkall" />
47 <label for="include-pages-checkall">All</label> -->
48 <ul id="nta-wa-display-pages-list">
49 <?php
50 $array_includes = $option['includePages'];
51 if ( ! $array_includes ) {
52 $array_includes = array();
53 }
54 foreach ( $pages as $page ) :
55 ?>
56 <li>
57 <input
58 <?php
59 if ( in_array( $page->ID, $array_includes ) ) {
60 echo 'checked="checked"';
61 }
62 ?>
63 name="includePages[]" class="includePages" type="checkbox" value="<?php echo esc_attr( $page->ID ); ?>" id="nta-wa-hide-page-<?php echo esc_attr( $page->ID ); ?>" />
64 <label for="nta-wa-hide-page-<?php echo esc_attr( $page->ID ); ?>"><?php echo esc_html( $page->post_title ); ?></label>
65 </li>
66 <?php
67 endforeach;
68 ?>
69 </ul>
70 </td>
71
72 <td class="nta-wa-pages-content exclude-pages <?php echo esc_attr( $option['displayCondition'] == 'excludePages' ? '' : 'hide-select' ); ?>">
73 <ul id="nta-wa-display-pages-list">
74 <?php
75 $array_excludes = $option['excludePages'];
76 if ( ! $array_excludes ) {
77 $array_excludes = array();
78 }
79 foreach ( $pages as $page ) :
80 ?>
81 <li>
82 <input
83 <?php
84 if ( in_array( $page->ID, $array_excludes ) ) {
85 echo 'checked="checked"';
86 }
87 ?>
88 name="excludePages[]" class="excludePages" type="checkbox" value="<?php echo esc_attr( $page->ID ); ?>" id="nta-wa-show-page-<?php echo esc_attr( $page->ID ); ?>" />
89 <label for="nta-wa-show-page-<?php echo esc_attr( $page->ID ); ?>"><?php echo esc_html( $page->post_title ); ?></label>
90 </li>
91 <?php
92 endforeach;
93 ?>
94 </ul>
95 </td>
96 </tr>
97 <tr>
98 <th scope="row"><label for="njt-post-selector"><?php echo __( 'Display on Posts (PRO)', 'ninjateam-whatsapp' ); ?></label></th>
99 <td>
100 <select name="includePosts[]" id="njt-post-selector" disabled></select>
101 </td>
102 </tr>
103 </tbody>
104 </table>
105 <button class="button button-large button-primary wa-save"><?php echo __( 'Save Changes', 'ninjateam-whatsapp' ); ?><span></span></button>
106