Source for file Image.php
Documentation is available at Image.php
class Text_Wiki_Render_Doku_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.
if (!isset ($options['attr']['align'])) {
$options['attr']['align'] = '';
($options['attr']['align'] == 'right' || $options['attr']['align'] == 'center' ? ' ' : '').
(isset ($options['attr']['width'])
? '?'. $options['attr']['width']. (isset ($options['attr']['height'])
? 'x'. $options['attr']['height']
($options['attr']['align'] == 'left' || $options['attr']['align'] == 'center' ? ' ' : '').
if (isset ($options['attr']['link'])) {
return '[['. $options['attr']['link']. '|'. $img. ']]';
Documentation generated on Mon, 11 Mar 2019 14:12:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|