Changeset 12712


Ignore:
Timestamp:
Dec 9, 2011, 4:25:31 PM (9 years ago)
Author:
patdenice
Message:

Bug corrected with PWG Stuffs.

Location:
extensions/GThumb
Files:
3 edited

Legend:

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

    r12710 r12712  
    1818$conf['GThumb'] = unserialize($conf['GThumb']);
    1919
     20// RV Thumbnails Scroller
     21if (isset($_GET['rvts']))
     22{
     23  $conf['GThumb']['big_thumb'] = false;
     24  add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);
     25}
     26
    2027add_event_handler('loc_begin_index', 'GThumb_init', 60);
    21 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);
    2228add_event_handler('ws_add_methods', 'add_gthumb_thumbnails_method');
    2329add_event_handler('get_admin_plugin_menu_links', 'GThumb_admin_menu');
     
    2834
    2935  $template->set_prefilter('index', 'GThumb_prefilter');
     36
     37  add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);
    3038
    3139  $user['nb_image_page'] = $conf['GThumb']['nb_image_page'];
     
    4351{
    4452  global $template, $conf;
    45 
    46   if (isset($_GET['rvts']))
    47   {
    48     $conf['GThumb']['big_thumb'] = false;
    49   }
    5053
    5154  $template->set_filename( 'index_thumbnails', realpath(GTHUMB_PATH.'template/gthumb.tpl'));
  • extensions/GThumb/template/gthumb.css

    r12710 r12712  
    33}
    44
    5 #thumbnails li {
     5#thumbnails .gthumb {
    66  position: relative;
    77  overflow: hidden;
     
    1111}
    1212
    13 #thumbnails li a {
     13#thumbnails .gthumb a {
    1414  position: absolute;
    1515}
    1616
    17 .thumbnail, .thumbnail:hover {
     17.gthumb .thumbnail, .gthumb .thumbnail:hover {
    1818  border: 0 none !important;
    1919  margin: 0 !important;
  • extensions/GThumb/template/gthumb.tpl

    r12710 r12712  
    11{if !empty($thumbnails)}
    22{strip}{foreach from=$thumbnails item=thumbnail}
    3 <li>
     3<li class="gthumb">
    44  <a href="{$thumbnail.URL}">
    55    <img id="gt{$thumbnail.ID}" class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"
     
    3030
    3131{html_head}
    32 <style type="text/css">#thumbnails li {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
     32<style type="text/css">#thumbnails .gthumb {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
    3333{/html_head}
    3434{/if}
Note: See TracChangeset for help on using the changeset viewer.