Changeset 12930


Ignore:
Timestamp:
01/20/12 06:36:58 (8 years ago)
Author:
rvelices
Message:

feature 2548 multisize

  • comments thumbnails + no more hard coded thumbnail sizes in css
  • removed admin thumbnail page + language cleanup
Location:
trunk
Files:
2 deleted
42 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r12922 r12930  
    180180    'U_BATCH'=> $link_start.'batch_manager', 
    181181    'U_TAGS'=> $link_start.'tags', 
    182     'U_THUMBNAILS'=> $link_start.'thumbnail', 
    183182    'U_USERS'=> $link_start.'user_list', 
    184183    'U_GROUPS'=> $link_start.'group_list', 
  • trunk/admin/batch_manager_global.php

    r12922 r12930  
    416416    } 
    417417    save_upload_form_config($updates); 
    418     $template->delete_compiled_templates(); 
    419418  } 
    420419 
     
    759758  ); 
    760759 
    761 function regenerateThumbnails_prefilter($content, $smarty) 
    762 { 
    763   return str_replace('{$thumbnail.TN_SRC}', '{$thumbnail.TN_SRC}?rand='.md5(uniqid(rand(), true)), $content); 
    764 } 
    765 $template->set_prefilter('batch_manager_global', 'regenerateThumbnails_prefilter'); 
    766  
    767760trigger_action('loc_end_element_set_global'); 
    768761 
  • trunk/admin/include/functions.php

    r12917 r12930  
    20162016    case 'history': 
    20172017    case 'maintenance': 
    2018     case 'thumbnail': 
    20192018    case 'comments': 
    20202019    case 'updates': 
  • trunk/admin/themes/default/template/admin.tpl

    r12887 r12930  
    7171{/if} 
    7272        <li><a href="{$U_HISTORY_STAT}">{'History'|@translate}</a></li> 
    73 {if $ENABLE_SYNCHRONIZATION} 
    74         <li><a href="{$U_THUMBNAILS}">{'Thumbnails'|@translate}</a></li> 
    75 {/if} 
    7673        <li><a href="{$U_MAINTENANCE}">{'Maintenance'|@translate}</a></li> 
    7774{if isset($U_PENDING_COMMENTS)} 
  • trunk/comments.php

    r12922 r12930  
    117117    $category_ids = array(-1); 
    118118  } 
    119    
     119 
    120120  $page['where_clauses'][] = 
    121121    'category_id IN ('.implode(',', $category_ids).')'; 
     
    414414  $elements = array(); 
    415415  $query = ' 
    416 SELECT id, name, file, path, representative_ext 
     416SELECT * 
    417417  FROM '.IMAGES_TABLE.' 
    418418  WHERE id IN ('.implode(',', $element_ids).') 
     
    456456 
    457457    // source of the thumbnail picture 
    458     $thumbnail_src = DerivativeImage::thumb_url( $elements[$comment['image_id']] ); 
     458    $src_image = new SrcImage($elements[$comment['image_id']]); 
    459459 
    460460    // link to the full size picture 
     
    470470      'ID' => $comment['comment_id'], 
    471471      'U_PICTURE' => $url, 
    472       'TN_SRC' => $thumbnail_src, 
     472      'src_image' => $src_image, 
    473473      'ALT' => $name, 
    474474      'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 
     
    510510      if (isset($edit_comment) and ($comment['comment_id'] == $edit_comment)) 
    511511      { 
    512         $tpl_comment['IN_EDIT'] = true; 
    513         $key = get_ephemeral_key(2, $comment['image_id']); 
    514         $tpl_comment['KEY'] = $key; 
    515         $tpl_comment['IMAGE_ID'] = $comment['image_id']; 
    516         $tpl_comment['CONTENT'] = $comment['content']; 
     512        $tpl_comment['IN_EDIT'] = true; 
     513        $key = get_ephemeral_key(2, $comment['image_id']); 
     514        $tpl_comment['KEY'] = $key; 
     515        $tpl_comment['IMAGE_ID'] = $comment['image_id']; 
     516        $tpl_comment['CONTENT'] = $comment['content']; 
    517517      } 
    518518    } 
     
    535535} 
    536536 
     537$derivative_params = trigger_event('get_comments_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); 
     538$template->assign( 'derivative_params', $derivative_params ); 
     539 
    537540// include menubar 
    538541$themeconf = $template->get_template_vars('themeconf'); 
  • trunk/include/category_cats.inc.php

    r12922 r12930  
    375375  } 
    376376 
    377   $derivative_params = trigger_event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_SMALL) ); 
     377  $derivative_params = trigger_event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); 
    378378  $tpl_thumbnails_var = trigger_event('loc_end_index_category_thumbnails', $tpl_thumbnails_var, $categories); 
    379379  $template->assign( array( 
  • trunk/language/ar_SA/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'صور لا يمكن الوصول لها او لم تدعم'; 
    349349$lang['GD version'] = 'GD أصدار'; 
    350 $lang['Miniaturization parameters'] = 'تصغير البارامترات'; 
    351350$lang['generated in'] = 'إنشأت في ..'; 
    352351$lang['Results of miniaturization'] = 'نتائج التصغير'; 
  • trunk/language/ca_ES/admin.lang.php

    r12922 r12930  
    352352$lang['Photo unreachable or no support'] = 'Imatge inaccessible o no soportada'; 
    353353$lang['GD version'] = 'versió GD'; 
    354 $lang['Miniaturization parameters'] = 'Paràmetres de miniaturització'; 
    355354$lang['generated in'] = 'generat en'; 
    356355$lang['Results of miniaturization'] = 'Resultats de la miniaturització'; 
  • trunk/language/cs_CZ/admin.lang.php

    r12922 r12930  
    350350$lang['Photo unreachable or no support'] = 'Fotografie není dostupná nebo podporovaná'; 
    351351$lang['GD version'] = 'Verze GD knihovny'; 
    352 $lang['Miniaturization parameters'] = 'Parametry miniaturizace'; 
    353352$lang['generated in'] = 'generováno během'; 
    354353$lang['Results of miniaturization'] = 'Výsledky miniaturizace'; 
  • trunk/language/da_DK/admin.lang.php

    r12922 r12930  
    351351$lang['Photo unreachable or no support']     =     'Picture utilgængelig eller ikke understøttet format'; 
    352352$lang['GD version']     =     'GD version'; 
    353 $lang['Miniaturization parameters']     =     'Miniaturisering parametre'; 
    354353$lang['generated in']     =     'Genereret i'; 
    355354$lang['Results of miniaturization']     =     'Miniaturisering proces resultater'; 
  • trunk/language/de_DE/admin.lang.php

    r12922 r12930  
    345345$lang['Photo unreachable or no support'] = 'Foto unerreichbar oder nicht unterstützt'; 
    346346$lang['GD version'] = 'Version von GD Library'; 
    347 $lang['Miniaturization parameters'] = 'Einstellungen für die Vorschaubilderstellung'; 
    348347$lang['generated in'] = 'generiert in'; 
    349348$lang['Results of miniaturization'] = 'Ergebnis der Vorschaubilderstellung'; 
  • trunk/language/en_UK/admin.lang.php

    r12922 r12930  
    321321$lang['generate file listing.xml on remote site'] = "generate file listing.xml on the remote site"; 
    322322$lang['generate listing'] = "generate listing"; 
    323 $lang['generated in'] = "generated in"; 
    324323$lang['Get Support on Piwigo Forum'] = 'Get support on Piwigo forum'; 
    325324$lang['Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'] = 'Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'; 
     
    350349$lang['High definition enabled'] = "High definition enabled"; 
    351350$lang['High definition'] = "High definition"; 
    352 $lang['High dimensions'] = 'High resolution dimensions'; 
    353 $lang['High filesize'] = "High resolution filesize"; 
    354351$lang['high'] = "high"; 
    355352$lang['History'] = "History"; 
     
    360357$lang['If no HD is available and if the current websize is bigger than resize dimensions, Piwigo will move it as HD and create a downsized websize photo from it.'] = 'If no HD is available and if the current websize is bigger than resize dimensions, Piwigo will move it as HD and create a downsized websize photo from it.'; 
    361358$lang['If you encounter problems or have any question, please send a message to'] = "If you encounter problems or have any question, please send a message to"; 
    362 $lang['If you want to regenerate thumbnails, please go to the <a href="%s">Batch Manager</a>.'] = 'If you want to regenerate thumbnails, please go to the <a href="%s">Batch Manager</a>.'; 
    363359$lang['Ignore All'] = 'Ignore All'; 
    364360$lang['Ignore selected anomalies'] = "Ignore selected anomalies"; 
     
    440436$lang['Manual order'] = 'Manual order'; 
    441437$lang['manual order'] = 'manual order'; 
    442 $lang['max time'] = "max time"; 
    443438$lang['Maximum file size: %sB.'] = 'Maximum file size: %sB.'; 
    444 $lang['maximum height'] = "Maximum height"; 
    445439$lang['Maximum Height'] = 'Maximum height'; 
    446 $lang['maximum width'] = "Maximum width"; 
    447440$lang['Maximum Width'] = 'Maximum Width'; 
    448441$lang['Members'] = "Members"; 
     
    452445$lang['Metadata synchronization results'] = "Metadata synchronization results"; 
    453446$lang['Metadata synchronized from file'] = "Metadata synchronized from file"; 
    454 $lang['min time'] = "min time"; 
    455 $lang['Miniaturization parameters'] = "Miniaturization parameters"; 
    456447$lang['Minimum privacy level'] = "Minimum privacy level"; 
    457448$lang['Miscellaneous'] = 'Miscellaneous'; 
     
    475466$lang['No file was uploaded'] = 'No file was uploaded'; 
    476467$lang['No mail to send.'] = "No mail to be sent."; 
    477 $lang['No missing thumbnail'] = "No missing thumbnail"; 
    478468$lang['No photo can be deleted'] = "No photo can be deleted"; 
    479469$lang['No photo in the current set.'] = 'No photo in the current set.'; 
     
    545535$lang['photos per page'] = "photos per page"; 
    546536$lang['photos updated in the database'] = "photos updated in the database"; 
    547 $lang['photos without thumbnail (jpeg and png only)'] = "photos without thumbnail (jpeg and png only)"; 
    548537$lang['Photos'] = "Photos"; 
    549538$lang['Piwigo Administration'] = "Piwigo Administration"; 
     
    620609$lang['Restore default configuration. You will lose your plugin settings!'] = "Restore default configuration. You will lose your plugin settings!"; 
    621610$lang['Restore'] = "Restore"; 
    622 $lang['Results of miniaturization'] = "Miniaturization process results"; 
    623611$lang['Save order'] = "Save order"; 
    624612$lang['Save page visits by administrators'] = "Record pages visited by administrators"; 
     
    735723$lang['This site already exists'] = "This site already exists"; 
    736724$lang['This theme was not designed to be directly activated'] = 'This theme was not designed to be directly activated'; 
    737 $lang['Thumbnail creation'] = "Thumbnail creation"; 
    738725$lang['Thumbnail'] = "Thumbnail"; 
    739726$lang['Thumbnails generation in progress...'] = 'Thumbnails generation in progress...'; 
  • trunk/language/es_ES/admin.lang.php

    r12922 r12930  
    342342$lang['Photo unreachable or no support'] = 'foto inaccesible o no soportada'; 
    343343$lang['GD version'] = 'versión de GD'; 
    344 $lang['Miniaturization parameters'] = 'Parámetro de miniaturización'; 
    345344$lang['generated in'] = 'generada en'; 
    346345$lang['Results of miniaturization'] = 'Los resultados de la miniaturización'; 
  • trunk/language/fa_IR/admin.lang.php

    r12922 r12930  
    350350$lang['Photo unreachable or no support'] = "تصاویر غیرقابل دسترسی یا بدون پشتیبانی سیستم"; 
    351351$lang['GD version'] = "نصخه GD"; 
    352 $lang['Miniaturization parameters'] = "پارامترهای کوچک کردن"; 
    353352$lang['generated in'] = "تولید در"; 
    354353$lang['Results of miniaturization'] = "نتیج پردازش کوچک‌سازی"; 
  • trunk/language/fr_CA/admin.lang.php

    r12922 r12930  
    351351$lang['Photo unreachable or no support'] = "Image inaccessible ou format non supporté"; 
    352352$lang['GD version'] = "version de GD"; 
    353 $lang['Miniaturization parameters'] = "Paramètre de miniaturisation"; 
    354353$lang['generated in'] = "générée en"; 
    355354$lang['Results of miniaturization'] = "Résultats de la miniaturisation"; 
  • trunk/language/fr_FR/admin.lang.php

    r12922 r12930  
    349349$lang['Photo unreachable or no support'] = 'Photo inaccessible ou format non supporté'; 
    350350$lang['GD version'] = "version de GD"; 
    351 $lang['Miniaturization parameters'] = "Paramètre de miniaturisation"; 
    352351$lang['generated in'] = "générée en"; 
    353352$lang['Results of miniaturization'] = "Résultats de la miniaturisation"; 
  • trunk/language/he_IL/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'תמונה בפורמט נגיש או נתמך'; 
    349349$lang['GD version'] = 'גרסת ה '; 
    350 $lang['Miniaturization parameters'] = 'המזעור הפרמטרים'; 
    351350$lang['generated in'] = 'נוצר ב'; 
    352351$lang['Results of miniaturization'] = 'תהליך המזעור תוצאות'; 
  • trunk/language/hr_HR/admin.lang.php

    r12879 r12930  
    343343$lang['Photo unreachable or no support'] = 'Slika nedohvatna ili bez podrške'; 
    344344$lang['GD version'] = 'GD inačica'; 
    345 $lang['Miniaturization parameters'] = 'Postavke umanjivanja'; 
    346345$lang['generated in'] = 'izrađena u'; 
    347346$lang['Results of miniaturization'] = 'ishodi umanjivanja'; 
  • trunk/language/hu_HU/admin.lang.php

    r12922 r12930  
    344344$lang['Photo unreachable or no support'] = 'Kép nem elérhető, vagy formátuma nem támogatott'; 
    345345$lang['GD version'] = 'GD verzió'; 
    346 $lang['Miniaturization parameters'] = 'Kicsinyítési paraméterek'; 
    347346$lang['generated in'] = 'létrehozva'; 
    348347$lang['Results of miniaturization'] = 'Kicsinyítés eredménye'; 
     
    828827$lang['Piwigo cannot retrieve upgrade file from server'] = 'Nem tudom letölteni a frissítést a Piwigo fájl szerverről'; 
    829828$lang['Zoom'] = 'Zoom'; 
    830  
    831829$lang['High dimensions'] = 'Nagy méret'; 
    832830$lang['Downloads'] = 'Letöltés'; 
  • trunk/language/it_IT/admin.lang.php

    r12922 r12930  
    350350$lang['Photo unreachable or no support'] = 'Foto non trovata o non supportata'; 
    351351$lang['GD version'] = 'versione GD'; 
    352 $lang['Miniaturization parameters'] = 'Parametri di miniaturizzazione'; 
    353352$lang['generated in'] = 'generata in'; 
    354353$lang['Results of miniaturization'] = 'Risultati della miniaturizzazione'; 
  • trunk/language/ja_JP/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = '写真にアクセスできないか、次の内容がサポートされていません:'; 
    349349$lang['GD version'] = 'GDバージョン'; 
    350 $lang['Miniaturization parameters'] = '縮小化パラメータ'; 
    351350$lang['generated in'] = '生成時間'; 
    352351$lang['Results of miniaturization'] = '縮小化の結果'; 
  • trunk/language/ka_GE/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'ფოტო მიუწვდომელია ან არ არის მისი ფორმატის მხარდაჭერა'; 
    349349$lang['GD version'] = 'ვერსია GD'; 
    350 $lang['Miniaturization parameters'] = 'მინიატურიზაციის პარამეტრები'; 
    351350$lang['generated in'] = 'გენერირებულია'; 
    352351$lang['Results of miniaturization'] = 'მინიატურიზაციის რეზულტატი'; 
  • trunk/language/lv_LV/admin.lang.php

    r12922 r12930  
    346346$lang['Photo unreachable or no support'] = 'foto nesasniedzams vai bez atbalsta'; 
    347347$lang['GD version'] = 'GD versija'; 
    348 $lang['Miniaturization parameters'] = 'Miniaturizēšanas parametri'; 
    349348$lang['generated in'] = 'uzģenerēts '; 
    350349$lang['Results of miniaturization'] = 'Miniaturizācijas procesa rezultāti'; 
  • trunk/language/nl_NL/admin.lang.php

    r12922 r12930  
    345345$lang['Photo unreachable or no support'] = 'Afbeelding is niet bereikbaar of er is geen support'; 
    346346$lang['GD version'] = 'GD versie'; 
    347 $lang['Miniaturization parameters'] = 'Miniatuur parameters'; 
    348347$lang['generated in'] = 'gegenereerd in'; 
    349348$lang['Results of miniaturization'] = 'Resultaat van verkleinen'; 
     
    839838$lang['With no tag'] = 'Zonder tag'; 
    840839$lang['With no virtual album'] = 'Zonder virtueel album'; 
    841  
    842840$lang['Photo name'] = 'Naam van afbeelding'; 
    843841?> 
  • trunk/language/no_NO/admin.lang.php

    r12922 r12930  
    347347$lang['Photo unreachable or no support'] = 'Bilde ikke tilgjengelig eller i feil filformat'; 
    348348$lang['GD version'] = 'GD versjon'; 
    349 $lang['Miniaturization parameters'] = 'Miniatyr parameter'; 
    350349$lang['generated in'] = 'generert på'; 
    351350$lang['Results of miniaturization'] = 'Miniatyr prosess resultat'; 
  • trunk/language/pl_PL/admin.lang.php

    r12922 r12930  
    345345$lang['Photo unreachable or no support'] = 'Obraz niedostępny lub brak wsparcia'; 
    346346$lang['GD version'] = 'Wersja GD'; 
    347 $lang['Miniaturization parameters'] = 'Parametry tworzenia miniatur'; 
    348347$lang['generated in'] = 'wygenerowane w'; 
    349348$lang['Results of miniaturization'] = 'Wyniki tworzenia miniatur'; 
  • trunk/language/pt_BR/admin.lang.php

    r12922 r12930  
    347347$lang['Photo unreachable or no support'] = 'Imagem não alcançável ou nenhum suporte'; 
    348348$lang['GD version'] = 'versão GD'; 
    349 $lang['Miniaturization parameters'] = 'Parâmetros da miniaturização'; 
    350349$lang['generated in'] = 'gerado em'; 
    351350$lang['Results of miniaturization'] = 'Resultados da miniaturização'; 
  • trunk/language/pt_PT/admin.lang.php

    r12922 r12930  
    347347$lang['Photo unreachable or no support'] = 'Foto não alcançável ou sem suporte'; 
    348348$lang['GD version'] = 'versão GD'; 
    349 $lang['Miniaturization parameters'] = 'Parâmetros da miniaturização'; 
    350349$lang['generated in'] = 'gerado em'; 
    351350$lang['Results of miniaturization'] = 'Resultados da miniaturização'; 
  • trunk/language/ru_RU/admin.lang.php

    r12922 r12930  
    345345$lang['Photo unreachable or no support'] = 'Фотография недоступна или поддержка не возможна'; 
    346346$lang['GD version'] = 'версия GD'; 
    347 $lang['Miniaturization parameters'] = 'Параметры миниатюризации'; 
    348347$lang['generated in'] = 'создано за'; 
    349348$lang['Results of miniaturization'] = 'Результаты миниатюризации'; 
  • trunk/language/sh_RS/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'Slika nedostupna ili bez podrške'; 
    349349$lang['GD version'] = 'GD verzija'; 
    350 $lang['Miniaturization parameters'] = 'Parametri umanjivanja'; 
    351350$lang['generated in'] = 'izrađena u'; 
    352351$lang['Results of miniaturization'] = 'rezultati umanjivanja'; 
  • trunk/language/sk_SK/admin.lang.php

    r12922 r12930  
    347347$lang['Photo unreachable or no support'] = 'Fotografia nie je dostupná alebo podporovaná'; 
    348348$lang['GD version'] = 'Verzia GD knihovne'; 
    349 $lang['Miniaturization parameters'] = 'Parametre miniaturizácie'; 
    350349$lang['generated in'] = 'generované behom'; 
    351350$lang['Results of miniaturization'] = 'Výsledky miniaturizácie'; 
  • trunk/language/sr_RS/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'Слика недоступна или без подршке'; 
    349349$lang['GD version'] = 'ГД верзија'; 
    350 $lang['Miniaturization parameters'] = 'Параметри умањивања'; 
    351350$lang['generated in'] = 'израђена у'; 
    352351$lang['Results of miniaturization'] = 'резултати умањивања'; 
  • trunk/language/sv_SE/admin.lang.php

    r12922 r12930  
    346346$lang['Photo unreachable or no support'] = 'Bilden kunde inte nås eller filformatet stöds inte'; 
    347347$lang['GD version'] = 'GD version'; 
    348 $lang['Miniaturization parameters'] = 'Miniatyriserings parametrar'; 
    349348$lang['generated in'] = 'generering tog'; 
    350349$lang['Results of miniaturization'] = 'Resultat av miniatyriserings process'; 
  • trunk/language/th_TH/admin.lang.php

    r12922 r12930  
    407407$lang['Metadata synchronized from file'] = "ได้ถูกซิงโคไนซ์เมตาดาต้าจากไฟล์"; 
    408408$lang['min time'] = "เวลาต่ำสุด"; 
    409 $lang['Miniaturization parameters'] = "ตัวแปรการย่อขนาด"; 
    410409$lang['Minimum privacy level'] = "ระดับของความเป็นส่วนตัวน้อยที่สุด"; 
    411410$lang['Miscellaneous'] = 'เบ็ดเตล็จ'; 
  • trunk/language/tr_TR/admin.lang.php

    r12922 r12930  
    450450$lang['Metadata synchronized from file'] = 'Metadata dosyadan senkronize edildi'; 
    451451$lang['min time'] = 'men kisa time'; 
    452 $lang['Miniaturization parameters'] = 'Minyatürlestirme parametreleri'; 
    453452$lang['Minimum privacy level'] = 'En az gizlilik seviyesi'; 
    454453$lang['Miscellaneous'] = 'Karışık'; 
  • trunk/language/uk_UA/admin.lang.php

    r12922 r12930  
    376376$lang['Metadata synchronized from file'] = 'Метадані синхронізовані з файлу'; 
    377377$lang['min time'] = 'мін. час'; 
    378 $lang['Miniaturization parameters'] = 'Параметри мініатюрізації'; 
    379378$lang['Minimum privacy level'] = 'Мінімальний рівень приватності'; 
    380379$lang['Miscellaneous'] = 'Різне'; 
  • trunk/language/vi_VN/admin.lang.php

    r12922 r12930  
    348348$lang['Photo unreachable or no support'] = 'Hình không đọc được hoặc định dạng không được hỗ trợ'; 
    349349$lang['GD version'] = 'Phiên bản GD'; 
    350 $lang['Miniaturization parameters'] = 'Tối thiểu hóa tham số'; 
    351350$lang['generated in'] = 'được tạo trong'; 
    352351$lang['Results of miniaturization'] = 'Kết quả tổi thiểu hóa'; 
  • trunk/language/zh_CN/admin.lang.php

    r12929 r12930  
    346346$lang['Photo unreachable or no support'] = '不支持图片格式或无法显示'; 
    347347$lang['GD version'] = 'GD版'; 
    348 $lang['Miniaturization parameters'] = '缩略图参数'; 
    349348$lang['generated in'] = '产生于'; 
    350349$lang['Results of miniaturization'] = '缩略图结果'; 
  • trunk/language/zh_TW/admin.lang.php

    r12922 r12930  
    347347$lang['Photo unreachable or no support'] = '不支持圖片格式或無法顯示'; 
    348348$lang['GD version'] = 'GD版'; 
    349 $lang['Miniaturization parameters'] = '縮略圖參數'; 
    350349$lang['generated in'] = '產生於'; 
    351350$lang['Results of miniaturization'] = '縮略圖結果'; 
  • trunk/themes/default/template/comment_list.tpl

    r12676 r12930  
    1 {* $Id$ *} 
     1{if isset($comment_derivative_params)} 
     2{strip}{html_style} 
     3.thumbnailCategory DIV.illustration{ldelim} 
     4        width: {$comment_derivative_params->max_width()+5}px; 
     5} 
     6 
     7.content .thumbnailCategory .description{ldelim} 
     8        height: {$comment_derivative_params->max_height()+5}px; 
     9} 
     10{/html_style}{/strip} 
     11{/if} 
    212<ul class="thumbnailCategories"> 
    313{foreach from=$comments item=comment name=comment_loop} 
    414<li> 
    515        <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 
    6         {if isset($comment.TN_SRC)} 
     16        {if isset($comment.src_image)} 
    717        <div class="illustration"> 
    818                <a href="{$comment.U_PICTURE}"> 
    9                 <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> 
     19                <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}"> 
    1020                </a> 
    1121        </div> 
  • trunk/themes/default/template/comments.tpl

    r12878 r12930  
    7474{if isset($comments)} 
    7575<div id="comments"> 
    76         {include file='comment_list.tpl'} 
     76        {include file='comment_list.tpl' comment_derivative_params=$derivative_params} 
    7777</div> 
    7878{/if} 
  • trunk/themes/default/theme.css

    r12920 r12930  
    684684} 
    685685 
    686 /* Set some sizes according to your maximum thumbnail width and height */ 
    687 .thumbnailCategory DIV.illustration { 
    688   width: 140px;      /* max thumbnail width + 2px */ 
    689 } 
    690  
    691 .content .thumbnailCategory .description { 
    692   height: 140px;    /* max thumbnail height + 2px */ 
    693 } 
    694  
    695686/* Set defaults for thumbnails legend */ 
    696687.thumbnails SPAN.thumbLegend { 
Note: See TracChangeset for help on using the changeset viewer.