/** * Create Flowplayer Playlist HTML Output * * Retrieves a media files and settings to display a video. * * @since 1.3.0 * * @param array $atts Shortcode attributes */ private static function playlist_output($atts) { $playlist_id = $atts['playlist']; $playlist_options = get_option('playlist_' . absint($playlist_id)); // Check if old id is being used in the shortcode if (!$playlist_options && function_exists('wp_get_split_term')) { $new_term_id = wp_get_split_term(absint($playlist_id), 'playlist'); $playlist_options = get_option('playlist_' . absint($new_term_id)); if ($playlist_options) { $playlist_id = $new_term_id; } } $atts = Flowplayer5_Playlist::get_videos_by_id($playlist_id); if (!$atts) { return; } if (!$playlist_options) { $playlist_options['fp5-select-skin'] = 'minimalist'; } ob_start(); require 'views/partials/playlist.php'; $html = ob_get_clean(); return $html; }