From: <var...@us...> - 2009-03-26 08:52:32
|
Revision: 6707 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6707&view=rev Author: vargenau Date: 2009-03-26 08:52:28 +0000 (Thu, 26 Mar 2009) Log Message: ----------- Add fieldset Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2009-03-25 11:43:36 UTC (rev 6706) +++ trunk/lib/HtmlElement.php 2009-03-26 08:52:28 UTC (rev 6707) @@ -426,6 +426,10 @@ $el = new HtmlElement('param'); return $el->_init2(func_get_args()); } + function fieldset (/*...*/) { + $el = new HtmlElement('fieldset'); + return $el->_init2(func_get_args()); + } function legend (/*...*/) { $el = new HtmlElement('legend'); return $el->_init2(func_get_args()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-06-04 11:33:39
|
Revision: 6869 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6869&view=rev Author: rurban Date: 2009-06-04 11:33:24 +0000 (Thu, 04 Jun 2009) Log Message: ----------- TODO comment about php2js (not yet written) Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2009-06-04 11:30:51 UTC (rev 6868) +++ trunk/lib/HtmlElement.php 2009-06-04 11:33:24 UTC (rev 6869) @@ -4,6 +4,9 @@ * @author: Jeff Dairiki * * This code is now php5 compatible. --2004-04-19 23:51:43 rurban + * + * Todo: Add support for a JavaScript backend, a php2js compiler. + * HTML::div(array('onClick' => 'HTML::div(...)')) */ if (!class_exists("XmlElement")) require_once(dirname(__FILE__)."/XmlElement.php"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2010-06-08 08:23:02
|
Revision: 7493 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7493&view=rev Author: rurban Date: 2010-06-08 08:22:56 +0000 (Tue, 08 Jun 2010) Log Message: ----------- document new php5 version Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2010-06-08 08:22:22 UTC (rev 7492) +++ trunk/lib/HtmlElement.php 2010-06-08 08:22:56 UTC (rev 7493) @@ -4,6 +4,7 @@ * @author: Jeff Dairiki * * This code is now php5 compatible. --2004-04-19 23:51:43 rurban + * php-5.3 uses now HtmlElement5.php with public static * * Todo: Add support for a JavaScript backend, a php2js compiler. * HTML::div(array('onClick' => 'HTML::div(...)')) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-15 10:52:59
|
Revision: 8472 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8472&view=rev Author: vargenau Date: 2012-11-15 10:52:50 +0000 (Thu, 15 Nov 2012) Log Message: ----------- Remove empty line Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2012-11-15 10:44:32 UTC (rev 8471) +++ trunk/lib/HtmlElement.php 2012-11-15 10:52:50 UTC (rev 8472) @@ -125,8 +125,6 @@ } } - - function HTML( /* $content, ... */) { return new XmlContent(func_get_args()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <var...@us...> - 2014-10-09 14:10:03
|
Revision: 9233 http://sourceforge.net/p/phpwiki/code/9233 Author: vargenau Date: 2014-10-09 14:09:54 +0000 (Thu, 09 Oct 2014) Log Message: ----------- Add explicit class variables definition Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2014-10-09 14:08:52 UTC (rev 9232) +++ trunk/lib/HtmlElement.php 2014-10-09 14:09:54 UTC (rev 9233) @@ -17,6 +17,9 @@ class HtmlElement extends XmlElement { + private $_tag; + public $_attr; + function __construct($tagname /* , $attr_or_content , ...*/) { $this->_init(func_get_args()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-10-09 14:18:41
|
Revision: 9235 http://sourceforge.net/p/phpwiki/code/9235 Author: vargenau Date: 2014-10-09 14:18:34 +0000 (Thu, 09 Oct 2014) Log Message: ----------- private $_tag --> public $_tag Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2014-10-09 14:10:38 UTC (rev 9234) +++ trunk/lib/HtmlElement.php 2014-10-09 14:18:34 UTC (rev 9235) @@ -17,7 +17,7 @@ class HtmlElement extends XmlElement { - private $_tag; + public $_tag; public $_attr; function __construct($tagname /* , $attr_or_content , ...*/) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-12-19 15:50:02
|
Revision: 9454 http://sourceforge.net/p/phpwiki/code/9454 Author: vargenau Date: 2014-12-19 15:49:55 +0000 (Fri, 19 Dec 2014) Log Message: ----------- Remove dead URL Modified Paths: -------------- trunk/lib/HtmlElement.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2014-12-19 15:49:15 UTC (rev 9453) +++ trunk/lib/HtmlElement.php 2014-12-19 15:49:55 UTC (rev 9454) @@ -658,14 +658,12 @@ */ function JavaScript($js, $script_args = array()) { - $default_script_args = array( //'version' => 'JavaScript', // not xhtml conformant - 'type' => 'text/javascript'); + $default_script_args = array('type' => 'text/javascript'); $script_args = $script_args ? array_merge($default_script_args, $script_args) : $default_script_args; if (empty($js)) return HTML(HTML::script($script_args), "\n"); else - // see http://devedge.netscape.com/viewsource/2003/xhtml-style-script/ return HTML(HTML::script($script_args, new RawXml((ENABLE_XHTML_XML ? "\n//<![CDATA[" : "\n<!--//") . "\n" . trim($js) . "\n" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |