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/admin
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.