1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fix for news-comment moderate button. Use https for generated YouTube thumbnails.

This commit is contained in:
Cameron
2016-12-13 11:22:07 -08:00
parent a1588ed318
commit 2e3e980f13
3 changed files with 4 additions and 3 deletions

View File

@@ -1177,7 +1177,7 @@ class comment
$ret['comment'] = $text;
$ret['moderate'] = $modcomment;
$ret['comment_form'] = $comment;
$ret['caption'] = "<span id='e-comment-total'>".$this->totalComments."</span> ".LAN_COMMENTS;

View File

@@ -4060,7 +4060,7 @@ class e_parser
if($type == 'youtube')
{
// $thumbSrc = "https://i1.ytimg.com/vi/".$id."/0.jpg";
$thumbSrc = "http://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
$thumbSrc = "https://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
$video = '<iframe class="embed-responsive-item" width="560" height="315" src="//www.youtube.com/embed/'.$id.'?'.$ytqry.'" style="background-size: 100%;background-image: url('.$thumbSrc.');border:0px" allowfullscreen></iframe>';

View File

@@ -1028,7 +1028,8 @@ class news_front
if(!empty($comments))
{
return e107::getRender()->tablerender($comments['caption'],$comments['comment_form'] . $comments['comment'],'comment', true);
$text = $comments['comment_form'] . $comments['comment'] .$comments['moderate'];
return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
}
}