Changeset 154
- Timestamp:
- 08/31/10 13:21:09 (17 months ago)
- Files:
-
- 1 modified
-
trunk/views/default/edufeedr/educourse_blog.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/views/default/edufeedr/educourse_blog.php
r153 r154 27 27 $post_date = ""; 28 28 foreach ($posts as $post) { 29 // Check if we need to display the postsdate header29 // See if comment belongs to the same date as previous one, if not - add the date header 30 30 if ($post_date != date('d.m.Y', $post['date'])) { 31 31 $phtml .= '<h3>' . elgg_view('output/calendar', array('value' => (int) $post['date'])) . '</h3>'; … … 58 58 $body .= '</td><td style="padding-left: 5px;">'; 59 59 $comments = $es->getCourseComments(array($vars['entity']->getGUID(),10)); 60 if ($comments) {60 if ($comments) { 61 61 $chtml = ''; 62 62 $c = 1; 63 63 $comm_date = ""; 64 64 foreach ($comments as $comment) { 65 // Check if we need to display the commentsdate header65 // See if comment belongs to the same date as previous one, if not - add the date header 66 66 if ($comm_date != date('d.m.Y', $comment['date'])) { 67 67 $chtml .= '<h3>' . elgg_view('output/calendar', array('value' => (int) $comment['date'])) . '</h3>';
