Source for file Image.php
Documentation is available at Image.php
class Text_Wiki_Render_Latex_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'])) {
if (strpos($options['attr']['link'], '://')) {
$href = $options['attr']['link'];
$href = $this->wiki->getRenderConf ('xhtml', '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\"";
// always add an "alt" attribute per Stephane Solliec
$attr .= ' alt="' . basename($options['src']) . '"';
return " <a href=\"$href\"><img src=$src$attr/></a>";
return " <img src=$src$attr/>";
Documentation generated on Mon, 11 Mar 2019 14:22:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|