@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as |
|
| 4 | - * add post meta keys for GravityView to parse when checking for the existence of shortcodes in content. |
|
| 5 | - * |
|
| 6 | - * @file abstract-gravityview-plugin-and-theme-hooks.php |
|
| 7 | - * @package GravityView |
|
| 8 | - * @license GPL2+ |
|
| 9 | - * @author Katz Web Services, Inc. |
|
| 10 | - * @link http://gravityview.co |
|
| 11 | - * @copyright Copyright 2015, Katz Web Services, Inc. |
|
| 12 | - * |
|
| 13 | - * @since 1.15.2 |
|
| 14 | - */ |
|
| 3 | + * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as |
|
| 4 | + * add post meta keys for GravityView to parse when checking for the existence of shortcodes in content. |
|
| 5 | + * |
|
| 6 | + * @file abstract-gravityview-plugin-and-theme-hooks.php |
|
| 7 | + * @package GravityView |
|
| 8 | + * @license GPL2+ |
|
| 9 | + * @author Katz Web Services, Inc. |
|
| 10 | + * @link http://gravityview.co |
|
| 11 | + * @copyright Copyright 2015, Katz Web Services, Inc. |
|
| 12 | + * |
|
| 13 | + * @since 1.15.2 |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * GravityView preset template |
|
| 4 | - * |
|
| 5 | - * @file class-gravityview-preset-resume-board.php |
|
| 6 | - * @package GravityView |
|
| 7 | - * @license GPL2+ |
|
| 8 | - * @author Katz Web Services, Inc. |
|
| 9 | - * @link http://gravityview.co |
|
| 10 | - * @copyright Copyright 2015, Katz Web Services, Inc. |
|
| 11 | - * |
|
| 12 | - * @since 1.15 |
|
| 13 | - */ |
|
| 3 | + * GravityView preset template |
|
| 4 | + * |
|
| 5 | + * @file class-gravityview-preset-resume-board.php |
|
| 6 | + * @package GravityView |
|
| 7 | + * @license GPL2+ |
|
| 8 | + * @author Katz Web Services, Inc. |
|
| 9 | + * @link http://gravityview.co |
|
| 10 | + * @copyright Copyright 2015, Katz Web Services, Inc. |
|
| 11 | + * |
|
| 12 | + * @since 1.15 |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | class GravityView_Preset_Resume_Board extends GravityView_Default_Template_Table { |
| 16 | 16 | |
@@ -116,12 +116,12 @@ |
||
| 116 | 116 | return $settings; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * @return string |
|
| 121 | - */ |
|
| 122 | - public function get_widget_id() { |
|
| 123 | - return $this->widget_id; |
|
| 124 | - } |
|
| 119 | + /** |
|
| 120 | + * @return string |
|
| 121 | + */ |
|
| 122 | + public function get_widget_id() { |
|
| 123 | + return $this->widget_id; |
|
| 124 | + } |
|
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * Get the widget settings |
@@ -384,16 +384,16 @@ |
||
| 384 | 384 | $curr_start = esc_attr( rgget( 'gv_start' ) ); |
| 385 | 385 | $curr_end = esc_attr( rgget( 'gv_end' ) ); |
| 386 | 386 | |
| 387 | - /** |
|
| 388 | - * @filter `gravityview_date_created_adjust_timezone` Whether to adjust the timezone for entries. \n |
|
| 389 | - * date_created is stored in UTC format. Convert search date into UTC (also used on templates/fields/date_created.php) |
|
| 390 | - * @since 1.12 |
|
| 391 | - * @param[out,in] boolean $adjust_tz Use timezone-adjusted datetime? If true, adjusts date based on blog's timezone setting. If false, uses UTC setting. Default: true |
|
| 392 | - * @param[in] string $context Where the filter is being called from. `search` in this case. |
|
| 393 | - */ |
|
| 394 | - $adjust_tz = apply_filters( 'gravityview_date_created_adjust_timezone', true, 'search' ); |
|
| 395 | - $search_criteria['start_date'] = ( $adjust_tz && !empty( $curr_start ) ) ? get_gmt_from_date( $curr_start ) : $curr_start; |
|
| 396 | - $search_criteria['end_date'] = ( $adjust_tz && !empty( $curr_end ) ) ? get_gmt_from_date( $curr_end ) : $curr_end; |
|
| 387 | + /** |
|
| 388 | + * @filter `gravityview_date_created_adjust_timezone` Whether to adjust the timezone for entries. \n |
|
| 389 | + * date_created is stored in UTC format. Convert search date into UTC (also used on templates/fields/date_created.php) |
|
| 390 | + * @since 1.12 |
|
| 391 | + * @param[out,in] boolean $adjust_tz Use timezone-adjusted datetime? If true, adjusts date based on blog's timezone setting. If false, uses UTC setting. Default: true |
|
| 392 | + * @param[in] string $context Where the filter is being called from. `search` in this case. |
|
| 393 | + */ |
|
| 394 | + $adjust_tz = apply_filters( 'gravityview_date_created_adjust_timezone', true, 'search' ); |
|
| 395 | + $search_criteria['start_date'] = ( $adjust_tz && !empty( $curr_start ) ) ? get_gmt_from_date( $curr_start ) : $curr_start; |
|
| 396 | + $search_criteria['end_date'] = ( $adjust_tz && !empty( $curr_end ) ) ? get_gmt_from_date( $curr_end ) : $curr_end; |
|
| 397 | 397 | |
| 398 | 398 | |
| 399 | 399 | // search for a specific entry ID |
@@ -39,22 +39,22 @@ |
||
| 39 | 39 | |
| 40 | 40 | <?php |
| 41 | 41 | |
| 42 | - $search_value = rgget( $search_field['name'] ); |
|
| 42 | + $search_value = rgget( $search_field['name'] ); |
|
| 43 | 43 | |
| 44 | - foreach ( $search_field['choices'] as $k => $choice ) { |
|
| 44 | + foreach ( $search_field['choices'] as $k => $choice ) { |
|
| 45 | 45 | |
| 46 | - if ( 0 != $k ) { |
|
| 47 | - echo esc_html( $links_sep ); |
|
| 48 | - } |
|
| 46 | + if ( 0 != $k ) { |
|
| 47 | + echo esc_html( $links_sep ); |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - $active = ( '' !== $search_value && in_array( $search_value, array( $choice['text'], $choice['value'] ) ) ) ? ' class="active"' : false; |
|
| 50 | + $active = ( '' !== $search_value && in_array( $search_value, array( $choice['text'], $choice['value'] ) ) ) ? ' class="active"' : false; |
|
| 51 | 51 | |
| 52 | - if ( $active ) { |
|
| 53 | - $link = remove_query_arg( array( 'pagenum', $search_field['name'] ), $base_url ); |
|
| 54 | - } else { |
|
| 55 | - $link = add_query_arg( array( $search_field['name'] => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) ); |
|
| 56 | - } |
|
| 57 | - ?> |
|
| 52 | + if ( $active ) { |
|
| 53 | + $link = remove_query_arg( array( 'pagenum', $search_field['name'] ), $base_url ); |
|
| 54 | + } else { |
|
| 55 | + $link = add_query_arg( array( $search_field['name'] => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) ); |
|
| 56 | + } |
|
| 57 | + ?> |
|
| 58 | 58 | |
| 59 | 59 | <a href="<?php echo esc_url_raw( $link ); ?>" <?php echo $active; ?>><?php echo esc_html( $choice['text'] ); ?></a> |
| 60 | 60 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Display the search MULTISELECT input field |
|
| 4 | - * |
|
| 5 | - * @see class-search-widget.php |
|
| 6 | - */ |
|
| 3 | + * Display the search MULTISELECT input field |
|
| 4 | + * |
|
| 5 | + * @see class-search-widget.php |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | $gravityview_view = GravityView_View::getInstance(); |
| 9 | 9 | $view_id = $gravityview_view->getViewId(); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Display the search RADIO input field |
|
| 4 | - * |
|
| 5 | - * @see class-search-widget.php |
|
| 6 | - */ |
|
| 3 | + * Display the search RADIO input field |
|
| 4 | + * |
|
| 5 | + * @see class-search-widget.php |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | $gravityview_view = GravityView_View::getInstance(); |
| 9 | 9 | $view_id = $gravityview_view->getViewId(); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Display the search single CHECKBOX input field ( on/off type) |
|
| 4 | - * |
|
| 5 | - * @see class-search-widget.php |
|
| 6 | - */ |
|
| 3 | + * Display the search single CHECKBOX input field ( on/off type) |
|
| 4 | + * |
|
| 5 | + * @see class-search-widget.php |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | $gravityview_view = GravityView_View::getInstance(); |
| 9 | 9 | $view_id = $gravityview_view->getViewId(); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file class-gravityview-recent-entries-widget.php |
|
| 4 | - */ |
|
| 3 | + * @file class-gravityview-recent-entries-widget.php |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 7 | * Class GravityView_Recent_Entries_Widget |
@@ -184,8 +184,8 @@ discard block |
||
| 184 | 184 | // Get the settings for the View ID |
| 185 | 185 | $view_settings = gravityview_get_template_settings( $instance['view_id'] ); |
| 186 | 186 | |
| 187 | - // Set the context view ID to avoid conflicts with the Advanced Filter extension. |
|
| 188 | - $criteria['context_view_id'] = $instance['view_id']; |
|
| 187 | + // Set the context view ID to avoid conflicts with the Advanced Filter extension. |
|
| 188 | + $criteria['context_view_id'] = $instance['view_id']; |
|
| 189 | 189 | |
| 190 | 190 | $instance['limit'] = isset( $instance['limit'] ) ? $instance['limit'] : 10; |
| 191 | 191 | $view_settings['id'] = $instance['view_id']; |