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 / woocommerce-button.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
woocommerce-button.php
166 lines
1 <?php
2 use NTA_WhatsApp\Helper;
3 ?>
4 <p><?php echo __('Display WhatsApp click to chat button on WooCommerce single product pages.', 'ninjateam-whatsapp') ?></p>
5 <table class="form-table">
6 <tbody>
7 <tr>
8 <th scope="row"><label for="nta-wa-switch-control"><?php echo __('Enabled', 'ninjateam-whatsapp') ?></label></th>
9 <td>
10 <div class="nta-wa-switch-control">
11 <input type="checkbox" id="nta-wa-switch" name="isShow" <?php checked($option['isShow'], 'ON') ?>>
12 <label for="nta-wa-switch" class="green"></label>
13 </div>
14 </td>
15 </tr>
16 <tr>
17 <th scope="row"><label for="position"><?php echo __('Button position', 'ninjateam-whatsapp') ?></label></th>
18 <td>
19 <div class="nta-wa-d-row nta-wa-border-box">
20 <div class="nta-wa-radio-select-img njt-wa-pro-tooltip">
21 <input type="radio" id="nta-wa_before_atc" name="position" value="before_atc" <?php checked($option['position'], 'before_atc') ?>>
22 <label for="nta-wa_before_atc">
23 <div class="nta-wa-radio-img-wrap">
24 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL . 'assets/img/woo_settings/before_add_to_cart.png' ?>">
25 </div>
26 <span><?php echo __('Before Add to Cart button', 'ninjateam-whatsapp') ?></span>
27 </label>
28 </div>
29 <div class="nta-wa-radio-select-img">
30 <input type="radio" id="nta-wa_after_atc" name="position" value="after_atc" <?php checked($option['position'], 'after_atc') ?>>
31 <label for="nta-wa_after_atc">
32 <div class="nta-wa-radio-img-wrap">
33 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL . 'assets/img/woo_settings/after_add_to_cart.png' ?>">
34 </div>
35 <span><?php echo __('After Add to Cart button', 'ninjateam-whatsapp') ?></span>
36 </label>
37 </div>
38 <div class="nta-wa-radio-select-img njt-wa-pro-tooltip">
39 <input type="radio" id="nta-wa_after_short_description" name="position" value="after_short_description" <?php checked($option['position'], 'after_short_description') ?>>
40 <label for="nta-wa_after_short_description">
41 <div class="nta-wa-radio-img-wrap">
42 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL . 'assets/img/woo_settings/after_short_desc.png' ?>">
43 </div>
44 <span><?php echo __('After short description', 'ninjateam-whatsapp') ?></span>
45 </label>
46 </div>
47 <div class="nta-wa-radio-select-img njt-wa-pro-tooltip">
48 <input type="radio" id="nta-wa_after_long_description" name="position" value="after_long_description" <?php checked($option['position'], 'after_long_description') ?>>
49 <label for="nta-wa_after_long_description">
50 <div class="nta-wa-radio-img-wrap">
51 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL . 'assets/img/woo_settings/after_long_desc.png' ?>">
52 </div>
53 <span><?php echo __('After long description', 'ninjateam-whatsapp') ?></span>
54 </label>
55 </div>
56 </div>
57 </td>
58 </tr>
59 <tr>
60 <th scope="row"><label for="selected_accounts"><?php echo __('Select accounts to display', 'ninjateam-whatsapp') ?></label></th>
61 <td>
62 <div id="app-woo"></div>
63 </td>
64 </tr>
65 <tr>
66 <th scope="row"><label for=""><?php echo __('Third party integrations (PRO)', 'ninjateam-whatsapp') ?></label></th>
67 <td>
68 <div class="nta-wa-built-in-feature">
69 <div class="nta-wa-switch-control">
70 <input class="njt-wa-pro" type="checkbox" id="nta-wa-dokan-enabled-switch" name="nta-wa-dokan-enabled-switch" <?php checked('OFF') ?>>
71 <label for="nta-wa-dokan-enabled-switch" class="green njt-wa-pro-tooltip"></label>
72 </div>
73 <div class="nta-wa-label" style="margin-top:4px"><?php echo __('Enable Dokan vendor button', 'ninjateam-whatsapp') ?></div>
74 </div>
75 </td>
76 </tr>
77 </tbody>
78 </table>
79 <button class="button button-large button-primary wa-save"><?php echo __('Save Changes', 'ninjateam-whatsapp') ?><span></span></button>
80
81 <script type="text/template" id="selectedAccountTemplate">
82 <div class="search-account">
83 <input id="input-users" class="ui-autocomplete-loading" type="text" autocomplete="off" placeholder="Search account by enter name or title">
84 </div>
85 <br/>
86 </script>
87
88 <script type="text/template" id="accountItemView">
89 <div class="nta-list-items">
90 <div class="box-content">
91 <div class="box-row">
92 <div class="account-avatar">
93 <% if (!_.isEmpty(account.avatar)) { %>
94 <div class="wa_img_wrap" style="background: url(<%= account.avatar %>) center center no-repeat; background-size: cover;"></div>
95 <% } else { %>
96 <?php echo Helper::print_icon(); ?>
97 <% } %>
98 </div>
99 <div class="container-block">
100 <h4><%= account.accountName %></h4>
101 <p><%= account.title %></p>
102 <p>
103 <% _.each(daysOfWeek, function (day) { %>
104 <% if (account.isAlwaysAvailable == 'ON') { %>
105 <span class="active-date"><%= day[1] %></span>
106 <% } else { %>
107 <span class="<%= (account['daysOfWeekWorking'][day[0]]['isWorkingOnDay'] === 'ON') ? 'active-date' : '' %>"><%= day[1] %></span>
108 <% } %>
109 <% }); %>
110 </p>
111 </div>
112 </div>
113 </div>
114 </div>
115 </script>
116
117 <script type="text/template" id="accountListTemplate">
118 <label class="nta-list-status">
119 <strong>
120 <% if (_.isEmpty(activeAccounts)) { %>
121 <?php echo __('Please select accounts you want them to display in WhatsApp Chat Widget', 'ninjateam-whatsapp') ?>
122 <% } else { %>
123 <?php echo __('Selected Accounts:', 'ninjateam-whatsapp') ?>
124 <% } %>
125 </strong>
126 </label>
127 <% if (!_.isEmpty(activeAccounts)) { %>
128 <div class="nta-list-box-accounts postbox" id="sortable">
129 <% _.each(activeAccounts, function (account) { %>
130 <div class="nta-list-items" data-index="<%= account.accountId %>" data-position="<%= account.wc_position %>">
131 <div class="box-content box-content-woo">
132 <div class="box-row">
133 <div class="account-avatar">
134 <% if (!_.isEmpty(account.avatar)) { %>
135 <div class="wa_img_wrap" style="background: url(<%= account.avatar %>) center center no-repeat; background-size: cover;"></div>
136 <% } else { %>
137 <?php echo Helper::print_icon(); ?>
138 <% } %>
139 </div>
140 <div class="container-block">
141 <a href="<%= account.edit_link %>">
142 <h4><%= account.accountName %></h4>
143 </a>
144 <p><%= account.title %></p>
145 <p>
146 <% _.each(daysOfWeek, function (day) { %>
147 <% if (account.isAlwaysAvailable == 'ON') { %>
148 <span class="active-date"><%= day[1] %></span>
149 <% } else { %>
150 <span class="<%= (account['daysOfWeekWorking'][day[0]]['isWorkingOnDay'] === 'ON') ? 'active-date' : '' %>"><%= day[1] %></span>
151 <% } %>
152 <% }); %>
153 </p>
154 <a data-remove="<%= account.accountId %>" class="btn-remove-account">Remove</a>
155 </div>
156 <div class="icon-block">
157 <img src="<?php echo NTA_WHATSAPP_PLUGIN_URL . 'assets/img/bar-sortable.svg' ?>" width="20px">
158 </div>
159 </div>
160 </div>
161 </div>
162 <% }); %>
163 </div>
164 <% } %>
165 </script>
166