<div class="secupress-scans-group secupress-group-new">
	<?php
	if ( ! $is_subsite ) {
	?>

		<div class="secupress-sg-header secupress-flex secupress-flex-spaced">

			<div class="secupress-sgh-name">
				<i class="secupress-icon-secupress" aria-hidden="true"></i>
				<p class="secupress-sgh-title"><?php printf( esc_html__( '%sNew Items', 'secupress' ), ( SECUPRESS_PLUGIN_NAME === 'SecuPress' ? SECUPRESS_PLUGIN_NAME . ' ' . SECUPRESS_VERSION . ' ' : '' ) ); ?></p>
				<p class="secupress-sgh-description"><?php _e( 'These new items need to be checked: you will need to rescan your website.', 'secupress' ); ?></p>
			</div>

			<div class="secupress-sgh-actions secupress-flex secupress-flex-top">
				<button class="secupress-vnormal hide-if-no-js dont-trigger-hide trigger-hide-first" type="button" data-trigger="slidetoggle" data-target="secupress-group-content-new">
					<i class="secupress-icon-angle-up" aria-hidden="true"></i>
					<span class="screen-reader-text"><?php _e( 'Show/Hide panel', 'secupress' ); ?></span>
				</button>
			</div>

		</div><!-- .secupress-sg-header -->

	<?php
	}
	?>

	<div id="secupress-group-content-new" class="secupress-sg-content">
		<?php
		foreach ( $new_scans as $option_name => $class_name_part ) {
			$class_name   = 'SecuPress_Scan_' . $class_name_part;
			if ( ! class_exists( $class_name ) && file_exists( secupress_class_path( 'scan', $class_name_part ) ) ) {
				secupress_require_class( 'scan', $class_name_part );
			}
			$current_test = $class_name::get_instance();
			$referer      = urlencode( esc_url_raw( self_admin_url( 'admin.php?page=' . SECUPRESS_PLUGIN_SLUG . '_scanners' . ( $is_subsite ? '' : '#' . $class_name_part ) ) ) );

			// Scan.
			$scanner        = isset( $scanners[ $option_name ] ) ? $scanners[ $option_name ] : array();
			$scan_status    = ! empty( $scanner['status'] ) ? $scanner['status'] : 'notscannedyet';
			$scan_nonce_url = 'secupress_scanner_' . $class_name_part . ( $is_subsite ? '-' . $site_id : '' );
			$scan_nonce_url = wp_nonce_url( admin_url( 'admin-post.php?action=secupress_scanner&test=' . $class_name_part . '&_wp_http_referer=' . $referer . ( $is_subsite ? '&for-current-site=1&site=' . $site_id : '' ) ), $scan_nonce_url );
			$scan_message   = $current_test->title;

			if ( ! empty( $scanner['msgs'] ) ) {
				$scan_message = secupress_format_message( $scanner['msgs'], $class_name_part );
			}

			// Row css class.
			$row_css_class  = 'secupress-item-' . $class_name_part;
			$row_css_class .= ' status-' . sanitize_html_class( $scan_status );
			$row_css_class .= isset( $autoscans[ $class_name_part ] ) ? ' autoscan' : '';
			?>
			<div class="secupress-item-all <?php echo $row_css_class; ?>" id="<?php echo $class_name_part; ?>">

				<div class="secupress-flex">

					<p class="secupress-item-status">
						<span class="secupress-label"><?php echo secupress_status( $scan_status ); ?></span>
					</p>

					<p class="secupress-item-title"><?php echo $scan_message; ?></p>

				<p class="secupress-row-actions">
					<a class="secupress-button secupress-button-mini secupress-scanit hide-if-js" href="<?php echo esc_url( $scan_nonce_url ); ?>">
						<span class="icon" aria-hidden="true">
							<i class="secupress-icon-refresh"></i>
						</span>
						<span class="text">
							<?php _ex( 'Scan', 'verb', 'secupress' ); ?>
						</span>
					</a><br class="hide-if-js">

					<?php
					/**
					 * Things changed:
					 * data-trigger added
					 * data-target instead of data-test
					 * data-target === .secupress-item-details' ID
					 */
					?>
					<button data-trigger="slidetoggle" data-target="details-<?php echo $class_name_part; ?>" class="secupress-details link-like hide-if-no-js" type="button">
						<span class="secupress-toggle-button">
							<span aria-hidden="true" class="icon">
								<i class="secupress-icon-info-disk"></i>
							</span>
							<span class="text"><?php _e( 'Learn more', 'secupress' ); ?></span>
						</span>
						<span class="secupress-toggle-button hidden" aria-hidden="true">
							<span aria-hidden="true" class="icon">
								<i class="secupress-icon-cross"></i>
							</span>
							<span class="text"><?php _e( 'Close' ); ?></span>
						</span>
					</button>
				</p>
			</div><!-- .secupress-flex -->

			<div class="secupress-item-details hide-if-js" id="details-<?php echo $class_name_part; ?>">
				<div class="secupress-flex">
					<span class="secupress-details-icon">
						<i class="secupress-icon-i" aria-hidden="true"></i>
					</span>
					<p class="details-content"><?php echo wp_kses( $current_test->more, $allowed_tags ); ?></p>
					<span class="secupress-placeholder"></span>
				</div>
			</div><!-- .secupress-item-details -->
		</div><!-- .secupress-item-all -->

		<?php
		} // Eo foreach $new_scans.

		$flag_first_iteration   = false;
		?>
	</div><!-- .secupress-sg-content -->
</div> <!-- .secupress-scans-group -->
<?php
