File manager - Edit - /home/opticamezl/www/newok/templates/yootheme/packages/builder/elements/table/templates/content.php
Back
<?php $fields = ['image', 'title', 'meta', 'content', 'link']; // Find empty fields $filtered = array_values(array_filter($fields, fn($field) => array_any($children, fn($child) => $child->props[$field] != '') )); ?> <?php if (count($children)) : ?> <table> <?php if (array_any($filtered, fn($field) => $props["table_head_{$field}"])) : ?> <thead> <tr> <?php foreach ($filtered as $field) : ?> <th><?= $props["table_head_{$field}"] ?></th> <?php endforeach ?> </tr> </thead> <?php endif ?> <tbody> <?php foreach ($children as $child) : ?> <tr><?= $builder->render($child, ['element' => $props, 'filtered' => $filtered]) ?></tr> <?php endforeach ?> </tbody> </table> <?php endif ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings