File "template.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/js_composer/include/templates/params/google_fonts/template.php
File size: 2.84 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
?>
<div class="vc_row-fluid vc_column">
<div class="wpb_element_label"><?php esc_html_e( 'Font Family', 'js_composer' ); ?></div>
<div class="vc_google_fonts_form_field-font_family-container">
<select class="vc_google_fonts_form_field-font_family-select"
default[font_style]="<?php echo esc_attr( $values['font_style'] ); ?>">
<?php
/** @var Vc_Google_Fonts $this */
$fonts = $this->_vc_google_fonts_get_fonts();
foreach ( $fonts as $font_data ) :
?>
<option value="<?php echo esc_attr( $font_data->font_family ) . ':' . esc_attr( $font_data->font_styles ); ?>"
data[font_types]="<?php echo esc_attr( $font_data->font_types ); ?>"
data[font_family]="<?php echo esc_attr( $font_data->font_family ); ?>"
data[font_styles]="<?php echo esc_attr( $font_data->font_styles ); ?>"
class="<?php echo esc_attr( vc_build_safe_css_class( $font_data->font_family ) ); ?>" <?php echo( strtolower( $values['font_family'] ) === strtolower( $font_data->font_family ) || strtolower( $values['font_family'] ) === strtolower( $font_data->font_family ) . ':' . $font_data->font_styles ? 'selected' : '' ); ?> ><?php echo esc_html( $font_data->font_family ); ?></option>
<?php endforeach ?>
</select>
</div>
<?php if ( isset( $fields['font_family_description'] ) && strlen( $fields['font_family_description'] ) > 0 ) : ?>
<span class="vc_description clear"><?php echo esc_html( $fields['font_family_description'] ); ?></span>
<?php endif ?>
</div>
<?php if ( isset( $fields['no_font_style'] ) && false === $fields['no_font_style'] || ! isset( $fields['no_font_style'] ) ) : ?>
<div class="vc_row-fluid vc_column">
<div class="wpb_element_label"><?php esc_html_e( 'Font style', 'js_composer' ); ?></div>
<div class="vc_google_fonts_form_field-font_style-container">
<select class="vc_google_fonts_form_field-font_style-select"></select>
</div>
</div>
<?php if ( isset( $fields['font_style_description'] ) && strlen( $fields['font_style_description'] ) > 0 ) : ?>
<span class="vc_description clear"><?php echo esc_html( $fields['font_style_description'] ); ?></span>
<?php endif ?>
<?php endif ?>
<div class="vc_row-fluid vc_column vc_google_fonts_form_field-preview-wrapper">
<div class="wpb_element_label"><?php esc_html_e( 'Google Fonts preview', 'js_composer' ); ?>:</div>
<div class="vc_google_fonts_form_field-preview-container">
<span><?php esc_html_e( 'Grumpy wizards make toxic brew for the evil Queen and Jack.', 'js_composer' ); ?></span>
</div>
<div class="vc_google_fonts_form_field-status-container"><span></span></div>
</div>
<input name="<?php echo esc_attr( $settings['param_name'] ); ?>"
class="wpb_vc_param_value <?php echo esc_attr( $settings['param_name'] ) . ' ' . esc_attr( $settings['type'] ); ?>_field" type="hidden"
value="<?php echo esc_attr( $value ); ?>"/>