PluginProbe ʕ •ᴥ•ʔ
WP Chat App / 3.6.1
WP Chat App v3.6.1
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 / meta-button-style.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
meta-button-style.php
82 lines
1 <div class="meta-button-style">
2 <div class="design-button" id="button-design">
3 <table class="form-table">
4 <p><?php echo __('This styling applies only to the shortcode buttons for this account.', 'ninjateam-whatsapp') ?></a></p>
5 <tbody>
6 <tr>
7 <th scope="row">
8 <label for="label"><?php echo __('Button Label', 'ninjateam-whatsapp') ?></label>
9 </th>
10 <td>
11 <input type="text" id="label" name="label" value="<?php echo esc_attr($buttonStyles['label']) ?>" placeholder="Need help? Chat via WhatsApp" class="widefat" autocomplete="off">
12 <p class="description"><?php echo __('This text applies only on shortcode button. Leave empty to use the default label.', 'ninjateam-whatsapp') ?>
13 </p>
14 </td>
15 </tr>
16 <tr>
17 <th scope="row"><label for="type"><?php echo __('Button Style', 'ninjateam-whatsapp') ?></label></th>
18 <td>
19 <div class="setting align">
20 <div class="button-group button-large" data-setting="align">
21 <button class="button btn-round <?php echo ($buttonStyles['type'] == 'round' ? 'active' : '') ?>" value="round" type="button">
22 <?php echo __('Round', 'ninjateam-whatsapp') ?>
23 </button>
24 <button class="button btn-square <?php echo ($buttonStyles['type'] == 'square' ? 'active' : '') ?>" value="square" type="button">
25 <?php echo __('Square', 'ninjateam-whatsapp') ?>
26 </button>
27 </div>
28 <input name="btnType" id="btnType" class="hidden" value="<?php echo esc_attr($buttonStyles['type']) ?>" />
29 </div>
30 </td>
31 </tr>
32 <tr>
33 <th scope="row"><label for="backgroundColor"><?php echo __('Button Background Color', 'ninjateam-whatsapp') ?></label></th>
34 <td>
35 <input type="text" id="backgroundColor" name="backgroundColor" value="<?php echo esc_attr($buttonStyles['backgroundColor']) ?>" class="widget-button-color" data-default-color="#2DB742" />
36 </td>
37 </tr>
38 <tr>
39 <th scope="row"><label for="textColor"><?php echo __('Button Text Color', 'ninjateam-whatsapp') ?></label></th>
40 <td>
41 <input type="text" id="textColor" name="textColor" value="<?php echo esc_attr($buttonStyles['textColor']) ?>" class="widget-button-color" data-default-color="#fff" />
42 </td>
43 </tr>
44 </tbody>
45 </table>
46 </div>
47 <div class="preview-button">
48 <p>Preview</p>
49 <div id="wa-button"></div>
50 </div>
51 </div>
52
53 <script>
54 var buttonStyles = <?php echo json_encode($buttonStyles); ?>
55 </script>
56 <script type="text/template" id="button-preview">
57 <div id="njt-wabutton">
58 <a href="javascript:;" class="wa__stt_online wa__button <%= buttonStyles.buttonClass %>">
59 <% if (_.isEmpty(buttonStyles.avatar)) { %>
60 <div class="wa__btn_icon">
61 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL ?>assets/img/whatsapp_logo.svg" alt="img"/>
62 </div>
63 <% } else { %>
64 <div class="wa__cs_img">
65 <div class="wa__cs_img_wrap" style="background: url(<%= buttonStyles.avatar %>) center center no-repeat; background-size: cover;">
66 </div>
67 </div>
68 <% } %>
69 <div class="wa__btn_txt">
70 <% if (!_.isEmpty(buttonStyles.title)) { %>
71 <div class="wa__cs_info">
72 <div class="wa__cs_name"><%= buttonStyles.title %></div>
73 <div class="wa__cs_status"><?php echo __('Online', 'ninjateam-whatsapp') ?></div>
74 </div>
75 <% } %>
76 <div class="wa__btn_title"><%= buttonStyles.label %></div>
77 </div>
78 </a>
79 </div>
80 </script>
81
82