Changeset 721
- Timestamp:
- 11/08/08 21:24:28 (2 months ago)
- Location:
- fluxbb/branches/fluxbb-1.3-dev/upload
- Files:
-
- 6 modified
-
index.php (modified) (12 diffs)
-
lang/English/common.php (modified) (3 diffs)
-
lang/English/forum.php (modified) (2 diffs)
-
lang/English/index.php (modified) (1 diff)
-
style/Oxygen/Oxygen.php (modified) (1 diff)
-
viewforum.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluxbb/branches/fluxbb-1.3-dev/upload/index.php
r697 r721 55 55 } 56 56 57 // Setup main heading58 $forum_page['main_h ead'] = forum_htmlencode($forum_config['o_board_title']);57 // Setup main section 58 $forum_page['main_hd'] = forum_htmlencode($forum_config['o_board_title']); 59 59 60 60 // Setup main options … … 97 97 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 98 98 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; 100 104 101 105 while ($cur_forum = $forum_db->fetch_assoc($result)) … … 104 108 105 109 $forum_page['item_mods'] = ''; 106 ++$forum_page['item_count'];107 110 108 111 if ($cur_forum['cid'] != $forum_page['cur_category']) // A new category since last iteration? 109 112 { 110 113 if ($forum_page['cur_category'] != 0) 111 echo "\t".'</div>'."\n";114 echo "\t\t\t".'</div>'."\n\t\t".'</div>'."\n"; 112 115 113 116 ++$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 121 121 122 122 ($hook = get_hook('in_forum_pre_cat_head')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 123 123 124 124 ?> 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' : '' ?>"> 130 135 <?php 131 136 … … 134 139 135 140 // 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(); 137 143 $forum_page['item_indicator'] = ''; 138 144 … … 140 146 if ($cur_forum['redirect_url'] != '') 141 147 { 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>'; 143 149 $forum_page['item_status']['redirect'] = 'redirect'; 144 150 … … 151 157 152 158 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>'; 154 160 155 161 // 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>'; 159 165 160 166 ($hook = get_hook('in_redirect_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; … … 183 189 ($hook = get_hook('in_normal_row_pre_item_title_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 184 190 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>'; 187 192 188 193 // Setup the forum description and mod list … … 206 211 207 212 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>'; 210 214 211 215 // 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>'; 214 218 215 219 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>'; 217 221 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 } 220 226 ($hook = get_hook('in_normal_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 221 227 } 222 228 223 229 // 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']) : ''); 225 231 226 232 ($hook = get_hook('in_row_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 227 233 228 234 ?> 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> 238 244 <?php 239 245 … … 241 247 // Did we output any categories and forums? 242 248 if ($forum_page['cur_category'] > 0) 243 echo "\t".'</div>'."\n"; 249 { 250 251 ?> 252 </div> 253 </div> 254 </div> 255 <?php 256 257 } 244 258 else 245 259 { 246 260 247 261 ?> 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> 250 266 </div> 251 267 <?php … … 256 272 257 273 $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); 259 275 ob_end_clean(); 260 276 // END SUBST - <!-- forum_main --> … … 306 322 307 323 ?> 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> 314 336 <?php 315 337 … … 351 373 ($hook = get_hook('in_users_online_pre_online_info_output')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 352 374 ?> 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> 356 380 <?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 ?> 357 388 </div> 358 389 <?php 359 360 ($hook = get_hook('in_users_online_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;361 }362 390 363 391 ($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 56 56 'Pages' => 'Pages:', 57 57 'Page' => 'Page', 58 'Title page' => '(Page %s of %s)', 58 59 'BBCode' => 'BBCode', // You probably shouldn't change this 59 60 'Smilies' => 'Smilies', … … 67 68 'Write message legend' => 'Compose your post', 68 69 'Required information' => 'Required information', 69 'Reqmark' => '*',70 70 '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.', 72 72 'Crumb separator' => ' » ', // The character or text that separates links in breadcrumbs 73 73 'Title separator' => ' - ', … … 82 82 'Help page' => 'Help with: %s', 83 83 'Re' => 'Re:', 84 'Page info' => ' (Page%1$s of %2$s)',84 'Page info' => 'Page (%1$s of %2$s)', 85 85 '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 ] 87 87 'Info separator' => ' ', // e.g. 1 Page | 10 Topics 88 88 'Powered by' => 'Powered by <strong>%s</strong>', -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/forum.php
r516 r721 4 4 $lang_forum = array( 5 5 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', 8 7 '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' => ':', 20 13 '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', 24 15 'by poster' => 'by %s', 25 'Item status' => '%s :', 26 'Topic starter' => 'Started by %s', 16 'Topic starter' => 'by %s', 27 17 'New posts' => 'New posts', 28 18 'Topic navigation' => '( %s )', 29 'Location' => 'Found in forum : %s',30 19 'Pages' => 'Pages', 31 20 'Post topic' => 'Post new topic', … … 33 22 'No permission' => 'Sorry! no permission to post new topics', 34 23 'Moved' => 'Moved:', 35 'Sticky' => 'Sticky', 36 'Closed' => 'Closed', 24 'Sticky' => '[Sticky]', 25 'Closed' => '[Closed]', 26 'You have posted' => 'You have posted in this topic.', 37 27 '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)', 41 31 'Permalink forum' => 'Permanent link to this forum.', 42 32 'Forum options' => 'Forum options', 43 33 'Moderate forum' => 'Moderate forum', 34 'Moderator options' => 'Moderator options', 44 35 'Mark forum read' => 'Mark forum as read', 45 36 'RSS forum feed' => 'RSS Forum Feed', 46 'New posts info' => 'Go to the first new post since your last visit.'47 37 48 38 ); -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/index.php
r547 r721 6 6 'Moderated by' => 'Moderated by %s', 7 7 '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', 23 14 'Last poster' => 'by %s', 24 15 'Empty board' => 'Board is empty', 16 'Forum information' => 'Forum information', 25 17 'Newest user' => 'Newest registered user: %s', 26 18 '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 63 63 $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1); 64 64 $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 66 if ($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']); 66 68 67 69 // Check for use of incorrect URLs … … 149 151 ); 150 152 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>'; 156 155 157 156 ($hook = get_hook('vf_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; … … 165 164 ob_start(); 166 165 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 176 166 ($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 177 175 178 176 // If there are topics in this forum 179 177 if ($forum_db->num_rows($result)) 180 178 { 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 <?php191 192 179 ($hook = get_hook('vf_pre_topic_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 193 180 194 181 $forum_page['item_count'] = 0; 182 $forum_page['group_count'] = 0; 183 $forum_page['cur_sticky'] = '2'; 195 184 196 185 while ($cur_topic = $forum_db->fetch_assoc($result)) … … 198 187 ($hook = get_hook('vf_topic_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 199 188 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 200 204 ++$forum_page['item_count']; 201 205 202 206 // 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(); 204 208 $forum_page['item_indicator'] = ''; 205 209 … … 209 213 if ($cur_topic['moved_to'] != null) 210 214 { 215 $forum_page['item_title']['num'] = '<span class="item-num">'.($forum_page['item_count'] + $forum_page['start_from']).'</span>'; 216 211 217 $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>'; 213 220 214 221 // Combine everything
