Ignore:
Timestamp:
Jun 26, 2013, 8:34:21 PM (11 years ago)
Author:
flop25
Message:

adding a new option for the mouseover effect

Location:
extensions/stripped_black_bloc/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/admin/admin.inc.php

    r17858 r23569  
    3434        $config_send['catthumb']=(isset($_POST['f_catthumb'])) ? $_POST['f_catthumb'] : 'none';
    3535        $config_send['orientation_option']=(isset($_POST['f_orientation_option'])) ? $_POST['f_orientation_option'] : 'none';
     36        $config_send['hover_action']=(isset($_POST['f_hover_action'])) ? $_POST['f_hover_action'] : 'fadein';
    3637        conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config_send)));
    3738
  • extensions/stripped_black_bloc/admin/admin.tpl

    r17864 r23569  
    2323    </li>
    2424    <li>
     25      <br>
     26      <label>{'Effect to use when the mouse is over the thumbnails:'|@translate}</label>
     27      <br>
     28     <label>
     29        <input type="radio" name="f_hover_action" id="hover_action" value="fadein"  {if $options.hover_action=="fadein"}checked{/if}>
     30        &nbsp;{'Opacity at 75%, then 100% on mouseover'|@translate}</label>
     31      <br>
     32      <label>
     33        <input type="radio" name="f_hover_action" id="hover_action" value="fadeout" {if $options.hover_action=="fadeout"}checked{/if}>
     34        &nbsp;{'Opacity at 100%, then 75% on mouseover'|@translate}</label>
     35      <br>
     36      <label>
     37        <input type="radio" name="f_hover_action" id="hover_action" value="border" {if $options.hover_action=="border"}checked{/if}>
     38        &nbsp;{'For albums, the border becomes white'|@translate}</label>
     39      <br>
     40      <label>
     41        <input type="radio" name="f_hover_action" id="hover_action" value="none" {if $options.hover_action=="none"}checked{/if}>
     42        &nbsp;{'No effect'|@translate}</label>
     43      <br><br>
     44    </li>
    2545    <li>
    2646      <label for="column_width"><span class="property">{'Width of columns'|@translate}</span>&nbsp;</label>
  • extensions/stripped_black_bloc/admin/maintain.inc.php

    r17858 r23569  
    1414        'starting_to'                                           => 1,
    1515  'catthumb'         => 'none', //none - same - all
    16   'orientation_option'         => 'none' //none - max_heigth - big_landscape
     16  'orientation_option'         => 'none', //none - max_heigth - big_landscape
     17  'hover_action'         => 'fadein', //fadein - fadeout - border - none
    1718      );
    1819     
  • extensions/stripped_black_bloc/admin/upgrade.inc.php

    r17858 r23569  
    1414  'starting_to'           => 1,
    1515  'catthumb'         => 'none', //none - same - all
    16   'orientation_option'         => 'none' //none - max_heigth -big_landscape
     16  'orientation_option'         => 'none', //none - max_heigth - big_landscape
     17  'hover_action'         => 'fadein', //fadein - fadeout - border - none
    1718  );
    1819  $query = "
     
    2223  load_conf_from_db();
    2324}
    24 elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=7)
     25elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=8)
    2526{
    2627  $conff=unserialize($conf['stripped_black_bloc']);
     
    3233  'starting_to'           => (isset($conff['starting_to'])) ? $conff['starting_to'] :1,
    3334  'catthumb'         => (isset($conff['catthumb'])) ? $conff['catthumb'] :'none', //none - same - all
    34   'orientation_option'         => (isset($conff['orientation_option'])) ? $conff['orientation_option'] :'none' //none - max_heigth -big_landscape
     35  'orientation_option'         => (isset($conff['orientation_option'])) ? $conff['orientation_option'] :'none', //none - max_heigth -big_landscape
     36  'hover_action'         => (isset($conff['hover_action'])) ? $conff['hover_action'] :'fadein' //fadein - fadeout - border - none
    3537  );
    3638  conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
Note: See TracChangeset for help on using the changeset viewer.