Changeset 539 for trunk/picture.php


Ignore:
Timestamp:
Oct 2, 2004, 12:50:50 AM (20 years ago)
Author:
gweltas
Message:
  • Change of the picture page behavior to be able to open the full size image in a new window
  • Minor modification for template migration
  • Rename of script.js in scripts.js
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r536 r539  
    451451  'HEIGHT_IMG' => $picture_size[1],
    452452
     453  'L_HOME' => $lang['gallery_index'],
    453454  'L_SLIDESHOW' => $lang['slideshow'],
    454   'L_TIME' => $lang['period_seconds'],
    455455  'L_STOP_SLIDESHOW' => $lang['slideshow_stop'],
    456456  'L_PREV_IMG' =>$lang['previous_image'].' : ',
    457457  'L_ADMIN' =>$lang['link_info_image'],
    458   'L_BACK' =>$lang['back'],
    459458  'L_COMMENT_TITLE' =>$lang['comments_title'],
    460459  'L_ADD_COMMENT' =>$lang['comments_add'],
     
    468467  'L_PICTURE_METADATA' => $lang['picture_show_metadata'],
    469468  'L_PICTURE_HIGH' => $lang['picture_high'],
    470   'L_PICTURE_HIGH_ALT' => $lang['picture_high_alt'],
    471469 
    472470  'U_HOME' => add_session_id($url_home),
     
    494492if (isset($picture['current']['high']))
    495493{
    496   $template->assign_block_vars(
    497     'high',
    498     array('U_HIGH' => $picture['current']['high']));
     494  $full_size = @getimagesize($picture['current']['high']);
     495  $full_width = $full_size[0];
     496  $full_height = $full_size[1];
     497  $uuid = uniqid(rand());
     498  $template->assign_block_vars('high', array(
     499    'U_HIGH' => $picture['current']['high'],
     500        'UUID'=>$uuid,
     501        'WIDTH_IMG'=>($full_width + 16),
     502        'HEIGHT_IMG'=>($full_height + 16)
     503        ));
    499504}
    500505//------------------------------------------------------- favorite manipulation
Note: See TracChangeset for help on using the changeset viewer.