
как заблокировать кнопку download в html5 плеере?
Всем доброго времени суток.
скачала плеер отсюда
https://extensions.joomla.org/extension/html5-audio/Все просто, Но!........
мне совсем не нужна кнопка скачивания, а найти самостоятельно в коде как ее убрать не получается.
Имеется только два файла
php:
<?php
/*
* @copyright Copyright (C) 2016 Marco Beierer. All rights reserved.
* @license
http://www.gnu.org/licenses/agpl-3.0.html GNU/AGPL
*/
defined ('_JEXEC') or die ('Restricted access');
class plgContentHtml5audio extends JPlugin {
protected $autoloadLanguage = true;
public function onContentPrepare( $context, &$article, &$params, $page = 0) {
$pattern = '/{audio}(.*){\/audio}/';
$matches = array();
$ok = preg_match_all($pattern, $article->text, $matches, PREG_SET_ORDER);
if (!$ok){
// return;
}
foreach($matches as $match) {
$filepath = htmlspecialchars($this->params->get('base_path', '') . $match[1]); // prevents XSS
$replacement = sprintf('<audio controls src="%s">%s</audio>', $filepath, JText::_('PLG_CONTENT_HTML5AUDIO_NOT_SUPPORTED'));
$article->text = str_replace($match[0], $replacement, $article->text);
}
}
}
И....
xml:
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.4" type="plugin" group="content" method="upgrade">
<name>plg_content_html5audio</name>
<author>Marco Beierer</author>
<authorEmail>email@marcobeierer.com</authorEmail>
<authorUrl>https://www.marcobeierer.com</authorUrl>
<version>1.1.0</version>
<creationDate>May 2016</creationDate>
<copyright>Copyright (C) 2016 Marco Beierer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/agpl-3.0.html GNU/AGPL</license>
<files folder="plugin">
<filename plugin="html5audio">html5audio.php</filename>
</files>
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.plg_content_html5audio.sys.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_content_html5audio.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic">
<field name="base_path" type="text" default="" label="Base Path" />
</fieldset>
</fields>
</config>
<updateservers>
<server type="extension" name="HTML5 Audio Plugin Update Site">https://static.marcobeierer.com/joomla-extensions/html5audio/update.xml</server>
</updateservers>
</extension>
Помогите умные люди, пожалуйста.