Skip to content

Commit

Permalink
Show Plugin Tables in Template from JSON
Browse files Browse the repository at this point in the history
- #11
  • Loading branch information
aljawaid committed May 6, 2023
1 parent 4e8a033 commit a3f81c9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Template/cleaning-jobs/plugin-clean.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@
</script>
</span>
</li>
<li class="job-tables-table job-plugin-table">metadata_has_type</li>
<li class="job-tables-table job-plugin-table">metadata_types</li>
<?php if (isset($plugin['plugin_tables'])): ?>
<span class="table-totals"><?= count($plugin['plugin_tables']) ?></span>
<?php foreach ($plugin['plugin_tables'] as $value): ?>
<li class="job-tables-table job-plugin-table"><?= $value ?></li>
<?php endforeach ?>
<?php else: ?>
<li class="job-tables-table job-plugin-table no-tables">
<i><?= t('This plugin creates no tables of its own') ?></i>
</li>
<?php endif ?>
</ul>
<ul class="job-table-size fa-ul">
<li class="job-tables-title">
Expand Down

0 comments on commit a3f81c9

Please sign in to comment.