Changeset 702 for trunk/forum/faq.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/faq.php
r400 r702 3 3 * 4 4 * @package phpBB3 5 * @version $Id : faq.php 8479 2008-03-29 00:22:48Z naderman$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 39 39 40 40 // Pull the array data from the lang pack 41 $switch_column = $found_switch = false; 41 42 $help_blocks = array(); 42 43 foreach ($user->help as $help_ary) … … 44 45 if ($help_ary[0] == '--') 45 46 { 47 if ($help_ary[1] == '--') 48 { 49 $switch_column = true; 50 $found_switch = true; 51 continue; 52 } 53 46 54 $template->assign_block_vars('faq_block', array( 47 'BLOCK_TITLE' => $help_ary[1]) 48 ); 55 'BLOCK_TITLE' => $help_ary[1], 56 'SWITCH_COLUMN' => $switch_column, 57 )); 49 58 59 if ($switch_column) 60 { 61 $switch_column = false; 62 } 50 63 continue; 51 64 } … … 59 72 // Lets build a page ... 60 73 $template->assign_vars(array( 61 'L_FAQ_TITLE' => $l_title, 62 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP']) 63 ); 74 'L_FAQ_TITLE' => $l_title, 75 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'], 64 76 65 page_header($l_title); 77 'SWITCH_COLUMN_MANUALLY' => (!$found_switch) ? true : false, 78 )); 79 80 page_header($l_title, false); 66 81 67 82 $template->set_filenames(array(
Note:
See TracChangeset
for help on using the changeset viewer.