';
//
// Font Family
if (!empty($args['font_family'])) {
echo '
';
echo '
' . esc_html__('Font Family', 'sakurairo_csf') . '
';
echo $this->create_select(array($this->value['font-family'] => $this->value['font-family']), 'font-family', esc_html__('Select a font', 'sakurairo_csf'));
echo '
';
}
//
// Backup Font Family
if (!empty($args['backup_font_family'])) {
echo '
';
echo '
' . esc_html__('Backup Font Family', 'sakurairo_csf') . '
';
echo $this->create_select(apply_filters('csf_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', 'sakurairo_csf'));
echo '
';
}
//
// Font Style and Extra Style Select
if (!empty($args['font_weight']) || !empty($args['font_style'])) {
//
// Font Style Select
echo '
';
echo '
' . esc_html__('Font Style', 'sakurairo_csf') . '
';
echo '
';
echo '
';
echo '
';
//
// Extra Font Style Select
if (!empty($args['extra_styles'])) {
echo '';
}
echo '
';
}
//
// Subset
if (!empty($args['subset'])) {
echo '
';
echo '
' . esc_html__('Subset', 'sakurairo_csf') . '
';
$subset = (is_array($this->value['subset'])) ? $this->value['subset'] : array_filter((array) $this->value['subset']);
echo $this->create_select($subset, 'subset', esc_html__('Default', 'sakurairo_csf'), $args['multi_subset']);
echo '
';
}
//
// Text Align
if (!empty($args['text_align'])) {
echo '
';
echo '
' . esc_html__('Text Align', 'sakurairo_csf') . '
';
echo $this->create_select(array(
'inherit' => esc_html__('Inherit', 'sakurairo_csf'),
'left' => esc_html__('Left', 'sakurairo_csf'),
'center' => esc_html__('Center', 'sakurairo_csf'),
'right' => esc_html__('Right', 'sakurairo_csf'),
'justify' => esc_html__('Justify', 'sakurairo_csf'),
'initial' => esc_html__('Initial', 'sakurairo_csf')
), 'text-align', esc_html__('Default', 'sakurairo_csf'));
echo '
';
}
//
// Font Variant
if (!empty($args['font_variant'])) {
echo '
';
echo '
' . esc_html__('Font Variant', 'sakurairo_csf') . '
';
echo $this->create_select(array(
'normal' => esc_html__('Normal', 'sakurairo_csf'),
'small-caps' => esc_html__('Small Caps', 'sakurairo_csf'),
'all-small-caps' => esc_html__('All Small Caps', 'sakurairo_csf')
), 'font-variant', esc_html__('Default', 'sakurairo_csf'));
echo '
';
}
//
// Text Transform
if (!empty($args['text_transform'])) {
echo '
';
echo '
' . esc_html__('Text Transform', 'sakurairo_csf') . '
';
echo $this->create_select(array(
'none' => esc_html__('None', 'sakurairo_csf'),
'capitalize' => esc_html__('Capitalize', 'sakurairo_csf'),
'uppercase' => esc_html__('Uppercase', 'sakurairo_csf'),
'lowercase' => esc_html__('Lowercase', 'sakurairo_csf')
), 'text-transform', esc_html__('Default', 'sakurairo_csf'));
echo '
';
}
//
// Text Decoration
if (!empty($args['text_decoration'])) {
echo '
';
echo '
' . esc_html__('Text Decoration', 'sakurairo_csf') . '
';
echo $this->create_select(array(
'none' => esc_html__('None', 'sakurairo_csf'),
'underline' => esc_html__('Solid', 'sakurairo_csf'),
'underline double' => esc_html__('Double', 'sakurairo_csf'),
'underline dotted' => esc_html__('Dotted', 'sakurairo_csf'),
'underline dashed' => esc_html__('Dashed', 'sakurairo_csf'),
'underline wavy' => esc_html__('Wavy', 'sakurairo_csf'),
'underline overline' => esc_html__('Overline', 'sakurairo_csf'),
'line-through' => esc_html__('Line-through', 'sakurairo_csf')
), 'text-decoration', esc_html__('Default', 'sakurairo_csf'));
echo '
';
}
echo '
';
//
// Font Color
if (!empty($args['color'])) {
$default_color_attr = (!empty($default_value['color'])) ? ' data-default-color="' . esc_attr($default_value['color']) . '"' : '';
echo '
';
}
//
// Custom style
if (!empty($args['custom_style'])) {
echo '
';
}
//
// Preview
$always_preview = ($args['preview'] !== 'always') ? ' hidden' : '';
if (!empty($args['preview'])) {
echo '