Ignore:
Timestamp:
Jun 4, 2013, 10:20:25 AM (11 years ago)
Author:
plg
Message:

give a URL for Automatic size option link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/automatic_size/main.inc.php

    r23023 r23032  
    8484    $is_automatic_size = false;
    8585  }
    86   $template->assign('is_automatic_size', $is_automatic_size);
     86  $template->assign(
     87    array(
     88      'is_automatic_size' => $is_automatic_size,
     89      'ASIZE_URL' => duplicate_picture_url(),
     90      )
     91    );
    8792 
    88 
    8993  if (isset($autosize))
    9094  {
     
    127131  $pattern = '#\{foreach from=\$current\.unique_derivatives#';
    128132  $replacement = '
    129 <span class="switchCheck" id="aSizeChecked"{if !$is_automatic_size} style="visibility:hidden"{/if}>&#x2714; </span> <a id="aSize" href="" data-checked="{if $is_automatic_size}yes{else}no{/if}">{\'Automatic\'|@translate}</a>
     133<span class="switchCheck" id="aSizeChecked"{if !$is_automatic_size} style="visibility:hidden"{/if}>&#x2714; </span> <a id="aSize" href="{$ASIZE_URL}" data-checked="{if $is_automatic_size}yes{else}no{/if}">{\'Automatic\'|@translate}</a>
    130134<br><br>
    131135{foreach from=$current.unique_derivatives';
Note: See TracChangeset for help on using the changeset viewer.