Plugin Directory

Changeset 3356691


Ignore:
Timestamp:
09/05/2025 12:09:59 PM (7 months ago)
Author:
wpmart
Message:

modified

Location:
image-map-hotspots
Files:
6 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • image-map-hotspots/tags/3.1/assets/css/style.css

    r3353215 r3356691  
    285285  min-width: 180px;
    286286}
    287 .imh-6310-form-input-lg {
    288   min-width: 300px !important;
    289 }
     287/* .imh-6310-form-input.lg {
     288  min-width: 300px;
     289} */
    290290.imh-6310-pull-right {
    291291  float: right;
  • image-map-hotspots/tags/3.1/assets/js/json-data.js

    r3353215 r3356691  
    1515  ).val();
    1616  myObj.fontAwesomIconSize = jQuery(selector + ".imh-6310_icon_size").val();
    17   myObj.fontAwesomIconSizeInIpad = jQuery(
    18     selector + ".imh-6310_icon_size_in_ipad"
    19   ).val();
    2017  myObj.fontAwesomIconSizeInMobile = jQuery(
    2118    selector + ".imh-6310_icon_size_in_mobile"
    2219  ).val();
    2320  myObj.imgOrIconSize = jQuery(selector + ".img_or_icon_size").val();
    24   myObj.imgOrIconSizeInIpad = jQuery(
    25     selector + ".img_or_icon_size_in_ipad"
    26   ).val();
    2721  myObj.imgOrIconSizeInMobile = jQuery(
    2822    selector + ".img_or_icon_size_in_mobile"
     
    202196    });
    203197  jQuery(".imh-6310_icon_size").val(jsonData.fontAwesomIconSize);
    204   jQuery(".imh-6310_icon_size_in_ipad").val(
    205     jsonData.fontAwesomIconSizeInIpad !== undefined
    206       ? jsonData.fontAwesomIconSizeInIpad
    207       : jsonData.fontAwesomIconSize
    208   );
    209198  jQuery(".imh-6310_icon_size_in_mobile").val(
    210199    jsonData.fontAwesomIconSizeInMobile !== undefined
     
    213202  );
    214203  jQuery(".img_or_icon_size").val(jsonData.imgOrIconSize);
    215   jQuery(".img_or_icon_size_in_ipad").val(
    216     jsonData.imgOrIconSizeInIpad !== undefined
    217       ? jsonData.imgOrIconSizeInIpad
    218       : jsonData.imgOrIconSize
    219   );
    220204  jQuery(".img_or_icon_size_in_mobile").val(
    221205    jsonData.imgOrIconSizeInMobile !== undefined
     
    358342  jQuery(".imh-6310-embedded_code_link").val("");
    359343  let fieldList =
    360     ".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, .imh-6310_icon_size_in_ipad, .img_or_icon_size_in_ipad";
     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";
    361345  fieldList = fieldList.split(",");
    362346  // setTimeout(function () {
  • image-map-hotspots/tags/3.1/settings/add-point-html.php

    r3353215 r3356691  
    6161              </tr>
    6262              <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    63                 <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    64                 <td>
    65                   <input type="number" min='0' max="" name="imh-6310_icon_size_in_ipad" class="imh-6310-form-input imh-6310_icon_size_in_ipad" data-value="20">
    66                 </td>
    67               </tr>
    68               <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    6963                <td class='imh-6310-width-150'><b>Icon size in Mobile  <span class="imh-6310-pro">(Pro)</span> :</label></td>
    7064                <td>
     
    7670                <td>
    7771                  <input type="text" name="image" id="imh-6310-image-edit-1" class="imh-6310-form-input imh-6310-image-edit-1" value="">
    78                   <input type="button" value="Upload Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-1">
     72                  <input type="button" value="Upload Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-1" data-value=''>
    7973                </td>
    8074              </tr>
     
    8377                <td>
    8478                  <input type="text" name="hoverimage" id="imh-6310-image-edit-2" class="imh-6310-form-input imh-6310-image-edit-2" value="">
    85                   <input type="button" value="Upload Hover Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-2">
     79                  <input type="button" value="Upload Hover Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-2" data-value=''>
    8680                </td>
    8781              </tr>
     
    9084                <td>
    9185                  <input type="number" min='0' max="" name="img_or_icon_size" class="imh-6310-form-input img_or_icon_size" data-value="30">
    92                 </td>
    93               </tr>
    94               <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    95                 <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    96                 <td>
    97                   <input type="number" min='0' max="" name="img_or_icon_size_in_ipad" class="imh-6310-form-input img_or_icon_size_in_ipad" data-value="25">
    9886                </td>
    9987              </tr>
  • image-map-hotspots/tags/3.1/settings/edit-point-html.php

    r3353215 r3356691  
    6060                  <input type="number" min='20' max="" name="imh-6310_icon_size" class="imh-6310-form-input imh-6310_icon_size" data-value="30">
    6161                </td>
    62               </tr>       
    63               <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    64                 <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    65                 <td>
    66                   <input type="number" min='0' max="" name="imh-6310_icon_size_in_ipad" class="imh-6310-form-input imh-6310_icon_size_in_ipad" data-value="20">
    67                 </td>
    68               </tr>   
     62              </tr>           
    6963              <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    7064                <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</label></td>
     
    8882              </tr>
    8983              <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    90                 <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    91                 <td>
    92                   <input type="number" min='0' max="" name="img_or_icon_size_in_ipad" class="imh-6310-form-input img_or_icon_size_in_ipad" data-value="25">
    93                 </td>
    94               </tr>
    95               <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    9684                <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in Mobile <span class="imh-6310-pro">(Pro)</span> :</label></td>
    9785                <td>
    9886                  <input type="number" min='0' max="" name="img_or_icon_size" class="imh-6310-form-input img_or_icon_size" data-value= "30">
     87                </td>
     88              </tr>
     89              <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
     90                <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</label></td>
     91                <td>
     92                  <input type="number" min='0' max="" name="img_or_icon_size_in_mobile" class="imh-6310-form-input img_or_icon_size_in_mobile" data-value= "30">
    9993                </td>
    10094              </tr>
  • image-map-hotspots/tags/3.1/settings/plugin-settings.php

    r3353215 r3356691  
    99   wp_enqueue_media();
    1010
     11 
     12   $font_awesome = imh_6310_get_option('imh_6310_font_awesome_status');
    1113   $imh_6310_selected_server = imh_6310_get_option('imh_6310_selected_server');
    12    $imh_6310_font_awesome_status = imh_6310_get_option('imh_6310_font_awesome_status');
    13    $closeIcon = imh_6310_get_option('imh_6310_close_icon');
    14    $desktopSize = imh_6310_get_option('imh_6310_desktop_size');
    15    $iPadSize = imh_6310_get_option('imh_6310_ipad_size');
    16    $mobileSize = imh_6310_get_option('imh_6310_mobile_size');
    17 
    18    $closeIcon = $closeIcon ? $closeIcon : imh_6310_plugin_dir_url . 'assets/images/close.png';
    19    $desktopSize = $desktopSize ? $desktopSize : 30;
    20    $mobileSize = $mobileSize ? $mobileSize : 20;
    21    $iPadSize = $iPadSize ? $iPadSize : $mobileSize;
    2214
    2315   if (!empty($_POST['update']) && $_POST['update'] == 'Update') {
    24       $nonce = $_REQUEST['_wpnonce'];
    25       if (!wp_verify_nonce($nonce, 'imh-6310-nonce-update')) {
    26          die('You do not have sufficient permissions to access this page.');
    27       } else {
    28          //Server activation status
    29          $imh_6310_selected_server = imh_6310_get_option('imh_6310_selected_server');
    30          if (!$imh_6310_selected_server) {
     16    $nonce = $_REQUEST['_wpnonce'];
     17    if (!wp_verify_nonce($nonce, 'imh-6310-nonce-update')) {
     18       die('You do not have sufficient permissions to access this page.');
     19    } else {   
     20
     21        //fontawesome Font Start
     22        if($font_awesome != ''){
     23        $wpdb->query("UPDATE {$wpdb->prefix}options set
     24        option_value='". $_POST['font_awesome'] ."'
     25        where option_name = 'imh_6310_font_awesome_status'");
     26        }
     27        else{
     28        $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_font_awesome_status'");
     29        $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_font_awesome_status', '". $_POST['font_awesome'] ."')");
     30        }
     31        $font_awesome = $_POST['font_awesome'];
     32
     33        //server activation
     34        if(!$imh_6310_selected_server){
    3135            $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_selected_server'");
    32             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_selected_server', '" . $_POST['imh_6310_selected_server'] . "')");
    33          } else {
     36            $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_selected_server', '". $_POST['imh_6310_selected_server'] ."')");
     37         }
     38         else{
    3439            $wpdb->query("UPDATE {$wpdb->prefix}options set
    35                         option_value='" . $_POST['imh_6310_selected_server'] . "'
     40                        option_value='". $_POST['imh_6310_selected_server'] ."'
    3641                        where option_name = 'imh_6310_selected_server'");
    3742         }
    3843         $imh_6310_selected_server =  $_POST['imh_6310_selected_server'];
    39 
    40          //fontawesome Font Start
    41          if ($imh_6310_font_awesome_status != '') {
    42             $wpdb->query("UPDATE {$wpdb->prefix}options set
    43         option_value='" . $_POST['imh_6310_font_awesome_status'] . "'
    44         where option_name = 'imh_6310_font_awesome_status'");
    45          } else {
    46             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_font_awesome_status'");
    47             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_font_awesome_status', '" . $_POST['imh_6310_font_awesome_status'] . "')");
    48          }
    49          $imh_6310_font_awesome_status = $_POST['imh_6310_font_awesome_status'];
    50 
    51          //Next image start
    52          $imh_6310_close_icon = imh_6310_get_option('imh_6310_close_icon');
    53          if (!$imh_6310_close_icon) {
    54             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_close_icon'");
    55             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_close_icon', '" . $_POST['imh_6310_close_icon'] . "')");
    56          } else {
    57             $wpdb->query("UPDATE {$wpdb->prefix}options set
    58                       option_value='" . $_POST['imh_6310_close_icon'] . "'
    59                       where option_name = 'imh_6310_close_icon'");
    60          }
    61          $closeIcon =  $_POST['imh_6310_close_icon'];
    62 
    63 
    64          //Desktop Size
    65          $imh_6310_desktop_size = imh_6310_get_option('imh_6310_desktop_size');
    66          if (!$imh_6310_desktop_size) {
    67             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_desktop_size'");
    68             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_desktop_size', '" . $_POST['imh_6310_desktop_size'] . "')");
    69          } else {
    70             $wpdb->query("UPDATE {$wpdb->prefix}options set
    71                       option_value='" . $_POST['imh_6310_desktop_size'] . "'
    72                       where option_name = 'imh_6310_desktop_size'");
    73          }
    74          $desktopSize =  $_POST['imh_6310_desktop_size'];
    75 
    76          //iPad size
    77          $imh_6310_ipad_size = imh_6310_get_option('imh_6310_ipad_size');
    78          if (!$imh_6310_ipad_size) {
    79             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_ipad_size'");
    80             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_ipad_size', '" . $_POST['imh_6310_ipad_size'] . "')");
    81          } else {
    82             $wpdb->query("UPDATE {$wpdb->prefix}options set
    83                       option_value='" . $_POST['imh_6310_ipad_size'] . "'
    84                       where option_name = 'imh_6310_ipad_size'");
    85          }
    86          $iPadSize =  $_POST['imh_6310_ipad_size'];
    87 
    88          //Mobile size
    89          $imh_6310_mobile_size = imh_6310_get_option('imh_6310_mobile_size');
    90          if (!$imh_6310_mobile_size) {
    91             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_mobile_size'");
    92             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_mobile_size', '" . $_POST['imh_6310_mobile_size'] . "')");
    93          } else {
    94             $wpdb->query("UPDATE {$wpdb->prefix}options set
    95                       option_value='" . $_POST['imh_6310_mobile_size'] . "'
    96                       where option_name = 'imh_6310_mobile_size'");
    97          }
    98          $mobileSize =  $_POST['imh_6310_mobile_size'];
    99       }
    100    }
    101    ?>
    102    <form action="" method="post">
    103       <?php wp_nonce_field("imh-6310-nonce-update") ?>
    104       <div class="imh-6310-modal-body-form">
    105          <table width="100%" cellpadding="10" cellspacing="0">
    106          <tr>
    107             <td width="250px">
    108                <b>Activation Server:</b><br />
    109                <small>If you fetch license key activation error, please change server</small>
    110             </td>
    111             <td width="500px" colspan="2">
    112                <input type="radio" name="imh_6310_selected_server" value="1"  <?php echo ($imh_6310_selected_server != 2) ? ' checked':'' ?>> Server 1 &nbsp;&nbsp;&nbsp;
    113                <input type="radio" name="imh_6310_selected_server" value="2" <?php echo ($imh_6310_selected_server == 2) ? ' checked':'' ?>> Server 2
    114             </td>
    115          </tr>
    116             <tr>
    117                <td width="250px">
    118                   <b>Font Awesome Activation <span class="imh-6310-pro">(Pro)</span>:</b><br />
    119                </td>
    120                <td width="500px" colspan="2">
    121                   <input type="radio" name="imh_6310_font_awesome_status" value="2" checked> Active &nbsp;&nbsp;&nbsp;
    122                   <input type="radio" name="imh_6310_font_awesome_status" value="1" <?php echo ($imh_6310_font_awesome_status == 1) ? ' checked' : '' ?>> Inactive
    123                </td>
    124             </tr>
    125             <tr>
    126                <td width="250px"><b>Change Close Icon <span class="imh-6310-pro">(Pro)</span>:</b></td>
    127                <td width="500px">
    128                   <input type="text" required name="imh_6310_close_icon" id="close-icon-src" value="<?php echo $closeIcon ?>" class="imh-form-input imh-6310-form-input-lg">
    129                   <input type="button" id="close-icon" value="Change Image" class="imh-6310-btn-success">
    130                </td>
    131                <td>
    132                   <img src="<?php echo $closeIcon ?>" width="40" />
    133                </td>
    134             </tr>
    135             <tr>
    136                <td width="250px"><b>Close Icon Size in Desktop <span class="imh-6310-pro">(Pro)</span>:</b></td>
    137                <td width="500px">
    138                   <input type="number" required min="10" name="imh_6310_desktop_size" id="close-icon-src" value="<?php echo $desktopSize ?>" class="imh-form-input lg">
    139                </td>
    140             </tr>
    141             <tr>
    142                <td width="250px"><b>Close Icon Size in iPad <span class="imh-6310-pro">(Pro)</span>:</b></td>
    143                <td width="500px">
    144                   <input type="number" required min="10" name="imh_6310_ipad_size" id="close-icon-src" value="<?php echo $iPadSize ?>" class="imh-form-input lg">
    145                </td>
    146             </tr>
    147             <tr>
    148                <td width="250px"><b>Close Icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</b></td>
    149                <td width="500px">
    150                   <input type="number" required min="10" name="imh_6310_mobile_size" id="close-icon-src" value="<?php echo $mobileSize ?>" class="imh-form-input lg">
    151                </td>
    152             </tr>
    153             <tr>
    154                <td colspan="3">
    155                   <input type="submit" name="update" class="imh-6310-btn-primary imh-margin-right-10" value="Update" />
    156                </td>
    157             </tr>
    158          </table>
    159       </div>
    160       <br class="imh-6310-clear" />
    161    </form>
    162 
    163    <script type="text/javascript">
    164       jQuery(document).ready(function() {
    165          jQuery("body").on("click", "#close-icon", function(e) {
    166             e.preventDefault();
    167             var image = wp
    168                .media({
    169                   title: "Upload Image",
    170                   multiple: false,
    171                })
    172                .open()
    173                .on("select", function(e) {
    174                   var uploaded_image = image.state().get("selection").first();
    175                   var image_url = uploaded_image.toJSON().url;
    176                   jQuery("#close-icon-src").val(image_url);
    177                });
    178 
    179             jQuery("#imh_6310_add_new_media").css({
    180                "overflow-x": "hidden",
    181                "overflow-y": "auto",
    182             });
    183          });
    184       })
    185    </script>
     44    }
     45 }
     46?>
     47 <form action="" method="post">
     48 <?php wp_nonce_field("imh-6310-nonce-update") ?>
     49 <div class="imh-6310-modal-body-form">
     50    <table width="100%" cellpadding="10" cellspacing="0">         
     51       <tr>
     52          <td width="250px">
     53             <b>Font Awesome Activation: </b><span class="imh-6310-pro">(Pro)</span><br />
     54           
     55          </td>
     56          <td width="500px" colspan="2">
     57             <input type="radio" name="font_awesome" value="2" checked> Active &nbsp;&nbsp;&nbsp;
     58             <input type="radio" name="font_awesome" value="1" <?php echo ($font_awesome == 1) ? ' checked':'' ?>> Inactive
     59          </td>
     60       </tr>
     61       <tr>
     62         <td width="200px">
     63            <b>Activation Server:</b><br />
     64            <small>If you fetch license key activation error, please change server</small>
     65         </td>
     66         <td width="500px" colspan="2">
     67            <input type="radio" name="imh_6310_selected_server" value="1"  <?php echo ($imh_6310_selected_server != 2) ? ' checked':'' ?>> Server 1 &nbsp;&nbsp;&nbsp;
     68            <input type="radio" name="imh_6310_selected_server" value="2" <?php echo ($imh_6310_selected_server == 2) ? ' checked':'' ?>> Server 2
     69         </td>
     70      </tr>
     71       <tr>
     72          <td colspan="3">
     73             <input type="submit" name="update" class="imh-6310-btn-primary imh-margin-right-10" value="Update" />
     74          </td>
     75       </tr>
     76    </table>
     77 </div>
     78 <br class="imh-6310-clear" />
     79</form>
  • image-map-hotspots/trunk/assets/css/style.css

    r3353215 r3356691  
    285285  min-width: 180px;
    286286}
    287 .imh-6310-form-input-lg {
    288   min-width: 300px !important;
    289 }
     287/* .imh-6310-form-input.lg {
     288  min-width: 300px;
     289} */
    290290.imh-6310-pull-right {
    291291  float: right;
  • image-map-hotspots/trunk/assets/js/json-data.js

    r3353215 r3356691  
    1515  ).val();
    1616  myObj.fontAwesomIconSize = jQuery(selector + ".imh-6310_icon_size").val();
    17   myObj.fontAwesomIconSizeInIpad = jQuery(
    18     selector + ".imh-6310_icon_size_in_ipad"
    19   ).val();
    2017  myObj.fontAwesomIconSizeInMobile = jQuery(
    2118    selector + ".imh-6310_icon_size_in_mobile"
    2219  ).val();
    2320  myObj.imgOrIconSize = jQuery(selector + ".img_or_icon_size").val();
    24   myObj.imgOrIconSizeInIpad = jQuery(
    25     selector + ".img_or_icon_size_in_ipad"
    26   ).val();
    2721  myObj.imgOrIconSizeInMobile = jQuery(
    2822    selector + ".img_or_icon_size_in_mobile"
     
    202196    });
    203197  jQuery(".imh-6310_icon_size").val(jsonData.fontAwesomIconSize);
    204   jQuery(".imh-6310_icon_size_in_ipad").val(
    205     jsonData.fontAwesomIconSizeInIpad !== undefined
    206       ? jsonData.fontAwesomIconSizeInIpad
    207       : jsonData.fontAwesomIconSize
    208   );
    209198  jQuery(".imh-6310_icon_size_in_mobile").val(
    210199    jsonData.fontAwesomIconSizeInMobile !== undefined
     
    213202  );
    214203  jQuery(".img_or_icon_size").val(jsonData.imgOrIconSize);
    215   jQuery(".img_or_icon_size_in_ipad").val(
    216     jsonData.imgOrIconSizeInIpad !== undefined
    217       ? jsonData.imgOrIconSizeInIpad
    218       : jsonData.imgOrIconSize
    219   );
    220204  jQuery(".img_or_icon_size_in_mobile").val(
    221205    jsonData.imgOrIconSizeInMobile !== undefined
     
    358342  jQuery(".imh-6310-embedded_code_link").val("");
    359343  let fieldList =
    360     ".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, .imh-6310_icon_size_in_ipad, .img_or_icon_size_in_ipad";
     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";
    361345  fieldList = fieldList.split(",");
    362346  // setTimeout(function () {
  • image-map-hotspots/trunk/settings/add-point-html.php

    r3353215 r3356691  
    6161              </tr>
    6262              <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    63                 <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    64                 <td>
    65                   <input type="number" min='0' max="" name="imh-6310_icon_size_in_ipad" class="imh-6310-form-input imh-6310_icon_size_in_ipad" data-value="20">
    66                 </td>
    67               </tr>
    68               <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    6963                <td class='imh-6310-width-150'><b>Icon size in Mobile  <span class="imh-6310-pro">(Pro)</span> :</label></td>
    7064                <td>
     
    7670                <td>
    7771                  <input type="text" name="image" id="imh-6310-image-edit-1" class="imh-6310-form-input imh-6310-image-edit-1" value="">
    78                   <input type="button" value="Upload Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-1">
     72                  <input type="button" value="Upload Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-1" data-value=''>
    7973                </td>
    8074              </tr>
     
    8377                <td>
    8478                  <input type="text" name="hoverimage" id="imh-6310-image-edit-2" class="imh-6310-form-input imh-6310-image-edit-2" value="">
    85                   <input type="button" value="Upload Hover Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-2">
     79                  <input type="button" value="Upload Hover Image" class="imh-6310-btn-default imh-6310-icon-upload custom-icon-image" data-id="imh-6310-image-edit-2" data-value=''>
    8680                </td>
    8781              </tr>
     
    9084                <td>
    9185                  <input type="number" min='0' max="" name="img_or_icon_size" class="imh-6310-form-input img_or_icon_size" data-value="30">
    92                 </td>
    93               </tr>
    94               <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    95                 <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    96                 <td>
    97                   <input type="number" min='0' max="" name="img_or_icon_size_in_ipad" class="imh-6310-form-input img_or_icon_size_in_ipad" data-value="25">
    9886                </td>
    9987              </tr>
  • image-map-hotspots/trunk/settings/edit-point-html.php

    r3353215 r3356691  
    6060                  <input type="number" min='20' max="" name="imh-6310_icon_size" class="imh-6310-form-input imh-6310_icon_size" data-value="30">
    6161                </td>
    62               </tr>       
    63               <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    64                 <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    65                 <td>
    66                   <input type="number" min='0' max="" name="imh-6310_icon_size_in_ipad" class="imh-6310-form-input imh-6310_icon_size_in_ipad" data-value="20">
    67                 </td>
    68               </tr>   
     62              </tr>           
    6963              <tr height="40px" class="imh-6310-form-icon imh-6310-marker imh-6310-marker-type-1">
    7064                <td class='imh-6310-width-150'><label class="imh-6310-form-label" for="icons">Icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</label></td>
     
    8882              </tr>
    8983              <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    90                 <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in iPad <span class="imh-6310-pro">(Pro)</span> :</label></td>
    91                 <td>
    92                   <input type="number" min='0' max="" name="img_or_icon_size_in_ipad" class="imh-6310-form-input img_or_icon_size_in_ipad" data-value="25">
    93                 </td>
    94               </tr>
    95               <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
    9684                <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in Mobile <span class="imh-6310-pro">(Pro)</span> :</label></td>
    9785                <td>
    9886                  <input type="number" min='0' max="" name="img_or_icon_size" class="imh-6310-form-input img_or_icon_size" data-value= "30">
     87                </td>
     88              </tr>
     89              <tr class="imh-6310-marker imh-6310-marker-type-2 imh-6310-hide">
     90                <td class='imh-6310-width-150'><label class="imh-6310-form-label">Image / icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</label></td>
     91                <td>
     92                  <input type="number" min='0' max="" name="img_or_icon_size_in_mobile" class="imh-6310-form-input img_or_icon_size_in_mobile" data-value= "30">
    9993                </td>
    10094              </tr>
  • image-map-hotspots/trunk/settings/plugin-settings.php

    r3353215 r3356691  
    99   wp_enqueue_media();
    1010
     11 
     12   $font_awesome = imh_6310_get_option('imh_6310_font_awesome_status');
    1113   $imh_6310_selected_server = imh_6310_get_option('imh_6310_selected_server');
    12    $imh_6310_font_awesome_status = imh_6310_get_option('imh_6310_font_awesome_status');
    13    $closeIcon = imh_6310_get_option('imh_6310_close_icon');
    14    $desktopSize = imh_6310_get_option('imh_6310_desktop_size');
    15    $iPadSize = imh_6310_get_option('imh_6310_ipad_size');
    16    $mobileSize = imh_6310_get_option('imh_6310_mobile_size');
    17 
    18    $closeIcon = $closeIcon ? $closeIcon : imh_6310_plugin_dir_url . 'assets/images/close.png';
    19    $desktopSize = $desktopSize ? $desktopSize : 30;
    20    $mobileSize = $mobileSize ? $mobileSize : 20;
    21    $iPadSize = $iPadSize ? $iPadSize : $mobileSize;
    2214
    2315   if (!empty($_POST['update']) && $_POST['update'] == 'Update') {
    24       $nonce = $_REQUEST['_wpnonce'];
    25       if (!wp_verify_nonce($nonce, 'imh-6310-nonce-update')) {
    26          die('You do not have sufficient permissions to access this page.');
    27       } else {
    28          //Server activation status
    29          $imh_6310_selected_server = imh_6310_get_option('imh_6310_selected_server');
    30          if (!$imh_6310_selected_server) {
     16    $nonce = $_REQUEST['_wpnonce'];
     17    if (!wp_verify_nonce($nonce, 'imh-6310-nonce-update')) {
     18       die('You do not have sufficient permissions to access this page.');
     19    } else {   
     20
     21        //fontawesome Font Start
     22        if($font_awesome != ''){
     23        $wpdb->query("UPDATE {$wpdb->prefix}options set
     24        option_value='". $_POST['font_awesome'] ."'
     25        where option_name = 'imh_6310_font_awesome_status'");
     26        }
     27        else{
     28        $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_font_awesome_status'");
     29        $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_font_awesome_status', '". $_POST['font_awesome'] ."')");
     30        }
     31        $font_awesome = $_POST['font_awesome'];
     32
     33        //server activation
     34        if(!$imh_6310_selected_server){
    3135            $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_selected_server'");
    32             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_selected_server', '" . $_POST['imh_6310_selected_server'] . "')");
    33          } else {
     36            $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_selected_server', '". $_POST['imh_6310_selected_server'] ."')");
     37         }
     38         else{
    3439            $wpdb->query("UPDATE {$wpdb->prefix}options set
    35                         option_value='" . $_POST['imh_6310_selected_server'] . "'
     40                        option_value='". $_POST['imh_6310_selected_server'] ."'
    3641                        where option_name = 'imh_6310_selected_server'");
    3742         }
    3843         $imh_6310_selected_server =  $_POST['imh_6310_selected_server'];
    39 
    40          //fontawesome Font Start
    41          if ($imh_6310_font_awesome_status != '') {
    42             $wpdb->query("UPDATE {$wpdb->prefix}options set
    43         option_value='" . $_POST['imh_6310_font_awesome_status'] . "'
    44         where option_name = 'imh_6310_font_awesome_status'");
    45          } else {
    46             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_font_awesome_status'");
    47             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_font_awesome_status', '" . $_POST['imh_6310_font_awesome_status'] . "')");
    48          }
    49          $imh_6310_font_awesome_status = $_POST['imh_6310_font_awesome_status'];
    50 
    51          //Next image start
    52          $imh_6310_close_icon = imh_6310_get_option('imh_6310_close_icon');
    53          if (!$imh_6310_close_icon) {
    54             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_close_icon'");
    55             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_close_icon', '" . $_POST['imh_6310_close_icon'] . "')");
    56          } else {
    57             $wpdb->query("UPDATE {$wpdb->prefix}options set
    58                       option_value='" . $_POST['imh_6310_close_icon'] . "'
    59                       where option_name = 'imh_6310_close_icon'");
    60          }
    61          $closeIcon =  $_POST['imh_6310_close_icon'];
    62 
    63 
    64          //Desktop Size
    65          $imh_6310_desktop_size = imh_6310_get_option('imh_6310_desktop_size');
    66          if (!$imh_6310_desktop_size) {
    67             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_desktop_size'");
    68             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_desktop_size', '" . $_POST['imh_6310_desktop_size'] . "')");
    69          } else {
    70             $wpdb->query("UPDATE {$wpdb->prefix}options set
    71                       option_value='" . $_POST['imh_6310_desktop_size'] . "'
    72                       where option_name = 'imh_6310_desktop_size'");
    73          }
    74          $desktopSize =  $_POST['imh_6310_desktop_size'];
    75 
    76          //iPad size
    77          $imh_6310_ipad_size = imh_6310_get_option('imh_6310_ipad_size');
    78          if (!$imh_6310_ipad_size) {
    79             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_ipad_size'");
    80             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_ipad_size', '" . $_POST['imh_6310_ipad_size'] . "')");
    81          } else {
    82             $wpdb->query("UPDATE {$wpdb->prefix}options set
    83                       option_value='" . $_POST['imh_6310_ipad_size'] . "'
    84                       where option_name = 'imh_6310_ipad_size'");
    85          }
    86          $iPadSize =  $_POST['imh_6310_ipad_size'];
    87 
    88          //Mobile size
    89          $imh_6310_mobile_size = imh_6310_get_option('imh_6310_mobile_size');
    90          if (!$imh_6310_mobile_size) {
    91             $wpdb->query("DELETE FROM {$wpdb->prefix}options where option_name='imh_6310_mobile_size'");
    92             $wpdb->query("INSERT INTO {$wpdb->prefix}options(option_name, option_value) VALUES ('imh_6310_mobile_size', '" . $_POST['imh_6310_mobile_size'] . "')");
    93          } else {
    94             $wpdb->query("UPDATE {$wpdb->prefix}options set
    95                       option_value='" . $_POST['imh_6310_mobile_size'] . "'
    96                       where option_name = 'imh_6310_mobile_size'");
    97          }
    98          $mobileSize =  $_POST['imh_6310_mobile_size'];
    99       }
    100    }
    101    ?>
    102    <form action="" method="post">
    103       <?php wp_nonce_field("imh-6310-nonce-update") ?>
    104       <div class="imh-6310-modal-body-form">
    105          <table width="100%" cellpadding="10" cellspacing="0">
    106          <tr>
    107             <td width="250px">
    108                <b>Activation Server:</b><br />
    109                <small>If you fetch license key activation error, please change server</small>
    110             </td>
    111             <td width="500px" colspan="2">
    112                <input type="radio" name="imh_6310_selected_server" value="1"  <?php echo ($imh_6310_selected_server != 2) ? ' checked':'' ?>> Server 1 &nbsp;&nbsp;&nbsp;
    113                <input type="radio" name="imh_6310_selected_server" value="2" <?php echo ($imh_6310_selected_server == 2) ? ' checked':'' ?>> Server 2
    114             </td>
    115          </tr>
    116             <tr>
    117                <td width="250px">
    118                   <b>Font Awesome Activation <span class="imh-6310-pro">(Pro)</span>:</b><br />
    119                </td>
    120                <td width="500px" colspan="2">
    121                   <input type="radio" name="imh_6310_font_awesome_status" value="2" checked> Active &nbsp;&nbsp;&nbsp;
    122                   <input type="radio" name="imh_6310_font_awesome_status" value="1" <?php echo ($imh_6310_font_awesome_status == 1) ? ' checked' : '' ?>> Inactive
    123                </td>
    124             </tr>
    125             <tr>
    126                <td width="250px"><b>Change Close Icon <span class="imh-6310-pro">(Pro)</span>:</b></td>
    127                <td width="500px">
    128                   <input type="text" required name="imh_6310_close_icon" id="close-icon-src" value="<?php echo $closeIcon ?>" class="imh-form-input imh-6310-form-input-lg">
    129                   <input type="button" id="close-icon" value="Change Image" class="imh-6310-btn-success">
    130                </td>
    131                <td>
    132                   <img src="<?php echo $closeIcon ?>" width="40" />
    133                </td>
    134             </tr>
    135             <tr>
    136                <td width="250px"><b>Close Icon Size in Desktop <span class="imh-6310-pro">(Pro)</span>:</b></td>
    137                <td width="500px">
    138                   <input type="number" required min="10" name="imh_6310_desktop_size" id="close-icon-src" value="<?php echo $desktopSize ?>" class="imh-form-input lg">
    139                </td>
    140             </tr>
    141             <tr>
    142                <td width="250px"><b>Close Icon Size in iPad <span class="imh-6310-pro">(Pro)</span>:</b></td>
    143                <td width="500px">
    144                   <input type="number" required min="10" name="imh_6310_ipad_size" id="close-icon-src" value="<?php echo $iPadSize ?>" class="imh-form-input lg">
    145                </td>
    146             </tr>
    147             <tr>
    148                <td width="250px"><b>Close Icon Size in Mobile <span class="imh-6310-pro">(Pro)</span>:</b></td>
    149                <td width="500px">
    150                   <input type="number" required min="10" name="imh_6310_mobile_size" id="close-icon-src" value="<?php echo $mobileSize ?>" class="imh-form-input lg">
    151                </td>
    152             </tr>
    153             <tr>
    154                <td colspan="3">
    155                   <input type="submit" name="update" class="imh-6310-btn-primary imh-margin-right-10" value="Update" />
    156                </td>
    157             </tr>
    158          </table>
    159       </div>
    160       <br class="imh-6310-clear" />
    161    </form>
    162 
    163    <script type="text/javascript">
    164       jQuery(document).ready(function() {
    165          jQuery("body").on("click", "#close-icon", function(e) {
    166             e.preventDefault();
    167             var image = wp
    168                .media({
    169                   title: "Upload Image",
    170                   multiple: false,
    171                })
    172                .open()
    173                .on("select", function(e) {
    174                   var uploaded_image = image.state().get("selection").first();
    175                   var image_url = uploaded_image.toJSON().url;
    176                   jQuery("#close-icon-src").val(image_url);
    177                });
    178 
    179             jQuery("#imh_6310_add_new_media").css({
    180                "overflow-x": "hidden",
    181                "overflow-y": "auto",
    182             });
    183          });
    184       })
    185    </script>
     44    }
     45 }
     46?>
     47 <form action="" method="post">
     48 <?php wp_nonce_field("imh-6310-nonce-update") ?>
     49 <div class="imh-6310-modal-body-form">
     50    <table width="100%" cellpadding="10" cellspacing="0">         
     51       <tr>
     52          <td width="250px">
     53             <b>Font Awesome Activation: </b><span class="imh-6310-pro">(Pro)</span><br />
     54           
     55          </td>
     56          <td width="500px" colspan="2">
     57             <input type="radio" name="font_awesome" value="2" checked> Active &nbsp;&nbsp;&nbsp;
     58             <input type="radio" name="font_awesome" value="1" <?php echo ($font_awesome == 1) ? ' checked':'' ?>> Inactive
     59          </td>
     60       </tr>
     61       <tr>
     62         <td width="200px">
     63            <b>Activation Server:</b><br />
     64            <small>If you fetch license key activation error, please change server</small>
     65         </td>
     66         <td width="500px" colspan="2">
     67            <input type="radio" name="imh_6310_selected_server" value="1"  <?php echo ($imh_6310_selected_server != 2) ? ' checked':'' ?>> Server 1 &nbsp;&nbsp;&nbsp;
     68            <input type="radio" name="imh_6310_selected_server" value="2" <?php echo ($imh_6310_selected_server == 2) ? ' checked':'' ?>> Server 2
     69         </td>
     70      </tr>
     71       <tr>
     72          <td colspan="3">
     73             <input type="submit" name="update" class="imh-6310-btn-primary imh-margin-right-10" value="Update" />
     74          </td>
     75       </tr>
     76    </table>
     77 </div>
     78 <br class="imh-6310-clear" />
     79</form>
Note: See TracChangeset for help on using the changeset viewer.