Ignore:
Timestamp:
Aug 12, 2010, 11:27:21 PM (14 years ago)
Author:
grum
Message:

for panoramic images, add possibility to simulate presence of a high resolution image

Location:
extensions/gally/gally-default
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-default/admin/GallyDefault.class.inc.php

    r6700 r6752  
    3232  protected $themeProperties = Array(
    3333      'name' => 'Gally/Default',
    34       'version' => '1.3.0'
     34      'version' => '1.3.1'
    3535    );
    3636
     
    8888  {
    8989    $this->config = new Conf();
    90     $this->config->setFileName($this->directories['conf.local']."/default.conf");
     90    $this->config->setFileName($this->directories['conf.parent']."/default.conf");
    9191    $this->config->read();
    9292    $this->config->setFileName(PHPWG_ROOT_PATH."local/themes/".basename(dirname($this->directories['conf.local']))."/conf/local.conf");
  • extensions/gally/gally-default/admin/gally_img_other.tpl

    r6109 r6752  
    5757  }
    5858
     59  function setOptionCB(id)
     60  {
     61    if($('#'+id+'_cb').get(0).checked)
     62    {
     63      $('#'+id).val('yes');
     64    }
     65    else
     66    {
     67      $('#'+id).val('no');
     68    }
     69  }
     70
    5971</script>
    6072{/literal}
     
    104116      <span style="font-style:italic;margin-left:20px;">!!!&nbsp;{'gally_image_auto_scroll_warning'|@translate}&nbsp;!!!</span>
    105117    </p>
    106 
    107 
    108118    <label><input type="radio" name="f_imageAutoScroll" id="iimageAutoScroll" value="yes" {if $options.imageAutoScroll=="yes"}checked{/if}>&nbsp;{'gally_image_auto_scroll_yes'|@translate}</label><br>
    109119    <label><input type="radio" name="f_imageAutoScroll" id="iimageAutoScroll" value="no" {if $options.imageAutoScroll=="no"}checked{/if}>&nbsp;{'gally_image_auto_scroll_no'|@translate}</label><br>
     120
     121    <br>
     122    <label>
     123      <input type="checkbox" id="iimageSimulateHighRes_cb" {if $options.imageSimulateHighRes=="yes"}checked{/if} onclick="setOptionCB('iimageSimulateHighRes');">&nbsp;{'gally_image_simulate_high_res'|@translate}
     124      <input type="hidden" name="f_imageSimulateHighRes" id="iimageSimulateHighRes" value="{$options.imageSimulateHighRes}">
     125    </label><br>
     126
    110127  </fieldset>
    111128
  • extensions/gally/gally-default/conf/default.conf

    r6109 r6752  
    3434#     works well with FF2, FF3, Opera, Safari
    3535imageAutoScroll = "yes"
     36
     37
     38# -- 1.3.1 --
     39# the 'imageSimulateHighRes' option can take theses values :
     40#   "yes" => if there is no high res file and if the image need scroll, the
     41#            template simulate an high res image managment
     42#   "no"  => don't simulate high res image
     43imageSimulateHighRes = "yes"
     44
    3645
    3746# The 'imageCenterMode' option can take theses values :
     
    187196
    188197
     198
    189199# ------- Menu parameters ------------------------------------------------------
    190200
  • extensions/gally/gally-default/js/gallyjs-tpp.js

    r6109 r6752  
    160160}
    161161
     162function simulateHighRes()
     163{
     164  if(isScrollable && options.imageHaveHighRes==false && options.imageSimulateHighRes)
     165  {
     166    $('#theImgContainer').bind('click', function ()
     167      {
     168        openDisplayHigh($('#theImg').attr('src'));
     169      }
     170    ).addClass('pointer');
     171  }
     172
     173}
     174
    162175function initializeImageMode(mode)
    163176{
     
    241254
    242255  $("#theImage").css("top", imgTop);
     256
     257  simulateHighRes();
    243258
    244259}
  • extensions/gally/gally-default/language/en_UK/theme.lang.php

    r6109 r6752  
    5757$lang['gally_image_auto_scroll_warning'] = 'This function is automatically disabled with MS Internet Explorer version of which is prior to 8';
    5858
     59// v1.3.1
     60$lang['gally_image_simulate_high_res'] = 'Simulate the presence of a high resolution image for panoramic images';
     61
     62
    5963?>
  • extensions/gally/gally-default/language/fr_FR/theme.lang.php

    r6109 r6752  
    6262$lang['gally_image_auto_scroll_no'] = 'Défilement manuel de la photo';
    6363$lang['gally_image_auto_scroll_warning'] = 'Cette fonction est désactivée automatiquement avec les navigateurs MS Internet Explorer dont la version est antérieure à 8';
     64
     65// v1.3.1
     66$lang['gally_image_simulate_high_res'] = 'Simuler la présence d\'une image haute résolution pour les images panomariques';
     67
    6468?>
  • extensions/gally/gally-default/release_notes.txt

    r6700 r6752  
    7575  |         |            |   . The information bar is not displayed with IE7
    7676  |         |            |
    77   | 1.3.1   | 2010-07-09 | * mantis: bug 1767
     77  | 1.3.1   | 2010-08-12 | * mantis: bug 1767
    7878  |         |            |   . Local.conf file is not loaded
    7979  |         |            | * mantis: bug 1654
    8080  |         |            |   . warning on the admin configuration page
     81  |         |            | * not referenced bug
     82  |         |            |   . default conf is not loaded if there is a
     83  |         |            |     local.conf file
     84  |         |            | * give the possibility to manage panoramic images as
     85  |         |            |   a high resolution image
     86  |         |            |
     87  |         |            |
     88  |         |            |
     89  |         |            |
     90  |         |            |
     91  |         |            |
    8192  |         |            |
    8293  |         |            |
  • extensions/gally/gally-default/template/config.js.tpl

    r6109 r6752  
    44// configuration options for interfaces
    55options = { {/literal}
     6  imageHaveHighRes:{if isset($high)}true{else}false{/if},
    67{if $BODY_ID=='thePicturePage'}
    78  imageAutoScroll:{if #imageAutoScroll#=='yes'}true{else}false{/if},
     9  imageSimulateHighRes:{if #imageSimulateHighRes#=='yes'}true{else}false{/if},
    810  imageCenterMode:"{#imageCenterMode#}",
    911  imageCenterOffset:{#imageCenterOffset#},
Note: See TracChangeset for help on using the changeset viewer.