1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Allow HTML5 audio tag

This commit is contained in:
Alexander Yakovlev 2017-06-04 18:59:39 +07:00
parent 981957a6af
commit 84cae6679b
2 changed files with 21 additions and 9 deletions

View file

@ -6,13 +6,24 @@ return array(
'cfgAllowTags' => array(
// вызов метода с параметрами
array(
array('ls', 'gallery', 'spoiler', 'abbr'),
array(
'ls',
'gallery',
'spoiler',
'abbr',
'audio',
'source'
),
),
),
// Коротие теги типа
'cfgSetTagShort' => array(
array(
array('ls', 'gallery')
array(
'ls',
'gallery',
'source'
)
),
),
// Разрешённые параметры тегов
@ -48,6 +59,14 @@ return array(
'abbr',
array('title' => '#text')
),
array(
'audio',
array('controls' => '#text', 'src' => '#text')
),
array(
'source',
array('src' => '#text', 'type' => ['audio/ogg', 'audio/mpeg'])
),
array(
'ls',
array('user' => '#text')

View file

@ -1,7 +0,0 @@
Order Deny,Allow
Deny from all
<FilesMatch "\.(css|js)$">
Order Deny,Allow
Deny from all
Allow from all
</FilesMatch>