Plugin Directory

Changeset 1586656


Ignore:
Timestamp:
02/01/2017 05:28:23 PM (9 years ago)
Author:
ionutmorariu
Message:

CHG: prefix slt gmap

Location:
scale-lite-tools/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scale-lite-tools/trunk/assets/js/admin.sl-maps.js

    r1586624 r1586656  
    1616      }
    1717      function codeAddress(callback) {
    18         var address = document.getElementById('center-map-location').value;
     18        var address = document.getElementById('slt-gmap-center-map-location').value;
    1919        (function(){
    2020          geocoder.geocode( { 'address': address}, function(results, status) {
  • scale-lite-tools/trunk/inc/sl-google-maps/class-slt-gmap-meta-fields.php

    r1586608 r1586656  
    1414  private $fields = array(
    1515    array(
    16       'id' => 'center-map-location',
     16      'id' => 'slt-gmap-center-map-location',
    1717      'label' => 'Center map location',
    1818      'type' => 'textarea',
     
    136136        case 'textarea':
    137137          switch ( $field['id'] ) {
    138             case 'center-map-location':
     138            case 'slt-gmap-center-map-location':
    139139              if(empty($db_value)) {
    140140                $db_value = '350 5th Ave, New York, NY 10118, USA';
  • scale-lite-tools/trunk/inc/sl-google-maps/render-cpt.php

    r1586624 r1586656  
    109109  if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
    110110    // post meta
    111     $map_latitude = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-latitude',true);
    112     $map_longitude = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-latitude',true);
    113     $map_markers = explode(',', get_post_meta(get_the_ID(),'gmap_options_slt-gmap-markers',true));
    114     $html_id = get_post_meta(get_the_ID(),'gmap_options_html-id',true);
    115     $width = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-width',true);
    116     $height = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-height',true);
    117     $map_type = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-type',true);
    118     $zoom = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-zoom',true);
    119     $show_info_titles = get_post_meta(get_the_ID(),'gmap_options_slt-gmap-show-marker-info-box',true);
     111    $map_latitude = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-latitude',true);
     112    $map_longitude = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-longitude',true);
     113    $map_markers = explode(',', get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-markers',true));
     114    $html_id = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-html-id',true);
     115    $width = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-width',true);
     116    $height = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-height',true);
     117    $map_type = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-map-type',true);
     118    $zoom = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-zoom',true);
     119    $show_info_titles = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-show-marker-info-box',true);
    120120
    121121    global $mapsArray;
Note: See TracChangeset for help on using the changeset viewer.