Changeset 3399160
- Timestamp:
- 11/19/2025 05:21:47 PM (4 months ago)
- Location:
- ultimate-faqs
- Files:
-
- 20 edited
- 1 copied
-
tags/2.4.4 (copied) (copied from ultimate-faqs/trunk)
-
tags/2.4.4/assets/css/ewd-ufaq.css (modified) (2 diffs)
-
tags/2.4.4/assets/js/ewd-ufaq.js (modified) (4 diffs)
-
tags/2.4.4/ewd-ufaq-templates/faqs-category-header.php (modified) (1 diff)
-
tags/2.4.4/includes/FAQ.class.php (modified) (1 diff)
-
tags/2.4.4/includes/Settings.class.php (modified) (1 diff)
-
tags/2.4.4/readme.txt (modified) (2 diffs)
-
tags/2.4.4/ultimate-faqs.php (modified) (3 diffs)
-
tags/2.4.4/views/View.FAQs.class.php (modified) (1 diff)
-
tags/2.4.4/views/View.SubmitFAQ.class.php (modified) (1 diff)
-
tags/2.4.4/views/View.class.php (modified) (2 diffs)
-
trunk/assets/css/ewd-ufaq.css (modified) (2 diffs)
-
trunk/assets/js/ewd-ufaq.js (modified) (4 diffs)
-
trunk/ewd-ufaq-templates/faqs-category-header.php (modified) (1 diff)
-
trunk/includes/FAQ.class.php (modified) (1 diff)
-
trunk/includes/Settings.class.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/ultimate-faqs.php (modified) (3 diffs)
-
trunk/views/View.FAQs.class.php (modified) (1 diff)
-
trunk/views/View.SubmitFAQ.class.php (modified) (1 diff)
-
trunk/views/View.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-faqs/tags/2.4.4/assets/css/ewd-ufaq.css
r3352283 r3399160 37 37 width: 100%; 38 38 clear: both; 39 display: flex; 40 align-items: center; 41 justify-content: space-between; 39 42 } 40 43 … … 516 519 517 520 .ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol, 521 .ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol, 518 522 .ewd-ufaq-toggle-all-symbol { 519 523 font-family: 'ewd-toggle-icon'; -
ultimate-faqs/tags/2.4.4/assets/js/ewd-ufaq.js
r3352283 r3399160 149 149 jQuery( '.ewd-ufaq-faq-category-title-toggle' ).off( 'click' ).on( 'click', function() { 150 150 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(); 153 154 var category_inner_height = category_inner.outerHeight( true ); 154 155 var faqs_list = category_inner.parent(); … … 158 159 jQuery( '.ewd-ufaq-category-tabs-1' ).css( 'height', total_faqs_height + 'px' ); 159 160 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' ); 162 162 163 163 category_inner.toggleClass( 'ewd-ufaq-faq-category-body-hidden' ); 164 164 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 ) { 168 168 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 } ); 171 188 }); 172 189 … … 438 455 jQuery('.ewd-ufaq-collapse-all').removeClass('ewd-ufaq-hidden'); 439 456 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 }); 440 462 }); 441 463 … … 451 473 }); 452 474 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 }); 454 481 455 482 jQuery('.ewd-ufaq-expand-all').removeClass('ewd-ufaq-hidden'); -
ultimate-faqs/tags/2.4.4/ewd-ufaq-templates/faqs-category-header.php
r3352283 r3399160 7 7 <?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo esc_html( $this->get_category_count( $this->current_category ) ); ?>)</span><?php } ?> 8 8 </<?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 } ?> 9 15 10 16 </div> -
ultimate-faqs/tags/2.4.4/includes/FAQ.class.php
r3352283 r3399160 184 184 $this->validation_errors = array(); 185 185 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 186 198 // USER-SUBMITTED FLAG 187 199 if ( isset( $_POST['user_submitted'] ) and ! empty( $_POST['user_submitted'] ) ) { -
ultimate-faqs/tags/2.4.4/includes/Settings.class.php
r3352283 r3399160 70 70 'faq-fields' => array(), 71 71 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', 75 76 76 77 'label-retrieving-results' => __( 'Retrieving Results', 'ultimate-faqs' ), -
ultimate-faqs/tags/2.4.4/readme.txt
r3379689 r3399160 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 2.4. 36 Stable tag: 2.4.4 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 224 224 == Changelog == 225 225 226 = 2.4.4 (2025-11-19) = 227 - Added a new option to display a toggle icon for the category toggle feature. 228 226 229 = 2.4.3 (2025-10-16) = 227 230 - 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 4 4 * Plugin URI: https://www.etoilewebdesign.com/plugins/ultimate-faq/ 5 5 * Description: Full-featured FAQ and accordion plugin with advanced search, simple UI and easy-to-use Gutenberg blocks and shortcodes. 6 * Version: 2.4. 36 * Version: 2.4.4 7 7 * Author: Etoile Web Design 8 8 * Author URI: https://www.etoilewebdesign.com/ … … 12 12 * Requires PHP: 7.4 13 13 * WC requires at least: 7.1 14 * WC tested up to: 10. 214 * WC tested up to: 10.3 15 15 */ 16 16 … … 64 64 define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) ); 65 65 define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' ); 66 define( 'EWD_UFAQ_VERSION', '2.4. 3' );66 define( 'EWD_UFAQ_VERSION', '2.4.4' ); 67 67 68 68 define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' ); -
ultimate-faqs/tags/2.4.4/views/View.FAQs.class.php
r3352283 r3399160 651 651 652 652 /** 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 /** 653 690 * Add in default options if not overwritten by shortcode attributes 654 691 * -
ultimate-faqs/tags/2.4.4/views/View.SubmitFAQ.class.php
r3352283 r3399160 211 211 public function print_nonce_field() { 212 212 213 echo wp_nonce_field( -1, '_wp_nonce', true, false);213 echo wp_nonce_field( 'ewd_ufaq_nonce_value', 'ewd_ufaq_nonce', true, false); 214 214 } 215 215 -
ultimate-faqs/tags/2.4.4/views/View.class.php
r3063894 r3399160 162 162 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; }'; } 163 163 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 164 171 if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-background-color' ) != '' ) { 165 172 … … 172 179 if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) != '' ) { 173 180 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; }'; 176 183 } 177 184 -
ultimate-faqs/trunk/assets/css/ewd-ufaq.css
r3352283 r3399160 37 37 width: 100%; 38 38 clear: both; 39 display: flex; 40 align-items: center; 41 justify-content: space-between; 39 42 } 40 43 … … 516 519 517 520 .ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol, 521 .ewd-ufaq-faq-category-title .ewd-ufaq-category-post-margin-symbol, 518 522 .ewd-ufaq-toggle-all-symbol { 519 523 font-family: 'ewd-toggle-icon'; -
ultimate-faqs/trunk/assets/js/ewd-ufaq.js
r3352283 r3399160 149 149 jQuery( '.ewd-ufaq-faq-category-title-toggle' ).off( 'click' ).on( 'click', function() { 150 150 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(); 153 154 var category_inner_height = category_inner.outerHeight( true ); 154 155 var faqs_list = category_inner.parent(); … … 158 159 jQuery( '.ewd-ufaq-category-tabs-1' ).css( 'height', total_faqs_height + 'px' ); 159 160 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' ); 162 162 163 163 category_inner.toggleClass( 'ewd-ufaq-faq-category-body-hidden' ); 164 164 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 ) { 168 168 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 } ); 171 188 }); 172 189 … … 438 455 jQuery('.ewd-ufaq-collapse-all').removeClass('ewd-ufaq-hidden'); 439 456 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 }); 440 462 }); 441 463 … … 451 473 }); 452 474 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 }); 454 481 455 482 jQuery('.ewd-ufaq-expand-all').removeClass('ewd-ufaq-hidden'); -
ultimate-faqs/trunk/ewd-ufaq-templates/faqs-category-header.php
r3352283 r3399160 7 7 <?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo esc_html( $this->get_category_count( $this->current_category ) ); ?>)</span><?php } ?> 8 8 </<?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 } ?> 9 15 10 16 </div> -
ultimate-faqs/trunk/includes/FAQ.class.php
r3352283 r3399160 184 184 $this->validation_errors = array(); 185 185 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 186 198 // USER-SUBMITTED FLAG 187 199 if ( isset( $_POST['user_submitted'] ) and ! empty( $_POST['user_submitted'] ) ) { -
ultimate-faqs/trunk/includes/Settings.class.php
r3352283 r3399160 70 70 'faq-fields' => array(), 71 71 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', 75 76 76 77 'label-retrieving-results' => __( 'Retrieving Results', 'ultimate-faqs' ), -
ultimate-faqs/trunk/readme.txt
r3379689 r3399160 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 2.4. 36 Stable tag: 2.4.4 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 224 224 == Changelog == 225 225 226 = 2.4.4 (2025-11-19) = 227 - Added a new option to display a toggle icon for the category toggle feature. 228 226 229 = 2.4.3 (2025-10-16) = 227 230 - 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 4 4 * Plugin URI: https://www.etoilewebdesign.com/plugins/ultimate-faq/ 5 5 * Description: Full-featured FAQ and accordion plugin with advanced search, simple UI and easy-to-use Gutenberg blocks and shortcodes. 6 * Version: 2.4. 36 * Version: 2.4.4 7 7 * Author: Etoile Web Design 8 8 * Author URI: https://www.etoilewebdesign.com/ … … 12 12 * Requires PHP: 7.4 13 13 * WC requires at least: 7.1 14 * WC tested up to: 10. 214 * WC tested up to: 10.3 15 15 */ 16 16 … … 64 64 define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) ); 65 65 define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' ); 66 define( 'EWD_UFAQ_VERSION', '2.4. 3' );66 define( 'EWD_UFAQ_VERSION', '2.4.4' ); 67 67 68 68 define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' ); -
ultimate-faqs/trunk/views/View.FAQs.class.php
r3352283 r3399160 651 651 652 652 /** 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 /** 653 690 * Add in default options if not overwritten by shortcode attributes 654 691 * -
ultimate-faqs/trunk/views/View.SubmitFAQ.class.php
r3352283 r3399160 211 211 public function print_nonce_field() { 212 212 213 echo wp_nonce_field( -1, '_wp_nonce', true, false);213 echo wp_nonce_field( 'ewd_ufaq_nonce_value', 'ewd_ufaq_nonce', true, false); 214 214 } 215 215 -
ultimate-faqs/trunk/views/View.class.php
r3063894 r3399160 162 162 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; }'; } 163 163 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 164 171 if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-background-color' ) != '' ) { 165 172 … … 172 179 if ( $ewd_ufaq_controller->settings->get_setting( 'styling-block-font-color' ) != '' ) { 173 180 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; }'; 176 183 } 177 184
Note: See TracChangeset
for help on using the changeset viewer.