Improve display links to attachments - refs BT#9892 #TMI

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent 638b063f31
commit c10937d467
  1. 11
      main/forum/viewthread_flat.inc.php
  2. 8
      main/forum/viewthread_nested.inc.php

@ -258,10 +258,7 @@ if (isset($current_thread['thread_id'])) {
$html .= '<div class="row">';
$html .= '<div class="col-md-12">';
$html .= '<div class="pull-right">' . $buttonReply . ' ' . $buttonQuote . '</div>';
$html .= '</div>';
$html .= '</div>';
$html .= '<div class="col-md-7">';
// prepare the notification icon
if (
@ -309,6 +306,12 @@ if (isset($current_thread['thread_id'])) {
$html .= '<span class="forum_attach_comment" >' . $attachment['comment'] . '</span>';
}
}
$html .= '</div>';
$html .= '<div class="col-md-5 text-right">';
$html .= $buttonReply . ' ' . $buttonQuote;
$html .= '</div>';
$html .= '</div>';
// The post has been displayed => it can be removed from the what's new array
unset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]);

@ -259,9 +259,7 @@ foreach ($rows as $post) {
$html .= '</div>';
$html .= '<div class="row">';
$html .= '<div class="col-md-12">';
$html .= '<div class="pull-right">' . $buttonReply . ' ' . $buttonQuote . '</div>';
$html .= '<div class="col-md-6">';
// The check if there is an attachment
$attachment_list = getAllAttachment($post['post_id']);
if (!empty($attachment_list) && is_array($attachment_list)) {
@ -285,6 +283,10 @@ foreach ($rows as $post) {
}
}
}
$html .= '</div>';
$html .= '<div class="col-md-6 text-right">';
$html .= $buttonReply . ' ' . $buttonQuote;
$html .= '</div>';
$html .= '</div>';
// The post has been displayed => it can be removed from the what's new array

Loading…
Cancel
Save