Browse Source

Merge pull request #438 from PortaMx/release-2.1

Profile.template.php - show posts/topics/attachements.
Michael Eshom 11 years ago
parent
commit
0f5cfd8b7e
1 changed files with 7 additions and 10 deletions
  1. 7 10
      Themes/default/Profile.template.php

+ 7 - 10
Themes/default/Profile.template.php

@@ -413,18 +413,15 @@ function template_showPosts()
 	else
 		template_show_list('attachments');
 
-	// No posts? Just end the table with a informative message.
+	// No posts? Just end with a informative message.
 	if ((isset($context['attachments']) && empty($context['attachments'])) || (!isset($context['attachments']) && empty($context['posts'])))
 		echo '
-				<tr>
-					<td class="tborder windowbg2 padding centertext" colspan="4">
-						', isset($context['attachments']) ? $txt['show_attachments_none'] : ($context['is_topics'] ? $txt['show_topics_none'] : $txt['show_posts_none']), '
-					</td>
-				</tr>';
-
-		echo '
-			</tbody>
-		</table>';
+			<div class="windowbg2 core_posts">
+				<div class="content">
+					', isset($context['attachments']) ? $txt['show_attachments_none'] : ($context['is_topics'] ? $txt['show_topics_none'] : $txt['show_posts_none']), '
+				</div>
+			</div>
+		</div>';
 
 	// Show more page numbers.
 	if (!empty($context['page_index']))