json['fonts'] = Kirki_Fonts::get_font_choices();
$value = $this->value();
$this->json['value'] = array(
'font-style' => isset( $value['font-style'] ) ? $value['font-style'] : false,
'font-family' => isset( $value['font-family'] ) ? $value['font-family'] : '',
'font-size' => isset( $value['font-size'] ) ? $value['font-size'] : '',
'font-weight' => isset( $value['font-weight'] ) ? $value['font-weight'] : '',
'line-height' => isset( $value['line-height'] ) ? $value['line-height'] : '',
'letter-spacing' => isset( $value['letter-spacing'] ) ? $value['letter-spacing'] : '',
'color' => isset( $value['color'] ) ? $value['color'] : '',
);
$this->json['l10n'] = array(
'font-family' => $i18n['font-family'],
'font-size' => $i18n['font-size'],
'font-weight' => $i18n['font-weight'],
'line-height' => $i18n['line-height'],
'letter-spacing' => $i18n['letter-spacing'],
'font-style' => $i18n['font-style'],
'color' => $i18n['color'],
);
}
public function render_content() {}
protected function content_template() { ?>
<# if ( data.tooltip ) { #>
<# } #>
<# if ( data.choices['font-family'] ) { #>
<# if ( '' == data.value['font-family'] ) { data.value['font-family'] = data.default['font-family']; } #>
<# if ( data.choices['fonts'] ) { data.fonts = data.choices['fonts']; } #>
{{ data.l10n['font-family'] }}
<# } #>
<# if ( data.choices['font-size'] ) { #>
{{ data.l10n['font-size'] }}
<# } #>
<# if ( data.choices['font-weight'] ) { #>
{{ data.l10n['font-weight'] }}
<# } #>
<# if ( data.choices['line-height'] ) { #>
{{ data.l10n['line-height'] }}
<# } #>
<# if ( data.choices['letter-spacing'] ) { #>
{{ data.l10n['letter-spacing'] }}
<# } #>
<# if ( data.choices['font-style'] ) { #>
{{ data.l10n['font-style'] }}
checked="checked" <# } #>>
<# for ( styleProperty in data.choices['font-style'] ) { #>
checked="checked" <# } #>>
<# } #>
<# } #>
<# if ( data.choices['color'] ) { #>
{{ data.l10n['color'] }}
<# } #>