PluginProbe ʕ •ᴥ•ʔ
WP Chat App / trunk
WP Chat App vtrunk
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 / selected-accounts.php
wp-whatsapp / views Last commit date
analytics.php 3 months ago design-preview.php 1 year ago design-settings.php 3 months ago display-settings.php 3 months ago floating-widget-settings.php 1 year ago meta-accounts.php 1 year ago meta-button-style.php 1 year ago selected-accounts.php 1 year ago settings.php 1 year ago url-settings.php 3 months ago user-role-settings.php 3 months ago woocommerce-button.php 3 months ago
selected-accounts.php
91 lines
1 <?php
2 use NTA_WhatsApp\Helper;
3 ?>
4 <div id="app">
5 </div>
6
7 <script type="text/template" id="selectedAccountTemplate">
8 <div class="search-account">
9 <input id="input-users" class="ui-autocomplete-loading" type="text" autocomplete="off" placeholder="Search account by enter name or title">
10 </div>
11 <br/>
12 </script>
13
14 <script type="text/template" id="accountItemView">
15 <div class="nta-list-items">
16 <div class="box-content">
17 <div class="box-row">
18 <div class="account-avatar">
19 <% if (!_.isEmpty(account.avatar)) { %>
20 <div class="wa_img_wrap" style="background: url(<%= account.avatar %>) center center no-repeat; background-size: cover;"></div>
21 <% } else { %>
22 <?php echo Helper::print_icon(); //phpcs:ignore ?>
23 <% } %>
24 </div>
25 <div class="container-block">
26 <h4><%= account.accountName %></h4>
27 <p><%= account.title %></p>
28 <p>
29 <% _.each(daysOfWeek, function (day) { %>
30 <% if (account.isAlwaysAvailable == 'ON') { %>
31 <span class="active-date"><%= day[1] %></span>
32 <% } else { %>
33 <span class="<%= (account['daysOfWeekWorking'][day[0]]['isWorkingOnDay'] === 'ON') ? 'active-date' : '' %>"><%= day[1] %></span>
34 <% } %>
35 <% }); %>
36 </p>
37 </div>
38 </div>
39 </div>
40 </div>
41 </script>
42
43 <script type="text/template" id="accountListTemplate">
44 <label class="nta-list-status">
45 <strong>
46 <% if (_.isEmpty(activeAccounts)) { %>
47 <?php echo esc_html__( 'Please select accounts you want them to display in WhatsApp Chat Widget', 'wp-whatsapp' ); ?>
48 <% } else { %>
49 <?php echo esc_html__( 'Selected Accounts:', 'wp-whatsapp' ); ?>
50 <% } %>
51 </strong>
52 </label>
53 <% if (!_.isEmpty(activeAccounts)) { %>
54 <div class="nta-list-box-accounts postbox" id="sortable">
55 <% _.each(activeAccounts, function (account) { %>
56 <div class="nta-list-items" data-index="<%= account.accountId %>" data-position="<%= account.widget_position %>">
57 <div class="box-content">
58 <div class="box-row">
59 <div class="account-avatar">
60 <% if (!_.isEmpty(account.avatar)) { %>
61 <div class="wa_img_wrap" style="background: url(<%= account.avatar %>) center center no-repeat; background-size: cover;"></div>
62 <% } else { %>
63 <?php echo Helper::print_icon(); //phpcs:ignore ?>
64 <% } %>
65 </div>
66 <div class="container-block">
67 <a href="<%= account.edit_link %>">
68 <h4><%= account.accountName %></h4>
69 </a>
70 <p><%= account.title %></p>
71 <p>
72 <% _.each(daysOfWeek, function (day) { %>
73 <% if (account.isAlwaysAvailable == 'ON') { %>
74 <span class="active-date"><%= day[1] %></span>
75 <% } else { %>
76 <span class="<%= (account['daysOfWeekWorking'][day[0]]['isWorkingOnDay'] === 'ON') ? 'active-date' : '' %>"><%= day[1] %></span>
77 <% } %>
78 <% }); %>
79 </p>
80 <a data-remove="<%= account.accountId %>" class="btn-remove-account">Remove</a>
81 </div>
82 <div class="icon-block">
83 <img src="<?php echo esc_url( NTA_WHATSAPP_PLUGIN_URL . 'assets/img/bar-sortable.svg' ); ?>" width="20px">
84 </div>
85 </div>
86 </div>
87 </div>
88 <% }); %>
89 </div>
90 <% } %>
91 </script>