PluginProbe ʕ •ᴥ•ʔ
WP Chat App / 3.8.2
WP Chat App v3.8.2
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 3 months ago design-preview.php 3 months ago design-settings.php 3 months ago display-settings.php 3 months ago floating-widget-settings.php 3 months ago meta-accounts.php 3 months ago meta-button-style.php 3 months ago selected-accounts.php 3 months ago settings.php 3 months ago url-settings.php 3 months ago user-role-settings.php 3 months ago woocommerce-button.php 3 months ago
display-settings.php
106 lines
1 <table class="form-table">
2 <p><?php echo esc_html__( 'Setting text and style for the floating widget.', 'wp-whatsapp' ); ?></p>
3 <tbody>
4 <tr>
5 <th scope="row"><label for="time_symbols"><?php echo esc_html__( 'Time Symbols', 'wp-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 esc_html__( 'Show on desktop', 'wp-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 esc_html__( 'Show on mobile', 'wp-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 esc_html__( 'Display on Pages', 'wp-whatsapp' ); ?></label></th>
32 <td>
33 <select name="displayCondition" id="displayCondition">
34 <option <?php selected( $option['displayCondition'], 'showAllPage' ); ?> value="showAllPage"><?php echo esc_html__( 'Show on all pages', 'wp-whatsapp' ); ?></option>
35 <option <?php selected( $option['displayCondition'], 'includePages' ); ?> value="includePages"><?php echo esc_html__( 'Show on these pages...', 'wp-whatsapp' ); ?></option>
36 <option <?php selected( $option['displayCondition'], 'excludePages' ); ?> value="excludePages"><?php echo esc_html__( 'Hide on these pages...', 'wp-whatsapp' ); ?></option>
37 </select>
38 </td>
39 </tr>
40 <th scope="row">
41 <!-- <label for="widget_show_on_pages">
42 <?php // echo __('Select pages', 'wp-whatsapp') ?>
43 </label> -->
44 </th>
45 <td class="nta-wa-pages-content include-pages <?php echo esc_attr( 'includePages' === $option['displayCondition'] ? '' : '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 $wa_page ) :
55 ?>
56 <li>
57 <input
58 <?php
59 if ( in_array( $wa_page->ID, $array_includes ) ) {
60 echo 'checked="checked"';
61 }
62 ?>
63 name="includePages[]" class="includePages" type="checkbox" value="<?php echo esc_attr( $wa_page->ID ); ?>" id="nta-wa-hide-page-<?php echo esc_attr( $wa_page->ID ); ?>" />
64 <label for="nta-wa-hide-page-<?php echo esc_attr( $wa_page->ID ); ?>"><?php echo esc_html( $wa_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( 'excludePages' === $option['displayCondition'] ? '' : '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 $wa_page ) :
80 ?>
81 <li>
82 <input
83 <?php
84 if ( in_array( $wa_page->ID, $array_excludes ) ) {
85 echo 'checked="checked"';
86 }
87 ?>
88 name="excludePages[]" class="excludePages" type="checkbox" value="<?php echo esc_attr( $wa_page->ID ); ?>" id="nta-wa-show-page-<?php echo esc_attr( $wa_page->ID ); ?>" />
89 <label for="nta-wa-show-page-<?php echo esc_attr( $wa_page->ID ); ?>"><?php echo esc_html( $wa_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 esc_html__( 'Display on Posts (PRO)', 'wp-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 esc_html__( 'Save Changes', 'wp-whatsapp' ); ?></button>
106