PluginProbe
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons / trunk
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons vtrunk
trunk 1.2.2 2.0 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.6
support-chat / views / admin / app / add-input.php

add-input.php in WP Click to Chat – Email, Live Chat, Call & Book Now Buttons trunk, at views/admin/app/add-input.php

64 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <div class="wpsaio-app-input-wrap <?php echo esc_attr( $state ); ?>" data-appname="<?php echo esc_attr( $type ); ?>">
3 <div class="wpsaio-handler-sort">
4 <div class="handler-sort">
5 <span class="saio-icon-sort"></span>
6 </div>
7 <div style="<?php echo esc_attr( 'background:'. $color_icon ); ?>" class="wp-saio-icon wp-saio-icon-<?php echo esc_attr( $type ); ?>">
8 <?php
9 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
10 echo $icon;
11 ?>
12 </div>
13 <?php if (str_contains($type, 'custom-app')) {
14 $class = "wp-saio-$type";
15 ?>
16 <input require id="wp-saio-custom-app-title-input" class="wp-saio-title <?php echo esc_attr($class) ?>" type='text' value="<?php echo esc_attr($title); ?>" />
17 <?php } else { ?>
18 <div class="wp-saio-title"><?php echo esc_html( $title ); ?></div>
19 <?php } ?>
20 </div>
21 <div class="wpsaio-input-content">
22 <div class="wp-saio-input-wrap">
23 <?php
24 // Allow necessary HTML tags for inputs
25 echo wp_kses( $inputs, array(
26 'div' => array(
27 'class' => array(),
28 ),
29 'input' => array(
30 'class' => array(),
31 'type' => array(),
32 'name' => array(),
33 'value' => array(),
34 'placeholder' => array(),
35 'required' => array(),
36 'data-appname' => array(),
37 'data-appkey' => array(),
38 'id' => array(),
39 ),
40 'span' => array(
41 'class' => array(),
42 'data-target' => array(),
43 ),
44 'a' => array(
45 'href' => array(),
46 'class' => array(),
47 'data-target' => array(),
48 ),
49 ) );
50 ?>
51 </div>
52
53 <?php if (str_contains($type, 'custom-app')) { ?>
54 <div class="wpsaio-btns">
55 <span class="wpsaio-btn-move">
56 <img src="<?php echo esc_url(WP_SAIO_URL); ?>/assets/admin/img/move.svg" alt="" />
57 </span>
58 <div class="wpsaio-btn-remove">
59 <span class="saio-icon-close"></span>
60 </div>
61 </div>
62 <?php } ?>
63 </div>
64 </div>