
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: Playlist.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace PrestoPlayer;

use PrestoPlayer\Services\ReusableVideos;
use PrestoPlayer\Blocks\AudioBlock;
use PrestoPlayer\Blocks\SelfHostedBlock;
use PrestoPlayer\Blocks\VimeoBlock;
use PrestoPlayer\Blocks\YouTubeBlock;
use PrestoPlayer\Pro\Blocks\BunnyCDNBlock;

class Playlist {

	/**
	 * Parses the attributes with respect to the provider.
	 *
	 * @param string $block_name Block name.
	 * @param array  $attributes Attributes of the block.
	 *
	 * @return array
	 */
	public function parsed_attributes( $block_name, $attributes ) {
		$attributes = wp_parse_args(
			$attributes,
			array(
				&#039;id&#039;                             =&gt; &#039;&#039;,
				&#039;src&#039;                            =&gt; &#039;&#039;,
				&#039;title&#039;                          =&gt; &#039;&#039;,
				&#039;provider&#039;                       =&gt; &#039;&#039;,
				&#039;class&#039;                          =&gt; &#039;&#039;,
				&#039;custom_field&#039;                   =&gt; &#039;&#039;,
				&#039;poster&#039;                         =&gt; &#039;&#039;,
				&#039;preload&#039;                        =&gt; &#039;auto&#039;,
				&#039;preset&#039;                         =&gt; 0,
				&#039;autoplay&#039;                       =&gt; false,
				&#039;plays_inline&#039;                   =&gt; false,
				&#039;chapters&#039;                       =&gt; array(),
				&#039;overlays&#039;                       =&gt; array(),
				&#039;tracks&#039;                         =&gt; array(),
				&#039;muted_autoplay_preview&#039;         =&gt; false,
				&#039;muted_autoplay_caption_preview&#039; =&gt; false,
			),
		);

		switch ( $block_name ) {
			case &#039;presto-player/self-hosted&#039;:
				return ( new SelfHostedBlock() )-&gt;getAttributes( $attributes, &#039;&#039; );

			case &#039;presto-player/youtube&#039;:
				return ( new YouTubeBlock() )-&gt;getAttributes( $attributes, &#039;&#039; );

			case &#039;presto-player/vimeo&#039;:
				return ( new VimeoBlock() )-&gt;getAttributes( $attributes, &#039;&#039; );

			case &#039;presto-player/bunny&#039;:
				return class_exists( BunnyCDNBlock::class ) ? ( new BunnyCDNBlock() )-&gt;getAttributes( $attributes, &#039;&#039; ) : &#039;&#039;;

			case &#039;presto-player/audio&#039;:
				return ( new AudioBlock() )-&gt;getAttributes( $attributes, &#039;&#039; );
		}
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
