Changeset 702 for trunk/forum/faq.php


Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/faq.php

    r400 r702  
    33*
    44* @package phpBB3
    5 * @version $Id: faq.php 8479 2008-03-29 00:22:48Z naderman $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    3939
    4040// Pull the array data from the lang pack
     41$switch_column = $found_switch = false;
    4142$help_blocks = array();
    4243foreach ($user->help as $help_ary)
     
    4445        if ($help_ary[0] == '--')
    4546        {
     47                if ($help_ary[1] == '--')
     48                {
     49                        $switch_column = true;
     50                        $found_switch = true;
     51                        continue;
     52                }
     53
    4654                $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                ));
    4958
     59                if ($switch_column)
     60                {
     61                        $switch_column = false;
     62                }
    5063                continue;
    5164        }
     
    5972// Lets build a page ...
    6073$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'],
    6476
    65 page_header($l_title);
     77        'SWITCH_COLUMN_MANUALLY'        => (!$found_switch) ? true : false,
     78));
     79
     80page_header($l_title, false);
    6681
    6782$template->set_filenames(array(
Note: See TracChangeset for help on using the changeset viewer.