| 1 |
<?php defined('ABSPATH') or die("Protected By WT!");?> |
| 2 |
<?php if(!empty($arguments)):?> |
| 3 |
|
| 4 |
<div class="wtotem_content"> |
| 5 |
<div class="wtotem_container"> |
| 6 |
<div class="wtotem_antivirus"> |
| 7 |
<div class="wtotem_antivirus__first section-header-mb"> |
| 8 |
<h2 class="title"> |
| 9 |
<?= __( 'Antivirus', 'wtotem' ) ?> |
| 10 |
</h2> |
| 11 |
|
| 12 |
</div> |
| 13 |
<div class="wtotem_antivirus__block wt_card"> |
| 14 |
<div class="wtotem_antivirus__item"> |
| 15 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_green"> |
| 16 |
<?= $arguments["vc"]["scanned"] ?> |
| 17 |
</div> |
| 18 |
<div class="wtotem_antivirus__title"> |
| 19 |
<?= __( 'Scanned files', 'wtotem' ) ?> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
|
| 23 |
<div class="wtotem_antivirus__item"> |
| 24 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_yellow"> |
| 25 |
<?= $arguments["vc"]["changes"] ?> |
| 26 |
</div> |
| 27 |
<div class="wtotem_antivirus__title"> |
| 28 |
<?= __( 'Changed files', 'wtotem' ) ?> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
|
| 32 |
<div class="wtotem_antivirus__item"> |
| 33 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_black"> |
| 34 |
<?= $arguments["vc"]["deleted"] ?> |
| 35 |
</div> |
| 36 |
<div class="wtotem_antivirus__title"> |
| 37 |
<?= __( 'Deleted files', 'wtotem' ) ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
<div class="wtotem_antivirus__item"> |
| 42 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_orange"> |
| 43 |
<?= $arguments["vc"]["signatures"] ?> |
| 44 |
</div> |
| 45 |
<div class="wtotem_antivirus__title"> |
| 46 |
<?= __( 'Infected files', 'wtotem' ) ?> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
|
| 52 |
<?php include 'components/_quarantine_lazy.php'?> |
| 53 |
|
| 54 |
<div class="wtotem_state wt_card"> |
| 55 |
|
| 56 |
|
| 57 |
<div class="wtotem_antivirus__logs wtotem_antivirus-logs"> |
| 58 |
<div class="wtotem_antivirus-logs__panel"> |
| 59 |
<div class="wtotem_state__select-wrapper wtotem_antivirus-logs__filter"> |
| 60 |
<select name="file-status" id="wtotem_av_state_filter" class="wtotem_state__select"> |
| 61 |
<option class="wtotem_state__option" value="new"><?= __( 'New files', 'wtotem' ) ?></option> |
| 62 |
<option class="wtotem_state__option" value="scanned"><?= __( 'Scanned files', 'wtotem' ) ?></option> |
| 63 |
<option class="wtotem_state__option" value="modified"><?= __( 'Modified files', 'wtotem' ) ?></option> |
| 64 |
<option class="wtotem_state__option" value="deleted"><?= __( 'Deleted files', 'wtotem' ) ?></option> |
| 65 |
<option class="wtotem_state__option" value="infected"><?= __( 'Infected files', 'wtotem' ) ?></option> |
| 66 |
</select> |
| 67 |
|
| 68 |
</div> |
| 69 |
<div class="wtotem_antivirus-logs__permission wt-checkbox"> |
| 70 |
<input class="wt-checkbox__input" type="checkbox" id="wtotem_permission-changed" name="permission-changed" /> |
| 71 |
<label class="wt-checkbox__label" for="wtotem_permission-changed"><?= __( 'Show permissions changed', 'wtotem' ) ?></label> |
| 72 |
</div> |
| 73 |
<div class="wtotem_antivirus-logs__buttons-wrapper"> |
| 74 |
<button class="wtotem_antivirus-logs__button wtotem_antivirus-logs__button--download" id="wtotem_av_export" type="button"> |
| 75 |
<span class="wtotem_antivirus-logs__button-text"><?=__( 'Download', 'wtotem' ) ?></span> |
| 76 |
</button> |
| 77 |
|
| 78 |
<div class="wt-margin-right-10 wt-loader wt-height-1-1 d-none" id="wtotem-rescan-loader"><img src="<?= wtsec_getImagePath("spinner.svg") ?>" alt="spinner" style="width: 45px;"></div> |
| 79 |
<button class="wtotem_antivirus-logs__button wtotem_antivirus-logs__button--rescan" id="wtotem_rescan" type="button"> |
| 80 |
<span class="wtotem_antivirus-logs__button-text"><?=__( 'Rescan', 'wtotem' ) ?></span> |
| 81 |
</button> |
| 82 |
</div> |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
|
| 86 |
|
| 87 |
<div class="wtotem_file-table"> |
| 88 |
<div class="wtotem_file-table__thead"> |
| 89 |
<div class="wtotem_file-table__tr"> |
| 90 |
<div class="wtotem_file-table__th"> |
| 91 |
<?=__( 'File', 'wtotem' ) ?> |
| 92 |
</div> |
| 93 |
<div class="wtotem_file-table__th"> |
| 94 |
<?=__( 'Permission', 'wtotem' ) ?> |
| 95 |
<div class="wtotem_title-info__info wtotem-tooltip"> |
| 96 |
<div class="wtotem-tooltip__content"> |
| 97 |
<p class="wtotem-tooltip__header"><?=__( 'Permission', 'wtotem' ) ?></p> |
| 98 |
<p class="wtotem-tooltip__text"><?=__( 'Shows permissions or access rights configurations.', 'wtotem' ) ?></p> |
| 99 |
</div> |
| 100 |
</div> |
| 101 |
</div> |
| 102 |
<div class="wtotem_file-table__th"> |
| 103 |
<?=__( 'Time', 'wtotem' ) ?> |
| 104 |
</div> |
| 105 |
<div class="wtotem_file-table__th"> |
| 106 |
<?=__( 'Status', 'wtotem' ) ?> |
| 107 |
</div> |
| 108 |
</div> |
| 109 |
</div> |
| 110 |
<div class="wtotem_file-table__tbody" id="wtotem_data_box"> |
| 111 |
<?php include 'components/_antivirus_lazy.php'?> |
| 112 |
</div> |
| 113 |
</div> |
| 114 |
|
| 115 |
<div class="wtotem_state__line"></div> |
| 116 |
|
| 117 |
<div class="wtotem_state__last"> |
| 118 |
<div class="wtotem_state__text"> |
| 119 |
<?=__( 'Need more support', 'wtotem' ) ?> |
| 120 |
<a target="_blank" href="https://wtotem.com/#hs-chat-open"><?=__( 'Let\'s talk!', 'wtotem' ) ?></a> |
| 121 |
</div> |
| 122 |
</div> |
| 123 |
</div> |
| 124 |
</div> |
| 125 |
</div> |
| 126 |
<script> |
| 127 |
jQuery(document).ready(function ($) { |
| 128 |
let calendar = $('.flatpickr'); |
| 129 |
setFlatpickr(calendar, "#secondRangeInput"); |
| 130 |
}); |
| 131 |
</script> |
| 132 |
<?php else:?> |
| 133 |
<!-- No data block --> |
| 134 |
<section class="wtotem_reports-no-data" style="height:300px" > |
| 135 |
<h2 class="visually-hidden"><?= __( 'No data', 'wtotem' ) ?></h2> |
| 136 |
<p class="wtotem_reports-no-data__text"> |
| 137 |
<?= __( 'Has no action ready yet', 'wtotem' ) ?> |
| 138 |
</p> |
| 139 |
</section> |
| 140 |
<?php endif;?> |