mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #1762 - Media-Manager Youtube thumbnail should use https. Removed debug info on db_verify. Hide carousel navigation when only 1 slide present.
This commit is contained in:
@@ -1478,7 +1478,7 @@ class media_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['items'][0]['id']['videoId'] = $searchQry;
|
$data['items'][0]['id']['videoId'] = $searchQry;
|
||||||
$data['items'][0]['snippet']['thumbnails']['medium']['url'] = "http://i.ytimg.com/vi/".$searchQry."/mqdefault.jpg";
|
$data['items'][0]['snippet']['thumbnails']['medium']['url'] = "https://i.ytimg.com/vi/".$searchQry."/mqdefault.jpg";
|
||||||
$data['items'][0]['snippet']['title'] = 'Specified Video';
|
$data['items'][0]['snippet']['title'] = 'Specified Video';
|
||||||
}
|
}
|
||||||
elseif(substr($searchQry,0,9) == 'playlist:') // playlist
|
elseif(substr($searchQry,0,9) == 'playlist:') // playlist
|
||||||
|
@@ -201,6 +201,13 @@ class db_verify
|
|||||||
|
|
||||||
$this->currentTable = $selection;
|
$this->currentTable = $selection;
|
||||||
|
|
||||||
|
if(!isset($this->tables[$selection])) // doesn't have an SQL file.
|
||||||
|
{
|
||||||
|
// e107::getMessage()->addDebug("No SQL File for ".$selection);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(empty($this->tables[$selection]['tables']))
|
if(empty($this->tables[$selection]['tables']))
|
||||||
{
|
{
|
||||||
//$this->internalError = true;
|
//$this->internalError = true;
|
||||||
|
@@ -604,21 +604,28 @@ class e_form
|
|||||||
$text ='
|
$text ='
|
||||||
<!-- Carousel -->
|
<!-- Carousel -->
|
||||||
|
|
||||||
<div id="'.$name.'" class="carousel slide" data-ride="carousel" '.$interval.' '.$wrap.' '.$pause.'>
|
<div id="'.$name.'" class="carousel slide" data-ride="carousel" '.$interval.' '.$wrap.' '.$pause.'>';
|
||||||
<!-- Indicators -->
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
';
|
|
||||||
|
|
||||||
$c = 0;
|
if(count($array) > 1)
|
||||||
foreach($array as $key=>$tab)
|
|
||||||
{
|
{
|
||||||
$active = ($c == $act) ? ' class="active"' : '';
|
$text .= '
|
||||||
$text .= '<li data-target="#'.$name.'" data-slide-to="'.$c.'" '.$active.'></li>';
|
<!-- Indicators -->
|
||||||
$c++;
|
<ol class="carousel-indicators">
|
||||||
|
';
|
||||||
|
|
||||||
|
$c = 0;
|
||||||
|
foreach($array as $key=>$tab)
|
||||||
|
{
|
||||||
|
$active = ($c == $act) ? ' class="active"' : '';
|
||||||
|
$text .= '<li data-target="#'.$name.'" data-slide-to="'.$c.'" '.$active.'></li>';
|
||||||
|
$c++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= '
|
||||||
|
</ol>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= '
|
$text .= '
|
||||||
</ol>
|
|
||||||
|
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
';
|
';
|
||||||
@@ -642,15 +649,18 @@ class e_form
|
|||||||
|
|
||||||
$text .= '
|
$text .= '
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
$text .= '
|
if(count($array) > 1)
|
||||||
<a class="left carousel-control" href="#'.$name.'" role="button" data-slide="prev">
|
{
|
||||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
$text .= '
|
||||||
</a>
|
<a class="left carousel-control" href="#'.$name.'" role="button" data-slide="prev">
|
||||||
<a class="right carousel-control" href="#'.$name.'" role="button" data-slide="next">
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
</a>
|
||||||
</a>';
|
<a class="right carousel-control" href="#'.$name.'" role="button" data-slide="next">
|
||||||
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
</a>';
|
||||||
|
}
|
||||||
|
|
||||||
$text .= '</div><!-- End Carousel -->';
|
$text .= '</div><!-- End Carousel -->';
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
Reference in New Issue
Block a user