1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

#2898 fix comments offsets for bootstrap4

This commit is contained in:
Jimako
2021-02-23 22:15:40 +01:00
committed by GitHub
parent f30caaf18b
commit c65b40fe3c

View File

@@ -263,7 +263,7 @@ class comment
// -------------------------------------------------------------
$indent = ($action == 'reply') ? " class='media col-md-offset-1 offset1' " : " class='media' ";
$indent = ($action == 'reply') ? " class='media offset-md-1 col-md-offset-1 offset1' " : " class='media' ";
$formid = ($action == 'reply') ? "e-comment-form-reply" : "e-comment-form";
$text = "\n<div{$indent}>\n".e107::getMessage()->render('postcomment', true, false, false);//temporary here
@@ -482,7 +482,7 @@ class comment
{
$renderstyle = $COMMENT_TEMPLATE['item_start'];
$renderstyle .= "<div class='row media offset".$width." col-md-".(12 - (int) $width)." col-md-offset-".$width."' >".$COMMENT_TEMPLATE['item']."</div>";
$renderstyle .= "<div class='row media offset".$width." col-md-".(12 - (int) $width)." offset-md-".$width." col-md-offset-".$width."' >".$COMMENT_TEMPLATE['item']."</div>";
$renderstyle .= $COMMENT_TEMPLATE['item_end'];
}
else