diff -r c7c0fbc09788 -r 5e8dcbe22c24 web/wp-content/plugins/social/views/comments.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/social/views/comments.php Tue Dec 04 18:43:10 2012 -0800 @@ -0,0 +1,159 @@ +
+ + +

+ +
+ + + + +

+ +
+ +
+ ID); + + if (isset($comments['social_items'])) { + $social_items = $comments['social_items']; + unset($comments['social_items']); + } + + if (isset($comments['social_groups'])) { + $groups = $comments['social_groups']; + unset($comments['social_groups']); + } + } + + $last_reply_time = 0; + if (count($comments)) { + foreach ($comments as $key => $comment) { + $time = strtotime($comment->comment_date_gmt); + if ($time > $last_reply_time) { + $last_reply_time = $time; + } + } + } + + if (count($social_items)) { + $latest_item = 0; + foreach ($social_items as $service => $items) { + foreach ($items as $comment) { + if ($latest_item === 0) { + $latest_item = strtotime($comment->comment_date_gmt); + } + else { + $time = strtotime($comment->comment_date_gmt); + if ($time > $latest_item) { + $latest_item = $time; + } + } + } + } + + if ($latest_item > $last_reply_time) { + $last_reply_time = $latest_item; + } + } + + Social::add_social_items_count($social_items, $groups); + ?> + + + + +
+ +
+ + + +