| 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 |
| 27 |
<input type="radio" name="display_type" value="1" <?php echo isset($styledata['display_type']) && ($styledata['display_type'] == 1) ? ' checked' : '' ?> disabled> Click |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
<tr> |
| 31 |
<td> |
| 32 |
<b>Custom CSS <span class="imh-6310-pro">(Pro)</span>:</b></b> |
| 33 |
</td> |
| 34 |
<td> |
| 35 |
<textarea class="imh-6310-form-input" name="custom_css" rows="10"><?php echo isset($cssData['custom_css']) ? esc_attr($cssData['custom_css']) : '' ?></textarea> |
| 36 |
</td> |
| 37 |
</tr> |
| 38 |
</table> |
| 39 |
</div> |
| 40 |
<div class="imh-6310-col-50"> |
| 41 |
<table class="table table-responsive imh_6310_admin_table"> |
| 42 |
<tr height="50"> |
| 43 |
<td> |
| 44 |
<b>Display Zoom Feature <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
<input type="radio" name="zoom_feature" value="1" checked>No |
| 48 |
<input type="radio" name="zoom_feature" value="2" <?php echo isset($cssData['zoom_feature']) && ($cssData['zoom_feature'] == 2) ? ' checked' : '' ?>>Yes |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr height="50" class="toggle-zoom-feature"> |
| 52 |
<td> |
| 53 |
<b>Display Device Type <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 54 |
</td> |
| 55 |
<td> |
| 56 |
<select name="display_device" class="imh-6310-form-input"> |
| 57 |
<option value="1">Only Mobile</option> |
| 58 |
<option value="2" <?php echo isset($cssData['display_device']) && ($cssData['display_device'] == 2) ? ' selected' : '' ?>>Only Desktop</option> |
| 59 |
<option value="3" <?php echo isset($cssData['display_device']) && ($cssData['display_device'] == 3) ? ' selected' : '' ?>>Both Desktop & Mobile</option> |
| 60 |
</select> |
| 61 |
</td> |
| 62 |
</tr> |
| 63 |
<tr height="50" class="toggle-zoom-feature"> |
| 64 |
<td> |
| 65 |
<b>Zoom In Icon <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 66 |
</td> |
| 67 |
<td style="display: flex; align-items: center; padding-top: 10px"> |
| 68 |
<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' ?>" /> |
| 69 |
<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"> |
| 70 |
<button class="imh-6310-btn-success imh-6310-zoom-icon">Upload Icon</button> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
<tr height="50" class="toggle-zoom-feature" style="background: #f2f2f2 !important;"> |
| 74 |
<td> |
| 75 |
<b>Zoom Out Icon <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 76 |
</td> |
| 77 |
<td style="display: flex; align-items: center; padding-top: 10px"> |
| 78 |
<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' ?>" /> |
| 79 |
<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"> |
| 80 |
<button class="imh-6310-btn-success imh-6310-zoom-icon">Upload Icon</button> |
| 81 |
</td> |
| 82 |
</tr> |
| 83 |
<tr height="50" class="toggle-zoom-feature" style="background: #fff !important;"> |
| 84 |
<td> |
| 85 |
<b>Desktop Icon Size <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 86 |
</td> |
| 87 |
<td> |
| 88 |
<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' ?>" /> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
<tr height="50" class="toggle-zoom-feature" style="background: #f2f2f2 !important;"> |
| 92 |
<td> |
| 93 |
<b>Mobile Icon Size <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 94 |
</td> |
| 95 |
<td> |
| 96 |
<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' ?>" /> |
| 97 |
</td> |
| 98 |
</tr> |
| 99 |
<tr height="50" class="toggle-zoom-feature" style="background: #fff !important;"> |
| 100 |
<td> |
| 101 |
<b>Icon Position <span class="imh-6310-pro">(Pro)</span>:</b><br /> |
| 102 |
</td> |
| 103 |
<td> |
| 104 |
<select name="icon_position" class="imh-6310-form-input"> |
| 105 |
<?php |
| 106 |
$positions = [ |
| 107 |
'right-top' => 'Right Top', |
| 108 |
'right-bottom' => 'Right Bottom', |
| 109 |
'left-top' => 'Left Top', |
| 110 |
'left-bottom' => 'Left Bottom', |
| 111 |
'flex-start' => 'Left', |
| 112 |
'center' => 'Center', |
| 113 |
'flex-end' => 'Right', |
| 114 |
]; |
| 115 |
|
| 116 |
$selectedKey = isset($cssData['icon_position']) ? $cssData['icon_position'] : 'right-top'; |
| 117 |
foreach ($positions as $key => $label) { |
| 118 |
$selected = ($key === $selectedKey) ? ' selected' : ''; |
| 119 |
echo "<option value=\"{$key}\"{$selected}>{$label}</option>\n"; |
| 120 |
} |
| 121 |
?> |
| 122 |
</select> |
| 123 |
</td> |
| 124 |
</tr> |
| 125 |
<tr height="40px" class="toggle-zoom-feature toggle-zoom-feature-background" style="background: #f2f2f2 !important;"> |
| 126 |
<td><label class="imh-6310-form-label" for="icons">Icon Background:</label><span class="imh-6310-pro">(Pro)</span></td> |
| 127 |
<td> |
| 128 |
<input type="text" name="icon_background" class="imh_6310_icon_background imh-6310-form-input imh_6310_color_picker" data-opacity="0.8" data-format="rgb" value="<?php echo isset($cssData['icon_background']) ? esc_attr($cssData['icon_background']) : 'rgba(0, 0, 0, 0.9)' ?>"> |
| 129 |
</td> |
| 130 |
</tr> |
| 131 |
</table> |
| 132 |
</div> |
| 133 |
</div> |
| 134 |
</div> |
| 135 |
<hr /> |
| 136 |
<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" /> |
| 137 |
<br class="imh-6310-clear" /> |
| 138 |
</div> |
| 139 |
</form> |
| 140 |
</div> |