ID ); $score = $score_data['score']; $color = $score_data['color']; $issues = $score_data['issues']; $summary_type = $score_data['summary_type']; // Get color class and icon $color_class = 'aeo-score-' . $color; $icon = self::get_score_icon( $color ); $label = AI_Answer_Toolkit_Score::get_score_label( $color ); ?>
/100

' . esc_html__( 'Manual', 'ai-answer-toolkit' ) . ''; } elseif ( $summary_type === 'auto' ) { echo '' . esc_html__( 'Auto-generated', 'ai-answer-toolkit' ) . ''; } else { echo '' . esc_html__( 'None', 'ai-answer-toolkit' ) . ''; } ?>

'dashicons-yes-alt', 'yellow' => 'dashicons-warning', 'red' => 'dashicons-dismiss', ); return isset( $icons[ $color ] ) ? $icons[ $color ] : 'dashicons-info'; } /** * Enqueue scripts and styles for the meta box. * * @param string $hook Current admin page hook. */ public static function enqueue_scripts( $hook ) { // Only load on post edit screens if ( ! in_array( $hook, array( 'post.php', 'post-new.php' ), true ) ) { return; } wp_enqueue_style( 'ai-answer-toolkit-score-meta-box', AI_Answer_Toolkit_PLUGIN_URL . 'assets/css/score-meta-box.css', array(), AI_Answer_Toolkit_VERSION ); } } AI_Answer_Toolkit_Score_Meta_Box::init();