<commit_before><?php

use \Experiensa\LiveComposer\Options\Catalog;
use \Experiensa\LiveComposer\Options\TextImage;
// Check if Live Composer is active
if ( defined( 'DS_LIVE_COMPOSER_URL' ) ) {
    class Catalog_LC_Module extends DSLC_Module{
        // Module Attributes
        var $module_id = 'Catalog_LC_Module';
        var $module_title = 'Catalog';
        var $module_icon = 'newspaper-o';
        var $module_category = 'Experiensa';
        function options() {

            // The options array
            $options = array(
                Catalog::type(),
                Catalog::elements(),
                TextImage::setTextFontFamily('title_font','Source Sans Pro','Title','.catalog-title'),
                TextImage::setTextFontFamily('content_font','Source Sans Pro','Content','.catalog-content'),
                TextImage::setTextFontFamily('button_font','Source Sans Pro','Button','.catalog-button'),
                TextImage::contentColor('title_text_color','#000','.catalog-title','styling','Title'),
                TextImage::contentColor('content_text_color','#000','.catalog-content','styling','Content'),
                TextImage::contentColor('button_text_color','#000','.catalog-button','styling','Button'),
                array(
                    'label' => __( 'Background', 'sage' ),
                    'id' => 'css_bg_button_group',
                    'type' => 'group',
                    'action' => 'open',
                    'section' => 'styling',
                    'tab' => __( 'Button', 'sage' )
                ),
                TextImage::backgroundColor('button_bg_color','Color','#fff','.button.catalog-button','styling','Button','background'),
                TextImage::backgroundColor('button_bg_hover_color','Color - Hover','#fff','.catalog-button button:hover','styling','Button','background'),
                array(
                    'id' => 'css_bg_button_group',
                    'type' => 'group',
                    'action' => 'close',
                    'section' => 'styling',
                    'tab' => __( 'Button', 'sage' )
                ),
            );

            // Return the array
            return apply_filters( 'dslc_module_options', $options, $this->module_id );

        }
        // Module Output
        function output( $options ) {
            $type = $options['type'];
            $elements = $options['elements'];

            set_query_var('type',$type);
            set_query_var('elements',$elements);

            ob_start();
            get_template_part("templates/catalog/catalog-react");
            $html = ob_get_clean();
            // REQUIRED
            $this->module_start( $options );
            echo $html;
            // REQUIRED
            $this->module_end( $options );<commit_msg>added button color on hover and active effect to LC Catalog<commit_after><?php

use \Experiensa\LiveComposer\Options\Catalog;
use \Experiensa\LiveComposer\Options\TextImage;
// Check if Live Composer is active
if ( defined( 'DS_LIVE_COMPOSER_URL' ) ) {
    class Catalog_LC_Module extends DSLC_Module{
        // Module Attributes
        var $module_id = 'Catalog_LC_Module';
        var $module_title = 'Catalog';
        var $module_icon = 'newspaper-o';
        var $module_category = 'Experiensa';
        function options() {

            // The options array
            $options = array(
                Catalog::type(),
                Catalog::elements(),
                TextImage::setTextFontFamily('title_font','Source Sans Pro','Title','.catalog-title'),
                TextImage::setTextFontFamily('content_font','Source Sans Pro','Content','.catalog-content'),
                TextImage::setTextFontFamily('button_font','Source Sans Pro','Button','.catalog-button'),
                TextImage::contentColor('title_text_color','#000','.catalog-title','styling','Title'),
                TextImage::contentColor('content_text_color','#000','.catalog-content','styling','Content'),
                TextImage::contentColor('button_text_color','#000','.catalog-button','styling','Button'),
                array(
                    'label' => __( 'Background', 'sage' ),
                    'id' => 'css_bg_button_group',
                    'type' => 'group',
                    'action' => 'open',
                    'section' => 'styling',
                    'tab' => __( 'Button', 'sage' )
                ),
                TextImage::backgroundColor('button_bg_color','Color','#fff','.button.catalog-button','styling','Button','background'),
                TextImage::backgroundColor('button_bg_hover_color','Color - Hover','#fff','.catalog-button:hover','styling','Button','background'),
                TextImage::backgroundColor('button_bg_active_color','Color - Active','#fff','.catalog-button:focus','styling','Button','background'),
                array(
                    'id' => 'css_bg_button_group',
                    'type' => 'group',
                    'action' => 'close',
                    'section' => 'styling',
                    'tab' => __( 'Button', 'sage' )
                ),
            );

            // Return the array
            return apply_filters( 'dslc_module_options', $options, $this->module_id );

        }
        // Module Output
        function output( $options ) {
            $type = $options['type'];
            $elements = $options['elements'];

            set_query_var('type',$type);
            set_query_var('elements',$elements);

            ob_start();
            get_template_part("templates/catalog/catalog-react");
            $html = ob_get_clean();
            // REQUIRED
            $this->module_start( $options );
            echo $html;
            // REQUIRED
            $this->module_end( $options );
{'fraction_non_alphanumeric': 0.15276105281266128, 'fraction_numerical': 0.0030965078272836744, 'mean_word_length': 2.047169811320755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '7244821', 'n_tokens_mistral': 1576, 'n_tokens_neox': 1513, 'n_words': 241}