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(); ?>
';
- }
+ } 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();
+ }
+ }
+ ?>
+