<?php

/**
 * Snippet to generate the code required to enable HTML5 Video playing in the published content.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @package clearFusionCMS\module\liveeditor
 * @copyright Copyright (c) 2012 clearFusionCMS. All rights reserved.
 * @link http://clearfusioncms.com
 */

$tplEngine->getCodeBuffer()->includeJQuery()
	->bufferHeadJS('system/modules/liveeditor/scripts/common/mediaelement/mediaelement-and-player.min.js')
	->bufferCSS('system/modules/liveeditor/scripts/common/mediaelement/mediaelementplayer.min.css')
	->bufferHeadJS('$(document).ready(function () { $("audio,video").mediaelementplayer(); });');
