1<?php
2/**
3 * Details disclosure element component for the adhoctags plugin
4 *
5 * Defines  <details> ... </details> syntax
6 * More info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
7 *
8 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 * @author     Anika Henke <anika@selfthinker.org>
10 * @author     Sascha Leib <sascha.leib(at)kolmio.com>
11 */
12
13class syntax_plugin_adhoctags_details extends syntax_plugin_adhoctags_abstractblock {
14
15	protected $tag	= 'details';
16
17	/* allow link attributes: */
18	function allowAttribute(&$name, &$value) {
19		//dbg('<details>:allowAttribute(' . $name . ', "' . $value . '")');
20
21		return ( $name == 'open' && in_array($value, array('','open')) );
22
23	}
24}