<commit_before><?php

/*
 * Creates the section, settings and the controls for the customizer
 */
function shoestrap_typography_customizer( $wp_customize ) {

  // Dropdown (Select) Controls
  $select_controls = array();

  // Text Controls
  $text_controls = array();

  foreach ( $select_controls as $control ) {
    $wp_customize->add_control( $control['setting'], array(
      'label'       => $control['label'],
      'section'     => $control['section'],
      'settings'    => $control['setting'],
      'type'        => 'select',
      'priority'    => $control['priority'],
      'choices'     => $control['choises']
    ));
  }

  foreach ( $text_controls as $control) {
    $wp_customize->add_control( $control['setting'], array(
      'label'       => $control['label'],
      'section'     => $control['section'],
      'settings'    => $control['setting'],
      'type'        => 'text',
      'priority'    => $control['priority']
    ));
  }

  // Content of the Google Font
  $wp_customize->add_control( new Shoestrap_Google_WebFont_Control( $wp_customize, 'typography_google_webfont', array(
    'label'       => 'Google Webfont',
    'section'     => 'shoestrap_typography',
    'settings'    => 'typography_google_webfont',
    'priority'    => 3,
  )));

  //if ( $wp_customize->is_preview() && ! is_admin() )
    //add_action( 'wp_footer', 'shoestrap_customizer_typography_preview', 21 );
}
add_action( 'customize_register', 'shoestrap_typography_customizer' );



/**
 * Used by shoestrap_typography_customizer
 *
 * Adds extra javascript actions to the theme customizer editor
 */
function shoestrap_customizer_typography_controls()
{
  wp_register_script('theme_customizer', get_template_directory_uri() . '/lib/customizer/typography/scripts-customizer.js', false, null, true);
  wp_enqueue_script('theme_customizer');
}
add_action( 'customize_controls_init', 'shoestrap_customizer_typography_controls' );


/**
 * Used by shoestrap_typography_customizer
 *
 * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function shoestrap_customizer_typography_preview()
{<commit_msg>Remove custom control until we add the Shoestrap_Google_WebFont_Control class<commit_after><?php

/*
 * Creates the section, settings and the controls for the customizer
 */
function shoestrap_typography_customizer( $wp_customize ) {

  // Dropdown (Select) Controls
  $select_controls = array();

  // Text Controls
  $text_controls = array();

  foreach ( $select_controls as $control ) {
    $wp_customize->add_control( $control['setting'], array(
      'label'       => $control['label'],
      'section'     => $control['section'],
      'settings'    => $control['setting'],
      'type'        => 'select',
      'priority'    => $control['priority'],
      'choices'     => $control['choises']
    ));
  }

  foreach ( $text_controls as $control) {
    $wp_customize->add_control( $control['setting'], array(
      'label'       => $control['label'],
      'section'     => $control['section'],
      'settings'    => $control['setting'],
      'type'        => 'text',
      'priority'    => $control['priority']
    ));
  }

  // Content of the Google Font
  // $wp_customize->add_control( new Shoestrap_Google_WebFont_Control( $wp_customize, 'typography_google_webfont', array(
  //   'label'       => 'Google Webfont',
  //   'section'     => 'shoestrap_typography',
  //   'settings'    => 'typography_google_webfont',
  //   'priority'    => 3,
  // )));

  //if ( $wp_customize->is_preview() && ! is_admin() )
    //add_action( 'wp_footer', 'shoestrap_customizer_typography_preview', 21 );
}
add_action( 'customize_register', 'shoestrap_typography_customizer' );



/**
 * Used by shoestrap_typography_customizer
 *
 * Adds extra javascript actions to the theme customizer editor
 */
function shoestrap_customizer_typography_controls()
{
  wp_register_script('theme_customizer', get_template_directory_uri() . '/lib/customizer/typography/scripts-customizer.js', false, null, true);
  wp_enqueue_script('theme_customizer');
}
add_action( 'customize_controls_init', 'shoestrap_customizer_typography_controls' );


/**
 * Used by shoestrap_typography_customizer
 *
 * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function shoestrap_customizer_typography_preview()
{
{'fraction_non_alphanumeric': 0.14384191176470587, 'fraction_numerical': 0.0013786764705882354, 'mean_word_length': 3.8965129358830146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4259034', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1348, 'n_words': 266}