PluginProbe
Image Hotspot – Map Image Annotation / 2.1
Image Hotspot – Map Image Annotation v2.1
3.8 3.7 3.6 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 All 30 releases
image-map-hotspots / settings / form.php

form.php in Image Hotspot – Map Image Annotation 2.1, at settings/form.php

153 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="imh_6310_tabs_panel_settings">
2 <form method="post">
3 <?php wp_nonce_field("imh_6310_nonce_field_form") ?>
4 <input type="hidden" name="id" value="<?php echo esc_attr($ids) ?>" />
5 <input type="hidden" name="main_image" value="<?php echo isset($cssData['main_image']) ? esc_attr($cssData['main_image']) : '' ?>" />
6 <input type="hidden" name="json_data" id="imh_6310_json_field" value="<?php echo isset($cssData['json_data']) ? esc_attr($cssData['json_data']) : '' ?>" />
7 <div class="imh-6310-tab-content">
8 <div id="tab-1">
9 <div class="row imh_6310_padding_15_px">
10 <h3 class="imh-6310-tab-menu-settings">Image hotspot Settings</h3>
11 <div class="imh-6310-col-50">
12 <table class="table table-responsive imh_6310_admin_table">
13 <tr height="50">
14 <td>
15 <b>Hotspot Name</b>
16 </td>
17 <td>
18 <input type="text" class="imh-6310-form-input" required autocomplete="off" name="name" placeholder="Enter Hotspot name" value="<?php echo isset($styledata['name']) ? imh_6310_replace(esc_attr($styledata['name'])) : 'Hotspot 1' ?>">
19 </td>
20 </tr>
21 <tr height="50">
22 <td>
23 <b>Tooltip Display Type:</b><br />
24 </td>
25 <td>
26 <input type="radio" name="display_type" value="0" checked> Hover &nbsp;&nbsp;&nbsp;
27 <input type="radio" name="display_type" value="1" disabled <?php echo isset($styledata['display_type']) && ($styledata['display_type'] == 1) ? ' checked' : '' ?>> Click <span class="imh-6310-pro">(Pro)</span>
28 </td>
29 </tr>
30 <tr height="45">
31 <td>
32 <b>Tooltip Position <span class="imh-6310-pro">(Pro)</span></b>
33 </td>
34 <td>
35 <select name="tooltip_position" class="imh-6310-form-input">
36 <?php
37 $arr = ['Auto Adjust', 'Top Right', 'Center Right', 'Bottom Right', 'Top Left', 'Center Left', 'Bottom Left'];
38 $tooltip_position = isset($cssData['tooltip_position']) ? esc_attr($cssData['tooltip_position']) : 0;
39 foreach($arr as $key=>$value){
40 $selected = $key == $tooltip_position ? ' selected' : '';
41 echo "<option value='{$key}'{$selected}>{$value}</option>";
42 }
43 ?>
44 </select>
45 </td>
46 </tr>
47 <tr height="45" class="tooltip-attribute">
48 <td>
49 <b class="tooltip-attribute-text-1"></b>
50 </td>
51 <td>
52 <input type="number" class="imh-6310-form-input" required autocomplete="off" name="top_bottom" value="<?php echo isset($cssData['top_bottom']) ? esc_attr($cssData['top_bottom']) : 0 ?>">
53 </td>
54 </tr>
55 <tr height="45" class="tooltip-attribute">
56 <td>
57 <b class="tooltip-attribute-text-2"></b>
58 </td>
59 <td>
60 <input type="number" class="imh-6310-form-input" required autocomplete="off" name="left_right" value="<?php echo isset($cssData['left_right']) ? esc_attr($cssData['left_right']) : 0 ?>">
61 </td>
62 </tr>
63 <tr>
64 <td>
65 <b>Custom CSS <span class="imh-6310-pro">(Pro)</span>:</b></b>
66 </td>
67 <td>
68 <textarea class="imh-6310-form-input" name="custom_css" rows="10"><?php echo isset($cssData['custom_css']) ? esc_attr($cssData['custom_css']) : '' ?></textarea>
69 </td>
70 </tr>
71 </table>
72 </div>
73 <div class="imh-6310-col-50">
74 <table class="table table-responsive imh_6310_admin_table">
75 <tr height="50">
76 <td>
77 <b>Display Zoom Feature:</b><br />
78 </td>
79 <td>
80 <input type="radio" name="zoom_feature" value="1" checked>No &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
81 <input type="radio" name="zoom_feature" value="2" <?php echo isset($cssData['zoom_feature']) && ($cssData['zoom_feature'] == 2) ? ' checked' : '' ?>>Yes
82 </td>
83 </tr>
84 <tr height="50" class="toggle-zoom-feature">
85 <td>
86 <b>Display Device Type:</b><br />
87 </td>
88 <td>
89 <select name="display_device" class="imh-6310-form-input">
90 <option value="1">Only Mobile</option>
91 <option value="2" <?php echo isset($cssData['display_device']) && ($cssData['display_device'] == 2) ? ' selected' : '' ?>>Only Desktop</option>
92 <option value="3" <?php echo isset($cssData['display_device']) && ($cssData['display_device'] == 3) ? ' selected' : '' ?>>Both Desktop & Mobile</option>
93 </select>
94 </td>
95 </tr>
96 <tr height="50" class="toggle-zoom-feature">
97 <td>
98 <b>Zoom In Icon:</b><br />
99 </td>
100 <td style="display: flex; align-items: center; padding-top: 10px">
101 <input type="hidden" name="zoom_in_icon" value="<?php echo isset($cssData['zoom_in_icon']) && $cssData['zoom_in_icon'] ? esc_attr($cssData['zoom_in_icon']) : imh_6310_plugin_dir_url . 'assets/images/zoom-in.png' ?>" />
102 <img src="<?php echo isset($cssData['zoom_in_icon']) && $cssData['zoom_in_icon'] ? esc_attr($cssData['zoom_in_icon']) : imh_6310_plugin_dir_url . 'assets/images/zoom-in.png'; ?>" alt="" width="30" height="30">
103 <button class="imh-6310-btn-success imh-6310-zoom-icon">Upload Icon</button>
104 </td>
105 </tr>
106 <tr height="50" class="toggle-zoom-feature">
107 <td>
108 <b>Zoom Out Icon:</b><br />
109 </td>
110 <td style="display: flex; align-items: center; padding-top: 10px">
111 <input type="hidden" name="zoom_out_icon" value="<?php echo isset($cssData['zoom_out_icon']) && $cssData['zoom_out_icon'] ? esc_attr($cssData['zoom_out_icon']) : imh_6310_plugin_dir_url . 'assets/images/zoom-out.png' ?>" />
112 <img src="<?php echo isset($cssData['zoom_out_icon']) && $cssData['zoom_out_icon'] ? esc_attr($cssData['zoom_out_icon']) : imh_6310_plugin_dir_url . 'assets/images/zoom-out.png' ?>" alt="" width="30" height="30">
113 <button class="imh-6310-btn-success imh-6310-zoom-icon">Upload Icon</button>
114 </td>
115 </tr>
116 <tr height="50" class="toggle-zoom-feature">
117 <td>
118 <b>Desktop Icon Size:</b><br />
119 </td>
120 <td>
121 <input type="number" class="imh-6310-form-input" name="desktop_icon_size" value="<?php echo isset($cssData['desktop_icon_size']) ? esc_attr($cssData['desktop_icon_size']) : '30' ?>" />
122 </td>
123 </tr>
124 <tr height="50" class="toggle-zoom-feature">
125 <td>
126 <b>Mobile Icon Size:</b><br />
127 </td>
128 <td>
129 <input type="number" class="imh-6310-form-input" name="mobile_icon_size" value="<?php echo isset($cssData['mobile_icon_size']) ? esc_attr($cssData['mobile_icon_size']) : '25' ?>" />
130 </td>
131 </tr>
132 <tr height="50" class="toggle-zoom-feature">
133 <td>
134 <b>Icon Position:</b><br />
135 </td>
136 <td>
137 <select name="icon_position" class="imh-6310-form-input">
138 <option value="flex-start">Left</option>
139 <option value="center" <?php echo isset($cssData['icon_position']) && ($cssData['icon_position'] == 'center') ? ' selected' : '' ?>>Center</option>
140 <option value="flex-end" <?php echo isset($cssData['icon_position']) && ($cssData['icon_position'] == 'flex-end') ? ' selected' : '' ?>>Right</option>
141 </select>
142 </td>
143 </tr>
144 </table>
145 </div>
146 </div>
147 </div>
148 <hr />
149 <input type="submit" name="update_style_change" value="Save" class="imh-6310-btn-primary imh-6310-pull-right imh-6310-insert-ja-data" style="margin-right: 15px; margin-bottom: 10px; display: block" />
150 <br class="imh-6310-clear" />
151 </div>
152 </form>
153 </div>