<?
/**
 * @package     DOCman
 * @copyright   Copyright (C) 2012 Timble CVBA. (http://www.timble.net)
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.joomlatools.com
 */
defined('FOLIOKIT') or die; ?>

<?= helper('player.load', ['selector' => '.docman_player']); ?>

<div class="docman_player"
    data-plyr-provider="<?= $service ?>"
    data-plyr-config="<?= htmlentities(\Foliolabs\WP::wp_json_encode(['controls' => $controls])) ?>"
    data-plyr-embed-id="<?= $id ?>"
    data-media-id="<?= $document->id ?>"
    data-title="<?= escape($document->title) ?>"
    data-category="docman"
></div>
