summaryrefslogtreecommitdiff
path: root/includes/pear/Text/Wiki/Render/Xhtml/Anchor.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pear/Text/Wiki/Render/Xhtml/Anchor.php')
-rwxr-xr-x[-rw-r--r--]includes/pear/Text/Wiki/Render/Xhtml/Anchor.php22
1 files changed, 10 insertions, 12 deletions
diff --git a/includes/pear/Text/Wiki/Render/Xhtml/Anchor.php b/includes/pear/Text/Wiki/Render/Xhtml/Anchor.php
index 0a42cac..0be49bb 100644..100755
--- a/includes/pear/Text/Wiki/Render/Xhtml/Anchor.php
+++ b/includes/pear/Text/Wiki/Render/Xhtml/Anchor.php
@@ -9,7 +9,7 @@
* @package Text_Wiki
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id: Anchor.php 206940 2006-02-10 23:07:03Z toggg $
+ * @version CVS: $Id$
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -25,24 +25,22 @@
*/
class Text_Wiki_Render_Xhtml_Anchor extends Text_Wiki_Render {
- var $conf = array(
- 'css' => null
- );
+ public $conf = [
+ "css" => null,
+ ];
- function token($options)
+ public function token($options)
{
extract($options); // $type, $name
- if ($type == 'start') {
- $css = $this->formatConf(' class="%s"', 'css');
+ if ($type == "start") {
+ $css = $this->formatConf(' class="%s"', "css");
$format = "<a$css id=\"%s\">";
return sprintf($format, $this->textEncode($name));
}
- if ($type == 'end') {
- return '</a>';
+ if ($type == "end") {
+ return "</a>";
}
}
-}
-
-?>
+} \ No newline at end of file