Plugin Directory

Changeset 3399160


Ignore:
Timestamp:
11/19/2025 05:21:47 PM (4 months ago)
Author:
Rustaurius
Message:

v2.4.4 released and tagged

Location:
ultimate-faqs
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ultimate-faqs/tags/2.4.4/assets/css/ewd-ufaq.css

    r3352283 r3399160  
    3737  width: 100%;
    3838  clear: both;
     39  display: flex;
     40  align-items: center;
     41  justify-content: space-between;
    3942}
    4043
     
    516519
    517520.ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol,
     521.ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol,
    518522.ewd-ufaq-toggle-all-symbol {
    519523  font-family: 'ewd-toggle-icon';
  • ultimate-faqs/tags/2.4.4/assets/js/ewd-ufaq.js

    r3352283 r3399160  
    149149    jQuery( '.ewd-ufaq-faq-category-title-toggle' ).off( 'click' ).on( 'click', function() {
    150150       
    151         var category = jQuery( this ).parent();
    152         var category_inner = category.find( '.ewd-ufaq-faq-category-inner' );
     151        var category_title = jQuery( this );
     152        var category = category_title.parent();
     153        var category_inner = category.find( '.ewd-ufaq-faq-category-inner' ).first();
    153154        var category_inner_height = category_inner.outerHeight( true );
    154155        var faqs_list = category_inner.parent();
     
    158159        jQuery( '.ewd-ufaq-category-tabs-1' ).css( 'height', total_faqs_height + 'px' );
    159160
    160         jQuery( '.ewd-ufaq-category-tabs-1 .ewd-ufaq-faq-category-title-toggle' ).removeClass( 'ewd-ufaq-category-tab-selected' );
    161         jQuery( this ).addClass( 'ewd-ufaq-category-tab-selected' );
     161        jQuery( this ).toggleClass( 'ewd-ufaq-category-tab-selected' );
    162162       
    163163        category_inner.toggleClass( 'ewd-ufaq-faq-category-body-hidden' );
    164164
    165         if ( typeof ewd_ufaq_php_data == 'undefined' || ! ewd_ufaq_php_data.category_accordion ) { return; }
    166 
    167         jQuery( '.ewd-ufaq-faq-category-inner' ).each( function( index, object ) {
     165        if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.category_accordion ) {
     166
     167            jQuery( '.ewd-ufaq-faq-category-inner' ).each( function( index, object ) {
    168168           
    169             if ( object != category_inner.get( 0 ) ) { jQuery( this ).addClass( 'ewd-ufaq-faq-category-body-hidden' ); }
    170         });
     169                if ( object != category_inner.get( 0 ) ) { jQuery( this ).addClass( 'ewd-ufaq-faq-category-body-hidden' ); }
     170            });
     171
     172            jQuery( '.ewd-ufaq-faq-category-title-toggle' ).each (function() {
     173
     174                if ( jQuery( this ) != category_title ) { jQuery( this ).removeClass( 'ewd-ufaq-category-tab-selected' ); }
     175            });
     176        }
     177
     178        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).each( function() {
     179            var span = jQuery( this ).find( '.ewd-ufaq-category-post-margin-symbol span' );
     180
     181            if ( jQuery( this).hasClass( 'ewd-ufaq-category-tab-selected' ) )  {
     182                span.html( span.html().toUpperCase() );
     183            }
     184            else {
     185                span.html( span.html().toLowerCase() );
     186            }
     187        } );
    171188    });
    172189
     
    438455        jQuery('.ewd-ufaq-collapse-all').removeClass('ewd-ufaq-hidden');
    439456        jQuery('.ewd-ufaq-expand-all').addClass('ewd-ufaq-hidden');
     457
     458        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).addClass( 'ewd-ufaq-category-tab-selected' );
     459        jQuery( '.ewd-ufaq-category-post-margin-symbol span' ).each( function() {
     460            jQuery( this ).html().toUpperCase();
     461        });
    440462    });
    441463
     
    451473        });
    452474
    453         if ( jQuery( '.ewd-ufaq-faq-category-title-toggle' ).length ) { jQuery( '.ewd-ufaq-faq-category-inner' ).addClass( 'ewd-ufaq-faq-category-body-hidden' );}
     475        jQuery( '.ewd-ufaq-faq-category-inner' ).addClass( 'ewd-ufaq-faq-category-body-hidden' );
     476        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).removeClass( 'ewd-ufaq-category-tab-selected' );
     477
     478        jQuery( '.ewd-ufaq-category-post-margin-symbol span' ).each( function() {
     479            jQuery( this ).html().toLowerCase();
     480        });
    454481
    455482        jQuery('.ewd-ufaq-expand-all').removeClass('ewd-ufaq-hidden');
  • ultimate-faqs/tags/2.4.4/ewd-ufaq-templates/faqs-category-header.php

    r3352283 r3399160  
    77            <?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo esc_html( $this->get_category_count( $this->current_category ) ); ?>)</span><?php } ?>
    88        </<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>>
     9
     10        <?php if ( $this->display_category_toggle_symbol() ) { ?>
     11            <div class='ewd-ufaq-category-post-margin-symbol <?php echo esc_attr( $this->get_color_block_shape() ); ?>'>
     12                <span ><?php echo esc_attr( $this->get_category_toggle_symbol() ); ?></span>
     13            </div>
     14        <?php } ?>
    915   
    1016    </div>
  • ultimate-faqs/tags/2.4.4/includes/FAQ.class.php

    r3352283 r3399160  
    184184        $this->validation_errors = array();
    185185
     186        // NONCE Validation
     187        if ( ! isset( $_POST['ewd_ufaq_nonce'] ) || ! wp_verify_nonce( $_POST['ewd_ufaq_nonce'], 'ewd_ufaq_nonce_value' ) ) {
     188
     189            $this->validation_errors[] = array(
     190                'field'     => 'nonce',
     191                'error_msg' => 'Invalid Nonce',
     192                'message'   => __( 'Please refresh the page and try submitting again.', 'ultimate-faqs' ),
     193            );
     194
     195            return false; // End early if nonce validation fails
     196        }
     197
    186198        // USER-SUBMITTED FLAG
    187199        if ( isset( $_POST['user_submitted'] ) and ! empty( $_POST['user_submitted'] ) ) {
  • ultimate-faqs/tags/2.4.4/includes/Settings.class.php

    r3352283 r3399160  
    7070            'faq-fields' => array(),
    7171
    72             'styling-toggle-symbol'         => 'A',
    73             'styling-category-heading-type' => 'h3',
    74             'styling-faq-heading-type'      => 'h4',
     72            'styling-toggle-symbol'          => 'A',
     73            'styling-category-toggle-symbol' => '',
     74            'styling-category-heading-type'  => 'h3',
     75            'styling-faq-heading-type'       => 'h4',
    7576
    7677            'label-retrieving-results'              => __( 'Retrieving Results', 'ultimate-faqs' ),
  • ultimate-faqs/tags/2.4.4/readme.txt

    r3379689 r3399160  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 2.4.3
     6Stable tag: 2.4.4
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    224224== Changelog ==
    225225
     226= 2.4.4 (2025-11-19) =
     227- Added a new option to display a toggle icon for the category toggle feature.
     228
    226229= 2.4.3 (2025-10-16) =
    227230- Fix to prevent all FAQs from being displayed if an FAQ is added to a WooCommerce product and then subsequently deleted.
  • ultimate-faqs/tags/2.4.4/ultimate-faqs.php

    r3379689 r3399160  
    44 * Plugin URI: https://www.etoilewebdesign.com/plugins/ultimate-faq/
    55 * Description: Full-featured FAQ and accordion plugin with advanced search, simple UI and easy-to-use Gutenberg blocks and shortcodes.
    6  * Version: 2.4.3
     6 * Version: 2.4.4
    77 * Author: Etoile Web Design
    88 * Author URI: https://www.etoilewebdesign.com/
     
    1212 * Requires PHP: 7.4
    1313 * WC requires at least: 7.1
    14  * WC tested up to: 10.2
     14 * WC tested up to: 10.3
    1515 */
    1616
     
    6464        define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
    6565        define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
    66         define( 'EWD_UFAQ_VERSION', '2.4.3' );
     66        define( 'EWD_UFAQ_VERSION', '2.4.4' );
    6767
    6868        define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
  • ultimate-faqs/tags/2.4.4/views/View.FAQs.class.php

    r3352283 r3399160  
    651651
    652652    /**
     653     * Detemines whether to display a category toggle symbol or not
     654     *
     655     * @since 2.4.3
     656     */
     657    public function display_category_toggle_symbol() {
     658        global $ewd_ufaq_controller;
     659
     660        if ( empty( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol' ) ) ) { return false; }
     661
     662        if ( empty( $ewd_ufaq_controller->settings->get_setting( 'faq-category-toggle' ) ) ) { return false; }
     663
     664        return true;
     665    }
     666
     667    /**
     668     * Returns the class for the color block, if any
     669     *
     670     * @since 2.4.3
     671     */
     672    public function get_color_block_shape() {
     673        global $ewd_ufaq_controller;
     674
     675        return 'ewd-ufaq-' . $ewd_ufaq_controller->settings->get_setting( 'color-block-shape' );
     676    }
     677
     678    /**
     679     * Returns the selected toggle symbol
     680     *
     681     * @since 2.4.3
     682     */
     683    public function get_category_toggle_symbol() {
     684        global $ewd_ufaq_controller;
     685
     686        return strtolower( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol' ) );
     687    }
     688
     689    /**
    653690     * Add in default options if not overwritten by shortcode attributes
    654691     *
  • ultimate-faqs/tags/2.4.4/views/View.SubmitFAQ.class.php

    r3352283 r3399160  
    211211    public function print_nonce_field() {
    212212       
    213         echo wp_nonce_field( -1, '_wp_nonce', true, false);
     213        echo wp_nonce_field( 'ewd_ufaq_nonce_value', 'ewd_ufaq_nonce', true, false);
    214214    }
    215215
  • ultimate-faqs/tags/2.4.4/views/View.class.php

    r3063894 r3399160  
    162162            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-toggle-symbol-size' ) != '' ) { $css .= '.ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol span { font-size: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-toggle-symbol-size' ) . ' !important; }'; }
    163163           
     164            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-background-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { background-color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-background-color' ) . ' !important; }'; }
     165            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-font-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-font-color' ) . ' !important; }'; }
     166            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-size' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-width: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-size' ) . ' !important; }'; }
     167            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-color' ) . ' !important; }'; }
     168            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-radius' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-radius: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-radius' ) . ' !important; }'; }
     169            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol-size' ) != '' ) { $css .= '.ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol span { font-size: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol-size' ) . ' !important; }'; }
     170           
    164171            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-background-color' ) != '' ) {
    165172
     
    172179            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) != '' ) {
    173180
    174                 $css .= ".ewd-ufaq-faq-display-style-block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-faq-display-style-block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
    175                 $css .= ".ewd-ufaq-faq-display-style-border_block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-faq-display-style-border_block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
     181                $css .= ".ewd-ufaq-faq-display-style-block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-category-post-margin-symbol, .ewd-ufaq-faq-display-style-block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
     182                $css .= ".ewd-ufaq-faq-display-style-border_block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-category-post-margin-symbol, .ewd-ufaq-faq-display-style-border_block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
    176183            }
    177184
  • ultimate-faqs/trunk/assets/css/ewd-ufaq.css

    r3352283 r3399160  
    3737  width: 100%;
    3838  clear: both;
     39  display: flex;
     40  align-items: center;
     41  justify-content: space-between;
    3942}
    4043
     
    516519
    517520.ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol,
     521.ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol,
    518522.ewd-ufaq-toggle-all-symbol {
    519523  font-family: 'ewd-toggle-icon';
  • ultimate-faqs/trunk/assets/js/ewd-ufaq.js

    r3352283 r3399160  
    149149    jQuery( '.ewd-ufaq-faq-category-title-toggle' ).off( 'click' ).on( 'click', function() {
    150150       
    151         var category = jQuery( this ).parent();
    152         var category_inner = category.find( '.ewd-ufaq-faq-category-inner' );
     151        var category_title = jQuery( this );
     152        var category = category_title.parent();
     153        var category_inner = category.find( '.ewd-ufaq-faq-category-inner' ).first();
    153154        var category_inner_height = category_inner.outerHeight( true );
    154155        var faqs_list = category_inner.parent();
     
    158159        jQuery( '.ewd-ufaq-category-tabs-1' ).css( 'height', total_faqs_height + 'px' );
    159160
    160         jQuery( '.ewd-ufaq-category-tabs-1 .ewd-ufaq-faq-category-title-toggle' ).removeClass( 'ewd-ufaq-category-tab-selected' );
    161         jQuery( this ).addClass( 'ewd-ufaq-category-tab-selected' );
     161        jQuery( this ).toggleClass( 'ewd-ufaq-category-tab-selected' );
    162162       
    163163        category_inner.toggleClass( 'ewd-ufaq-faq-category-body-hidden' );
    164164
    165         if ( typeof ewd_ufaq_php_data == 'undefined' || ! ewd_ufaq_php_data.category_accordion ) { return; }
    166 
    167         jQuery( '.ewd-ufaq-faq-category-inner' ).each( function( index, object ) {
     165        if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.category_accordion ) {
     166
     167            jQuery( '.ewd-ufaq-faq-category-inner' ).each( function( index, object ) {
    168168           
    169             if ( object != category_inner.get( 0 ) ) { jQuery( this ).addClass( 'ewd-ufaq-faq-category-body-hidden' ); }
    170         });
     169                if ( object != category_inner.get( 0 ) ) { jQuery( this ).addClass( 'ewd-ufaq-faq-category-body-hidden' ); }
     170            });
     171
     172            jQuery( '.ewd-ufaq-faq-category-title-toggle' ).each (function() {
     173
     174                if ( jQuery( this ) != category_title ) { jQuery( this ).removeClass( 'ewd-ufaq-category-tab-selected' ); }
     175            });
     176        }
     177
     178        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).each( function() {
     179            var span = jQuery( this ).find( '.ewd-ufaq-category-post-margin-symbol span' );
     180
     181            if ( jQuery( this).hasClass( 'ewd-ufaq-category-tab-selected' ) )  {
     182                span.html( span.html().toUpperCase() );
     183            }
     184            else {
     185                span.html( span.html().toLowerCase() );
     186            }
     187        } );
    171188    });
    172189
     
    438455        jQuery('.ewd-ufaq-collapse-all').removeClass('ewd-ufaq-hidden');
    439456        jQuery('.ewd-ufaq-expand-all').addClass('ewd-ufaq-hidden');
     457
     458        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).addClass( 'ewd-ufaq-category-tab-selected' );
     459        jQuery( '.ewd-ufaq-category-post-margin-symbol span' ).each( function() {
     460            jQuery( this ).html().toUpperCase();
     461        });
    440462    });
    441463
     
    451473        });
    452474
    453         if ( jQuery( '.ewd-ufaq-faq-category-title-toggle' ).length ) { jQuery( '.ewd-ufaq-faq-category-inner' ).addClass( 'ewd-ufaq-faq-category-body-hidden' );}
     475        jQuery( '.ewd-ufaq-faq-category-inner' ).addClass( 'ewd-ufaq-faq-category-body-hidden' );
     476        jQuery( '.ewd-ufaq-faq-category-title-toggle' ).removeClass( 'ewd-ufaq-category-tab-selected' );
     477
     478        jQuery( '.ewd-ufaq-category-post-margin-symbol span' ).each( function() {
     479            jQuery( this ).html().toLowerCase();
     480        });
    454481
    455482        jQuery('.ewd-ufaq-expand-all').removeClass('ewd-ufaq-hidden');
  • ultimate-faqs/trunk/ewd-ufaq-templates/faqs-category-header.php

    r3352283 r3399160  
    77            <?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo esc_html( $this->get_category_count( $this->current_category ) ); ?>)</span><?php } ?>
    88        </<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>>
     9
     10        <?php if ( $this->display_category_toggle_symbol() ) { ?>
     11            <div class='ewd-ufaq-category-post-margin-symbol <?php echo esc_attr( $this->get_color_block_shape() ); ?>'>
     12                <span ><?php echo esc_attr( $this->get_category_toggle_symbol() ); ?></span>
     13            </div>
     14        <?php } ?>
    915   
    1016    </div>
  • ultimate-faqs/trunk/includes/FAQ.class.php

    r3352283 r3399160  
    184184        $this->validation_errors = array();
    185185
     186        // NONCE Validation
     187        if ( ! isset( $_POST['ewd_ufaq_nonce'] ) || ! wp_verify_nonce( $_POST['ewd_ufaq_nonce'], 'ewd_ufaq_nonce_value' ) ) {
     188
     189            $this->validation_errors[] = array(
     190                'field'     => 'nonce',
     191                'error_msg' => 'Invalid Nonce',
     192                'message'   => __( 'Please refresh the page and try submitting again.', 'ultimate-faqs' ),
     193            );
     194
     195            return false; // End early if nonce validation fails
     196        }
     197
    186198        // USER-SUBMITTED FLAG
    187199        if ( isset( $_POST['user_submitted'] ) and ! empty( $_POST['user_submitted'] ) ) {
  • ultimate-faqs/trunk/includes/Settings.class.php

    r3352283 r3399160  
    7070            'faq-fields' => array(),
    7171
    72             'styling-toggle-symbol'         => 'A',
    73             'styling-category-heading-type' => 'h3',
    74             'styling-faq-heading-type'      => 'h4',
     72            'styling-toggle-symbol'          => 'A',
     73            'styling-category-toggle-symbol' => '',
     74            'styling-category-heading-type'  => 'h3',
     75            'styling-faq-heading-type'       => 'h4',
    7576
    7677            'label-retrieving-results'              => __( 'Retrieving Results', 'ultimate-faqs' ),
  • ultimate-faqs/trunk/readme.txt

    r3379689 r3399160  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 2.4.3
     6Stable tag: 2.4.4
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    224224== Changelog ==
    225225
     226= 2.4.4 (2025-11-19) =
     227- Added a new option to display a toggle icon for the category toggle feature.
     228
    226229= 2.4.3 (2025-10-16) =
    227230- Fix to prevent all FAQs from being displayed if an FAQ is added to a WooCommerce product and then subsequently deleted.
  • ultimate-faqs/trunk/ultimate-faqs.php

    r3379689 r3399160  
    44 * Plugin URI: https://www.etoilewebdesign.com/plugins/ultimate-faq/
    55 * Description: Full-featured FAQ and accordion plugin with advanced search, simple UI and easy-to-use Gutenberg blocks and shortcodes.
    6  * Version: 2.4.3
     6 * Version: 2.4.4
    77 * Author: Etoile Web Design
    88 * Author URI: https://www.etoilewebdesign.com/
     
    1212 * Requires PHP: 7.4
    1313 * WC requires at least: 7.1
    14  * WC tested up to: 10.2
     14 * WC tested up to: 10.3
    1515 */
    1616
     
    6464        define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
    6565        define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
    66         define( 'EWD_UFAQ_VERSION', '2.4.3' );
     66        define( 'EWD_UFAQ_VERSION', '2.4.4' );
    6767
    6868        define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
  • ultimate-faqs/trunk/views/View.FAQs.class.php

    r3352283 r3399160  
    651651
    652652    /**
     653     * Detemines whether to display a category toggle symbol or not
     654     *
     655     * @since 2.4.3
     656     */
     657    public function display_category_toggle_symbol() {
     658        global $ewd_ufaq_controller;
     659
     660        if ( empty( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol' ) ) ) { return false; }
     661
     662        if ( empty( $ewd_ufaq_controller->settings->get_setting( 'faq-category-toggle' ) ) ) { return false; }
     663
     664        return true;
     665    }
     666
     667    /**
     668     * Returns the class for the color block, if any
     669     *
     670     * @since 2.4.3
     671     */
     672    public function get_color_block_shape() {
     673        global $ewd_ufaq_controller;
     674
     675        return 'ewd-ufaq-' . $ewd_ufaq_controller->settings->get_setting( 'color-block-shape' );
     676    }
     677
     678    /**
     679     * Returns the selected toggle symbol
     680     *
     681     * @since 2.4.3
     682     */
     683    public function get_category_toggle_symbol() {
     684        global $ewd_ufaq_controller;
     685
     686        return strtolower( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol' ) );
     687    }
     688
     689    /**
    653690     * Add in default options if not overwritten by shortcode attributes
    654691     *
  • ultimate-faqs/trunk/views/View.SubmitFAQ.class.php

    r3352283 r3399160  
    211211    public function print_nonce_field() {
    212212       
    213         echo wp_nonce_field( -1, '_wp_nonce', true, false);
     213        echo wp_nonce_field( 'ewd_ufaq_nonce_value', 'ewd_ufaq_nonce', true, false);
    214214    }
    215215
  • ultimate-faqs/trunk/views/View.class.php

    r3063894 r3399160  
    162162            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-toggle-symbol-size' ) != '' ) { $css .= '.ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol span { font-size: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-toggle-symbol-size' ) . ' !important; }'; }
    163163           
     164            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-background-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { background-color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-background-color' ) . ' !important; }'; }
     165            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-font-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-font-color' ) . ' !important; }'; }
     166            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-size' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-width: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-size' ) . ' !important; }'; }
     167            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-color' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-color: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-color' ) . ' !important; }'; }
     168            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-radius' ) != '' ) { $css .= '.ewd-ufaq-category-post-margin-symbol { border-radius: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-border-radius' ) . ' !important; }'; }
     169            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol-size' ) != '' ) { $css .= '.ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol span { font-size: ' . $ewd_ufaq_controller->settings->get_setting( 'styling-category-toggle-symbol-size' ) . ' !important; }'; }
     170           
    164171            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-background-color' ) != '' ) {
    165172
     
    172179            if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) != '' ) {
    173180
    174                 $css .= ".ewd-ufaq-faq-display-style-block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-faq-display-style-block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
    175                 $css .= ".ewd-ufaq-faq-display-style-border_block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-faq-display-style-border_block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
     181                $css .= ".ewd-ufaq-faq-display-style-block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-category-post-margin-symbol, .ewd-ufaq-faq-display-style-block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
     182                $css .= ".ewd-ufaq-faq-display-style-border_block:hover .ewd-ufaq-post-margin-symbol, .ewd-ufaq-category-post-margin-symbol, .ewd-ufaq-faq-display-style-border_block:hover $heading_type { color: " . $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) . ' !important; }';
    176183            }
    177184
Note: See TracChangeset for help on using the changeset viewer.