From: <var...@us...> - 2014-06-12 14:33:37
|
Revision: 8892 http://sourceforge.net/p/phpwiki/code/8892 Author: vargenau Date: 2014-06-12 14:33:34 +0000 (Thu, 12 Jun 2014) Log Message: ----------- HtmlElement: implement more tags Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2014-06-12 13:45:42 UTC (rev 8891) +++ trunk/lib/HtmlElement.php 2014-06-12 14:33:34 UTC (rev 8892) @@ -3,9 +3,6 @@ * Code for writing the HTML subset of XML. * @author: Jeff Dairiki * - * This code is now php5 compatible. --2004-04-19 23:51:43 rurban - * Specialized for php-5.3: added public static 2010-06-07 09:51:37 rurban - * * Todo: Add support for a JavaScript backend, a php2js compiler. * HTML::div(array('onclick' => 'HTML::div(...)')) */ @@ -17,7 +14,6 @@ /** * An XML element. */ -//apd_set_session_trace(35); class HtmlElement extends XmlElement { @@ -78,7 +74,6 @@ // FIXME: this should be initialized from title by an onLoad() function. // (though, that may not be possible.) - $qtooltip = str_replace("'", "\\'", $tooltip_text); $this->setAttr('onmouseover', sprintf('window.status="%s"; return true;', addslashes($tooltip_text))); @@ -303,6 +298,48 @@ return $el->_init2(func_get_args()); } + public static function abbr( /*...*/) + { + $el = new HtmlElement('abbr'); + return $el->_init2(func_get_args()); + } + + public static function acronym( /*...*/) + { + $el = new HtmlElement('acronym'); + return $el->_init2(func_get_args()); + } + + public static function cite( /*...*/) + { + $el = new HtmlElement('cite'); + return $el->_init2(func_get_args()); + } + + public static function code( /*...*/) + { + $el = new HtmlElement('code'); + return $el->_init2(func_get_args()); + } + + public static function dfn( /*...*/) + { + $el = new HtmlElement('dfn'); + return $el->_init2(func_get_args()); + } + + public static function kbd( /*...*/) + { + $el = new HtmlElement('kbd'); + return $el->_init2(func_get_args()); + } + + public static function samp( /*...*/) + { + $el = new HtmlElement('samp'); + return $el->_init2(func_get_args()); + } + /****************************************/ public static function tt( /*...*/) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |