Version Description
(2021-12-29) = - Updated sanitizing and escaping.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- ewd-ufaq-templates/faq-ratings.php +1 -1
- ewd-ufaq-templates/faq-title.php +3 -3
- ewd-ufaq-templates/faqs-category-header.php +3 -3
- ewd-ufaq-templates/faqs-category-list-header.php +1 -1
- ewd-ufaq-templates/submit-faq-custom-field-checkbox.php +1 -1
- includes/DeactivationSurvey.class.php +5 -5
- includes/WPForms.class.php +1 -1
- includes/WooCommerce.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPage.class.php +1 -1
- lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php +2 -2
- readme.txt +4 -1
- ultimate-faqs.php +2 -2
- views/View.FAQ.class.php +4 -4
ewd-ufaq-templates/faq-ratings.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
<div class='ewd-ufaq-rating-button ewd-ufaq-down-vote <?php echo ( ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) != 'http://' ) ? 'ewd-ufaq-ratings-custom-image' : 'ewd-ufaq-ratings-default-image' ); ?>' data-faq_id='<?php echo $this->post->ID; ?>'>
|
13 |
<?php echo $this->get_thumbs_down_image(); ?>
|
14 |
-
<span><?php echo $this->get_down_votes(); ?></span>
|
15 |
</div>
|
16 |
</div>
|
17 |
|
11 |
|
12 |
<div class='ewd-ufaq-rating-button ewd-ufaq-down-vote <?php echo ( ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) != 'http://' ) ? 'ewd-ufaq-ratings-custom-image' : 'ewd-ufaq-ratings-default-image' ); ?>' data-faq_id='<?php echo $this->post->ID; ?>'>
|
13 |
<?php echo $this->get_thumbs_down_image(); ?>
|
14 |
+
<span><?php echo esc_html( $this->get_down_votes() ); ?></span>
|
15 |
</div>
|
16 |
</div>
|
17 |
|
ewd-ufaq-templates/faq-title.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
<a class='ewd-ufaq-post-margin' href='<?php echo esc_attr( $this->get_anchor_permalink() ); ?>'>
|
4 |
|
5 |
<div class='ewd-ufaq-post-margin-symbol <?php echo esc_attr( $this->get_color_block_shape() ); ?>'>
|
6 |
-
<span ><?php echo $this->get_toggle_symbol(); ?></span>
|
7 |
</div>
|
8 |
|
9 |
<div class='ewd-ufaq-faq-title-text'>
|
10 |
|
11 |
-
<<?php echo $this->get_option( 'styling-faq-heading-type' ); ?>>
|
12 |
<?php echo wp_kses_post( $this->faq_title ); ?>
|
13 |
-
</<?php echo $this->get_option( 'styling-faq-heading-type' ); ?>>
|
14 |
|
15 |
</div>
|
16 |
|
3 |
<a class='ewd-ufaq-post-margin' href='<?php echo esc_attr( $this->get_anchor_permalink() ); ?>'>
|
4 |
|
5 |
<div class='ewd-ufaq-post-margin-symbol <?php echo esc_attr( $this->get_color_block_shape() ); ?>'>
|
6 |
+
<span ><?php echo esc_attr( $this->get_toggle_symbol() ); ?></span>
|
7 |
</div>
|
8 |
|
9 |
<div class='ewd-ufaq-faq-title-text'>
|
10 |
|
11 |
+
<<?php echo esc_attr( $this->get_option( 'styling-faq-heading-type' ) ); ?>>
|
12 |
<?php echo wp_kses_post( $this->faq_title ); ?>
|
13 |
+
</<?php echo esc_attr( $this->get_option( 'styling-faq-heading-type' ) ); ?>>
|
14 |
|
15 |
</div>
|
16 |
|
ewd-ufaq-templates/faqs-category-header.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
<div class='ewd-ufaq-faq-category-title <?php echo ( $this->get_option( 'faq-category-toggle' ) ? 'ewd-ufaq-faq-category-title-toggle' : '' ); ?>' >
|
4 |
|
5 |
-
<<?php echo $this->get_option( 'styling-category-heading-type' ); ?>>
|
6 |
<?php echo esc_html( $this->get_category_name() ); ?>
|
7 |
-
<?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo $this->get_category_count(); ?>)</span><?php } ?>
|
8 |
-
</<?php echo $this->get_option( 'styling-category-heading-type' ); ?>>
|
9 |
|
10 |
</div>
|
11 |
|
2 |
|
3 |
<div class='ewd-ufaq-faq-category-title <?php echo ( $this->get_option( 'faq-category-toggle' ) ? 'ewd-ufaq-faq-category-title-toggle' : '' ); ?>' >
|
4 |
|
5 |
+
<<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>>
|
6 |
<?php echo esc_html( $this->get_category_name() ); ?>
|
7 |
+
<?php if ( $this->get_option( 'group-by-category-count' ) ) { ?> <span>(<?php echo esc_html( $this->get_category_count() ); ?>)</span><?php } ?>
|
8 |
+
</<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>>
|
9 |
|
10 |
</div>
|
11 |
|
ewd-ufaq-templates/faqs-category-list-header.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<div class='ewd-ufaq-faq-header-category'>
|
12 |
|
13 |
<div class='ewd-ufaq-faq-header-category-title' data-categoryid='<?php echo esc_attr( $category->term_id ); ?>'>
|
14 |
-
<<?php echo $this->get_option( 'styling-category-heading-type' ) ?>><?php echo esc_html( $category->name ); ?></<?php echo $this->get_option( 'styling-category-heading-type' ) ?>>
|
15 |
</div>
|
16 |
|
17 |
<?php foreach ( $category_faqs as $faq ) { ?>
|
11 |
<div class='ewd-ufaq-faq-header-category'>
|
12 |
|
13 |
<div class='ewd-ufaq-faq-header-category-title' data-categoryid='<?php echo esc_attr( $category->term_id ); ?>'>
|
14 |
+
<<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>><?php echo esc_html( $category->name ); ?></<?php echo esc_attr( $this->get_option( 'styling-category-heading-type' ) ); ?>>
|
15 |
</div>
|
16 |
|
17 |
<?php foreach ( $category_faqs as $faq ) { ?>
|
ewd-ufaq-templates/submit-faq-custom-field-checkbox.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<?php foreach ( $this->get_custom_field_options() as $option ) { ?>
|
12 |
|
13 |
<div class='ewd-ufaq-submit-faq-radio-checkbox-each'>
|
14 |
-
<input type='checkbox' name='<?php echo esc_attr( $input_name ); ?>[]' value='<?php echo $option; ?>' <?php echo ( ( ! empty( $_POST[ $input_name ] ) and is_array( $_POST[ $input_name ] ) and in_array( $option, $_POST[ $input_name ] ) ) ? 'checked' : '' ); ?>/><?php echo esc_html( $option ); ?>
|
15 |
</div>
|
16 |
|
17 |
<?php } ?>
|
11 |
<?php foreach ( $this->get_custom_field_options() as $option ) { ?>
|
12 |
|
13 |
<div class='ewd-ufaq-submit-faq-radio-checkbox-each'>
|
14 |
+
<input type='checkbox' name='<?php echo esc_attr( $input_name ); ?>[]' value='<?php echo esc_attr( $option ); ?>' <?php echo ( ( ! empty( $_POST[ $input_name ] ) and is_array( $_POST[ $input_name ] ) and in_array( $option, $_POST[ $input_name ] ) ) ? 'checked' : '' ); ?>/><?php echo esc_html( $option ); ?>
|
15 |
</div>
|
16 |
|
17 |
<?php } ?>
|
includes/DeactivationSurvey.class.php
CHANGED
@@ -54,18 +54,18 @@ class ewdufaqDeactivationSurvey {
|
|
54 |
?>
|
55 |
<div class="ewd-ufaq-deactivate-survey-modal" id="ewd-ufaq-deactivate-survey-ultimate-faqs">
|
56 |
<div class="ewd-ufaq-deactivate-survey-wrap">
|
57 |
-
<form class="ewd-ufaq-deactivate-survey" method="post" data-installtime="<?php echo $install_time; ?>">
|
58 |
<span class="ewd-ufaq-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . __( 'Quick Feedback', 'ultimate-faqs' ); ?></span>
|
59 |
<span class="ewd-ufaq-deactivate-survey-desc"><?php echo __('If you have a moment, please share why you are deactivating Ultimate FAQs:', 'ultimate-faqs' ); ?></span>
|
60 |
<div class="ewd-ufaq-deactivate-survey-options">
|
61 |
<?php foreach ( $options as $id => $option ) : ?>
|
62 |
<div class="ewd-ufaq-deactivate-survey-option">
|
63 |
-
<label for="ewd-ufaq-deactivate-survey-option-ultimate-faqs-<?php echo $id; ?>" class="ewd-ufaq-deactivate-survey-option-label">
|
64 |
-
<input id="ewd-ufaq-deactivate-survey-option-ultimate-faqs-<?php echo $id; ?>" class="ewd-ufaq-deactivate-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
|
65 |
-
<span class="ewd-ufaq-deactivate-survey-option-reason"><?php echo $option['title']; ?></span>
|
66 |
</label>
|
67 |
<?php if ( ! empty( $option['details'] ) ) : ?>
|
68 |
-
<input class="ewd-ufaq-deactivate-survey-option-details" type="text" placeholder="<?php echo $option['details']; ?>" />
|
69 |
<?php endif; ?>
|
70 |
</div>
|
71 |
<?php endforeach; ?>
|
54 |
?>
|
55 |
<div class="ewd-ufaq-deactivate-survey-modal" id="ewd-ufaq-deactivate-survey-ultimate-faqs">
|
56 |
<div class="ewd-ufaq-deactivate-survey-wrap">
|
57 |
+
<form class="ewd-ufaq-deactivate-survey" method="post" data-installtime="<?php echo esc_attr( $install_time ); ?>">
|
58 |
<span class="ewd-ufaq-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . __( 'Quick Feedback', 'ultimate-faqs' ); ?></span>
|
59 |
<span class="ewd-ufaq-deactivate-survey-desc"><?php echo __('If you have a moment, please share why you are deactivating Ultimate FAQs:', 'ultimate-faqs' ); ?></span>
|
60 |
<div class="ewd-ufaq-deactivate-survey-options">
|
61 |
<?php foreach ( $options as $id => $option ) : ?>
|
62 |
<div class="ewd-ufaq-deactivate-survey-option">
|
63 |
+
<label for="ewd-ufaq-deactivate-survey-option-ultimate-faqs-<?php echo esc_attr( $id ); ?>" class="ewd-ufaq-deactivate-survey-option-label">
|
64 |
+
<input id="ewd-ufaq-deactivate-survey-option-ultimate-faqs-<?php echo esc_attr( $id ); ?>" class="ewd-ufaq-deactivate-survey-option-input" type="radio" name="code" value="<?php echo esc_attr( $id ); ?>" />
|
65 |
+
<span class="ewd-ufaq-deactivate-survey-option-reason"><?php echo esc_html( $option['title'] ); ?></span>
|
66 |
</label>
|
67 |
<?php if ( ! empty( $option['details'] ) ) : ?>
|
68 |
+
<input class="ewd-ufaq-deactivate-survey-option-details" type="text" placeholder="<?php echo esc_attr( $option['details'] ); ?>" />
|
69 |
<?php endif; ?>
|
70 |
</div>
|
71 |
<?php endforeach; ?>
|
includes/WPForms.class.php
CHANGED
@@ -126,7 +126,7 @@ if ( !class_exists( 'ewdufaqWPForms' ) ) {
|
|
126 |
?>
|
127 |
|
128 |
<div class="ewd-ufaq-wpforms-label ewd-ufaq-hidden"><?php esc_html_e( 'Possible FAQs related to your message:', 'ultimate-faqs' ); ?></div>
|
129 |
-
<div class="ewd-ufaq-wpforms-faq-results ewd-ufaq-hidden"><?php echo do_shortcode( '[ultimate-faqs post__in_string="-1" post_count="' . $post_count . '"]' ); ?></div>
|
130 |
|
131 |
<?php }
|
132 |
|
126 |
?>
|
127 |
|
128 |
<div class="ewd-ufaq-wpforms-label ewd-ufaq-hidden"><?php esc_html_e( 'Possible FAQs related to your message:', 'ultimate-faqs' ); ?></div>
|
129 |
+
<div class="ewd-ufaq-wpforms-faq-results ewd-ufaq-hidden"><?php echo do_shortcode( '[ultimate-faqs post__in_string="-1" post_count="' . absint( $post_count ) . '"]' ); ?></div>
|
130 |
|
131 |
<?php }
|
132 |
|
includes/WooCommerce.class.php
CHANGED
@@ -101,7 +101,7 @@ if ( !class_exists( 'ewdufaqWooCommerce' ) ) {
|
|
101 |
if ( ! empty( $current_faqs ) ) {
|
102 |
|
103 |
$faq_list = implode( ',', $current_faqs );
|
104 |
-
echo do_shortcode( "[ultimate-faqs post__in_string='". $faq_list . "']" );
|
105 |
}
|
106 |
else {
|
107 |
|
@@ -116,7 +116,7 @@ if ( !class_exists( 'ewdufaqWooCommerce' ) ) {
|
|
116 |
if ( $ufaq_wc_category ) { $ufaq_wc_category_list .= ',' . $ufaq_wc_category->slug; }
|
117 |
}
|
118 |
}
|
119 |
-
echo do_shortcode( "[ultimate-faqs include_category='". $ufaq_product_category->slug . $ufaq_wc_category_list . "']" );
|
120 |
}
|
121 |
}
|
122 |
|
101 |
if ( ! empty( $current_faqs ) ) {
|
102 |
|
103 |
$faq_list = implode( ',', $current_faqs );
|
104 |
+
echo do_shortcode( "[ultimate-faqs post__in_string='". sanitize_text_field( $faq_list ) . "']" );
|
105 |
}
|
106 |
else {
|
107 |
|
116 |
if ( $ufaq_wc_category ) { $ufaq_wc_category_list .= ',' . $ufaq_wc_category->slug; }
|
117 |
}
|
118 |
}
|
119 |
+
echo do_shortcode( "[ultimate-faqs include_category='". sanitize_text_field( $ufaq_product_category->slug . $ufaq_wc_category_list ) . "']" );
|
120 |
}
|
121 |
}
|
122 |
|
lib/simple-admin-pages/classes/AdminPage.class.php
CHANGED
@@ -203,7 +203,7 @@ class sapAdminPage_2_6_3 {
|
|
203 |
}
|
204 |
|
205 |
$active = $current_page == $section->id ? ' nav-tab-active' : '';
|
206 |
-
echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $section->title ) . '" class="nav-tab' . $active . '">';
|
207 |
echo esc_html( $section->title );
|
208 |
echo '</a>';
|
209 |
}
|
203 |
}
|
204 |
|
205 |
$active = $current_page == $section->id ? ' nav-tab-active' : '';
|
206 |
+
echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $section->title ) . '" class="nav-tab' . esc_attr( $active ) . '">';
|
207 |
echo esc_html( $section->title );
|
208 |
echo '</a>';
|
209 |
}
|
lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php
CHANGED
@@ -106,7 +106,7 @@ class sapAdminPageSettingInfiniteTable_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
|
106 |
<?php endif; ?>
|
107 |
<?php if ($field['type'] == 'hidden') : ?>
|
108 |
<span class='sap-infinite-table-hidden-value'><?php echo esc_html( $row->$field_id ); ?></span>
|
109 |
-
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo $row->$field_id; ?>' />
|
110 |
<?php endif; ?>
|
111 |
<?php if ($field['type'] == 'select') : ?>
|
112 |
<select data-name='<?php echo esc_attr( $field_id ); ?>'>
|
@@ -138,7 +138,7 @@ class sapAdminPageSettingInfiniteTable_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
|
138 |
<input type='text' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
139 |
<?php endif; ?>
|
140 |
<?php if ($field['type'] == 'textarea') : ?>
|
141 |
-
<textarea data-name='<?php echo
|
142 |
<?php endif; ?>
|
143 |
<?php if ($field['type'] == 'number') : ?>
|
144 |
<input type='number' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
106 |
<?php endif; ?>
|
107 |
<?php if ($field['type'] == 'hidden') : ?>
|
108 |
<span class='sap-infinite-table-hidden-value'><?php echo esc_html( $row->$field_id ); ?></span>
|
109 |
+
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo esc_attr( $row->$field_id ); ?>' />
|
110 |
<?php endif; ?>
|
111 |
<?php if ($field['type'] == 'select') : ?>
|
112 |
<select data-name='<?php echo esc_attr( $field_id ); ?>'>
|
138 |
<input type='text' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
139 |
<?php endif; ?>
|
140 |
<?php if ($field['type'] == 'textarea') : ?>
|
141 |
+
<textarea data-name='<?php echo esc_attr( $field_id ); ?>'></textarea>
|
142 |
<?php endif; ?>
|
143 |
<?php if ($field['type'] == 'number') : ?>
|
144 |
<input type='number' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Rustaurius, EtoileWebDesign
|
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -267,6 +267,9 @@ Video 3 - FAQs Ordering
|
|
267 |
|
268 |
== Changelog ==
|
269 |
|
|
|
|
|
|
|
270 |
= 2.1.3 (2021-12-24) =
|
271 |
- Updated sanitizing and escaping.
|
272 |
- Added stable tag.
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 2.1.4
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 2.1.4 (2021-12-29) =
|
271 |
+
- Updated sanitizing and escaping.
|
272 |
+
|
273 |
= 2.1.3 (2021-12-24) =
|
274 |
- Updated sanitizing and escaping.
|
275 |
- Added stable tag.
|
ultimate-faqs.php
CHANGED
@@ -6,7 +6,7 @@ Description: FAQ and accordion plugin with easy to use Gutenberg blocks, shortco
|
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
-
Version: 2.1.
|
10 |
WC requires at least: 3.0
|
11 |
WC tested up to: 6.0
|
12 |
*/
|
@@ -43,7 +43,7 @@ class ewdufaqInit {
|
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
-
define( 'EWD_UFAQ_VERSION', '2.1.
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
+
Version: 2.1.4
|
10 |
WC requires at least: 3.0
|
11 |
WC tested up to: 6.0
|
12 |
*/
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
+
define( 'EWD_UFAQ_VERSION', '2.1.4' );
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|
views/View.FAQ.class.php
CHANGED
@@ -520,7 +520,7 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
520 |
|
521 |
$category_url = $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ? $this->current_url . 'faq-category/' . urlencode( $category->slug ) . '/' : add_query_arg( 'include_category', urlencode( $category->slug ), $this->current_url );
|
522 |
|
523 |
-
return empty( $ewd_ufaq_controller->single_page_print ) ? '<a href="' . esc_attr( $category_url ) . '">' . $category->name . '</a>' : $category->name;
|
524 |
}
|
525 |
|
526 |
/**
|
@@ -544,7 +544,7 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
544 |
|
545 |
$tag_url = $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ? $this->current_url . 'faq-tag/' . urlencode( $tag->slug ) . '/' : add_query_arg( 'include_tag', urlencode( $tag->slug ), $this->current_url );
|
546 |
|
547 |
-
return empty( $ewd_ufaq_controller->single_page_print ) ? '<a href="' . esc_attr( $tag_url ) . '">' . $tag->name . '</a>' : $tag->name;
|
548 |
}
|
549 |
|
550 |
/**
|
@@ -557,7 +557,7 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
557 |
|
558 |
$img_url = ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) != 'http://' ) ? $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) : EWD_UFAQ_PLUGIN_URL . '/assets/img/Thumbs-up-icon.png';
|
559 |
|
560 |
-
return '<img src="' .
|
561 |
}
|
562 |
|
563 |
/**
|
@@ -580,7 +580,7 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
580 |
|
581 |
$img_url = ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) != 'http://' ) ? $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) : EWD_UFAQ_PLUGIN_URL . '/assets/img/Thumbs-down-icon.png';
|
582 |
|
583 |
-
return '<img src="' .
|
584 |
}
|
585 |
|
586 |
/**
|
520 |
|
521 |
$category_url = $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ? $this->current_url . 'faq-category/' . urlencode( $category->slug ) . '/' : add_query_arg( 'include_category', urlencode( $category->slug ), $this->current_url );
|
522 |
|
523 |
+
return empty( $ewd_ufaq_controller->single_page_print ) ? '<a href="' . esc_attr( $category_url ) . '">' . esc_html( $category->name ) . '</a>' : esc_html( $category->name );
|
524 |
}
|
525 |
|
526 |
/**
|
544 |
|
545 |
$tag_url = $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ? $this->current_url . 'faq-tag/' . urlencode( $tag->slug ) . '/' : add_query_arg( 'include_tag', urlencode( $tag->slug ), $this->current_url );
|
546 |
|
547 |
+
return empty( $ewd_ufaq_controller->single_page_print ) ? '<a href="' . esc_attr( $tag_url ) . '">' . esc_html( $tag->name ) . '</a>' : esc_html( $tag->name );
|
548 |
}
|
549 |
|
550 |
/**
|
557 |
|
558 |
$img_url = ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) != 'http://' ) ? $ewd_ufaq_controller->settings->get_setting( 'thumbs-up-image' ) : EWD_UFAQ_PLUGIN_URL . '/assets/img/Thumbs-up-icon.png';
|
559 |
|
560 |
+
return '<img src="' . esc_url( $img_url ) . '" />';
|
561 |
}
|
562 |
|
563 |
/**
|
580 |
|
581 |
$img_url = ( $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) and $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) != 'http://' ) ? $ewd_ufaq_controller->settings->get_setting( 'thumbs-down-image' ) : EWD_UFAQ_PLUGIN_URL . '/assets/img/Thumbs-down-icon.png';
|
582 |
|
583 |
+
return '<img src="' . esc_url( $img_url ) . '" />';
|
584 |
}
|
585 |
|
586 |
/**
|