Source for file Image.php
Documentation is available at Image.php
class Text_Wiki_Render_Xhtml_Image extends Text_Wiki_Render {
* Renders a token into text matching the requested format.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
$this->getConf ('base', '/') .
if (isset ($options['attr']['link'])) {
// this image has a wikilink
$href = $this->_wiki->getRuleConf ('wikilink', 'view_url') .
$options['attr']['link'];
// unset these so they don't show up as attributes
unset ($options['attr']['link']);
foreach ($options['attr'] as $key => $val) {
$attr .= " $key=\"$val\" ";
return " <a href=\"$href\"><img src=$src$attr/></a>";
return " <img src=$src$attr/>";
Documentation generated on Mon, 11 Mar 2019 10:17:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|