' . __( 'Connect your AffKeeper account to see clicks and stock alerts here.', 'affkeeper' ) . '

' ), esc_url( admin_url( 'admin.php?page=' . AffKeeper_Settings::MENU_SLUG ) ) ); return; } $summary = AffKeeper_API::summary(); if ( is_wp_error( $summary ) ) { echo '

' . esc_html( $summary->get_error_message() ) . '

'; return; } $clicks = isset( $summary['clicks'] ) ? (int) $summary['clicks'] : 0; $links = isset( $summary['links'] ) ? (int) $summary['links'] : 0; $unbuyable = isset( $summary['unbuyable'] ) ? (int) $summary['unbuyable'] : 0; $low = isset( $summary['low_stock'] ) ? (int) $summary['low_stock'] : 0; $broken = isset( $summary['broken'] ) ? (int) $summary['broken'] : 0; echo '
'; echo '
' . esc_html( number_format_i18n( $clicks ) ) . '' . esc_html__( 'Clicks (30d)', 'affkeeper' ) . '
'; echo '
' . esc_html( number_format_i18n( $links ) ) . '' . esc_html__( 'Links', 'affkeeper' ) . '
'; echo '
'; echo ''; echo '

' . esc_html__( 'View all links →', 'affkeeper' ) . '

'; } }