cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Page.php Preformatted.php Specialchar.php Titlebar.php
| From: | bertrand GUGGER | Date: | Fri, 29 Jul 2005 13:56:32 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Page.php Preformatted.php Specialchar.php Titlebar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33460@lists.php.net to get a copy of this message | ||
toggg Fri Jul 29 09:56:32 2005 EDT
Added files:
/pear/Text_Wiki/Text/Wiki/Render/Xhtml Preformatted.php
Specialchar.php Titlebar.php
Page.php
Log:
4 new rules introduced for tiki
http://cvs.php.net/co.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php?r=1.1&p=1
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php
<?php
class Text_Wiki_Render_Xhtml_Preformatted extends Text_Wiki_Render {
/**
*
* Renders a token into text matching the requested format.
*
* @access public
*
* @param array $options The "options" portion of the token (second
* element).
*
* @return string The text rendered from the token options.
*
*/
function token($options)
{
return '<pre>'.$options['text'].'</pre>';
}
}
?>
http://cvs.php.net/co.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Specialchar.php?r=1.1&p=1
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Specialchar.php
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Specialchar.php
<?php
class Text_Wiki_Render_Xhtml_SpecialChar extends Text_Wiki_Render {
var $types = array('~bs~' => '\',
'~hs~' => ' ',
'~amp~' => '&',
'~ldq~' => '“',
'~rdq~' => '”',
'~lsq~' => '‘',
'~rsq~' => '’',
'~c~' => '©',
'~--~' => '—',
'" -- "' => '—',
'" -- "' => '—',
'~lt~' => '<',
'~gt~' => '>');
function token($options)
{
if (isset($this->types[$options['char']])) {
return $this->types[$options['char']];
} else {
return '&#'.substr($options['char'], 1, -1).';';
}
}
}
?>
http://cvs.php.net/co.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Titlebar.php?r=1.1&p=1
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Titlebar.php
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Titlebar.php
<?php
class Text_Wiki_Render_Xhtml_Titlebar extends Text_Wiki_Render {
var $conf = array(
'css' => 'titlebar'
);
/**
*
* Renders a token into text matching the requested format.
*
* @access public
*
* @param array $options The "options" portion of the token (second
* element).
*
* @return string The text rendered from the token options.
*
*/
function token($options)
{
if ($options['type'] == 'start') {
$css = $this->formatConf(' class="%s"', 'css');
return "<div$css>";
}
if ($options['type'] == 'end') {
return '</div>';
}
}
}
?>
http://cvs.php.net/co.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Page.php?r=1.1&p=1
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Page.php
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Page.php
<?php
class Text_Wiki_Render_Xhtml_Page extends Text_Wiki_Render {
/**
*
* Renders a token into text matching the requested format.
*
* @access public
*
* @param array $options The "options" portion of the token (second
* element).
*
* @return string The text rendered from the token options.
*
*/
function token($options)
{
return 'PAGE MARKER HERE*&^%$#^$%*PAGEMARKERHERE';
}
}
?>