Changeset 16691
- Timestamp:
- Jul 13, 2012, 3:26:50 PM (12 years ago)
- Location:
- extensions/PWG_Stuffs/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/trunk/modules/BestRated/main.inc.php
r16690 r16691 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf ;5 global $page, $user, $conf, $template; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS'); 8 9 9 10 if (script_basename() == 'picture' … … 63 64 64 65 $page = $page_save; 66 $template->assign('THUMBNAILS', $tpl_save); 65 67 66 68 ?> -
extensions/PWG_Stuffs/trunk/modules/FeaturedPhotos/main.inc.php
r16690 r16691 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf ;5 global $page, $user, $conf, $template; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS'); 8 9 9 10 $forbidden = get_sql_condition_FandF … … 44 45 45 46 $page = $page_save; 47 $template->assign('THUMBNAILS', $tpl_save); 46 48 47 49 ?> -
extensions/PWG_Stuffs/trunk/modules/LastComs/main.inc.php
r12524 r16691 161 161 $elements = array(); 162 162 $query = ' 163 SELECT id, name, file, path, tn_ext163 SELECT * 164 164 FROM '.IMAGES_TABLE.' 165 165 WHERE id IN ('.implode(',', $element_ids).') … … 203 203 204 204 // source of the thumbnail picture 205 $ thumbnail_src = get_thumbnail_url( $elements[$comment['image_id']]);205 $src_image = new SrcImage($elements[$comment['image_id']]); 206 206 207 207 // link to the full size picture … … 217 217 'ID' => $comment['comment_id'], 218 218 'U_PICTURE' => $url, 219 ' TN_SRC' => $thumbnail_src,219 'src_image' => $src_image, 220 220 'ALT' => $name, 221 221 'AUTHOR' => trigger_event('render_comment_author', $comment['author']), … … 282 282 array_push($block['comments'], $tpl_comment); 283 283 } 284 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 284 285 } 285 286 -
extensions/PWG_Stuffs/trunk/modules/MostVisited/main.inc.php
r16690 r16691 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf ;5 global $page, $user, $conf, $template; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS'); 8 9 9 10 if (script_basename() == 'picture' … … 63 64 64 65 $page = $page_save; 66 $template->assign('THUMBNAILS', $tpl_save); 65 67 66 68 ?> -
extensions/PWG_Stuffs/trunk/modules/Recent/main.inc.php
r16690 r16691 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf ;5 global $page, $user, $conf, $template; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS'); 8 9 9 10 if (script_basename() == 'picture' … … 64 65 65 66 $page = $page_save; 67 $template->assign('THUMBNAILS', $tpl_save); 66 68 67 69 ?> -
extensions/PWG_Stuffs/trunk/theme/template/stuffs_lastcoms.tpl
r12515 r16691 17 17 <div id="comments"> 18 18 {assign var=comments value=$block.comments} 19 {assign var='comment_derivative_params' value=$block.derivative_params} 19 20 {include file='comment_list.tpl'} 20 21 </div>
Note: See TracChangeset
for help on using the changeset viewer.