Subversion Repositories cheapmusic

Rev

Rev 52 | Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 55
Line 173... Line 173...
173
    $str.="<span class=\"float-left\">";
173
    $str.="<span class=\"float-left\">";
174
    $str.= "<button type=\"button\" class=\"btn btn-outline-dark mt-1 mx-1\" data-toggle=\"modal\" data-target=\"#masterModal" . $cnt . "\" title=\"Album Information\" data-toggle2=\"tooltip\" data-placement=\"bottom\"><i class=\"fas fa-info\"></i></button>";
174
    $str.= "<button type=\"button\" class=\"btn btn-outline-dark mt-1 mx-1\" data-toggle=\"modal\" data-target=\"#masterModal" . $cnt . "\" title=\"Album Information\" data-toggle2=\"tooltip\" data-placement=\"bottom\"><i class=\"fas fa-info\"></i></button>";
175
 
175
 
176
    if (isset($master->{'videos'})) {
176
    if (isset($master->{'videos'})) {
177
        foreach ($master->{'videos'} as $video) {
177
        foreach ($master->{'videos'} as $video) {
178
            $str.= "<a href=\"" . $video->uri . "\" target=\"_blank\" role=\"button\" title=\"Watch Video:<br>" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]\" data-html=\"true\" data-toggle=\"tooltip\" data-placement=\"bottom\"><i class=\"fab fa-youtube btn-youtube\"></i></a>";
178
            $str .= "<a href=\"" . $video->uri . "\" target=\"_blank\" role=\"button\" title=\"Watch Video:<br>" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]\" data-html=\"true\" data-toggle=\"tooltip\" data-placement=\"bottom\"><i class=\"fab fa-youtube btn-youtube\"></i></a>";
-
 
179
            $videoParam = basename($video->uri);
-
 
180
            $videoIdx = strpos($videoParam, "=") + 1;
-
 
181
            $str .= "<iframe width=\"280\" height=\"158\" src=\"https://www.youtube-nocookie.com/embed/" . substr($videoParam, $videoIdx) . "?rel=0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>";
179
        }
182
        }
180
    }
183
    }
181
 
184
 
182
    $str.="</span>";
185
    $str.="</span>";
183
    $str.="<span class=\"float-right\">";
186
    $str.="<span class=\"float-right\">";