<?php if (!defined('_GNUBOARD_')) exit;

add_event('html_purifier_config', function($config) {
    $add_html_tag = $config -> getHTMLDefinition(1);
    $add_html_tag -> addElement('link', 'Block', 'Flow', 'Common', ['rel' => 'Text', 'href' => 'Text']);
    $add_html_tag -> addElement('div', 'Block', 'Flow', 'Common', ['id' => 'Text', 'style' => 'Text']);
    $add_html_tag -> addElement('span', 'Block', 'Flow', 'Common', ['id' => 'Text','style' => 'Text']);
    $add_html_tag -> addElement('iframe', 'Block', 'Flow', 'Common', ['id' => 'Text', 'style' => 'Text', 'allow' => 'Text', 'allowfullscreen' => 'Bool']);
    $add_html_tag -> addElement('video', 'Block', 'Flow', 'Common', ['id' => 'Text', 'src' => 'Text', 'autoplay' => 'Bool', 'loop' => 'Bool', 'controls' => 'Bool', 'muted' => 'Bool', 'controlslist' => 'Text']);
    $add_html_tag -> addElement('audio', 'Block', 'Flow', 'Common', ['id' => 'Text', 'src' => 'Text', 'autoplay' => 'Bool', 'loop' => 'Bool', 'controls' => 'Bool', 'muted' => 'Bool', 'controlslist' => 'Text']);
}, 1, 1);