array( 'title' => __( 'Hybrid (server-side rendering + webcomponent)', 'affilizz' ), 'description' => __( 'Your affiliate content is included in the HTML of the page, readable by search engines and AI assistants, then updated with the current prices by the webcomponent. There is no conflict possible with your CSS…', 'affilizz' ) . ' ' . __( 'It is displayed even without JavaScript.', 'affilizz' ), ), 'webcomponent' => array( 'title' => __( 'Webcomponent', 'affilizz' ), 'description' => __( 'Your affiliate content is loaded after the page.', 'affilizz' ) . ' ' . __( 'There is no conflict possible with your CSS…', 'affilizz' ), ), ); $affilizz_current_rendering_mode = \Affilizz\Core::get_current_rendering_mode(); if ( ! in_array( $affilizz_current_rendering_mode, array_keys( $affilizz_rendering_modes ), true ) ) { $affilizz_current_rendering_mode = 'webcomponent'; } // Widgets cache (SSR fragments of the hybrid mode) $affilizz_fragment_stats = \Affilizz\Util\Fragments::get_stats(); $affilizz_purge_url = wp_nonce_url( admin_url( 'admin-post.php?action=affilizz_purge_fragments' ), 'affilizz_purge_fragments' ); // Local copy of the rendering script (cache busting) $affilizz_current_url = wp_nonce_url( rtrim( add_query_arg( array( 'bust_cache' => 1 ) ), '/' ), 'affilizz-bust-cache' ); $affilizz_local_file = ( \Affilizz\Util\Assets::get_instance() )->get_diverted_js_file_path(); $affilizz_cache_generated = ( file_exists( $affilizz_local_file ) && filemtime( $affilizz_local_file ) ) ? human_time_diff( filemtime( $affilizz_local_file ) ) : false; ?>
count ) ) { esc_html_e( 'No widget stored yet.', 'affilizz' ); } else { /* translators: 1: number of stored widgets, 2: human-readable age of the oldest one. */ echo esc_html( sprintf( _n( '%1$d widget stored, the oldest fetched %2$s ago.', '%1$d widgets stored, the oldest fetched %2$s ago.', $affilizz_fragment_stats->count, 'affilizz' ), $affilizz_fragment_stats->count, human_time_diff( $affilizz_fragment_stats->oldest ) ) ); } ?>