From: <var...@us...> - 2021-09-28 15:24:43
|
Revision: 10596 http://sourceforge.net/p/phpwiki/code/10596 Author: vargenau Date: 2021-09-28 15:24:42 +0000 (Tue, 28 Sep 2021) Log Message: ----------- Add HTML::figure and HTML::figcaption Modified Paths: -------------- trunk/lib/HtmlElement.php trunk/themes/default/phpwiki-common.css Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2021-09-20 13:23:05 UTC (rev 10595) +++ trunk/lib/HtmlElement.php 2021-09-28 15:24:42 UTC (rev 10596) @@ -204,6 +204,18 @@ return $el->_init2(func_get_args()); } + public static function figure( /*...*/) + { + $el = new HtmlElement('figure'); + return $el->_init2(func_get_args()); + } + + public static function figcaption( /*...*/) + { + $el = new HtmlElement('figcaption'); + return $el->_init2(func_get_args()); + } + public static function br( /*...*/) { $el = new HtmlElement('br'); @@ -585,7 +597,7 @@ 'b big i small tt ' // %fontstyle . 's strike u ' // (deprecated) . 'abbr acronym cite code dfn em kbd samp strong var ' //%phrase - . 'a img object embed br script map q sub sup span bdo ' //%special + . 'a img figure object embed br script map q sub sup span bdo ' //%special . 'button input label option select textarea label ' //%formctl // %block elements which contain inline content @@ -594,7 +606,7 @@ . 'div fieldset ' // other with inline content - . 'caption dt label legend video ' + . 'caption figcaption dt label legend video ' // other with either inline or block . 'dd del ins li td th colgroup'); Modified: trunk/themes/default/phpwiki-common.css =================================================================== --- trunk/themes/default/phpwiki-common.css 2021-09-20 13:23:05 UTC (rev 10595) +++ trunk/themes/default/phpwiki-common.css 2021-09-28 15:24:42 UTC (rev 10596) @@ -60,6 +60,10 @@ clear: both; } +figcaption { + font-style: italic; +} + /* Alert class ======================================================== */ .dialog { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |