0; // Build a lookup of bot_name => category from the registry. $aidf_all_bots = AIDF_Crawler_Registry::get_bots(); $aidf_categories = AIDF_Crawler_Registry::get_categories(); $aidf_bot_meta_map = array(); foreach ( $aidf_all_bots as $aidf_bot_key => $aidf_bot_info ) { $aidf_bot_meta_map[ $aidf_bot_info['name'] ] = $aidf_bot_info; } // Build list of blocked bot names from conflicts for status badges. $aidf_blocked_bot_names = array(); $aidf_rules_cache = get_transient( AIDF_Crawler_Conflicts::TRANSIENT_KEY ); if ( false !== $aidf_rules_cache ) { foreach ( $aidf_all_bots as $aidf_bot_key => $aidf_bot_info ) { if ( 'blocked' === AIDF_Crawler_Conflicts::check_bot_access( $aidf_rules_cache, $aidf_bot_info['ua'] ) ) { $aidf_blocked_bot_names[] = $aidf_bot_info['name']; } } } // Discovery file types for the file access panel. $aidf_file_types = AIDF_Plugin::get_file_types(); $aidf_file_path_map = array(); foreach ( $aidf_file_types as $aidf_fkey => $aidf_ftype ) { if ( ! empty( $aidf_ftype['filename'] ) ) { $aidf_file_path_map[ '/' . ltrim( $aidf_ftype['filename'], '/' ) ] = $aidf_ftype['filename']; } } } ?>

0
0
—
0

0 ) : ?>

$aidf_fname ) { if ( isset( $aidf_file_access[ $aidf_fpath ] ) && $aidf_file_access[ $aidf_fpath ]['hit_count'] > $aidf_max_hits ) { $aidf_max_hits = $aidf_file_access[ $aidf_fpath ]['hit_count']; } } if ( $aidf_max_hits < 1 ) { $aidf_max_hits = 1; } foreach ( $aidf_file_path_map as $aidf_fpath => $aidf_fname ) : $aidf_fa = isset( $aidf_file_access[ $aidf_fpath ] ) ? $aidf_file_access[ $aidf_fpath ] : null; $aidf_hits = $aidf_fa ? $aidf_fa['hit_count'] : 0; $aidf_bots = $aidf_fa ? $aidf_fa['bots'] : array(); $aidf_bar_pct = $aidf_hits > 0 ? max( 2, round( ( $aidf_hits / $aidf_max_hits ) * 100 ) ) : 0; ?>
0 ) : ?>
0 ? number_format_i18n( $aidf_hits ) : '0' ); ?>
>