// Add breadcrumbs (including last level as a link)
			echo '<div id="my-topic-breadcrumbs">';
				echo $wps_ui->get_breadcrumbs($catid, 'catid', true, '&rarr;', true);
			echo '</div>';
			
			// Show avatar
			echo '<div id="my-topic-avatar">';
				$wps_user = new wps_user($topic->topic_owner);
				echo $wps_user->get_avatar(100);
			echo '</div>';
			
			// Show initial topic post
			echo '<div id="my-forum-topic">';
				if ( ($topic->topic_owner == $current_user->ID || current_user_can('manage_options')) && (!$wps_forum->is_topic_locked($topic->tid)) ) {
					echo '<a href="'.$wps->get_forum_url().$wps->get_url_q($wps->get_forum_url()).'catid='.$catid.'&tid='.$tid.'&del_id='.$topic->tid.'" class="delete">Delete topic and replies</a>';
				}
				echo '<div id="my-topic-subject">';
				echo stripslashes($topic->topic_subject);
				echo '</div>';
				echo '<div id="my-topic-author">';
				echo 'Started by '.$topic->display_name.' '.__wps__time_ago($topic->topic_started);
				echo '</div>';
				echo '<div id="my-topic-first-post">';
					$post_text = __wps__make_url(stripslashes($topic->topic_post));
					$post_text = __wps__bbcode_replace($post_text);
					if (!WPS_WYSIWYG) $post_text = str_replace(chr(13), "<br />", $post_text);
					echo $post_text;
				echo '</div>';
			echo '</div>';
			
			// Shows categories from the current level
			$categories = $wps_forum->get_categories($catid);
			if ($categories) {
				echo '<div class="my-forum-row my-forum-row my-forum-row-header">';
					echo '<div class="my-forum-title">';
						echo '<strong>CATEGORY</strong>';
					echo '</div>';
					echo '<div class="my-forum-title-topic">';
						echo '<strong>LAST TOPIC</strong>';
					echo '</div>';
				echo '</div>';
				foreach ($categories as $category) {
					echo '<div class="my-forum-row">';
						echo '<div class="my-forum-row-title">';
							$title = stripslashes($category->title);	
							echo '<a href="'.$wps->get_forum_url().$wps->get_url_q($wps->get_forum_url()).'catid='.$category->cid.'">'.$title.'</a>';
						echo '</div>';
						echo '<div class="my-forum-row-last-topic">';
							$last_topic = $wps_forum->get_topics($category->cid, 0, 1);
							if ($last_topic) {
								echo '<div class="my-forum-row-last-topic-avatar">';
									$wps_user = new wps_user($last_topic->topic_owner);
									echo '<a href="'.$wps->get_profile_url().$wps->get_url_q($wps->get_profile_url()).'uid='.$last_topic->topic_owner.'">';
									echo $wps_user->get_avatar(48);
									echo '</a>';
								echo '</div>';
								echo "<a href='".$wps->get_forum_url().$wps->get_url_q($wps->get_forum_url())."catid=".$category->cid."&tid=".$last_topic->tid."'>".stripslashes($last_topic->topic_subject)."</a> ";
								echo '<span class="my-forum-row-last-topic-owner">'.$last_topic->display_name.',</span> ';
								echo '<span class="my-forum-row-last-topic-started">'.__wps__time_ago($last_topic->topic_started).'</span>';
							}
						echo '</div>';