Completed
Push — develop ( a3eda8...2f2ee7 )
by Gennady
17:12
created
includes/widgets/search-widget/templates/widget.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		/**
29 29
 		 * @action `gravityview_search_widget_field_before` Before each search input is rendered (other than the submit button)
30 30
 		 * @param \GV\Widget $widget The widget.
31
-         * @param array $search_field
31
+		 * @param array $search_field
32 32
 		 * @param \GV\Template_Context $gravityview The context.
33 33
 		 */
34 34
 		do_action( 'gravityview_search_widget_field_before', $widget, $search_field, $gravityview );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		/**
46 46
 		 * @action `gravityview_search_widget_field_after` After each search input is rendered (other than the submit button)
47 47
 		 * @param \GV\Widget $widget The widget.
48
-         * @param array $search_field
48
+		 * @param array $search_field
49 49
 		 * @param \GV\Template_Context $gravityview The context.
50 50
 		 */
51 51
 		do_action( 'gravityview_search_widget_field_after', $widget, $search_field, $gravityview );
@@ -60,6 +60,6 @@  discard block
 block discarded – undo
60 60
 
61 61
 	if ( $has_inputs ) {
62 62
 		$template->get_template_part( 'submit' );
63
-    }
63
+	}
64 64
 ?>
65 65
 </form>
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/field-link.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -47,22 +47,22 @@
 block discarded – undo
47 47
 
48 48
         <?php
49 49
 
50
-        $search_value = \GV\Utils::_GET( $search_field->name );
50
+		$search_value = \GV\Utils::_GET( $search_field->name );
51 51
 
52
-        foreach ( $search_field->choices as $k => $choice ) {
52
+		foreach ( $search_field->choices as $k => $choice ) {
53 53
 
54
-            if ( 0 != $k ) {
55
-                echo esc_html( $links_sep );
56
-            }
54
+			if ( 0 != $k ) {
55
+				echo esc_html( $links_sep );
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
-            if ( $active ) {
61
-                $link = remove_query_arg( array( 'pagenum', $search_field->name ), $base_url );
62
-            } else {
63
-                $link = add_query_arg( array( $search_field->name => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) );
64
-            }
65
-            ?>
60
+			if ( $active ) {
61
+				$link = remove_query_arg( array( 'pagenum', $search_field->name ), $base_url );
62
+			} else {
63
+				$link = add_query_arg( array( $search_field->name => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) );
64
+			}
65
+			?>
66 66
 
67 67
 			<a href="<?php echo esc_url_raw( $link ); ?>" <?php echo $active; ?>><?php echo esc_html( $choice['text'] ); ?></a>
68 68
 
Please login to merge, or discard this patch.