{% import '/common/macros.twig' as icwp_macros %}

{% set mal = vars.malware %}
<div class="row mt-3 scan-results-section" id="ScanResultsMalware">
	<div class="col-12">

		<ul class="list-group">

			<li class="list-group-item">
				{{ icwp_macros.svg(imgs.svgs.video) }} <span class="fw-bold">Malware & MAL{ai} Demo</span>:
				<span>
					<a href="#" class="option-video" data-vimeoid="815641370">View the demo video</a>.
				</span>
			</li>

			<li class="list-group-item">
				<span class="fw-bold">Understanding Malware</span>:
				<span>
					PHP Malware is a complex topic and scanning for malware is not simple.
					Please take a moment to read some of
					<a href="javascript:{}" class="fw-bold beacon-article"
					   data-beacon_article_format="sidebar"
					   data-beacon_article_id="{{ vars.beacon_help_id }}">
						the help around this topic</a>.
				</span>
			</li>

			{% if flags.mal_is_restricted %}
				<li class="list-group-item list-group-item-warning">
					<span class="fw-bold">{{ strings.file_integrity }}:</span>
					<span>{{ strings.mal_restricted }}</span>
				</li>
			{% else %}
				{% if mal.flags.has_malware %}
					<li class="list-group-item list-group-item-danger">
						<span class="fw-bold">{{ strings.file_integrity }}</span>
						<span>{{ strings.files_found }}</span>
					</li>
				{% else %}
					<li class="list-group-item list-group-item-success">
						<span class="fw-bold">{{ strings.file_integrity }}</span>
						<span>{{ strings.no_files }}</span>
					</li>
				{% endif %}
			{% endif %}
		</ul>
	</div>

	<div class="col-12">
		<div class="row mt-3 shield-section-datatable">
			{% if mal.flags.has_malware %}
				<div class="col">
					<table id="ShieldTable-ScanResultsMalware"
						   class="table table-striped table-bordered"
						   style="width: 100%;"
						   data-type="wordpress" data-file="wordpress"
					></table>
				</div>
			{% endif %}
		</div>
	</div>

</div>