label );
if ( ! empty( $feature->extra ) ) {
$help_text .= ' ' . $feature->extra;
}
if ( ! empty( $feature->read_more_label ) ) {
$help_text .= ' ';
$help_text .= sprintf(
'
%2$s',
esc_url( WPSEO_Shortlinker::get( $feature->read_more_url ) ),
esc_html( $feature->read_more_label )
);
}
$feature_help = new WPSEO_Admin_Help_Panel(
WPSEO_Option::ALLOW_KEY_PREFIX . $feature->setting,
/* translators: %s expands to a feature's name */
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $feature->name ) ),
$help_text
);
$yform->toggle_switch(
WPSEO_Option::ALLOW_KEY_PREFIX . $feature->setting,
array(
'on' => __( 'Allow Control', 'wordpress-seo' ),
'off' => __( 'Disable', 'wordpress-seo' ),
),
'
' . $feature->name . '',
$feature_help->get_button_html() . $feature_help->get_panel_html()
);
}
?>
hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );