From a4ce3ff9077a5d1862d4d5ca81814652da062b6b Mon Sep 17 00:00:00 2001 From: LebCit Date: Mon, 3 Dec 2018 21:45:26 +0200 Subject: [PATCH] Reflect Customizer's changes. From Customizer to live site. --- class-full-screen-morphing-search.php | 54 +++++++++++++++++++++------ 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/class-full-screen-morphing-search.php b/class-full-screen-morphing-search.php index 165ab1f..d1471d1 100644 --- a/class-full-screen-morphing-search.php +++ b/class-full-screen-morphing-search.php @@ -84,7 +84,8 @@ class Full_Screen_Morphing_Search { // Setting the placeholder as a variable to output the option depending on the case. $fsmsp_options = get_option( 'fsmsp_options' ); // Associative Array 'fsmsp_options'. $fsmsp_placeholder = $fsmsp_options['fsmsp_search_form_text']; // Selecting the key to get the value. - if ( '' !== $fsmsp_placeholder ) { + // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- strict comparison not working ! + if ( '' != $fsmsp_placeholder ) { $fsmsp_placeholder = esc_attr( $fsmsp_placeholder ); } else { $fsmsp_placeholder = esc_attr_x( 'Search …', 'placeholder', 'full-screen-morphing-search' ); @@ -113,15 +114,28 @@ class Full_Screen_Morphing_Search { $fsmsprp->the_post(); ?>
+ 'round' ) ); - } else { - echo ' '; - } + } else { ?> - + + 'round' ) ); + } else { + // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- strict comparison not working ! + if ( '' == $fsmsp_options['fsmsp_article_icon'] ) { + echo ''; + } else { + full_screen_morphing_search_article_icon(); + } + } + ?> +

-
+
+ + '; + } else { + full_screen_morphing_search_category_icon(); + } + ?> + '; print "

" . esc_html( $fsmspcat . ' (' . $fsmsptc_count . ')' ) . '

'; ?>
@@ -184,9 +207,18 @@ class Full_Screen_Morphing_Search { $fsmsptag = str_replace( ' ', ' ', esc_html( $fsmsptag ) ); if ( $i < 6 ) { ?> -
+
+ + '; + } else { + full_screen_morphing_search_tag_icon(); + } + ?> + '; print "

" . esc_html( $fsmsptag . ' (' . $fsmsptt_count . ')' ) . '

'; ?>