__( 'Issues', 'all-in-one-video-gallery' ),
'ignored' => __( 'Ignored', 'all-in-one-video-gallery' )
);
$active_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'found';
?>
%s
',
( 'found' == $active_section ? __( 'Congrats! Issues solved.', 'all-in-one-video-gallery' ) : __( 'Issues ignored.', 'all-in-one-video-gallery' ) )
);
}
// Section Links
$section_links = array();
foreach ( $sections as $key => $title ) {
$url = add_query_arg( 'section', $key, 'admin.php?page=all-in-one-video-gallery&tab=issues' );
$url = admin_url( $url );
$section_links[] = sprintf(
'%s (%d)',
esc_url( $url ),
( $key == $active_section ? 'current' : '' ),
esc_html( $title ),
count( $issues[ $key ] )
);
}
?>