From 28a71c4111d1b010ca26e1ab051dd4f1bf98fe66 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Wed, 19 Sep 2007 15:56:48 +0000 Subject: remove special div() and span() methods since this magic is gone for good now. --- it_html.class | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/it_html.class b/it_html.class index b42f318..c9e4919 100644 --- a/it_html.class +++ b/it_html.class @@ -286,24 +286,6 @@ function tag($args) } -/** - * OBSOLETE Shortcut: return a div of a specific class - * @param $class class name or null for no class= tag - * @param ... any number optional data or array of key => value arguments - * @return
...
- */ -function div($args) -{ - if (!is_array($args[0]) && ($class = array_shift($args)) !== null) - { - array_unshift($args, compact('class')); - it::error("deprecated usage of div"); - } - - return $this->_tag("div", $args); -} - - /** * Special img() function patches png transparency for IE 5.5-6 if ie_png_fix is set * @param ... any number optional data or array of key => value arguments @@ -366,24 +348,6 @@ function select($tags, $options, $selected = null) } -/** - * OBSOLETE Shortcut: return a span of a specific class - * @param $class class name or null for no class= tag - * @param ... any number optional data or array of key => value arguments - * @return ... - */ -function span($args) -{ - if (!is_array($args[0]) && ($class = array_shift($args)) !== null) - { - array_unshift($args, compact('class')); - it::error("deprecated usage of span"); - } - - return $this->_tag("span", $args); -} - - /** * Return HTML with all evil things stripped. Allowed are a coupld of simple * tags like div, p, i, b, br without attributes, a with absolute href, -- cgit v1.2.3