<commit_before><?php
/**
 * Module Name: Mustache Text
 * Version: 2.0
**/
class MustacheText extends FLBuilderModule {
  public function __construct(){
    $instance_config = array(
      'name' => __( 'Mustache Text', 'fl-builder' ),
      'description' => __( 'Creative Text.','fl-builder' ),
      'category' => __( 'Standard Modules','fl-builder' ),
      'group' => __( 'Mustache Modules','fl-builder' ),
      'dir' => BBMUSTACHE_MODULE_DIR . 'bbmustache-text/',
      'url' => BBMUSTACHE_MODULE_URL . 'bbmustache-text/'
    );
    parent::__construct( $instance_config );
  }
  public function color( $color_setting_field_value ){
    if( strncmp($color_setting_field_value, "rgba", 4) === 0 ){
      return $color_setting_field_value;
    }
    return "#".$color_setting_field_value;
  }
}
FLBuilder::register_module( 'MustacheText',array(
  'content-tab' => array(
    'title' => __( 'Content','fl-builder' ),
    'sections' => array(
      'content-text-section' => array(
        'fields' => array(
          'content_text' => array(
            'type' => 'editor',
            'row' => 10,
            'media_buttons' => true
          )
        )
      ),
      'text-alignment-section' => array(
        'fields' => array(
          'alignment' => array(
            'type' => 'select',
            'options' => array(
              'left' => __( 'Left','fl-builder' ),
              'right' => __( 'Right','fl-builder' ),
              'center' => __( 'Center','fl-builder' )
            ),
            'label' => __( 'Text Alignment','fl-builder' ),
            'default' => 'left'
          ),
          'transform' => array(
            'type' => 'select',
            'label' => __( 'Text Transform','fl-builder' ),
            'default' => 'auto',
            'options' => array(
              'auto' => __( 'Default','fl-builder' ),
              'lowercase' => __( 'lowercase','fl-builder' ),
              'uppercase' => __( 'UPPERCASE','fl-builder' ),
              'capitalize' => __( 'Capitalize','fl-builder' )
            )
          )
        )
      )
    )
  ),
  'style-tab' => array(
    'title' => __( 'Style','fl-buider' ),
    'sections' => array(
      'colors-section' => array(
        'fields' => array(
          'p_color' => array(
            'type' => 'color',
            'label' => __( 'Text Color' ,'fl-builder' ),
            'default' => '333333',
            'show_reset' => true,
            'preview' => array(
              'type' =>'css',
              'property' => 'color',
              'selector' => '.bbmustache-text'
            )
          ),
          'p_margin' => array(
            'type' => 'dimension',
            'label' => __( 'Margin','fl-builder' ),
            'default' => '0',
            'description' => __( 'Margins of each paragraph','fl-builder' )
          )
        )
      )
    )
  ),
  'typography-tab' => array(
    'title' => __( 'Typography','fl-builder' ),
    'sections' => array(
      'font-section' => array(
        'fields' => array(
          'text_fam' => array(
            'type' => 'font',
            'label' => __( 'Font','fl-builder' ),
            'default' => array(
              'family' => 'Default',
              'weight' => 400
            )
          ),
          'text_size' => array(
            'type' => 'unit',
            'label' => __( 'Font Size','fl-buider' ),
            'default' => '16',
            'description' => 'px',
            'responsive' => true
          ),
          'text_line_height' => array(
            'type' => 'unit',
            'label' => __( 'Font Size','fl-buider' ),<commit_msg>Fixed typography tab line height field label<commit_after><?php
/**
 * Module Name: Mustache Text
 * Version: 2.0
**/
class MustacheText extends FLBuilderModule {
  public function __construct(){
    $instance_config = array(
      'name' => __( 'Mustache Text', 'fl-builder' ),
      'description' => __( 'Creative Text.','fl-builder' ),
      'category' => __( 'Standard Modules','fl-builder' ),
      'group' => __( 'Mustache Modules','fl-builder' ),
      'dir' => BBMUSTACHE_MODULE_DIR . 'bbmustache-text/',
      'url' => BBMUSTACHE_MODULE_URL . 'bbmustache-text/'
    );
    parent::__construct( $instance_config );
  }
  public function color( $color_setting_field_value ){
    if( strncmp($color_setting_field_value, "rgba", 4) === 0 ){
      return $color_setting_field_value;
    }
    return "#".$color_setting_field_value;
  }
}
FLBuilder::register_module( 'MustacheText',array(
  'content-tab' => array(
    'title' => __( 'Content','fl-builder' ),
    'sections' => array(
      'content-text-section' => array(
        'fields' => array(
          'content_text' => array(
            'type' => 'editor',
            'row' => 10,
            'media_buttons' => true
          )
        )
      ),
      'text-alignment-section' => array(
        'fields' => array(
          'alignment' => array(
            'type' => 'select',
            'options' => array(
              'left' => __( 'Left','fl-builder' ),
              'right' => __( 'Right','fl-builder' ),
              'center' => __( 'Center','fl-builder' )
            ),
            'label' => __( 'Text Alignment','fl-builder' ),
            'default' => 'left'
          ),
          'transform' => array(
            'type' => 'select',
            'label' => __( 'Text Transform','fl-builder' ),
            'default' => 'auto',
            'options' => array(
              'auto' => __( 'Default','fl-builder' ),
              'lowercase' => __( 'lowercase','fl-builder' ),
              'uppercase' => __( 'UPPERCASE','fl-builder' ),
              'capitalize' => __( 'Capitalize','fl-builder' )
            )
          )
        )
      )
    )
  ),
  'style-tab' => array(
    'title' => __( 'Style','fl-buider' ),
    'sections' => array(
      'colors-section' => array(
        'fields' => array(
          'p_color' => array(
            'type' => 'color',
            'label' => __( 'Text Color' ,'fl-builder' ),
            'default' => '333333',
            'show_reset' => true,
            'preview' => array(
              'type' =>'css',
              'property' => 'color',
              'selector' => '.bbmustache-text'
            )
          ),
          'p_margin' => array(
            'type' => 'dimension',
            'label' => __( 'Margin','fl-builder' ),
            'default' => '0',
            'description' => __( 'Margins of each paragraph','fl-builder' )
          )
        )
      )
    )
  ),
  'typography-tab' => array(
    'title' => __( 'Typography','fl-builder' ),
    'sections' => array(
      'font-section' => array(
        'fields' => array(
          'text_fam' => array(
            'type' => 'font',
            'label' => __( 'Font','fl-builder' ),
            'default' => array(
              'family' => 'Default',
              'weight' => 400
            )
          ),
          'text_size' => array(
            'type' => 'unit',
            'label' => __( 'Font Size','fl-buider' ),
            'default' => '16',
            'description' => 'px',
            'responsive' => true
          ),
          'text_line_height' => array(
            'type' => 'unit',
            'label' => __( 'Line Height','fl-buider' ),
{'fraction_non_alphanumeric': 0.1881772047730078, 'fraction_numerical': 0.004937594294335482, 'mean_word_length': 1.725981308411215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 149, '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': '5197966', 'n_tokens_mistral': 2217, 'n_tokens_neox': 2255, 'n_words': 396}