fix forum disquss template games

aragonc 11 years ago
parent 51554b13be
commit 04811d23f5
  1. 8
      app/Resources/public/css/base.css
  2. 7
      main/forum/forumfunction.inc.php
  3. 3
      main/inc/ajax/forum.ajax.php
  4. 1
      main/template/games/forum/flat_learnpath.tpl
  5. 1
      main/template/games/forum/flat_learnpath_post.tpl

@ -6049,6 +6049,7 @@ div#chat-remote-video video {
width: 100px;
height: 100px;
}
/* FORUM DISQUSS */
.forum-disqus{
padding: 10px;
}
@ -6073,6 +6074,10 @@ div#chat-remote-video video {
font-size: 14px;
font-weight: 700;
}
.forum-disqus .username-disqus .fa-calendar{
color: #666666;
font-size: 14px;
}
.forum-disqus .description-disqus{
font-size: 14px;
line-height: 21px;
@ -6080,7 +6085,6 @@ div#chat-remote-video video {
}
.forum-disqus .time{
font-size: 12px;
color:rgba(0, 39, 59, 0.5);
}
.forum-disqus .reply-post {
@ -6093,6 +6097,8 @@ div#chat-remote-video video {
}
.forum-disqus .thumbnail{
padding: 0px;
width: 45px;
height: 45px;
}
.top-disqus{
border: 1px solid #dddddd;

@ -3461,18 +3461,19 @@ function display_user_link($user_id, $name, $origin = '', $in_title = '')
* This function displays the user image from the profile, with a link to the user's details.
* @param int User's database ID
* @param str User's name
* @param array
* @return string An HTML with the anchor and the image of the user
* @author Julio Montoya <gugli100@gmail.com>
*/
function display_user_image($user_id, $name, $origin = '')
function display_user_image($user_id, $name, $origin = '', $attributes = array())
{
$userInfo = api_get_user_info($user_id);
$link = '<a href="'.$userInfo['profile_url'].'" '.(!empty($origin) ? 'target="_self"' : '').'>';
if ($user_id != 0) {
return $link.'<img src="'.$userInfo['avatar'].'" alt="'.$name.'" title="'.$name.'" /></a>';
return $link.'<img src="'.$userInfo['avatar'].'" alt="'.$name.'" title="'.$name.'" class="'. $attributes['class'] .'" /></a>';
} else {
return $link.'<img src="'.api_get_path(WEB_CODE_PATH)."img/unknown.jpg".'" alt="'.$name.'" title="'.$name.'" /></a>';
return $link.'<img src="'.api_get_path(WEB_CODE_PATH)."img/unknown.jpg".'" alt="'.$name.'" title="'.$name.'" class="'. $attributes['class'] . '" /></a>';
}
}

@ -268,6 +268,7 @@ if (!empty($action)) {
)
)
);
$template->assign('locked', $locked);
$template->assign('allow_reply', $allowReply);
$template->assign('thread_id', $thread->getThreadId());
@ -279,7 +280,7 @@ if (!empty($action)) {
'text' => $post->getPostText()
],
'user' => [
'image' => display_user_image($user->getId(), $user->getCompleteName()),
'image' => display_user_image($user->getId(), $user->getCompleteName(),null,array('class'=>'media-object')),
'link' => display_user_link($user->getId(), $user->getCompleteName()),
]
]);

@ -60,6 +60,7 @@
if (post.parentId > 0) {
$('[data-post="' + post.parentId +'"] > .media-body').append(post.html);
$(".timeago").timeago();
} else {
$(post.html).insertBefore('#form-reply-to-post-0');
}

@ -11,7 +11,6 @@
<span class="small">•</span>
<span class="time timeago" title="{{ post_data.post.date }}">{{ post_data.post.date }}</span>
</h4>
<div>
{{ post_data.post.text }}
<div>

Loading…
Cancel
Save