Completed
Push — develop ( a3eda8...2f2ee7 )
by Gennady
17:12
created
includes/widgets/search-widget/templates/field-date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 ?>
12 12
 
13 13
 <div class="gv-search-box gv-search-date">
14
-	<?php if( ! gv_empty( $search_field->label, false, false ) ) { ?>
14
+	<?php if ( ! gv_empty( $search_field->label, false, false ) ) { ?>
15 15
 	<label for="search-box-<?php echo esc_attr( $search_field->name ); ?>"><?php echo esc_html( $search_field->label ); ?></label>
16 16
 	<?php } ?>
17 17
 	<p>
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/field-link.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,16 +55,16 @@
 block discarded – undo
55 55
                 echo esc_html( $links_sep );
56 56
             }
57 57
 
58
-            $active = ( '' !== $search_value && in_array( $search_value, array( $choice['text'], $choice['value'] ) ) ) ? ' class="active"' : false;
58
+            $active = ( '' !== $search_value && in_array( $search_value, array( $choice[ 'text' ], $choice[ 'value' ] ) ) ) ? ' class="active"' : false;
59 59
 
60 60
             if ( $active ) {
61 61
                 $link = remove_query_arg( array( 'pagenum', $search_field->name ), $base_url );
62 62
             } else {
63
-                $link = add_query_arg( array( $search_field->name => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) );
63
+                $link = add_query_arg( array( $search_field->name => urlencode( $choice[ 'value' ] ) ), remove_query_arg( array( 'pagenum' ), $base_url ) );
64 64
             }
65 65
             ?>
66 66
 
67
-			<a href="<?php echo esc_url_raw( $link ); ?>" <?php echo $active; ?>><?php echo esc_html( $choice['text'] ); ?></a>
67
+			<a href="<?php echo esc_url_raw( $link ); ?>" <?php echo $active; ?>><?php echo esc_html( $choice[ 'text' ] ); ?></a>
68 68
 
69 69
 		<?php } ?>
70 70
 	</p>
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/field-input_text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 ?>
12 12
 <div class="gv-search-box gv-search-field-text">
13
-	<?php if( ! gv_empty( $search_field->label, false, false ) ) { ?>
13
+	<?php if ( ! gv_empty( $search_field->label, false, false ) ) { ?>
14 14
 	<label for="search-box-<?php echo esc_attr( $search_field->name ); ?>"><?php echo esc_html( $search_field->label ); ?></label>
15 15
 	<?php } ?>
16 16
 	<p>
Please login to merge, or discard this patch.