Skip to content

Commit

Permalink
Show Core Columns in Template from JSON
Browse files Browse the repository at this point in the history
- thanks @Chaosmeister
- #11
  • Loading branch information
aljawaid committed May 6, 2023
1 parent 792fc43 commit a8a18ca
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Template/cleaning-jobs/plugin-clean.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,29 @@
</ul>
<ul class="job-table-size fa-ul">
<li class="job-tables-title">
<i class="fa fa-columns fa-li" aria-hidden="true"></i><?= t('Core Columns') ?> (5)
<i class="fa fa-columns fa-li" aria-hidden="true"></i><?= t('Core Columns') ?>
<span class="tooltip content-cleaner-tooltip">
<i class="fa fa-info-circle" aria-hidden="true"></i>
<script type="text/template">
<div class="markdown"><?= $this->render('contentCleaner:cleaning-jobs/tooltips/core-columns', array('plugin' => $plugin)) ?></div>
</script>
</span>
</li>
<li class="job-tables-table job-plugin-table">tasks: column_1 column_2 column_3</li>
<li class="job-tables-table job-plugin-table">projects: column_4 column_5</li>
<?php if (isset($plugin['core_table_columns'])): ?>
<span class="table-totals"><?= count($plugin['core_table_columns']) ?></span>
<?php foreach ($plugin['core_table_columns'] as $tables): ?>
<?php foreach ($tables as $tablename => $tablecolumns): ?>
<?= $tablename ?>
<?php foreach ($tablecolumns as $column): ?>
<li class="job-tables-table job-plugin-table"><?= $column ?></li>
<?php endforeach ?>
<?php endforeach ?>
<?php endforeach ?>
<?php else: ?>
<li class="job-tables-table job-plugin-table no-tables">
<i><?= t('This plugin alters no core table columns') ?></i>
</li>
<?php endif ?>
</ul>
<ul class="job-table-size fa-ul">
<li class="job-tables-title">
Expand Down

0 comments on commit a8a18ca

Please sign in to comment.