Changeset 23569


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

adding a new option for the mouseover effect

Location:
extensions/stripped_black_bloc
Files:
10 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)));
  • extensions/stripped_black_bloc/language/en_UK/theme.lang.php

    r17872 r23569  
    1919$lang['use the same config as above'] = "use the same config as above";
    2020$lang['always generate big thumbnails'] = "always generate big thumbnails";
     21$lang['Effect to use when the mouse is over the thumbnails:'] = 'Effect to use when the mouse is over the thumbnails:';
     22$lang['Opacity at 75%, then 100% on mouseover'] = 'Opacity at 75%, then 100% on mouseover';
     23$lang['Opacity at 100%, then 75% on mouseover'] = 'Opacity at 100%, then 75% on mouseover';
     24$lang['For albums, the border becomes white'] = 'For albums, the border becomes white';
     25$lang['No effect'] = 'No effect';
    2126?>
  • extensions/stripped_black_bloc/language/fr_FR/theme.lang.php

    r22652 r23569  
    11<?php
    2 
    32$lang['The parent-theme Stripped need to be enabled in order to use its parameters'] = 'Le thème-parent Stripped doit être activé pour pouvoir utiliser ses paramètres';
    43$lang['Stripped & Columns Theme Configuration'] = 'Stripped & Columns, Page de configuration';
     
    2019$lang['use the same config as above'] = "utiliser la configuration ci-dessus";
    2120$lang['always generate big thumbnails'] = "toujours générer des grosses miniatures";
     21$lang['Effect to use when the mouse is over the thumbnails:'] = 'Effet à utiliser quand la souris survole une miniature';
     22$lang['Opacity at 75%, then 100% on mouseover'] = 'Opacité à 75%, puis à 100% au survol';
     23$lang['Opacity at 100%, then 75% on mouseover'] = 'Opacité à 100%, puis à 75% au survol';
     24$lang['For albums, the border becomes white'] = 'Pour les albums, la bordure devient blanche';
     25$lang['No effect'] = 'Aucun effet';
    2226?>
  • extensions/stripped_black_bloc/local_head.tpl

    r21516 r23569  
    8484        });
    8585}
    86 function FadeSC() {
    87 jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
    88 jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     86// fade onmouseover
     87function Hover_action_SC() {
     88{/literal}{if $stripped_black_bloc.hover_action=="fadein"}{literal}
     89  jQuery(".bloc a, .bloc_big a").fadeTo(500, 0.75);
     90  jQuery(".bloc a, .bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     91{/literal}{elseif $stripped_black_bloc.hover_action=="fadeout"}{literal}
     92  jQuery(".bloc a, .bloc_big a").hover(function() { jQuery(this).fadeTo(500, 0.75); }, function() { jQuery(this).fadeTo(500, 1);  });
     93{/literal}{elseif $stripped_black_bloc.hover_action=="border"}{literal}
     94  jQuery(".bloc a, .bloc_big a").hover(function() { jQuery(this).animate({borderColor: "#fff"}, 900); }, function() { jQuery(this).animate({borderColor: "{/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal}"}, 900);  });
     95{/literal}{/if}{literal}
    8996}
    90 jQuery(window).bind("RVTS_loaded", FadeSC);
     97jQuery(window).bind("RVTS_loaded", Hover_action_SC);
    9198
    9299
     
    94101  jQuery('#rvtsUp').remove();
    95102
    96         // fade onmouseover
    97         jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
    98   jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     103        Hover_action_SC();
    99104 
    100105        // sidemenu managment
  • extensions/stripped_black_bloc/template/mainpage_categories.tpl

    r17883 r23569  
    4343    {assign var='size' value=$derivative->get_size()}
    4444        <div class="bloc {$TN_CLASS} album">
    45                         <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" >
     45                        <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px;" >
    4646                                {$cat.NAME}
    4747                        </a>
  • extensions/stripped_black_bloc/template/stuffs_thumbnails.tpl

    r17858 r23569  
    3939     {assign var='size' value=$derivative->get_size()}
    4040<div class="bloc {$TN_CLASS}">
    41   <a href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}>
     41  <a href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}>
    4242    {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
    4343  </a>
  • extensions/stripped_black_bloc/template/thumbnails.tpl

    r18715 r23569  
    4242     {assign var='size' value=$derivative->get_size()}
    4343  <div class="bloc {$TN_CLASS}">
    44     <a title="{$thumbnail.TN_TITLE}" href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}>
     44    <a title="{$thumbnail.TN_TITLE}" href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}>
    4545    {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
    4646    </a>
Note: See TracChangeset for help on using the changeset viewer.