"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/formatter/highlight/wrapper_box.php" between
wacko.6.1.14.zip and wacko.6.1.15.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

wrapper_box.php  (wacko.6.1.14):wrapper_box.php  (wacko.6.1.15)
skipping to change at line 20 skipping to change at line 20
[col=2|3|4|5] [col=2|3|4|5]
[clear]) [clear])
content content
%% %%
*/ */
$align_class = ''; $align_class = '';
$type_class = ''; $type_class = '';
$types = ['default', 'error', 'example', 'important', 'note', 'q uestion', 'quote', 'success', 'warning']; $types = ['default', 'error', 'example', 'important', 'note', 'q uestion', 'quote', 'success', 'warning'];
// defaults
$options['wrapper_type'] ??= 'default'; $options['wrapper_type'] ??= 'default';
$options['wrapper_title'] ??= null; $options['wrapper_title'] ??= null;
$options['wrapper_align'] ??= 'right'; $options['wrapper_align'] ??= 'right';
$options['wrapper_width'] ??= 250; $options['wrapper_width'] ??= 250;
$options['clear'] ??= false; $options['clear'] ??= false;
$options['col'] ??= false; $options['col'] ??= false;
if (in_array($options['wrapper_align'], ['center', 'left', 'right'])) if (in_array($options['wrapper_align'], ['center', 'left', 'right']))
{ {
// wrapper-* align in wacko.css // wrapper-* align in wacko.css
$align_class = ' wrapper-' . $options['wrapper_align']; $align_class = ' wrapper-' . $options['wrapper_align'];
} }
if (in_array($options['wrapper_type'], $types)) if (in_array($options['wrapper_type'], $types))
{ {
// wrapper type-* in wacko.css // wrapper type-* in wacko.css
$type_class = ' type-' . $options['wrapper_type']; $type_class = ' type-' . $options['wrapper_type'];
} }
$col_class = $options['col'] ? ' wrapper-col' . (int) $options['col'] : ''; $col_class = $options['col'] ? ' wrapper-col' . (int) $options['col'] : '';
$title = $options['wrapper_title'] ?? null;
// output wrapper // output wrapper
echo '<ignore><aside class="wrapper' . $type_class . $align_class . $col_class $tpl->type = $type_class;
. '" style="width: ' . (int) $options['wrapper_width'] . 'px;">' . "\n" . $tpl->align = $align_class;
($title $tpl->col = $col_class;
? '<p class="wrapper-title">' . Ut::html($title) $tpl->width = (int) $options['wrapper_width'];
. '</p>' . "\n" $tpl->t_title = $options['wrapper_title'] ?? null;
: '') . $tpl->text = $text;
'<div class="wrapper-content">' . "\n" . $tpl->clear = $options['clear'];
$text.
'</div>' . "\n" .
'</aside></ignore>' . "\n";
if ($options['clear'])
{
echo '<span class="clearfix"></span>';
}
 End of changes. 3 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)