Changeset 16691


Ignore:
Timestamp:
Jul 13, 2012, 3:26:50 PM (8 years ago)
Author:
patdenice
Message:

Compatible with piwigo 2.4

Location:
extensions/PWG_Stuffs/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/modules/BestRated/main.inc.php

    r16690 r16691  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf;
     5global $page, $user, $conf, $template;
    66
    77$page_save = $page;
     8$tpl_save = $template->get_template_vars('THUMBNAILS');
    89
    910if (script_basename() == 'picture'
     
    6364
    6465$page = $page_save;
     66$template->assign('THUMBNAILS', $tpl_save);
    6567
    6668?>
  • extensions/PWG_Stuffs/trunk/modules/FeaturedPhotos/main.inc.php

    r16690 r16691  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf;
     5global $page, $user, $conf, $template;
    66
    77$page_save = $page;
     8$tpl_save = $template->get_template_vars('THUMBNAILS');
    89
    910$forbidden = get_sql_condition_FandF
     
    4445
    4546$page = $page_save;
     47$template->assign('THUMBNAILS', $tpl_save);
    4648
    4749?>
  • extensions/PWG_Stuffs/trunk/modules/LastComs/main.inc.php

    r12524 r16691  
    161161  $elements = array();
    162162  $query = '
    163 SELECT id, name, file, path, tn_ext
     163SELECT *
    164164  FROM '.IMAGES_TABLE.'
    165165  WHERE id IN ('.implode(',', $element_ids).')
     
    203203
    204204    // source of the thumbnail picture
    205     $thumbnail_src = get_thumbnail_url( $elements[$comment['image_id']] );
     205    $src_image = new SrcImage($elements[$comment['image_id']]);
    206206
    207207    // link to the full size picture
     
    217217      'ID' => $comment['comment_id'],
    218218      'U_PICTURE' => $url,
    219       'TN_SRC' => $thumbnail_src,
     219      'src_image' => $src_image,
    220220      'ALT' => $name,
    221221      'AUTHOR' => trigger_event('render_comment_author', $comment['author']),
     
    282282    array_push($block['comments'], $tpl_comment);
    283283  }
     284  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    284285}
    285286
  • extensions/PWG_Stuffs/trunk/modules/MostVisited/main.inc.php

    r16690 r16691  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf;
     5global $page, $user, $conf, $template;
    66
    77$page_save = $page;
     8$tpl_save = $template->get_template_vars('THUMBNAILS');
    89
    910if (script_basename() == 'picture'
     
    6364
    6465$page = $page_save;
     66$template->assign('THUMBNAILS', $tpl_save);
    6567
    6668?>
  • extensions/PWG_Stuffs/trunk/modules/Recent/main.inc.php

    r16690 r16691  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf;
     5global $page, $user, $conf, $template;
    66
    77$page_save = $page;
     8$tpl_save = $template->get_template_vars('THUMBNAILS');
    89
    910if (script_basename() == 'picture'
     
    6465
    6566$page = $page_save;
     67$template->assign('THUMBNAILS', $tpl_save);
    6668
    6769?>
  • extensions/PWG_Stuffs/trunk/theme/template/stuffs_lastcoms.tpl

    r12515 r16691  
    1717<div id="comments">
    1818{assign var=comments value=$block.comments}
     19{assign var='comment_derivative_params' value=$block.derivative_params}
    1920{include file='comment_list.tpl'}
    2021</div>
Note: See TracChangeset for help on using the changeset viewer.