| 1 |
<?php |
| 2 |
defined('ABSPATH') or die("Protected By WT!"); |
| 3 |
?> |
| 4 |
|
| 5 |
<?php if(!empty($arguments['url_white_list'])): ?> |
| 6 |
<table class="firewall-configuration__ip-list firewall-ip-table"> |
| 7 |
<thead> |
| 8 |
<tr> |
| 9 |
<th class="firewall-ip-table__th"><?= __( 'URL address', 'wtotem' ) ?></th> |
| 10 |
<th class="firewall-ip-table__th"><?= __( 'Date added', 'wtotem' ) ?></th> |
| 11 |
<th class="firewall-ip-table__th"><?= __( 'Actions', 'wtotem' ) ?></th> |
| 12 |
</tr> |
| 13 |
</thead> |
| 14 |
<tbody> |
| 15 |
<?php foreach ($arguments['url_white_list'] as $argument):?> |
| 16 |
<tr class="firewall-ip-table__tr"> |
| 17 |
<td class="firewall-ip-table__td"><?= $argument['url']?></td> |
| 18 |
<td class="firewall-ip-table__td"><?= convertTimeToReadable($argument['createdAt'])?></td> |
| 19 |
<td class="firewall-ip-table__td"> |
| 20 |
<button class="firewall-ip-table__remove wtotem-url-remove" |
| 21 |
type="button" data-id="<?= $argument['id']?>" data-list="<?= $arguments['list']?>"><?= __( 'Remove', 'wtotem' ) ?></button> |
| 22 |
</td> |
| 23 |
</tr> |
| 24 |
<?php endforeach; ?> |
| 25 |
</tbody> |
| 26 |
</table> |
| 27 |
<?php else:?> |
| 28 |
<div class="wtotem-firewall-settings__no-data"> |
| 29 |
<div class="wtotem-firewall-settings__no-data-icon"> |
| 30 |
<img src="<?= wtsec_getImagePath("list.svg") ?>"> |
| 31 |
</div> |
| 32 |
<div> |
| 33 |
<?= __( 'No URL address here', 'wtotem' ) ?> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<?php endif;?> |