Changeset 3346534
- Timestamp:
- 08/18/2025 03:34:18 PM (7 months ago)
- Location:
- image-map-hotspots/trunk
- Files:
-
- 5 edited
-
assets/js/imh-6310-admin-script.js (modified) (5 diffs)
-
assets/js/json-data.js (modified) (11 diffs)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
settings/form.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-map-hotspots/trunk/assets/js/imh-6310-admin-script.js
r3330659 r3346534 245 245 `#${parentId} .imh-6310-tooltip_img_section .imh-6310-type-${val}:first, #imh_6310_custom_code-html, .imh_6310_custom_code_popup-html` 246 246 ).trigger("click"); 247 } else if (val == 3){247 } else if (val == 3) { 248 248 jQuery(".imh_6310_custom_template").removeClass("imh-6310-hide"); 249 249 jQuery( … … 251 251 ).addClass("imh-6310-hide"); 252 252 jQuery(".imh_6310_template_description").addClass("imh-6310-hide"); 253 } else if (val == 5){253 } else if (val == 5) { 254 254 jQuery( 255 255 '.imh_6310_font_prop, .imh_6310_template_embedded, .toggle-tabs li[data-id="3"], .imh_6310_template_description' 256 256 ).addClass("imh-6310-hide"); 257 257 jQuery(".imh_6310_woocommerce_image").removeClass("imh-6310-hide"); 258 } 259 else if(val == 6){ 258 } else if (val == 6) { 260 259 jQuery( 261 260 '.imh_6310_font_prop, .imh_6310_template_embedded, .toggle-tabs li[data-id="3"], .imh_6310_template_description' … … 613 612 }); 614 613 }); 614 615 615 /* ######### Custom Icon For Zoom In/Out End ########### */ 616 617 616 const zoomFeature = Number( 618 617 jQuery("input[name='zoom_feature']:checked").val() … … 621 620 ? jQuery(".toggle-zoom-feature").show() 622 621 : jQuery(".toggle-zoom-feature").hide(); 622 623 let zoomValue = jQuery("select[name='icon_position']").val(); 624 if ( 625 (zoomValue === "right-top" || 626 zoomValue === "right-bottom" || 627 zoomValue === "left-top" || 628 zoomValue === "left-bottom") && 629 zoomFeature > 1 630 ) { 631 jQuery(".toggle-zoom-feature-background").show(); 632 } else { 633 jQuery(".toggle-zoom-feature-background").hide(); 634 } 623 635 624 636 jQuery("body").on("change", "input[name='zoom_feature']", function () { … … 627 639 ? jQuery(".toggle-zoom-feature").show() 628 640 : jQuery(".toggle-zoom-feature").hide(); 641 642 const zoomValue = jQuery("select[name='icon_position']").val(); 643 if ( 644 (zoomValue === "right-top" || 645 zoomValue === "right-bottom" || 646 zoomValue === "left-top" || 647 zoomValue === "left-bottom") && 648 value > 1 649 ) { 650 jQuery(".toggle-zoom-feature-background").show(); 651 } else { 652 jQuery(".toggle-zoom-feature-background").hide(); 653 } 654 }); 655 656 jQuery("body").on("change", "select[name='icon_position']", function () { 657 const value = jQuery(this).val(); 658 if ( 659 value === "right-top" || 660 value === "right-bottom" || 661 value === "left-top" || 662 value === "left-bottom" 663 ) { 664 jQuery(".toggle-zoom-feature-background").show(); 665 } else { 666 jQuery(".toggle-zoom-feature-background").hide(); 667 } 629 668 }); 630 669 } -
image-map-hotspots/trunk/assets/js/json-data.js
r3156447 r3346534 1 imh_6310_reset_fields(); 1 2 function generateJSON(selector = "#imh-6310-add-point ") { 2 3 let myObj = {}; … … 37 38 ).val(); 38 39 myObj.blinkTooltip = jQuery(selector + ".imh-6310_blink_type:checked").val(); 39 myObj.glowColor = jQuery(selector + ".imh_6310_fontawesome_icon_glow_color").val(); 40 myObj.glowColor = jQuery( 41 selector + ".imh_6310_fontawesome_icon_glow_color" 42 ).val(); 40 43 41 44 // check element type … … 48 51 myObj.selectedTemplate = "01"; 49 52 50 myObj.popupCustomHtml = jQuery(selector + `textarea[name='imh_6310_popup_custom_html']`).val() 51 ; 52 myObj.popupCustomCss = jQuery(selector + `textarea[name='imh_6310_popup_custom_css']`).val() 53 ; 53 myObj.popupCustomHtml = jQuery( 54 selector + `textarea[name='imh_6310_popup_custom_html']` 55 ).val(); 56 myObj.popupCustomCss = jQuery( 57 selector + `textarea[name='imh_6310_popup_custom_css']` 58 ).val(); 54 59 myObj.popupCustomCodeWidth = jQuery( 55 60 selector + ".imh_6310_custom_popup_width" … … 116 121 myObj.elementType = elementType; 117 122 118 119 myCSS.styleCSS = ` 123 myCSS.styleCSS = ` 120 124 .imh-6310-drag[data-id='${window.currentPoint}'] .imh-6310-pin-main-img{ 121 125 color: ${myObj.fontAwesomeIconColor} !important; … … 128 132 129 133 `; 130 131 132 134 133 135 //imh_6310_reset_fields(); … … 213 215 jQuery(".imh_6310_fontawesome_icon_glow_color").val(jsonData.glowColor); 214 216 jQuery(".imh_6310_fontawesome_icon_glow_color") 215 .closest("div")216 .find(".minicolors-swatch-color")217 .css({218 "background-color": jsonData.glowColor,219 });220 217 .closest("div") 218 .find(".minicolors-swatch-color") 219 .css({ 220 "background-color": jsonData.glowColor, 221 }); 222 221 223 jQuery(".imh_6310_custom_text_font_color") 222 224 .closest("div") … … 252 254 ); 253 255 jQuery(".imh-6310-tooltip_discription_font_color") 254 .closest("div")255 .find(".minicolors-swatch-color")256 .css({257 "background-color": jsonData.openDesFontColor,258 });256 .closest("div") 257 .find(".minicolors-swatch-color") 258 .css({ 259 "background-color": jsonData.openDesFontColor, 260 }); 259 261 jQuery(".tooltip_discription_font_color") 260 262 .closest("div") … … 320 322 321 323 //Uncommon fields 322 323 324 } 324 if(jsonData.elementType == 1) {325 if (jsonData.elementType == 1) { 325 326 jQuery("#imh-6310-edit-point .imh-6310-tooltip-link").removeClass( 326 327 "imh-6310-hide" … … 342 343 let fieldList = 343 344 ".icons-1, .icons-2, .imh-6310-image-edit-1, .imh-6310-image-edit-2, .imh-6310_custom_enter_text, .imh_6310_custom_text_font_size, .imh_6310_custom_text_font_color, .imh_6310_custom_text_font_bg_color, .imh_6310_fontawesome_icon_color, .imh_6310_fontawesome_icon_hover_color, .imh-6310_icon_size, .imh-6310_icon_size_in_mobile, .img_or_icon_size, .img_or_icon_size_in_mobile, .imh_6310_link_text, .imh_6310_custom_link_url, .popup_embedded, .imh_6310_template_font_color, .imh_6310_template_bg_color, .imh_6310_template_font_size, .imh-6310-embedded_code_link, .imh-6310-tooltip_discription, .imh-6310-tooltip_discription_font_size, .imh_6310_fontawesome_icon_glow_color, .imh-6310-tooltip_discription_font_color, .imh-6310-button-text, .imh-6310-button-url, .imh_6310_button_text_color, .imh_6310_button_bg_color, .imh_6310_button_text_size, .imh-6310-custome_html, .imh-6310-custome_css, .imh_6310_custom_popup_width, .imh_6310_popup_custom_html, .imh_6310_popup_custom_css"; 344 fieldList = fieldList.split(",");345 fieldList = fieldList.split(","); 345 346 // setTimeout(function () { 346 347 for (let i = 0; i < fieldList.length; i++) { … … 371 372 jQuery(".imh_6310_textarea").addClass("imh-6310-hide"); 372 373 373 setTimeout(function () {374 setTimeout(function () { 374 375 if (jQuery(".imh_6310_color_picker").length) { 375 376 jQuery(".imh_6310_color_picker").each(function () { … … 425 426 "data-position", 426 427 `${xPos}-${yPos}-${tWidth}-${iconWidth}` 427 ); 428 ); 428 429 }, 429 430 }); -
image-map-hotspots/trunk/index.php
r3330659 r3346534 6 6 Author: Sk Abul Hasan 7 7 Author URI: https://www.wpmart.org/ 8 Version: 2.98 Version: 3.0 9 9 */ 10 10 … … 14 14 define('imh_6310_plugin_url', plugin_dir_path(__FILE__)); 15 15 define('imh_6310_plugin_dir_url', plugin_dir_url(__FILE__)); 16 define('imh_6310_PLUGIN_CURRENT_VERSION', 2.9);16 define('imh_6310_PLUGIN_CURRENT_VERSION', 3.0); 17 17 18 18 add_shortcode('imh_6310_image_map', 'imh_6310_image_map_shortcode'); -
image-map-hotspots/trunk/readme.txt
r3330659 r3346534 4 4 Requires at least: 5.4 5 5 Tested up to: 6.8 6 Stable tag: 2.96 Stable tag: 3.0 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 136 136 137 137 == Changelog == 138 = 3.0 = 139 * More option added in Zoom In/Out 140 138 141 = 2.9 = 139 142 * Added other plugin shortcodes option -
image-map-hotspots/trunk/settings/form.php
r3156447 r3346534 71 71 </td> 72 72 </tr> 73 <tr height="50" class="toggle-zoom-feature" >73 <tr height="50" class="toggle-zoom-feature" style="background: #f2f2f2 !important;"> 74 74 <td> 75 75 <b>Zoom Out Icon <span class="imh-6310-pro">(Pro)</span>:</b><br /> … … 81 81 </td> 82 82 </tr> 83 <tr height="50" class="toggle-zoom-feature" >83 <tr height="50" class="toggle-zoom-feature" style="background: #fff !important;"> 84 84 <td> 85 85 <b>Desktop Icon Size <span class="imh-6310-pro">(Pro)</span>:</b><br /> … … 89 89 </td> 90 90 </tr> 91 <tr height="50" class="toggle-zoom-feature" >91 <tr height="50" class="toggle-zoom-feature" style="background: #f2f2f2 !important;"> 92 92 <td> 93 93 <b>Mobile Icon Size <span class="imh-6310-pro">(Pro)</span>:</b><br /> … … 97 97 </td> 98 98 </tr> 99 <tr height="50" class="toggle-zoom-feature" >99 <tr height="50" class="toggle-zoom-feature" style="background: #fff !important;"> 100 100 <td> 101 101 <b>Icon Position <span class="imh-6310-pro">(Pro)</span>:</b><br /> … … 103 103 <td> 104 104 <select name="icon_position" class="imh-6310-form-input"> 105 <option value="flex-start">Left</option> 106 <option value="center" <?php echo isset($cssData['icon_position']) && ($cssData['icon_position'] == 'center') ? ' selected' : '' ?>>Center</option> 107 <option value="flex-end" <?php echo isset($cssData['icon_position']) && ($cssData['icon_position'] == 'flex-end') ? ' selected' : '' ?>>Right</option> 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 ?> 108 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)' ?>"> 109 129 </td> 110 130 </tr>
Note: See TracChangeset
for help on using the changeset viewer.