';
//
// Font Family
if ( ! empty( $args['font_family'] ) ) {
echo '
';
echo '
' . esc_html__( 'Font Family', 'wpgp' ) . '
';
echo $this->create_select( array( $this->value['font-family'] => $this->value['font-family'] ), 'font-family', esc_html__( 'Select a font', 'wpgp' ) );
echo '
';
}
//
// Backup Font Family
if ( ! empty( $args['backup_font_family'] ) ) {
echo '
';
echo '
' . esc_html__( 'Backup Font Family', 'wpgp' ) . '
';
echo $this->create_select(
apply_filters(
'wpgp_field_typography_backup_font_family',
array(
'Arial, Helvetica, sans-serif',
"'Arial Black', Gadget, sans-serif",
"'Comic Sans MS', cursive, sans-serif",
'Impact, Charcoal, sans-serif',
"'Lucida Sans Unicode', 'Lucida Grande', sans-serif",
'Tahoma, Geneva, sans-serif',
"'Trebuchet MS', Helvetica, sans-serif'",
'Verdana, Geneva, sans-serif',
"'Courier New', Courier, monospace",
"'Lucida Console', Monaco, monospace",
'Georgia, serif',
'Palatino Linotype',
)
),
'backup-font-family',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
//
// Font Style and Extra Style Select
if ( ! empty( $args['font_weight'] ) || ! empty( $args['font_style'] ) ) {
//
// Font Style Select
echo '
';
echo '
' . esc_html__( 'Font Weight', 'wpgp' ) . '
';
echo '
';
echo '
';
echo '
';
//
// Extra Font Style Select
if ( ! empty( $args['extra_styles'] ) ) {
echo '';
}
echo '
';
}
//
// Text Align
if ( ! empty( $args['font_style'] ) ) {
echo '
';
echo '
' . esc_html__( 'Font Style', 'wpgp' ) . '
';
echo $this->create_select(
array(
'normal' => esc_html__( 'Normal', 'wpgp' ),
'italic' => esc_html__( 'Italic', 'wpgp' ),
'oblique' => esc_html__( 'Oblique', 'wpgp' ),
),
'font-style',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
echo '
';
//
// Subset
if ( ! empty( $args['subset'] ) ) {
echo '
';
echo '
' . esc_html__( 'Subset', 'wpgp' ) . '
';
$subset = ( is_array( $this->value['subset'] ) ) ? $this->value['subset'] : array_filter( (array) $this->value['subset'] );
echo $this->create_select( $subset, 'subset', esc_html__( 'Default', 'wpgp' ), $args['multi_subset'] );
echo '
';
}
//
// Text Align
if ( ! empty( $args['text_align'] ) ) {
echo '
';
echo '
' . esc_html__( 'Text Align', 'wpgp' ) . '
';
echo $this->create_select(
array(
'inherit' => esc_html__( 'Inherit', 'wpgp' ),
'left' => esc_html__( 'Left', 'wpgp' ),
'center' => esc_html__( 'Center', 'wpgp' ),
'right' => esc_html__( 'Right', 'wpgp' ),
'justify' => esc_html__( 'Justify', 'wpgp' ),
'initial' => esc_html__( 'Initial', 'wpgp' ),
),
'text-align',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
//
// Font Variant
if ( ! empty( $args['font_variant'] ) ) {
echo '
';
echo '
' . esc_html__( 'Font Variant', 'wpgp' ) . '
';
echo $this->create_select(
array(
'normal' => esc_html__( 'Normal', 'wpgp' ),
'small-caps' => esc_html__( 'Small Caps', 'wpgp' ),
'all-small-caps' => esc_html__( 'All Small Caps', 'wpgp' ),
),
'font-variant',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
//
// Text Transform
if ( ! empty( $args['text_transform'] ) ) {
echo '
';
echo '
' . esc_html__( 'Text Transform', 'wpgp' ) . '
';
echo $this->create_select(
array(
'none' => esc_html__( 'None', 'wpgp' ),
'capitalize' => esc_html__( 'Capitalize', 'wpgp' ),
'uppercase' => esc_html__( 'Uppercase', 'wpgp' ),
'lowercase' => esc_html__( 'Lowercase', 'wpgp' ),
),
'text-transform',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
//
// Text Decoration
if ( ! empty( $args['text_decoration'] ) ) {
echo '
';
echo '
' . esc_html__( 'Text Decoration', 'wpgp' ) . '
';
echo $this->create_select(
array(
'none' => esc_html__( 'None', 'wpgp' ),
'underline' => esc_html__( 'Solid', 'wpgp' ),
'underline double' => esc_html__( 'Double', 'wpgp' ),
'underline dotted' => esc_html__( 'Dotted', 'wpgp' ),
'underline dashed' => esc_html__( 'Dashed', 'wpgp' ),
'underline wavy' => esc_html__( 'Wavy', 'wpgp' ),
'underline overline' => esc_html__( 'Overline', 'wpgp' ),
'line-through' => esc_html__( 'Line-through', 'wpgp' ),
),
'text-decoration',
esc_html__( 'Default', 'wpgp' )
);
echo '
';
}
echo '
';
//
// Font Color
if ( ! empty( $args['color'] ) ) {
$default_color_attr = ( ! empty( $default_value['color'] ) ) ? ' data-default-color="' . esc_attr( $default_value['color'] ) . '"' : '';
echo '
';
}
//
// Font Background Color.
if ( ! empty( $args['background-color'] ) ) {
$default_color_attr = ( ! empty( $default_value['background-color'] ) ) ? ' data-default-background-color="' . esc_attr( $default_value['background-color'] ) . '"' : '';
echo '
';
}
//
// Custom style
if ( ! empty( $args['custom_style'] ) ) {
echo '
';
}
//
// Preview
$always_preview = ( $args['preview'] !== 'always' ) ? ' hidden' : '';
if ( ! empty( $args['preview'] ) ) {
echo '