100%'),
'since' => '1',
'filter' => 'text',
],
'align' => [
'required' => false,
'safe' => true,
'name' => tra('Text Alignment'),
'description' => tra('Aligns the text within the box (left-aligned by default)'),
'since' => '1',
'filter' => 'alpha',
'default' => 'left',
'options' => [
['text' => tra('Left'), 'value' => 'left'],
['text' => tra('Right'), 'value' => 'right'],
['text' => tra('Center'), 'value' => 'center'],
],
],
'float' => [
'required' => false,
'safe' => true,
'name' => tra('Float Position'),
'description' => tr(
'Set the alignment for the entire box. For elements with a width of less than 100%, other elements
will wrap around it unless the %0 parameter is appropriately set.)',
'clear'
),
'since' => '1',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Left'), 'value' => 'left'],
['text' => tra('Right'), 'value' => 'right'],
],
],
'clear' => [
'required' => false,
'safe' => true,
'name' => tra('Clear'),
'description' => tr(
'Text, etc. is not allowed to wrap around the box if this parameter is set to %0 (Yes)',
'1'
),
'since' => '1',
'filter' => 'digits',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 1],
['text' => tra('No'), 'value' => 0]
],
],
'class' => [
'required' => false,
'safe' => true,
'name' => tra('CSS Class'),
'description' => tra('Apply custom CSS class to the box.'),
'since' => '1',
'filter' => 'text',
'default' => '',
'accepted' => tra('Valid CSS class'),
],
'style' => [
'required' => false,
'safe' => true,
'name' => tra('CSS Style'),
'description' => tra('Enter CSS styling tags for the div type used e.g. padding: 5px'),
'since' => '13.0',
'filter' => 'text',
'default' => '',
],
'id' => [
'required' => false,
'safe' => true,
'name' => tra('ID'),
'description' => tra('ID'),
'since' => '1',
'filter' => 'text',
'default' => '',
],
],
];
}
function wikiplugin_box($data, $params)
{
// global $tikilib;
// Remove first