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

Merge pull request #4421 from Jimmi08/patch-21

Issue #2898 fix comments offsets for bootstrap4
This commit is contained in:
Cameron
2021-02-23 17:06:53 -08:00
committed by GitHub

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