avatar in forum - refs #2681

pull/3016/head
Alex Aragón 6 years ago
parent 3d9c9fdde2
commit 102037c8df
  1. 55
      assets/css/scss/_base.scss
  2. 3
      main/forum/index.php

@ -2110,14 +2110,14 @@ hr {
} }
} }
.toolbar{ .toolbar{
opacity: 0; opacity: 0;
margin-left: 5px; margin-left: 5px;
img{ img{
border: 1px solid #cdcdcd; border: 1px solid #cdcdcd;
background-color: #ffffff; background-color: #ffffff;
padding: 2px; padding: 2px;
border-radius: 4px; border-radius: 4px;
} }
} }
} }
@ -2143,44 +2143,7 @@ hr {
} }
} }
} }
.forum-post {
border-color: #dddddd !important;
.title-username {
text-align: center;
font-size: 16px;
margin-bottom: 5px;
margin-top: 0;
}
.post-date {
font-size: 12px;
text-align: center;
color: #666666;
}
.post-closed {
padding: 5px;
text-align: center;
}
.post-header {
border-bottom: 1px solid #dddddd;
margin-bottom: 20px;
}
.post-body {
color: #666666;
img {
display: block;
max-width: 100%;
}
}
.tools-icons {
text-align: center;
border: 1px solid #dddddd;
padding: 5px;
a {
padding: 2px;
white-space: normal;
}
}
}
/****** ABOUT COURSE AND SESSION ******/ /****** ABOUT COURSE AND SESSION ******/
.about{ .about{

@ -510,6 +510,9 @@ if (is_array($forumCategories)) {
$forumInfo['last_poster_user'] = display_user_link($poster_id, $name, null, $username); $forumInfo['last_poster_user'] = display_user_link($poster_id, $name, null, $username);
$forumInfo['last_post_title'] = Security::remove_XSS(cut($forum['last_post_title'], 140)); $forumInfo['last_post_title'] = Security::remove_XSS(cut($forum['last_post_title'], 140));
$forumInfo['last_post_text'] = Security::remove_XSS(cut($forum['last_post_text'], 140)); $forumInfo['last_post_text'] = Security::remove_XSS(cut($forum['last_post_text'], 140));
$forumInfo['avatar'] = UserManager::getUserPicture($poster_id);
} else {
$forumInfo['avatar'] = UserManager::getUserPicture($forum['insert_user_id']);
} }
if (api_is_allowed_to_edit(false, true) if (api_is_allowed_to_edit(false, true)

Loading…
Cancel
Save