Ignore:
Timestamp:
Feb 11, 2012, 6:38:34 AM (12 years ago)
Author:
rvelices
Message:

rv_gmaps compatible with core version 2.4

Location:
extensions/rv_gmaps/trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/admin/admin_edit.php

    r9069 r13092  
    116116{
    117117  $query='
    118 SELECT id,tn_ext,name,path,file,lat,lon FROM '.IMAGES_TABLE.'
     118SELECT id,representative_ext,name,path,file,lat,lon FROM '.IMAGES_TABLE.'
    119119  WHERE id IN ('.implode(',',$page['cat_elements_id']).')
    120120  '.$conf['order_by'].'
     
    130130        $tpl_var = array_merge( $image,
    131131      array(
    132         'U_TN' => get_thumbnail_url($image),
    133         'TITLE' => get_thumbnail_title($image)
     132        'U_TN' => DerivativeImage::thumb_url($image),
     133        'TITLE' => render_element_name($image)
    134134      )
    135135    );
  • extensions/rv_gmaps/trunk/admin/admin_sync.php

    r12701 r13092  
    55  $sync_options = array(
    66    'simulate' => isset($_POST['simulate']),
    7                 'use_high' => isset($_POST['use_high']),
    87    'cat_id' => isset($_POST['cat_id']) ? (int)$_POST['cat_id'] : 0,
    98    'subcats_included' => isset($_POST['subcats_included']),
     
    1211  $sync_options = array(
    1312    'simulate' => true,
    14                 'use_high' => true,
    1513    'cat_id' => 0,
    1614    'subcats_included' => true,
     
    3533
    3634    $query='
    37 SELECT id,path,lat,lon,has_high
     35SELECT id,path,lat,lon
    3836  FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id=image_id
    3937  WHERE category_id IN ('.implode(',', $cat_ids).')
     
    4341  {
    4442    $query='
    45 SELECT id,path,lat,lon,has_high
     43SELECT id,path,lat,lon
    4644  FROM '.IMAGES_TABLE;
    4745  }
     
    5351  {
    5452                $filename = $image['path'];
    55                 if ($sync_options['use_high'] and $image['has_high']=='true')
    56                         $filename = get_high_path($image);
    5753                $exif = @read_exif_data( $filename );
    5854                if ( empty($exif) )
     
    110106    array(
    111107      'SUBCATS_INCLUDED_CHECKED' => $sync_options['subcats_included'] ? 'checked="checked"' : '',
    112                         'USE_HIGH_CHECKED' => $sync_options['use_high'] ? 'checked="checked"' : ''
    113108    )
    114109  );
  • extensions/rv_gmaps/trunk/admin/admin_sync.tpl

    r8724 r13092  
    2727    <ul>
    2828      <li><label><input type="checkbox" name="simulate" value="1" checked="checked" /> {'only perform a simulation (no change in database will be made)'|@translate}</label></li>
    29                         <li><label><input type="checkbox" name="use_high" value="1" {$USE_HIGH_CHECKED} /> use high resolution images if available</label></li>
    3029    </ul>
    3130  </fieldset>
Note: See TracChangeset for help on using the changeset viewer.