Changeset 16690 for extensions/PWG_Stuffs/trunk/modules
- Timestamp:
- Jul 13, 2012, 3:12:14 PM (12 years ago)
- Location:
- extensions/PWG_Stuffs/trunk/modules
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/trunk/modules/BestRated/main.inc.php
r12450 r16690 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf , $template;5 global $page, $user, $conf; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS');9 8 10 9 if (script_basename() == 'picture' … … 52 51 $page['section'] = 'best_rated'; 53 52 53 $tpl_thumbnails_var = array(); 54 $pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var; 54 55 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 55 56 56 if (!empty($ tpl_thumbnails_var))57 if (!empty($pwg_stuffs_tpl_thumbnails_var)) 57 58 { 58 $block['thumbnails'] = $tpl_thumbnails_var; 59 $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var; 60 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 59 61 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 60 62 } 61 63 62 64 $page = $page_save; 63 $template->assign('THUMBNAILS', $tpl_save);64 65 65 66 ?> -
extensions/PWG_Stuffs/trunk/modules/FeaturedPhotos/main.inc.php
r12450 r16690 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf , $template;5 global $page, $user, $conf; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS');9 8 10 9 $forbidden = get_sql_condition_FandF … … 33 32 $page['section'] = 'category'; 34 33 34 $tpl_thumbnails_var = array(); 35 $pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var; 35 36 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 36 37 37 if (!empty($ tpl_thumbnails_var))38 if (!empty($pwg_stuffs_tpl_thumbnails_var)) 38 39 { 39 $block['thumbnails'] = $tpl_thumbnails_var; 40 $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var; 41 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 40 42 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 41 43 } 42 44 43 45 $page = $page_save; 44 $template->assign('THUMBNAILS', $tpl_save);45 46 46 47 ?> -
extensions/PWG_Stuffs/trunk/modules/MostVisited/main.inc.php
r12450 r16690 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf , $template;5 global $page, $user, $conf; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS');9 8 10 9 if (script_basename() == 'picture' … … 52 51 $page['section'] = 'most_visited'; 53 52 53 $tpl_thumbnails_var = array(); 54 $pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var; 54 55 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 55 56 56 if (!empty($ tpl_thumbnails_var))57 if (!empty($pwg_stuffs_tpl_thumbnails_var)) 57 58 { 58 $block['thumbnails'] = $tpl_thumbnails_var; 59 $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var; 60 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 59 61 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 60 62 } 61 63 62 64 $page = $page_save; 63 $template->assign('THUMBNAILS', $tpl_save);64 65 65 66 ?> -
extensions/PWG_Stuffs/trunk/modules/Random/main.inc.php
r12450 r16690 51 51 $page['section'] = 'category'; 52 52 53 $tpl_thumbnails_var = array(); 54 $pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var; 53 55 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 54 56 55 if (!empty($ tpl_thumbnails_var))57 if (!empty($pwg_stuffs_tpl_thumbnails_var)) 56 58 { 57 $block['thumbnails'] = $tpl_thumbnails_var; 59 $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var; 60 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 58 61 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 59 62 } -
extensions/PWG_Stuffs/trunk/modules/Recent/main.inc.php
r12453 r16690 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $page, $user, $conf , $template;5 global $page, $user, $conf; 6 6 7 7 $page_save = $page; 8 $tpl_save = $template->get_template_vars('THUMBNAILS');9 8 10 9 if (script_basename() == 'picture' … … 53 52 $page['section'] = 'category'; 54 53 54 $tpl_thumbnails_var = array(); 55 $pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var; 55 56 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 56 57 57 if (!empty($ tpl_thumbnails_var))58 if (!empty($pwg_stuffs_tpl_thumbnails_var)) 58 59 { 59 $block['thumbnails'] = $tpl_thumbnails_var; 60 $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var; 61 $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 60 62 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 61 63 } 62 64 63 65 $page = $page_save; 64 $template->assign('THUMBNAILS', $tpl_save);65 66 66 67 ?>
Note: See TracChangeset
for help on using the changeset viewer.