From: Leandro Lucarella Date: Mon, 24 Nov 2003 23:29:51 +0000 (+0000) Subject: Se agrega estilo. X-Git-Tag: svn_import~169 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/9ea00a51d80e94e95ff5525f3c63301c86b50d12 Se agrega estilo. --- diff --git a/lib/MECON/HTML/Link.php b/lib/MECON/HTML/Link.php index b1835c1..d50e261 100644 --- a/lib/MECON/HTML/Link.php +++ b/lib/MECON/HTML/Link.php @@ -24,11 +24,8 @@ Autor: @@author <@@email> $Id$ -----------------------------------------------------------------------------*/ -// +X2C includes require_once 'HTML/Common.php'; -// ~X2C -// +X2C Class 892 :MECON_HTML_Link /** * HTML Link representation. When adding GET variables, if the value is an object, it looks for a toString() method, if it doesn't exists or if is an array, it serializes the object/array to get a string value. @@ -64,6 +61,7 @@ class MECON_HTML_Link extends HTML_Common { { return $this->_getVars; } + /** * Sets GetVars. * @@ -77,9 +75,6 @@ class MECON_HTML_Link extends HTML_Common { $this->_getVars = $getVars; } - // ~X2C - - // +X2C Operation 178 /** * Constructor. * @@ -91,10 +86,13 @@ class MECON_HTML_Link extends HTML_Common { * @return void * @access public */ - function MECON_HTML_Link($href = '', $contents = '', $getVars = array(), $attrs = array()) // ~X2C + function MECON_HTML_Link($href = '', $contents = '', $getVars = array(), $attrs = array()) { if (is_array($attrs)) { $attrs['href'] = $href; + if (!isset($attrs['class'])){ + $attrs['class'] = 'mecon_html_link'; + } } else { $attrs .= " href=$href"; } @@ -102,9 +100,7 @@ class MECON_HTML_Link extends HTML_Common { $this->_getVars = $getVars; $this->addContents($contents); } - // -X2C - // +X2C Operation 179 /** * Converts to HTML output. * @@ -135,9 +131,7 @@ class MECON_HTML_Link extends HTML_Common { } return "" . $this->getContents() . ''; } - // -X2C - // +X2C Operation 180 /** * Gets hypertext reference. * @@ -148,9 +142,7 @@ class MECON_HTML_Link extends HTML_Common { { return $this->getAttribute('href'); } - // -X2C - // +X2C Operation 181 /** * Sets hypertext reference. * @@ -163,9 +155,7 @@ class MECON_HTML_Link extends HTML_Common { { $this->updateAttributes(array('href' => $href)); } - // -X2C - // +X2C Operation 182 /** * Set a GET variable. * @@ -179,9 +169,7 @@ class MECON_HTML_Link extends HTML_Common { { $this->_getVars[$key] = $value; } - // -X2C - // +X2C Operation 183 /** * Updates GET variables. * @@ -195,9 +183,7 @@ If they doesn't exists, they are added, if they exists, they are updated. { $this->_getVars += $vars; } - // -X2C - // +X2C Operation 184 /** * Unsets (removes) GET variables. This method supports variable arguments. * @@ -213,9 +199,7 @@ If they doesn't exists, they are added, if they exists, they are updated. unset($this->_getVars[$key]); } } - // -X2C - // +X2C Operation 185 /** * Adds contents to the link. * @@ -228,9 +212,7 @@ If they doesn't exists, they are added, if they exists, they are updated. { $this->_contents[] = $contents; } - // -X2C - // +X2C Operation 186 /** * @return string * @access public @@ -247,9 +229,7 @@ If they doesn't exists, they are added, if they exists, they are updated. } return $html; } - // -X2C - // +X2C Operation 187 /** * @param mixed $contents New link contents. * @@ -260,8 +240,18 @@ If they doesn't exists, they are added, if they exists, they are updated. { $this->_contents = array($contents); } - // -X2C -} // -X2C Class :MECON_HTML_Link + /** + * @param mixed $contents New link contents. + * + * @return void + * @access public + */ + function getCSS() + { + return '/MECON/css/html/link.css'; + } + +} ?> \ No newline at end of file diff --git a/www/css/html/link.css b/www/css/html/link.css new file mode 100644 index 0000000..62c11ec --- /dev/null +++ b/www/css/html/link.css @@ -0,0 +1,7 @@ + +a.mecon_html_link { + color: #003366; + font-family: Arial, Helvetica, sans-serif; + font-size: 8pt; +} +