Skip to content

Commit

Permalink
this was removed somehow?
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman committed May 19, 2023
1 parent de5b6b3 commit 39db0ae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions php/pantheon/views/table.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

use Pantheon\Utils; ?>

<table class='table table-condensed'>
<thead>
<tr>
<?php if(isset($headers)): ?>
<?php foreach ($headers as $header): ?>
<th><?php echo $header; ?></th>
<th><?php echo Utils::sanitize_data( $header ); ?></th>
<?php endforeach; ?>
<?php endif; ?>
</tr>
Expand All @@ -12,9 +16,9 @@
<?php foreach($rows as $row): ?>
<tr class="<?php if(isset($row['class'])) { echo $row['class']; } ?>">
<?php foreach($row['data'] as $values): ?>
<td><?php echo $values; ?></td>
<td><?php echo Utils::sanitize_data( $values ); ?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</table>

0 comments on commit 39db0ae

Please sign in to comment.