Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/widgets/class-gravityview-widget-page-links.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -11,38 +11,38 @@  discard block
 block discarded – undo
11 11
 
12 12
 	function __construct() {
13 13
 
14
-		$this->widget_description = __('Links to multiple pages of results.', 'gravityview' );
14
+		$this->widget_description = __('Links to multiple pages of results.', 'gravityview');
15 15
 
16
-		$default_values = array( 'header' => 1, 'footer' => 1 );
17
-		$settings = array( 'show_all' => array(
16
+		$default_values = array('header' => 1, 'footer' => 1);
17
+		$settings = array('show_all' => array(
18 18
 			'type' => 'checkbox',
19
-			'label' => __( 'Show each page number', 'gravityview' ),
19
+			'label' => __('Show each page number', 'gravityview'),
20 20
 			'desc' => __('Show every page number instead of summary (eg: 1 2 3 ... 8 »)', 'gravityview'),
21 21
 			'value' => false
22 22
 		));
23
-		parent::__construct( __( 'Page Links', 'gravityview' ) , 'page_links', $default_values, $settings );
23
+		parent::__construct(__('Page Links', 'gravityview'), 'page_links', $default_values, $settings);
24 24
 
25 25
 	}
26 26
 
27
-	public function render_frontend( $widget_args, $content = '', $context = '') {
27
+	public function render_frontend($widget_args, $content = '', $context = '') {
28 28
 		$gravityview_view = GravityView_View::getInstance();
29 29
 
30
-		if( !$this->pre_render_frontend() ) {
30
+		if (!$this->pre_render_frontend()) {
31 31
 			return;
32 32
 		}
33 33
 
34 34
 		$page_size = $gravityview_view->paging['page_size'];
35 35
 		$total = $gravityview_view->total_entries;
36 36
 
37
-		$atts = shortcode_atts( array(
38
-			'show_all' => !empty( $this->settings['show_all']['default'] ),
39
-		), $widget_args, 'gravityview_widget_page_links' );
37
+		$atts = shortcode_atts(array(
38
+			'show_all' => !empty($this->settings['show_all']['default']),
39
+		), $widget_args, 'gravityview_widget_page_links');
40 40
 
41 41
 		// displaying info
42
-		$curr_page = empty( $_GET['pagenum'] ) ? 1 : intval( $_GET['pagenum'] );
42
+		$curr_page = empty($_GET['pagenum']) ? 1 : intval($_GET['pagenum']);
43 43
 
44 44
 		$page_link_args = array(
45
-			'base' => add_query_arg('pagenum','%#%', gv_directory_link() ),
45
+			'base' => add_query_arg('pagenum', '%#%', gv_directory_link()),
46 46
 			'format' => '&pagenum=%#%',
47 47
 			'add_args' => array(), //
48 48
 			'prev_text' => '«',
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 			'type' => 'list',
51 51
 			'end_size' => 1,
52 52
 			'mid_size' => 2,
53
-			'total' => empty( $page_size ) ? 0 : ceil( $total / $page_size ),
53
+			'total' => empty($page_size) ? 0 : ceil($total / $page_size),
54 54
 			'current' => $curr_page,
55
-			'show_all' => !empty( $atts['show_all'] ), // to be available at backoffice
55
+			'show_all' => !empty($atts['show_all']), // to be available at backoffice
56 56
 		);
57 57
 
58 58
 		/**
@@ -60,16 +60,16 @@  discard block
 block discarded – undo
60 60
 		 * @since 1.1.4
61 61
 		 * @param array  $page_link_args Array of arguments for the `paginate_links()` function. [Read more about `paginate_links()`](http://developer.wordpress.org/reference/functions/paginate_links/)
62 62
 		 */
63
-		$page_link_args = apply_filters('gravityview_page_links_args', $page_link_args );
63
+		$page_link_args = apply_filters('gravityview_page_links_args', $page_link_args);
64 64
 
65
-		$page_links = paginate_links( $page_link_args );
65
+		$page_links = paginate_links($page_link_args);
66 66
 
67
-		if( !empty( $page_links )) {
68
-			$class = !empty( $widget_args['custom_class'] ) ? $widget_args['custom_class'] : '';
69
-			$class = gravityview_sanitize_html_class( $class );
70
-			echo '<div class="gv-widget-page-links '.$class.'">'. $page_links .'</div>';
67
+		if (!empty($page_links)) {
68
+			$class = !empty($widget_args['custom_class']) ? $widget_args['custom_class'] : '';
69
+			$class = gravityview_sanitize_html_class($class);
70
+			echo '<div class="gv-widget-page-links '.$class.'">'.$page_links.'</div>';
71 71
 		} else {
72
-			do_action( 'gravityview_log_debug', 'GravityView_Widget_Page_Links[render_frontend] No page links; paginate_links() returned empty response.' );
72
+			do_action('gravityview_log_debug', 'GravityView_Widget_Page_Links[render_frontend] No page links; paginate_links() returned empty response.');
73 73
 		}
74 74
 
75 75
 	}
Please login to merge, or discard this patch.
includes/widgets/class-gravityview-widget-pagination-info.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 	function __construct() {
18 18
 
19
-		$this->widget_description = __('Summary of the number of visible entries out of the total results.', 'gravityview' );
19
+		$this->widget_description = __('Summary of the number of visible entries out of the total results.', 'gravityview');
20 20
 
21 21
 		$default_values = array(
22 22
 			'header' => 1,
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
 
26 26
 		$settings = array();
27 27
 
28
-		parent::__construct( __( 'Show Pagination Info', 'gravityview' ) , 'page_info', $default_values, $settings );
28
+		parent::__construct(__('Show Pagination Info', 'gravityview'), 'page_info', $default_values, $settings);
29 29
 	}
30 30
 
31
-	public function render_frontend( $widget_args, $content = '', $context = '') {
31
+	public function render_frontend($widget_args, $content = '', $context = '') {
32 32
 		$gravityview_view = GravityView_View::getInstance();
33 33
 
34
-		if( !$this->pre_render_frontend() ) {
34
+		if (!$this->pre_render_frontend()) {
35 35
 			return;
36 36
 		}
37 37
 
38
-		if( !empty( $widget_args['title'] ) ) {
38
+		if (!empty($widget_args['title'])) {
39 39
 			echo $widget_args['title'];
40 40
 		}
41 41
 
@@ -45,16 +45,16 @@  discard block
 block discarded – undo
45 45
 
46 46
 		$output = '';
47 47
 
48
-		if( ! empty( $pagination_counts ) ) {
48
+		if (!empty($pagination_counts)) {
49 49
 
50 50
 			$first = $pagination_counts['first'];
51 51
 			$last = $pagination_counts['last'];
52 52
 			$total = $pagination_counts['total'];
53 53
 
54
-			$class = !empty( $widget_args['custom_class'] ) ? $widget_args['custom_class'] : '';
55
-			$class = gravityview_sanitize_html_class( $class );
54
+			$class = !empty($widget_args['custom_class']) ? $widget_args['custom_class'] : '';
55
+			$class = gravityview_sanitize_html_class($class);
56 56
 
57
-			$output = '<div class="gv-widget-pagination '.$class.'"><p>'. sprintf(__( 'Displaying %1$s - %2$s of %3$s', 'gravityview' ), number_format_i18n( $first ), number_format_i18n( $last ), number_format_i18n( $total ) ) . '</p></div>';
57
+			$output = '<div class="gv-widget-pagination '.$class.'"><p>'.sprintf(__('Displaying %1$s - %2$s of %3$s', 'gravityview'), number_format_i18n($first), number_format_i18n($last), number_format_i18n($total)).'</p></div>';
58 58
 		}
59 59
 
60 60
 		/**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		 * @param int $last Last entry #
65 65
 		 * @param int $total Total entries #
66 66
 		 */
67
-		echo apply_filters( 'gravityview_pagination_output', $output, $first, $last, $total );
67
+		echo apply_filters('gravityview_pagination_output', $output, $first, $last, $total);
68 68
 
69 69
 	}
70 70
 
Please login to merge, or discard this patch.
includes/widgets/poll/class-gravityview-widget-poll.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	function __construct() {
23 23
 
24
-		$this->widget_description = __('Displays the results of Poll Fields that exist in the form.', 'gravityview' );
24
+		$this->widget_description = __('Displays the results of Poll Fields that exist in the form.', 'gravityview');
25 25
 
26
-		$this->widget_subtitle = sprintf( _x('Note: this will display poll results for %sall form entries%s, not only the entries displayed in the View.', 'The string placeholders are for emphasis HTML', 'gravityview' ), '<em>', '</em>' );
26
+		$this->widget_subtitle = sprintf(_x('Note: this will display poll results for %sall form entries%s, not only the entries displayed in the View.', 'The string placeholders are for emphasis HTML', 'gravityview'), '<em>', '</em>');
27 27
 
28 28
 		$default_values = array(
29 29
 			'header' => 1,
@@ -35,18 +35,18 @@  discard block
 block discarded – undo
35 35
 				'label' => __('Display Percentages', 'gravityview'),
36 36
 				'type' => 'checkbox',
37 37
 				'value' => true,
38
-				'tooltip' => __( 'Display results percentages as part of results? Supported values are: true, false. Defaults to "true".', 'gravityview' ),
38
+				'tooltip' => __('Display results percentages as part of results? Supported values are: true, false. Defaults to "true".', 'gravityview'),
39 39
 			),
40 40
 			'counts' => array(
41 41
 				'label' => __('Display Counts', 'gravityview'),
42 42
 				'type' => 'checkbox',
43 43
 				'value' => true,
44
-				'tooltip' => __( 'Display number of times each choice has been selected when displaying results? Supported values are: true, false. Defaults to "true".', 'gravityview' ),
44
+				'tooltip' => __('Display number of times each choice has been selected when displaying results? Supported values are: true, false. Defaults to "true".', 'gravityview'),
45 45
 			),
46 46
 			'style' => array(
47 47
 				'type' => 'select',
48 48
 				'label' => __('Style', 'gravityview'),
49
-				'tooltip' => __( 'The Polls Add-On currently supports 4 built in styles: red, green, orange, blue. Defaults to "green".', 'gravityview' ),
49
+				'tooltip' => __('The Polls Add-On currently supports 4 built in styles: red, green, orange, blue. Defaults to "green".', 'gravityview'),
50 50
 				'value' => 'green',
51 51
 				'choices' => array(
52 52
 					'green' => __('Green', 'gravityview'),
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
 			)
58 58
 		);
59 59
 
60
-		parent::__construct( __( 'Poll Results', 'gravityview' ) , 'poll', $default_values, $settings );
60
+		parent::__construct(__('Poll Results', 'gravityview'), 'poll', $default_values, $settings);
61 61
 
62 62
 		// frontend - add template path
63
-		add_filter( 'gravityview_template_paths', array( $this, 'add_template_path' ) );
63
+		add_filter('gravityview_template_paths', array($this, 'add_template_path'));
64 64
 
65 65
 	}
66 66
 
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
 	 * @since 1.8
70 70
 	 * @param array $file_paths List of template paths ordered
71 71
 	 */
72
-	function add_template_path( $file_paths ) {
72
+	function add_template_path($file_paths) {
73 73
 
74 74
 		$index = 126;
75 75
 
76 76
 		// Index 100 is the default GravityView template path.
77
-		$file_paths[ $index ] = plugin_dir_path( __FILE__ ) . 'templates/';
77
+		$file_paths[$index] = plugin_dir_path(__FILE__).'templates/';
78 78
 
79 79
 		return $file_paths;
80 80
 	}
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 
89 89
 		$GFPolls = GFPolls::get_instance();
90 90
 
91
-		wp_enqueue_script('gpoll_js', $GFPolls->get_base_url() . '/js/gpoll.js', array('jquery'), $GFPolls->_version);
91
+		wp_enqueue_script('gpoll_js', $GFPolls->get_base_url().'/js/gpoll.js', array('jquery'), $GFPolls->_version);
92 92
 
93 93
 		$GFPolls->localize_scripts();
94 94
 
95
-		wp_enqueue_style('gpoll_css', $GFPolls->get_base_url() . '/css/gpoll.css', null, $GFPolls->_version);
95
+		wp_enqueue_style('gpoll_css', $GFPolls->get_base_url().'/css/gpoll.css', null, $GFPolls->_version);
96 96
 	}
97 97
 
98 98
 	/**
@@ -102,20 +102,20 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function pre_render_frontend() {
104 104
 
105
-		if( !class_exists('GFPolls') ) {
105
+		if (!class_exists('GFPolls')) {
106 106
 
107 107
 			$return = false;
108 108
 
109
-			do_action( 'gravityview_log_error', 'Poll Widget not displayed; the Poll Addon is not loaded' );
109
+			do_action('gravityview_log_error', 'Poll Widget not displayed; the Poll Addon is not loaded');
110 110
 
111 111
 		} else {
112 112
 
113 113
 			$return = parent::pre_render_frontend();
114 114
 
115
-			$poll_fields = GFCommon::get_fields_by_type( GravityView_View::getInstance()->getForm(), array( 'poll' ) );
115
+			$poll_fields = GFCommon::get_fields_by_type(GravityView_View::getInstance()->getForm(), array('poll'));
116 116
 
117
-			if ( empty ( $poll_fields ) ) {
118
-				do_action( 'gravityview_log_error', 'Poll Widget not displayed; there are no poll fields for the form' );
117
+			if (empty ($poll_fields)) {
118
+				do_action('gravityview_log_error', 'Poll Widget not displayed; there are no poll fields for the form');
119 119
 				$return = false;
120 120
 			}
121 121
 		}
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 *
131 131
 	 * @return array Final poll widget settings
132 132
 	 */
133
-	function get_frontend_settings( $widget_settings ) {
133
+	function get_frontend_settings($widget_settings) {
134 134
 
135 135
 		$default_settings = array(
136 136
 			'field' => 0,
@@ -139,14 +139,14 @@  discard block
 block discarded – undo
139 139
 			'counts' => true,
140 140
 		);
141 141
 
142
-		$settings = wp_parse_args( $widget_settings, $default_settings );
142
+		$settings = wp_parse_args($widget_settings, $default_settings);
143 143
 
144 144
 		/**
145 145
 		 * @filter `gravityview/widget/poll/settings` Modify display settings for the poll widget
146 146
 		 * @since 1.8
147 147
 		 * @param array $settings Settings with `field`, `style`, `percentages` and `counts` keys
148 148
 		 */
149
-		$settings = apply_filters( 'gravityview/widget/poll/settings', $settings );
149
+		$settings = apply_filters('gravityview/widget/poll/settings', $settings);
150 150
 
151 151
 		return $settings;
152 152
 	}
@@ -158,29 +158,29 @@  discard block
 block discarded – undo
158 158
 	 *
159 159
 	 * @since 1.8
160 160
 	 */
161
-	public function render_frontend( $widget_args, $content = '', $context = '') {
161
+	public function render_frontend($widget_args, $content = '', $context = '') {
162 162
 
163
-		if( !$this->pre_render_frontend() ) {
163
+		if (!$this->pre_render_frontend()) {
164 164
 			return;
165 165
 		}
166 166
 
167 167
 		// Make sure the class is loaded in DataTables
168
-		if( !class_exists( 'GFFormDisplay' ) ) {
169
-			include_once( GFCommon::get_base_path() . '/form_display.php' );
168
+		if (!class_exists('GFFormDisplay')) {
169
+			include_once(GFCommon::get_base_path().'/form_display.php');
170 170
 		}
171 171
 
172 172
 		$this->enqueue_scripts_and_styles();
173 173
 
174
-		$settings = $this->get_frontend_settings( $widget_args );
174
+		$settings = $this->get_frontend_settings($widget_args);
175 175
 
176
-		$percentages = empty( $settings['percentages'] ) ? 'false' : 'true';
176
+		$percentages = empty($settings['percentages']) ? 'false' : 'true';
177 177
 
178
-		$counts = empty( $settings['counts'] ) ? 'false' : 'true';
178
+		$counts = empty($settings['counts']) ? 'false' : 'true';
179 179
 
180
-		if( !empty( $settings['field'] ) ) {
181
-			$merge_tag = sprintf( '{gpoll: field="%d" style="%s" percentages="%s" counts="%s"}', $settings['field'], $settings['style'], $percentages, $counts );
180
+		if (!empty($settings['field'])) {
181
+			$merge_tag = sprintf('{gpoll: field="%d" style="%s" percentages="%s" counts="%s"}', $settings['field'], $settings['style'], $percentages, $counts);
182 182
 		} else {
183
-			$merge_tag = sprintf( '{all_poll_results: style="%s" percentages="%s" counts="%s"}', $settings['style'], $percentages, $counts );
183
+			$merge_tag = sprintf('{all_poll_results: style="%s" percentages="%s" counts="%s"}', $settings['style'], $percentages, $counts);
184 184
 		}
185 185
 
186 186
 		$gravityview_view = GravityView_View::getInstance();
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
 		$gravityview_view->poll_settings = $settings;
191 191
 
192
-		$gravityview_view->render('widget', 'poll', false );
192
+		$gravityview_view->render('widget', 'poll', false);
193 193
 
194 194
 	}
195 195
 
Please login to merge, or discard this patch.
includes/widgets/poll/templates/widget-poll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,4 +13,4 @@
 block discarded – undo
13 13
  */
14 14
 $merge_tag = $gravityview_view->poll_merge_tag;
15 15
 
16
-echo GFCommon::replace_variables( $merge_tag, $gravityview_view->getForm(), array() );
17 16
\ No newline at end of file
17
+echo GFCommon::replace_variables($merge_tag, $gravityview_view->getForm(), array());
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
includes/widgets/register-gravityview-widgets.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
  */
21 21
 function gravityview_register_gravityview_widgets() {
22 22
 
23
-	include_once( GRAVITYVIEW_DIR .'includes/widgets/class-gravityview-widget.php' );
23
+	include_once(GRAVITYVIEW_DIR.'includes/widgets/class-gravityview-widget.php');
24 24
 
25
-	include_once( GRAVITYVIEW_DIR .'includes/widgets/class-gravityview-widget-pagination-info.php' );
26
-	include_once( GRAVITYVIEW_DIR .'includes/widgets/class-gravityview-widget-page-links.php' );
27
-	include_once( GRAVITYVIEW_DIR .'includes/widgets/class-gravityview-widget-custom-content.php' );
28
-	include_once( GRAVITYVIEW_DIR .'includes/widgets/search-widget/class-search-widget.php' );
25
+	include_once(GRAVITYVIEW_DIR.'includes/widgets/class-gravityview-widget-pagination-info.php');
26
+	include_once(GRAVITYVIEW_DIR.'includes/widgets/class-gravityview-widget-page-links.php');
27
+	include_once(GRAVITYVIEW_DIR.'includes/widgets/class-gravityview-widget-custom-content.php');
28
+	include_once(GRAVITYVIEW_DIR.'includes/widgets/search-widget/class-search-widget.php');
29 29
 
30
-	if( class_exists('GFPolls') ) {
31
-		include_once( GRAVITYVIEW_DIR .'includes/widgets/poll/class-gravityview-widget-poll.php' );
30
+	if (class_exists('GFPolls')) {
31
+		include_once(GRAVITYVIEW_DIR.'includes/widgets/poll/class-gravityview-widget-poll.php');
32 32
 	}
33 33
 
34 34
 }
35 35
 
36 36
 // Load default widgets
37
-add_action( 'init', 'gravityview_register_gravityview_widgets', 11 );
38 37
\ No newline at end of file
38
+add_action('init', 'gravityview_register_gravityview_widgets', 11);
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-checkbox.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@
 block discarded – undo
10 10
 $search_field = $gravityview_view->search_field;
11 11
 
12 12
 // Make sure that there are choices to display
13
-if( empty( $search_field['choices'] ) ) {
14
-	do_action('gravityview_log_debug', 'search-field-checkbox.php - No choices for field' );
13
+if (empty($search_field['choices'])) {
14
+	do_action('gravityview_log_debug', 'search-field-checkbox.php - No choices for field');
15 15
 	return;
16 16
 }
17 17
 
18 18
 ?>
19 19
 <div class="gv-search-box">
20
-	<?php if( ! gv_empty( $search_field['label'], false ) ) { ?>
21
-	<label for=search-box-<?php echo esc_attr( $search_field['name'] ); ?>><?php echo esc_html( $search_field['label'] ); ?></label>
20
+	<?php if (!gv_empty($search_field['label'], false)) { ?>
21
+	<label for=search-box-<?php echo esc_attr($search_field['name']); ?>><?php echo esc_html($search_field['label']); ?></label>
22 22
 	<?php } ?>
23 23
 	<p>
24
-	<?php foreach( $search_field['choices'] as $choice ) { ?>
24
+	<?php foreach ($search_field['choices'] as $choice) { ?>
25 25
 
26
-		<label for="search-box-<?php echo sanitize_html_class( $search_field['name'].$choice['value'].$choice['text'] ); ?>" class="gv-check-radio">
27
-			<input type="checkbox" name="<?php echo esc_attr( $search_field['name'] ); ?>[]" value="<?php echo esc_attr( $choice['value'] ); ?>" id="search-box-<?php echo sanitize_html_class( $search_field['name'].$choice['value'].$choice['text'] ); ?>" <?php gv_selected( $choice['value'], $search_field['value'], true, 'checked' ); ?>>
28
-			<?php echo esc_html( $choice['text'] ); ?>
26
+		<label for="search-box-<?php echo sanitize_html_class($search_field['name'].$choice['value'].$choice['text']); ?>" class="gv-check-radio">
27
+			<input type="checkbox" name="<?php echo esc_attr($search_field['name']); ?>[]" value="<?php echo esc_attr($choice['value']); ?>" id="search-box-<?php echo sanitize_html_class($search_field['name'].$choice['value'].$choice['text']); ?>" <?php gv_selected($choice['value'], $search_field['value'], true, 'checked'); ?>>
28
+			<?php echo esc_html($choice['text']); ?>
29 29
 		</label>
30 30
 
31 31
 	<?php } ?>
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-date.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 ?>
12 12
 
13 13
 <div class="gv-search-box">
14
-	<?php if( ! gv_empty( $search_field['label'], false ) ) { ?>
15
-	<label for=search-box-<?php echo esc_attr( $search_field['name'] ); ?>><?php echo esc_html( $search_field['label'] ); ?></label>
14
+	<?php if (!gv_empty($search_field['label'], false)) { ?>
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>
18
-		<input type="text" name="<?php echo esc_attr( $search_field['name'] ); ?>" id="search-box-<?php echo esc_attr( $search_field['name'] ); ?>" value="<?php echo esc_attr( $search_field['value'] ); ?>" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" >
18
+		<input type="text" name="<?php echo esc_attr($search_field['name']); ?>" id="search-box-<?php echo esc_attr($search_field['name']); ?>" value="<?php echo esc_attr($search_field['value']); ?>" class="<?php echo esc_html($gravityview_view->datepicker_class); ?>" >
19 19
 	</p>
20 20
 </div>
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-date_range.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 ?>
14 14
 
15 15
 <div class="gv-search-box gv-search-date">
16
-	<?php if( ! gv_empty( $label, false ) ) { ?>
17
-	<label for="search-box-<?php echo esc_attr( $name ).'-start'; ?>"><?php echo esc_html( $label ); ?></label>
16
+	<?php if (!gv_empty($label, false)) { ?>
17
+	<label for="search-box-<?php echo esc_attr($name).'-start'; ?>"><?php echo esc_html($label); ?></label>
18 18
 	<?php } ?>
19 19
 	<p>
20
-		<input name="<?php echo esc_attr( $name ).'[start]'; ?>" id="search-box-<?php echo esc_attr( $name ).'-start'; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('Start date', 'gravityview' ); ?>" value="<?php echo $value['start']; ?>">
21
-		<input name="<?php echo esc_attr( $name ).'[end]'; ?>" id="search-box-<?php echo esc_attr( $name ).'-end'; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('End date', 'gravityview' ); ?>" value="<?php echo $value['end']; ?>">
20
+		<input name="<?php echo esc_attr($name).'[start]'; ?>" id="search-box-<?php echo esc_attr($name).'-start'; ?>" type="text" class="<?php echo esc_html($gravityview_view->datepicker_class); ?>" placeholder="<?php esc_attr_e('Start date', 'gravityview'); ?>" value="<?php echo $value['start']; ?>">
21
+		<input name="<?php echo esc_attr($name).'[end]'; ?>" id="search-box-<?php echo esc_attr($name).'-end'; ?>" type="text" class="<?php echo esc_html($gravityview_view->datepicker_class); ?>" placeholder="<?php esc_attr_e('End date', 'gravityview'); ?>" value="<?php echo $value['end']; ?>">
22 22
 	</p>
23 23
 </div>
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-entry_date.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 ?>
14 14
 
15 15
 <div class="gv-search-box gv-search-date">
16
-	<?php if( ! gv_empty( $label, false ) ) { ?>
17
-	<label for="gv_start_date_<?php echo $view_id; ?>"><?php echo esc_html( $label ); ?></label>
16
+	<?php if (!gv_empty($label, false)) { ?>
17
+	<label for="gv_start_date_<?php echo $view_id; ?>"><?php echo esc_html($label); ?></label>
18 18
 	<?php } ?>
19 19
 	<p>
20
-		<input name="gv_start" id="gv_start_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('Start date', 'gravityview' ); ?>" value="<?php echo $value['start']; ?>">
21
-		<input name="gv_end" id="gv_end_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('End date', 'gravityview' ); ?>" value="<?php echo $value['end']; ?>">
20
+		<input name="gv_start" id="gv_start_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html($gravityview_view->datepicker_class); ?>" placeholder="<?php esc_attr_e('Start date', 'gravityview'); ?>" value="<?php echo $value['start']; ?>">
21
+		<input name="gv_end" id="gv_end_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html($gravityview_view->datepicker_class); ?>" placeholder="<?php esc_attr_e('End date', 'gravityview'); ?>" value="<?php echo $value['end']; ?>">
22 22
 	</p>
23 23
 </div>
24 24
\ No newline at end of file
Please login to merge, or discard this patch.