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
design-settings.php
144 lines
| 1 | <table class="form-table" id="app-design"> |
| 2 | <p><?php echo __('Setting text and style for the floating widget.', 'ninjateam-whatsapp') ?></p> |
| 3 | <tbody> |
| 4 | <tr> |
| 5 | <th scope="row"><label for="title"><?php echo __('Widget Text', 'ninjateam-whatsapp') ?></label></th> |
| 6 | <td><input name="title" placeholder="Start a Conversation" type="text" id="title" value="<?php echo esc_attr($option['title']) ?>" class="regular-text"></td> |
| 7 | </tr> |
| 8 | |
| 9 | <tr> |
| 10 | <th scope="row"><label for="isShowBtnLabel"><?php echo __('Show Widget Label', 'ninjateam-whatsapp') ?></label></th> |
| 11 | <td> |
| 12 | <div class="nta-wa-switch-control" style="margin-top: 5px;"> |
| 13 | <input type="checkbox" id="isShowBtnLabel" name="isShowBtnLabel" <?php checked($option['isShowBtnLabel'], 'ON') ?>> |
| 14 | <label for="isShowBtnLabel" class="green"></label> |
| 15 | </div> |
| 16 | </td> |
| 17 | </tr> |
| 18 | |
| 19 | <tr class="<?php echo ($option['isShowBtnLabel'] === 'ON' ? '' : 'hidden') ?>"> |
| 20 | <th scope="row"><label for="btnLabel"><?php echo __('Widget Label Text', 'ninjateam-whatsapp') ?></label></th> |
| 21 | <td><input name="btnLabel" placeholder="Need Help? <strong>Chat with us</strong>" type="text" id="btnLabel" value="<?php echo esc_attr($option['btnLabel']) ?>" class="regular-text"></td> |
| 22 | </tr> |
| 23 | |
| 24 | <tr class="<?php echo ($option['isShowBtnLabel'] === 'ON' ? '' : 'hidden') ?>"> |
| 25 | <th scope="row"><label for="btnLabelWidth"><?php echo __('Widget Label Width(px)', 'ninjateam-whatsapp') ?></label></th> |
| 26 | <td> |
| 27 | <div class="range" style='--min:0; --max:500; --value:<?php echo $option['btnLabelWidth'] ?>; --text-value:"<?php echo $option['btnLabelWidth'] ?>";'> |
| 28 | <input id="btnLabelWidth" name="btnLabelWidth" type="range" min="0" max="500" value="<?php echo esc_attr($option['btnLabelWidth']) ?>" oninput="this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value', JSON.stringify(this.value))"> |
| 29 | <output></output> |
| 30 | <div class='range__progress'></div> |
| 31 | </div> |
| 32 | </td> |
| 33 | </tr> |
| 34 | |
| 35 | <tr> |
| 36 | <th scope="row"><label for="textColor"><?php echo __('Widget Text Color', 'ninjateam-whatsapp') ?></label></th> |
| 37 | <td><input type="text" id="textColor" name="textColor" value="<?php echo esc_attr($option['textColor']) ?>" class="textColor" data-default-color="#fff" /></td> |
| 38 | </tr> |
| 39 | |
| 40 | <tr> |
| 41 | <th scope="row"><label for="backgroundColor"><?php echo __('Widget Background Color', 'ninjateam-whatsapp') ?></label></th> |
| 42 | <td><input id="backgroundColor" type="text" name="backgroundColor" value="<?php echo esc_attr($option['backgroundColor']) ?>" class="backgroundColor" data-default-color="#2db742" /></td> |
| 43 | </tr> |
| 44 | <tr> |
| 45 | <th scope="row"><label for=""><?php echo __('Widget Position', 'ninjateam-whatsapp') ?></label></th> |
| 46 | <td> |
| 47 | <div class="setting align"> |
| 48 | <div class="button-group button-large" data-setting="align"> |
| 49 | <button class="button btn-left disabled njt-wa-pro-tooltip <?php echo ($option['btnPosition'] == 'left' ? 'active' : '') ?>" value="left" type="button"> |
| 50 | <?php echo __('Left', 'ninjateam-whatsapp') ?> |
| 51 | </button> |
| 52 | <button class="button btn-right <?php echo ($option['btnPosition'] == 'right' ? 'active' : '') ?>" value="right" type="button"> |
| 53 | <?php echo __('Right', 'ninjateam-whatsapp') ?> |
| 54 | </button> |
| 55 | </div> |
| 56 | <input name="btnPosition" id="btnPosition" class="hidden" value="<?php echo esc_attr($option['btnPosition']) ?>" /> |
| 57 | </div> |
| 58 | </td> |
| 59 | </tr> |
| 60 | <tr> |
| 61 | <th scope="row"><label for=""><?php echo __('Widget Distance', 'ninjateam-whatsapp') ?></label></th> |
| 62 | <td> |
| 63 | <div id="left-range-slider"> |
| 64 | <div>Left</div> |
| 65 | <div class="range" style='--min:0; --max:500; --value:<?php echo $option['btnLeftDistance'] ?>; --text-value:"<?php echo $option['btnLeftDistance'] ?>";'> |
| 66 | <input id="btnLeftDistance" name="btnLeftDistance" type="range" min="0" max="500" value="<?php echo esc_attr($option['btnLeftDistance']) ?>" oninput="this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value', JSON.stringify(this.value))"> |
| 67 | <output></output> |
| 68 | <div class='range__progress'></div> |
| 69 | </div> |
| 70 | </div> |
| 71 | <div id="right-range-slider"> |
| 72 | <div>Right</div> |
| 73 | <div class="range" style='--min:0; --max:500; --value:<?php echo $option['btnRightDistance'] ?>; --text-value:"<?php echo $option['btnRightDistance'] ?>";'> |
| 74 | <input id="btnRightDistance" name="btnRightDistance" type="range" min="0" max="500" value="<?php echo esc_attr($option['btnRightDistance']) ?>" oninput="this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value', JSON.stringify(this.value))"> |
| 75 | <output></output> |
| 76 | <div class='range__progress'></div> |
| 77 | </div> |
| 78 | </div> |
| 79 | <div> |
| 80 | <div>Bottom</div> |
| 81 | <div class="range" style='--min:0; --max:500; --value:<?php echo $option['btnBottomDistance'] ?>; --text-value:"<?php echo $option['btnBottomDistance'] ?>";'> |
| 82 | <input id="btnBottomDistance" name="btnBottomDistance" type="range" min="0" max="500" value="<?php echo esc_attr($option['btnBottomDistance']) ?>" oninput="this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value', JSON.stringify(this.value))"> |
| 83 | <output></output> |
| 84 | <div class='range__progress'></div> |
| 85 | </div> |
| 86 | </div> |
| 87 | </td> |
| 88 | </tr> |
| 89 | <tr> |
| 90 | <th scope="row"><label for=""><?php echo __('Widget Scroll Bar (PRO)', 'ninjateam-whatsapp') ?><span class="dashicons dashicons-editor-help njt-wa-tooltip"></span></label></th> |
| 91 | <td> |
| 92 | <div class="nta-wa-switch-control" style="margin-top: 5px;"> |
| 93 | <input class="njt-wa-pro" type="checkbox" id="isShowScroll" name="isShowScroll" <?php checked($option['isShowScroll'], 'ON') ?>> |
| 94 | <label for="isShowScroll" class="green njt-wa-pro-tooltip"></label> |
| 95 | </div> |
| 96 | </td> |
| 97 | </tr> |
| 98 | <tr> |
| 99 | <th scope="row"><label for=""><?php echo __('Powered-by Label (PRO)', 'ninjateam-whatsapp') ?></label></th> |
| 100 | <td> |
| 101 | <div class="nta-wa-switch-control" style="margin-top: 5px;"> |
| 102 | <input class="njt-wa-pro" type="checkbox" id="isShowPoweredBy" name="isShowPoweredBy" <?php checked($option['isShowPoweredBy'], 'ON') ?>> |
| 103 | <label for="isShowPoweredBy" class="green njt-wa-pro-tooltip"></label> |
| 104 | </div> |
| 105 | </td> |
| 106 | </tr> |
| 107 | <tr class="<?php echo ($option['isShowScroll'] === 'ON' ? '' : 'hidden') ?>"> |
| 108 | <th scope="row"><label for=""></label></th> |
| 109 | <td> |
| 110 | <div class="range" style='--min:300; --max:1000; --value:<?php echo $option['scrollHeight'] ?>; --text-value:"<?php echo $option['scrollHeight'] ?>";'> |
| 111 | <input id="scrollHeight" name="scrollHeight" type="range" min="300" max="1000" value="<?php echo esc_attr($option['scrollHeight']) ?>" oninput="this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value', JSON.stringify(this.value))"> |
| 112 | <output></output> |
| 113 | <div class='range__progress'></div> |
| 114 | </div> |
| 115 | </td> |
| 116 | </tr> |
| 117 | <tr> |
| 118 | <th scope="row"><label for="responseText"><?php echo __('Response Time Text', 'ninjateam-whatsapp') ?></label></th> |
| 119 | <td> |
| 120 | <?php wp_editor($option['responseText'], 'responseText', $editor_settings); ?> |
| 121 | </td> |
| 122 | </tr> |
| 123 | <tr> |
| 124 | <th scope="row"><label for="wp-description-wrap"><?php echo __('Description', 'ninjateam-whatsapp') ?></label></th> |
| 125 | <td> |
| 126 | <?php wp_editor($option['description'], 'description', $editor_settings_quicktags); ?> |
| 127 | </td> |
| 128 | </tr> |
| 129 | <tr> |
| 130 | <th scope="row"><label for="gdprContent"><?php echo __('GDPR Notice', 'ninjateam-whatsapp') ?></label></th> |
| 131 | <td> |
| 132 | <div class="nta-wa-switch-control" style="margin-top: 5px;"> |
| 133 | <input type="checkbox" id="nta-wa-switch-gdpr" name="isShowGDPR" <?php checked($option['isShowGDPR'], 'ON') ?>> |
| 134 | <label for="nta-wa-switch-gdpr" class="green"></label> |
| 135 | </div> |
| 136 | <br /> |
| 137 | <div id="nta-gdpr-editor" class="<?php echo ($option['isShowGDPR'] === 'ON' ? '' : 'hidden') ?>"> |
| 138 | <?php wp_editor($option['gdprContent'], 'gdprContent', $editor_settings_quicktags); ?> |
| 139 | </div> |
| 140 | </td> |
| 141 | </tr> |
| 142 | </tbody> |
| 143 | </table> |
| 144 | <button class="button button-large button-primary wa-save"><?php echo __('Save Changes', 'ninjateam-whatsapp') ?><span></span></button> |