Ignore:
Timestamp:
Jul 13, 2012, 3:12:14 PM (12 years ago)
Author:
patdenice
Message:
 
Location:
extensions/PWG_Stuffs/trunk
Files:
6 edited

Legend:

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

    r12450 r16690  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf, $template;
     5global $page, $user, $conf;
    66
    77$page_save = $page;
    8 $tpl_save = $template->get_template_vars('THUMBNAILS');
    98
    109if (script_basename() == 'picture'
     
    5251$page['section'] = 'best_rated';
    5352
     53$tpl_thumbnails_var = array();
     54$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    5455include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    5556
    56 if (!empty($tpl_thumbnails_var))
     57if (!empty($pwg_stuffs_tpl_thumbnails_var))
    5758{
    58   $block['thumbnails'] = $tpl_thumbnails_var;
     59  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     60  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    5961  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    6062}
    6163
    6264$page = $page_save;
    63 $template->assign('THUMBNAILS', $tpl_save);
    6465
    6566?>
  • extensions/PWG_Stuffs/trunk/modules/FeaturedPhotos/main.inc.php

    r12450 r16690  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf, $template;
     5global $page, $user, $conf;
    66
    77$page_save = $page;
    8 $tpl_save = $template->get_template_vars('THUMBNAILS');
    98
    109$forbidden = get_sql_condition_FandF
     
    3332$page['section'] = 'category';
    3433
     34$tpl_thumbnails_var = array();
     35$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    3536include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    3637
    37 if (!empty($tpl_thumbnails_var))
     38if (!empty($pwg_stuffs_tpl_thumbnails_var))
    3839{
    39   $block['thumbnails'] = $tpl_thumbnails_var;
     40  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     41  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    4042  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    4143}
    4244
    4345$page = $page_save;
    44 $template->assign('THUMBNAILS', $tpl_save);
    4546
    4647?>
  • extensions/PWG_Stuffs/trunk/modules/MostVisited/main.inc.php

    r12450 r16690  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf, $template;
     5global $page, $user, $conf;
    66
    77$page_save = $page;
    8 $tpl_save = $template->get_template_vars('THUMBNAILS');
    98
    109if (script_basename() == 'picture'
     
    5251$page['section'] = 'most_visited';
    5352
     53$tpl_thumbnails_var = array();
     54$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    5455include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    5556
    56 if (!empty($tpl_thumbnails_var))
     57if (!empty($pwg_stuffs_tpl_thumbnails_var))
    5758{
    58   $block['thumbnails'] = $tpl_thumbnails_var;
     59  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     60  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    5961  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    6062}
    6163
    6264$page = $page_save;
    63 $template->assign('THUMBNAILS', $tpl_save);
    6465
    6566?>
  • extensions/PWG_Stuffs/trunk/modules/Random/main.inc.php

    r12450 r16690  
    5151$page['section'] = 'category';
    5252
     53$tpl_thumbnails_var = array();
     54$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    5355include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    5456
    55 if (!empty($tpl_thumbnails_var))
     57if (!empty($pwg_stuffs_tpl_thumbnails_var))
    5658{
    57   $block['thumbnails'] = $tpl_thumbnails_var;
     59  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     60  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    5861  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    5962}
  • extensions/PWG_Stuffs/trunk/modules/Recent/main.inc.php

    r12453 r16690  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf, $template;
     5global $page, $user, $conf;
    66
    77$page_save = $page;
    8 $tpl_save = $template->get_template_vars('THUMBNAILS');
    98
    109if (script_basename() == 'picture'
     
    5352$page['section'] = 'category';
    5453
     54$tpl_thumbnails_var = array();
     55$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    5556include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    5657
    57 if (!empty($tpl_thumbnails_var))
     58if (!empty($pwg_stuffs_tpl_thumbnails_var))
    5859{
    59   $block['thumbnails'] = $tpl_thumbnails_var;
     60  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     61  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    6062  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    6163}
    6264
    6365$page = $page_save;
    64 $template->assign('THUMBNAILS', $tpl_save);
    6566
    6667?>
  • extensions/PWG_Stuffs/trunk/theme/template/stuffs_thumbnails.tpl

    r9737 r16690  
    11{assign var='thumbnails' value=$block.thumbnails}
     2{assign var='derivative_params' value=$block.derivative_params}
    23<ul class="thumbnails" id="thumbnails">
    34{include file='thumbnails.tpl'|@get_extent:'index_thumbnails'}
Note: See TracChangeset for help on using the changeset viewer.