select_new_field(
$key,
__( 'Font weight', 'custom-fonts' ),
__( 'Select font-weight property for this font', 'custom-fonts' ),
array(
'100' => __( 'Thin 100', 'custom-fonts' ),
'200' => __( 'Extra-Light 200', 'custom-fonts' ),
'300' => __( 'Light 300', 'custom-fonts' ),
'400' => __( 'Normal 400', 'custom-fonts' ),
'500' => __( 'Medium 500', 'custom-fonts' ),
'600' => __( 'Semi-Bold 600', 'custom-fonts' ),
'700' => __( 'Bold 700', 'custom-fonts' ),
'800' => __( 'Extra-Bold 800', 'custom-fonts' ),
'900' => __( 'Ultra-Bold 900', 'custom-fonts' ),
),
$value
);
self::$edit_repeater_field_count++;
} elseif ( strpos( $key, 'font_woff_2-' ) !== false ) {
$this->font_file_edit_field( 'font_woff_2', __( 'Font .woff2', 'custom-fonts' ), __( 'Upload the font\'s woff2 file or enter the URL.', 'custom-fonts' ), $value, $key );
} elseif ( strpos( $key, 'font_woff-' ) !== false ) {
$this->font_file_edit_field( 'font_woff', __( 'Font .woff', 'custom-fonts' ), __( 'Upload the font\'s woff file or enter the URL.', 'custom-fonts' ), $value, $key );
} elseif ( strpos( $key, 'font_ttf' ) !== false ) {
$this->font_file_edit_field( 'font_ttf', __( 'Font .ttf', 'custom-fonts' ), __( 'Upload the font\'s ttf file or enter the URL.', 'custom-fonts' ), $value, $key );
} elseif ( strpos( $key, 'font_eot' ) !== false ) {
$this->font_file_edit_field( 'font_eot', __( 'Font .eot', 'custom-fonts' ), __( 'Upload the font\'s eot file or enter the URL.', 'custom-fonts' ), $value, $key );
} elseif ( strpos( $key, 'font_svg' ) !== false ) {
$this->font_file_edit_field( 'font_svg', __( 'Font .svg', 'custom-fonts' ), __( 'Upload the font\'s svg file or enter the URL.', 'custom-fonts' ), $value, $key );
} elseif ( strpos( $key, 'font_otf' ) !== false ) {
$this->font_file_edit_field( 'font_otf', __( 'Font .otf', 'custom-fonts' ), __( 'Upload the font\'s otf file or enter the URL.', 'custom-fonts' ), $value, $key );
?>