Changeset 12705 for extensions/GThumb
- Timestamp:
- Dec 8, 2011, 5:19:34 PM (12 years ago)
- Location:
- extensions/GThumb
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GThumb/functions.inc.php
r12691 r12705 46 46 $cache_dir = $data['cache_path']; 47 47 } 48 $file = $cache_dir.'/'.md5($picture['path'] ).'.'.$picture['tn_ext'];48 $file = $cache_dir.'/'.md5($picture['path'].(!empty($picture['md5sum']) ? $picture['md5sum'] : '')).'.'.$picture['tn_ext']; 49 49 50 50 if (!is_dir($cache_dir)) -
extensions/GThumb/js/gthumb.js
r12696 r12705 19 19 build: function (selector) { 20 20 21 this.t = new Array; 21 22 this.selector = selector; 22 jQuery(selector+' img ').each(function() {23 jQuery(selector+' img.thumbnail').each(function() { 23 24 id = parseInt(this.id.substring(2)); 24 25 width = parseInt(jQuery(this).attr('width')); -
extensions/GThumb/main.inc.php
r12678 r12705 19 19 20 20 add_event_handler('loc_begin_index', 'GThumb_init', 60); 21 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2); 21 22 add_event_handler('ws_add_methods', 'add_gthumb_thumbnails_method'); 22 23 add_event_handler('get_admin_plugin_menu_links', 'GThumb_admin_menu'); … … 31 32 $page['nb_image_page'] = $conf['GThumb']['nb_image_page']; 32 33 33 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);34 35 34 if (is_dir(GTHUMB_CACHE_DIR) and !is_dir(GTHUMB_CACHE_DIR.'/'.$conf['GThumb']['height'])) 36 35 { … … 44 43 { 45 44 global $template, $conf; 45 46 if (isset($_GET['rvts'])) 47 { 48 $conf['GThumb']['big_thumb'] = false; 49 } 46 50 47 51 $template->set_filename( 'index_thumbnails', realpath(GTHUMB_PATH.'template/gthumb.tpl')); … … 137 141 138 142 $new_height = $size == 'small' ? $conf['GThumb']['height'] : $conf['GThumb']['height'] * 2 + $conf['GThumb']['margin']; 139 $file = GTHUMB_CACHE_DIR.'/'.$new_height.'/'.md5($picture['path'] ).'.'.$picture['tn_ext'];143 $file = GTHUMB_CACHE_DIR.'/'.$new_height.'/'.md5($picture['path'].(!empty($picture['md5sum']) ? $picture['md5sum'] : '')).'.'.$picture['tn_ext']; 140 144 141 145 if (file_exists($file)) -
extensions/GThumb/maintain.inc.php
r12678 r12705 22 22 } 23 23 24 function plugin_activate($plugin_id, $version) 25 { 26 if (in_array($version, array('2.3.a', '2.3.b'))) 27 { 28 include_once(PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/functions.inc.php'); 29 gtdeltree(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'GThumb'); 30 } 31 } 32 24 33 ?> -
extensions/GThumb/template/gthumb.tpl
r12696 r12705 25 25 26 26 GThumb.build('#thumbnails'); 27 $(window).bind('RVTS_loaded', function() {ldelim} GThumb.build('#thumbnails'); }); 27 28 {/footer_script} 28 29
Note: See TracChangeset
for help on using the changeset viewer.