FluxBB.org

Changeset 721

Show
Ignore:
Timestamp:
11/08/08 21:24:28 (2 months ago)
Author:
Paul
Message:

See note to r.719

Location:
fluxbb/branches/fluxbb-1.3-dev/upload
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • fluxbb/branches/fluxbb-1.3-dev/upload/index.php

    r697 r721  
    5555} 
    5656 
    57 // Setup main heading 
    58 $forum_page['main_head'] = forum_htmlencode($forum_config['o_board_title']); 
     57// Setup main section 
     58$forum_page['main_hd'] = forum_htmlencode($forum_config['o_board_title']); 
    5959 
    6060// Setup main options 
     
    9797$result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
    9898 
    99 $forum_page['cur_category'] = $forum_page['cat_count'] = $forum_page['item_count'] = 0; 
     99?> 
     100        <div id="main-categories" class="content"> 
     101<?php 
     102 
     103$forum_page['cur_category'] = $forum_page['cat_count'] = $forum_page['section_count'] = $forum_page['item_count'] = $forum_page['group_count'] = 0; 
    100104 
    101105while ($cur_forum = $forum_db->fetch_assoc($result)) 
     
    104108 
    105109        $forum_page['item_mods'] = ''; 
    106         ++$forum_page['item_count']; 
    107110 
    108111        if ($cur_forum['cid'] != $forum_page['cur_category'])   // A new category since last iteration? 
    109112        { 
    110113                if ($forum_page['cur_category'] != 0) 
    111                         echo "\t".'</div>'."\n"; 
     114                        echo  "\t\t\t".'</div>'."\n\t\t".'</div>'."\n"; 
    112115 
    113116                ++$forum_page['cat_count']; 
    114                 $forum_page['item_count'] = 1; 
    115  
    116                 $forum_page['item_header'] = array(); 
    117                 $forum_page['item_header']['subject']['title'] = '<strong class="subject-title">'.$lang_index['Forums'].'</strong>'; 
    118                 $forum_page['item_header']['info']['topics'] = '<strong class="info-topics">'.$lang_index['topics'].'</strong>'; 
    119                 $forum_page['item_header']['info']['post'] = '<strong class="info-posts">'.$lang_index['posts'].'</strong>'; 
    120                 $forum_page['item_header']['info']['lastpost'] = '<strong class="info-lastpost">'.$lang_index['last post'].'</strong>'; 
     117                ++$forum_page['section_count']; 
     118                $forum_page['item_count'] = 0; 
     119                $forum_page['group_count'] = 0; 
     120 
    121121 
    122122                ($hook = get_hook('in_forum_pre_cat_head')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    123123 
    124124?> 
    125         <div class="main-subhead"> 
    126                 <h2 class="hn"><span><?php echo forum_htmlencode($cur_forum['cat_name']) ?></span></h2> 
    127                 <p class="item-summary"><span><?php printf($lang_index['Category subtitle'], implode(' ', $forum_page['item_header']['subject']), implode(', ', $forum_page['item_header']['info'])) ?></span></p> 
    128         </div> 
    129         <div id="category<?php echo $forum_page['cat_count'] ?>" class="main-content main-category"> 
     125                <div id="category<?php echo $forum_page['cat_count'] ?>" class="section<?php echo ($forum_page['section_count'] == 1) ? ' section-1' : '' ?> category"> 
     126                        <div class="section-hd"> 
     127                                <h2 class="hn"><span><?php echo forum_htmlencode($cur_forum['cat_name']) ?></span></h2> 
     128                        </div> 
     129<?php 
     130 
     131                ++$forum_page['group_count']; 
     132 
     133?> 
     134                        <div class="rep-group<?php echo ($forum_page['group_count'] == 1) ? ' rep-group-1' : '' ?>"> 
    130135<?php 
    131136 
     
    134139 
    135140        // Reset arrays and globals for each forum 
    136         $forum_page['item_status'] = $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_title'] = array(); 
     141        ++$forum_page['item_count']; 
     142        $forum_page['item_status'] = $forum_page['item_subject'] = $forum_page['rep_item'] = $forum_page['item_title'] = array(); 
    137143        $forum_page['item_indicator'] = ''; 
    138144 
     
    140146        if ($cur_forum['redirect_url'] != '') 
    141147        { 
    142                 $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><a class="external" href="'.forum_htmlencode($cur_forum['redirect_url']).'" title="'.sprintf($lang_index['Link to'], forum_htmlencode($cur_forum['redirect_url'])).'"><span>'.forum_htmlencode($cur_forum['forum_name']).'</span></a></h3>'; 
     148                $forum_page['rep_item']['subject']['title'] = '<h3 class="hn"><a class="external" href="'.forum_htmlencode($cur_forum['redirect_url']).'" title="'.sprintf($lang_index['Link to'], forum_htmlencode($cur_forum['redirect_url'])).'"><span>'.forum_htmlencode($cur_forum['forum_name']).'</span></a></h3>'; 
    143149                $forum_page['item_status']['redirect'] = 'redirect'; 
    144150 
     
    151157 
    152158                if (!empty($forum_page['item_subject'])) 
    153                         $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>'; 
     159                        $forum_page['rep_item']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>'; 
    154160 
    155161                // Forum topic and post count 
    156                 $forum_page['item_body']['info']['topics'] = '<li class="info-topics"><span class="label">'.$lang_index['No topic info'].'</span></li>'; 
    157                 $forum_page['item_body']['info']['posts'] = '<li class="info-posts"><span class="label">'.$lang_index['No post info'].'</span></li>'; 
    158                 $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['No lastpost info'].'</span></li>'; 
     162                $forum_page['rep_item']['info']['topics'] = '<li class="info-stats"><span class="label">'.$lang_index['Topics label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.$lang_index['No information'].'</strong></li>'; 
     163                $forum_page['rep_item']['info']['posts'] = '<li class="info-stats"><span class="label">'.$lang_index['Posts label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.$lang_index['No information'].'</strong></li>'; 
     164                $forum_page['rep_item']['info']['lastpost'] = '<li class="info-data"><span class="label">'.$lang_index['Last post label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.$lang_index['No information'].'</strong></li>'; 
    159165 
    160166                ($hook = get_hook('in_redirect_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     
    183189                ($hook = get_hook('in_normal_row_pre_item_title_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    184190 
    185                 $forum_page['item_body']['subject']['title'] = '<h3 class="hn">'.implode(' ', $forum_page['item_title']).'</h3>'; 
    186  
     191                $forum_page['rep_item']['subject']['title'] = '<h3 class="hn">'.implode(' ', $forum_page['item_title']).'</h3>'; 
    187192 
    188193                // Setup the forum description and mod list 
     
    206211 
    207212                if (!empty($forum_page['item_subject'])) 
    208                         $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>'; 
    209  
     213                        $forum_page['rep_item']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>'; 
    210214 
    211215                // Setup forum topics, post count and last post 
    212                 $forum_page['item_body']['info']['topics'] = '<li class="info-topics"><strong>'.forum_number_format($cur_forum['num_topics']).'</strong> <span class="label">'.(($cur_forum['num_topics'] == 1) ? $lang_index['topic'] : $lang_index['topics']).'</span></li>'; 
    213                 $forum_page['item_body']['info']['posts'] = '<li class="info-posts"><strong>'.forum_number_format($cur_forum['num_posts']).'</strong> <span class="label">'.(($cur_forum['num_posts'] == 1) ? $lang_index['post'] : $lang_index['posts']).'</span></li>'; 
     216                $forum_page['rep_item']['info']['topics'] = '<li class="info-stats"><span class="label">'.$lang_index['Topics label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.forum_number_format($cur_forum['num_topics']).'</strong></li>'; 
     217                $forum_page['rep_item']['info']['posts'] = '<li class="info-stats"><span class="label">'.$lang_index['Posts label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.forum_number_format($cur_forum['num_posts']).'</strong></li>'; 
    214218 
    215219                if ($cur_forum['last_post'] != '') 
    216                         $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.format_time($cur_forum['last_post']).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite></li>'; 
     220                        $forum_page['rep_item']['info']['lastpost'] = '<li class="info-data"><span class="label">'.$lang_index['Last post label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.format_time($cur_forum['last_post']).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite></li>'; 
    217221                else 
    218                         $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><strong>'.$lang_index['Forum is empty'].'</strong> <span><a href="'.forum_link($forum_url['new_topic'], $cur_forum['fid']).'">'.$lang_index['First post nag'].'</a></span></li>'; 
    219  
     222                { 
     223                        $forum_page['rep_item']['info']['lastpost'] = '<li class="info-data"><span class="label">'.$lang_index['Last post label'].'<span>'.$lang_index['Info separator'].'</span></span> <strong>'.$lang_index['Never'].'</strong></li>'; 
     224                        $forum_page['item_status']['empty'] = 'empty'; 
     225                } 
    220226                ($hook = get_hook('in_normal_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    221227        } 
    222228 
    223229        // Generate classes for this forum depending on its status 
    224         $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-item1' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : ''); 
     230        $forum_page['item_style'] = (($forum_page['item_count'] == 1) ? ' rep-item-1' : '').(($forum_page['item_count'] % 2 != 0) ? ' rep-item-odd' : ' rep-item-even').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : ''); 
    225231 
    226232        ($hook = get_hook('in_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    227233 
    228234?> 
    229                 <div id="forum<?php echo $cur_forum['fid'] ?>" class="main-item<?php echo $forum_page['item_style'] ?>"> 
    230                         <span class="icon <?php echo implode(' ', $forum_page['item_status']) ?>"><!-- --></span> 
    231                         <div class="item-subject"> 
    232                                 <?php echo implode("\n\t\t\t\t", $forum_page['item_body']['subject'])."\n" ?> 
    233                         </div> 
    234                         <ul class="item-info"> 
    235                                 <?php echo implode("\n\t\t\t\t", $forum_page['item_body']['info'])."\n" ?> 
    236                         </ul> 
    237                 </div> 
     235                                <div id="forum<?php echo $cur_forum['fid'] ?>" class="rep-item<?php echo $forum_page['item_style'] ?>"> 
     236                                        <span class="icon <?php echo implode(' ', $forum_page['item_status']) ?>"><!-- --></span> 
     237                                        <div class="rep-subject"> 
     238                                                <?php echo implode("\n\t\t\t\t\t\t", $forum_page['rep_item']['subject'])."\n" ?> 
     239                                        </div> 
     240                                        <ul class="rep-info"> 
     241                                                <?php echo implode("\n\t\t\t\t\t\t", $forum_page['rep_item']['info'])."\n" ?> 
     242                                        </ul> 
     243                                </div> 
    238244<?php 
    239245 
     
    241247// Did we output any categories and forums? 
    242248if ($forum_page['cur_category'] > 0) 
    243         echo  "\t".'</div>'."\n"; 
     249{ 
     250 
     251?> 
     252                        </div> 
     253                </div> 
     254        </div> 
     255<?php 
     256 
     257} 
    244258else 
    245259{ 
    246260 
    247261?> 
    248         <div class="main-content message"> 
    249                 <p><?php echo $lang_index['Empty board'] ?></p> 
     262        <div class="content"> 
     263                <div class="section message"> 
     264                        <p><?php echo $lang_index['Empty board'] ?></p> 
     265                </div> 
    250266        </div> 
    251267<?php 
     
    256272 
    257273$tpl_temp = trim(ob_get_contents()); 
    258 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     274$tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    259275ob_end_clean(); 
    260276// END SUBST - <!-- forum_main --> 
     
    306322 
    307323?> 
    308 <div id="brd-stats" class="gen-content"> 
    309         <h2 class="hn"><span><?php echo $lang_index['Statistics'] ?></span></h2> 
    310         <ul> 
    311                 <?php echo implode("\n\t\t", $stats_list)."\n" ?> 
    312         </ul> 
    313 </div> 
     324<div id="brd-info" class="gen"> 
     325        <div class="gen-hd"> 
     326                <h2 class="hn"><span><?php echo $lang_index['Forum information'] ?></span></h2> 
     327        </div> 
     328        <div id="info-stats"> 
     329                <div id="info-stats-hd"> 
     330                        <h3 class="hn"><span><?php echo $lang_index['Statistics'] ?></span></h3> 
     331                </div> 
     332                <ul> 
     333                        <?php echo implode("\n\t\t\t", $stats_list)."\n" ?> 
     334                </ul> 
     335        </div> 
    314336<?php 
    315337 
     
    351373        ($hook = get_hook('in_users_online_pre_online_info_output')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    352374?> 
    353 <div id="brd-online" class="gen-content"> 
    354         <h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3> 
    355 <?php if (!empty($users)): ?>   <p><?php echo implode($lang_index['Online list separator'], $users) ?></p> 
     375        <div id="info-online"> 
     376                <div id="info-online-hd"> 
     377                        <h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3> 
     378                </div> 
     379<?php if (!empty($users)): ?>           <p><?php echo implode($lang_index['Online list separator'], $users) ?></p> 
    356380<?php endif; ($hook = get_hook('in_new_online_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     381        </div> 
     382<?php 
     383 
     384        ($hook = get_hook('in_users_online_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     385} 
     386 
     387?> 
    357388</div> 
    358389<?php 
    359  
    360         ($hook = get_hook('in_users_online_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    361 } 
    362390 
    363391($hook = get_hook('in_info_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/common.php

    r657 r721  
    5656'Pages'                                                         =>      'Pages:', 
    5757'Page'                                                          =>      'Page', 
     58'Title page'                                            =>      '(Page %s of %s)', 
    5859'BBCode'                                                        =>      'BBCode',       // You probably shouldn't change this 
    5960'Smilies'                                                       =>      'Smilies', 
     
    6768'Write message legend'                          =>      'Compose your post', 
    6869'Required information'                          =>      'Required information', 
    69 'Reqmark'                                                       =>      '*', 
    7070'Required'                                                      =>      '(Required)', 
    71 'Required warn'                                         =>      'All fields labelled %s must be completed before the form is submitted.', 
     71'Required warn'                                         =>      'All fields marked %s must be completed before the form is submitted.', 
    7272'Crumb separator'                                       =>      ' »&#160;', // The character or text that separates links in breadcrumbs 
    7373'Title separator'                                       =>      ' - ', 
     
    8282'Help page'                                                     =>      'Help with: %s', 
    8383'Re'                                                            =>      'Re:', 
    84 'Page info'                                                     =>      '(Page %1$s of %2$s)', 
     84'Page info'                                                     =>      'Page (%1$s of %2$s)', 
    8585'Item info single'                                      =>      '%s [ %s ]', 
    86 'Item info plural'                                      =>      '%s [ %s to %s of %s ]', // e.g. Topics [ 10 to 20 of 30 ] 
     86'Item info plural'                                      =>      '%s ( %s to %s of %s )', // e.g. Topics [ 10 to 20 of 30 ] 
    8787'Info separator'                                        =>      ' ', // e.g. 1 Page | 10 Topics 
    8888'Powered by'                                            =>      'Powered by <strong>%s</strong>', 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/forum.php

    r516 r721  
    44$lang_forum = array( 
    55 
    6 'Forum subtitle'                        =>      '%1$s in this forum with details of %2$s.', 
    7 'Search subtitle'                       =>      '%1$s found with details of %2$s.', 
     6'Topics head'                           =>      'Topics', 
    87'Topics'                                        =>      'Topics', 
    9 'topics'                                        =>      'topics', 
    10 'Reply'                                         =>      'Reply', 
    11 'Replies'                                       =>      'Replies', 
    12 'reply'                                         =>      'reply', 
    13 'replies'                                       =>      'replies', 
    14 'View'                                          =>      'View', 
    15 'Views'                                         =>      'Views', 
    16 'views'                                         =>      'views', 
    17 'view'                                          =>      'view', 
    18 'Last post'                                     =>      'Last post', 
    19 'last post'                                     =>      'last post', 
     8'Topics label'                          =>      'Topics', 
     9'Replies label'                         =>      'Replies', 
     10'Views label'                           =>      'Views', 
     11'Last post label'                       =>      'Last post', 
     12'Info separator'                        =>      ':', 
    2013'Select topic'                          =>      'Select topic: %s.', 
    21 'No replies info'                       =>      'No reply information', 
    22 'No views info'                         =>      'No viewing information', 
    23 'No lastpost info'                      =>      'No last post information', 
     14'No information'                        =>      'No information', 
    2415'by poster'                                     =>      'by %s', 
    25 'Item status'                           =>      '%s :', 
    26 'Topic starter'                         =>      'Started by %s', 
     16'Topic starter'                         =>      'by %s', 
    2717'New posts'                                     =>      'New posts', 
    2818'Topic navigation'                      =>      '( %s )', 
    29 'Location'                                      =>      'Found in forum : %s', 
    3019'Pages'                                         =>      'Pages', 
    3120'Post topic'                            =>      'Post new topic', 
     
    3322'No permission'                         =>      'Sorry! no permission to post new topics', 
    3423'Moved'                                         =>      'Moved:', 
    35 'Sticky'                                        =>      'Sticky', 
    36 'Closed'                                        =>      'Closed', 
     24'Sticky'                                        =>      '[Sticky]', 
     25'Closed'                                        =>      '[Closed]', 
     26'You have posted'                       =>      'You have posted in this topic.', 
    3727'Empty forum'                           =>      'Empty forum', 
    38 'No topics'                                     =>      'No topics have been posted', 
    39 'First topic nag'                       =>      'Be the first to post a topic in this forum.', 
    40 'You posted indicator'          =>      '·', 
     28'No topics posted'                      =>      '(No topics have been posted in this forum)', 
     29'Never'                                         =>      'Never', 
     30'Nobody posted'                         =>      '(Nobody has posted)', 
    4131'Permalink forum'                       =>      'Permanent link to this forum.', 
    4232'Forum options'                         =>      'Forum options', 
    4333'Moderate forum'                        =>      'Moderate forum', 
     34'Moderator options'                     =>      'Moderator options', 
    4435'Mark forum read'                       =>      'Mark forum as read', 
    4536'RSS forum feed'                        =>      'RSS Forum Feed', 
    46 'New posts info'                        =>      'Go to the first new post since your last visit.' 
    4737 
    4838); 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/index.php

    r547 r721  
    66'Moderated by'                          =>  'Moderated by %s', 
    77'Link to'                                       =>      'Link to %s',   // As in "Link to http://www.fluxbb.org/" 
    8 'Category subtitle'                     =>      '%1$s in this category with details of %2$s', 
    9 'Forums'                                        =>      'Forums', 
    10 'Topics'                                        =>      'Topics', 
    11 'Posts'                                         =>      'Posts', 
    12 'Last post'                                     =>      'Last post:', 
    13 'last post'                                     =>      'last post', 
    14 'topics'                                        =>      'topics', 
    15 'topic'                                         =>      'topic', 
    16 'post'                                          =>      'post', 
    17 'posts'                                         =>      'posts', 
    18 'No topic info'                         =>      'No topic information', 
    19 'No post info'                          =>      'No post information', 
    20 'No lastpost info'                      =>      'No last post information', 
    21 'Forum is empty'                        =>      'This forum is empty', 
    22 'First post nag'                        =>      'Be the first to post', 
     8'Topics label'                          =>      'Topics', 
     9'Posts label'                           =>      'Posts', 
     10'Last post label'                       =>      'Last post', 
     11'Info separator'                        =>      ':', 
     12'Never'                                         =>      'Never', 
     13'No information'                        =>      'No information', 
    2314'Last poster'                           =>      'by %s', 
    2415'Empty board'                           =>      'Board is empty', 
     16'Forum information'                     =>      'Forum information', 
    2517'Newest user'                           =>      'Newest registered user: %s', 
    2618'No of users'                           =>      'Total number of registered users: %s', 
  • fluxbb/branches/fluxbb-1.3-dev/upload/style/Oxygen/Oxygen.php

    r720 r721  
    1 // Holding file 
     1<!-- holding file --> 
  • fluxbb/branches/fluxbb-1.3-dev/upload/viewforum.php

    r664 r721  
    6363$forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1); 
    6464$forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($cur_forum['num_topics'])); 
    65 $forum_page['items_info'] = generate_items_info($lang_forum['Topics'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']); 
     65 
     66if ($forum_page['num_pages'] > 1) 
     67        $forum_page['page_info'] = generate_page_info($lang_forum['Topics label'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']); 
    6668 
    6769// Check for use of incorrect URLs 
     
    149151); 
    150152 
    151 // Setup main header 
    152 $forum_page['main_head'] = '<a class="permalink" href="'.forum_link($forum_url['forum'], array($id, sef_friendly($cur_forum['forum_name']))).'" rel="bookmark" title="'.$lang_forum['Permalink forum'].'">'.forum_htmlencode($cur_forum['forum_name']).'</a>'; 
    153  
    154 if ($forum_page['num_pages'] > 1) 
    155         $forum_page['main_head_pages'] = sprintf($lang_common['Page info'], $forum_page['page'], $forum_page['num_pages']); 
     153// Setup main section 
     154$forum_page['main_hd'] = '<a class="permalink" href="'.forum_link($forum_url['forum'], array($id, sef_friendly($cur_forum['forum_name']))).'" rel="bookmark" title="'.$lang_forum['Permalink forum'].'">'.forum_htmlencode($cur_forum['forum_name']).'</a>'; 
    156155 
    157156($hook = get_hook('vf_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     
    165164ob_start(); 
    166165 
    167 $forum_page['item_header'] = array(); 
    168 $forum_page['item_header']['subject']['title'] = '<strong class="subject-title">'.$lang_forum['Topics'].'</strong>'; 
    169 $forum_page['item_header']['info']['replies'] = '<strong class="info-replies">'.$lang_forum['replies'].'</strong>'; 
    170  
    171 if ($forum_config['o_topic_views'] == '1') 
    172         $forum_page['item_header']['info']['views'] = '<strong class="info-views">'.$lang_forum['views'].'</strong>'; 
    173  
    174 $forum_page['item_header']['info']['lastpost'] = '<strong class="info-lastpost">'.$lang_forum['last post'].'</strong>'; 
    175  
    176166($hook = get_hook('vf_main_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     167 
     168?> 
     169        <div id="main-forum" class="content"> 
     170                <div id="forum<?php echo $id ?>" class="section section-1<?php echo ($forum_config['o_topic_views'] == '1') ? ' vforum' : ' nvforum' ?>"> 
     171                        <div class="section-hd"> 
     172                                <h2 class="hn"><span><?php echo $lang_forum['Topics head'] ?></span></h2> 
     173                        </div> 
     174<?php 
    177175 
    178176// If there are topics in this forum 
    179177if ($forum_db->num_rows($result)) 
    180178{ 
    181  
    182 ?> 
    183         <div class="main-pagehead"> 
    184                 <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2> 
    185         </div> 
    186         <div class="main-subhead"> 
    187                 <p class="item-summary<?php echo ($forum_config['o_topic_views'] == '1') ? ' forum-views' : ' forum-noview' ?>"><span><?php printf($lang_forum['Forum subtitle'], implode(' ', $forum_page['item_header']['subject']), implode(', ', $forum_page['item_header']['info'])) ?></span></p> 
    188         </div> 
    189         <div id="forum<?php echo $id ?>" class="main-content main-forum<?php echo ($forum_config['o_topic_views'] == '1') ? ' forum-views' : ' forum-noview' ?>"> 
    190 <?php 
    191  
    192179        ($hook = get_hook('vf_pre_topic_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    193180 
    194181        $forum_page['item_count'] = 0; 
     182        $forum_page['group_count'] = 0; 
     183        $forum_page['cur_sticky'] = '2'; 
    195184 
    196185        while ($cur_topic = $forum_db->fetch_assoc($result)) 
     
    198187                ($hook = get_hook('vf_topic_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    199188 
     189                if ($forum_page['cur_sticky'] != $cur_topic['sticky']) 
     190                { 
     191                        ++$forum_page['group_count']; 
     192 
     193                        if (($forum_page['cur_sticky'] != '2') && ($forum_page['item_count'] != 0)) 
     194                                echo "\t\t\t".'</div>'."\n"; 
     195 
     196?> 
     197                        <div class="rep-group<?php echo ($forum_page['group_count'] == 1) ? ' rep-group-1' : '' ?><?php echo ($cur_topic['sticky'] == '1') ? ' rep-group-sticky' : '' ?>"> 
     198<?php 
     199 
     200                        $forum_page['cur_sticky'] = $cur_topic['sticky']; 
     201                        $forum_page['item_count'] = 0; 
     202                } 
     203 
    200204                ++$forum_page['item_count']; 
    201205 
    202206                // Start from scratch 
    203                 $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array(); 
     207                $forum_page['item_subject'] = $forum_page['rep_item'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array(); 
    204208                $forum_page['item_indicator'] = ''; 
    205209 
     
    209213                if ($cur_topic['moved_to'] != null) 
    210214                { 
     215                        $forum_page['item_title']['num'] = '<span class="item-num">'.($forum_page['item_count'] + $forum_page['start_from']).'</span>'; 
     216 
    211217                        $forum_page['item_status']['moved'] = 'moved'; 
    212                         $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_topic['moved_to'], sef_friendly($cur_topic['subject']))).'"><span>'.$lang_forum['Moved'].'</span> '.forum_htmlencode($cur_topic['subject']).'</a>'; 
     218                        $forum_page['item_title']['link'] = '<strong><a href="'.forum_link($forum_url['topic'], array($cur_topic['moved_to'], sef_friendly($cur_topic['subject']))).'">'.$lang_forum['Moved'].' '.forum_htmlencode($cur_topic['subject']).'</a></strong>'; 
     219                        $forum_page['item_title']['starter'] = '<cite class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_topic['poster'])).'</cite>'; 
    213220 
    214221                        // Combine everything