19 lines
634 B
PHP
19 lines
634 B
PHP
<?php return [
|
|
'render' => function($prop) {
|
|
$id = trim((string)($prop['id'] ?? ''));
|
|
$class = trim((string)($prop['class'] ?? ''));
|
|
$attrs = trim((string)($prop['attrs'] ?? ''));
|
|
$header = (string)($prop['header_html'] ?? '');
|
|
$body = (string)($prop['body_html'] ?? '');
|
|
ob_start();
|
|
?>
|
|
<section<?= $id !== '' ? ' id="' . asafe($id) . '"' : '' ?> class="ws-section<?= $class !== '' ? ' ' . asafe($class) : '' ?>"<?= $attrs !== '' ? ' ' . $attrs : '' ?>>
|
|
<?= $header ?>
|
|
<?= $body ?>
|
|
</section>
|
|
<?php
|
|
return ob_get_clean();
|
|
},
|
|
|
|
'about' => 'Stacked workspace section wrapper for grouped content blocks',
|
|
];
|