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
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(); ?> |
| 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 __('Please select accounts you want them to display in WhatsApp Chat Widget', 'ninjateam-whatsapp') ?> |
| 48 | <% } else { %> |
| 49 | <?php echo __('Selected Accounts:', 'ninjateam-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(); ?> |
| 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 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> |