@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | |
20 | 20 | |
21 | 21 | /** |
22 | - * Constructor. Add filters to modify output. |
|
23 | - * |
|
22 | + * Constructor. Add filters to modify output. |
|
23 | + * |
|
24 | 24 | * @since 2.0.4 |
25 | 25 | * |
26 | 26 | * @param View $view |
@@ -29,19 +29,19 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function __construct( View $view, Entry_Collection $entries, Request $request ) { |
31 | 31 | |
32 | - add_filter( 'gravityview/template/field/label', array( __CLASS__, 'add_columns_sort_links' ), 100, 2 ); |
|
32 | + add_filter( 'gravityview/template/field/label', array( __CLASS__, 'add_columns_sort_links' ), 100, 2 ); |
|
33 | 33 | |
34 | 34 | parent::__construct( $view, $entries, $request ); |
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * Add sorting links to HTML columns that support sorting |
|
39 | - * |
|
40 | - * @since 2.0.4 |
|
41 | - * @since 2.0.5 Made static |
|
42 | - * |
|
43 | - * @static |
|
44 | - * |
|
38 | + * Add sorting links to HTML columns that support sorting |
|
39 | + * |
|
40 | + * @since 2.0.4 |
|
41 | + * @since 2.0.5 Made static |
|
42 | + * |
|
43 | + * @static |
|
44 | + * |
|
45 | 45 | * @param string $column_label Label for the table column |
46 | 46 | * @param \GV\Template_Context $context |
47 | 47 | * |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $sort_columns = $context->view->settings->get( 'sort_columns' ); |
53 | 53 | |
54 | 54 | if ( empty( $sort_columns ) ) { |
55 | - return $column_label; |
|
55 | + return $column_label; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | if ( ! \GravityView_frontend::getInstance()->is_field_sortable( $context->field->ID, $context->view->form->form ) ) { |
@@ -193,15 +193,15 @@ discard block |
||
193 | 193 | */ |
194 | 194 | do_action( 'gravityview/template/table/cells/before', $context ); |
195 | 195 | |
196 | - /** |
|
197 | - * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
198 | - * @since 1.0.7 |
|
196 | + /** |
|
197 | + * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
198 | + * @since 1.0.7 |
|
199 | 199 | * @param GravityView_View $this Current GravityView_View object |
200 | 200 | * @deprecated Use `gravityview/template/table/cells/before` |
201 | - */ |
|
202 | - do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() ); |
|
201 | + */ |
|
202 | + do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() ); |
|
203 | 203 | |
204 | - foreach ( $fields->all() as $field ) { |
|
204 | + foreach ( $fields->all() as $field ) { |
|
205 | 205 | $this->the_field( $field, $entry ); |
206 | 206 | } |
207 | 207 | |
@@ -212,13 +212,13 @@ discard block |
||
212 | 212 | */ |
213 | 213 | do_action( 'gravityview/template/table/cells/after', $context ); |
214 | 214 | |
215 | - /** |
|
216 | - * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
217 | - * @since 1.0.7 |
|
215 | + /** |
|
216 | + * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
217 | + * @since 1.0.7 |
|
218 | 218 | * @param GravityView_View $this Current GravityView_View object |
219 | 219 | * @deprecated Use `gravityview/template/table/cells/after` |
220 | - */ |
|
221 | - do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() ); |
|
220 | + */ |
|
221 | + do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() ); |
|
222 | 222 | |
223 | 223 | ?> |
224 | 224 | </tr> |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | 'hide_empty' => false, |
256 | 256 | 'zone_id' => 'directory_table-columns', |
257 | 257 | 'markup' => '<td id="{{ field_id }}" class="{{ class }}">{{ value }}</td>', |
258 | - 'form' => $form, |
|
258 | + 'form' => $form, |
|
259 | 259 | ); |
260 | 260 | |
261 | 261 | /** Output. */ |
@@ -280,11 +280,11 @@ discard block |
||
280 | 280 | do_action( 'gravityview/template/table/body/before', $context ); |
281 | 281 | |
282 | 282 | /** |
283 | - * @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
284 | - * @deprecated Use `gravityview/template/table/body/before` |
|
285 | - * @since 1.0.7 |
|
286 | - * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
287 | - */ |
|
283 | + * @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
284 | + * @deprecated Use `gravityview/template/table/body/before` |
|
285 | + * @since 1.0.7 |
|
286 | + * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
287 | + */ |
|
288 | 288 | do_action( 'gravityview_table_body_before', \GravityView_View::getInstance() /** ugh! */ ); |
289 | 289 | } |
290 | 290 | |
@@ -306,11 +306,11 @@ discard block |
||
306 | 306 | do_action( 'gravityview/template/table/body/after', $context ); |
307 | 307 | |
308 | 308 | /** |
309 | - * @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
310 | - * @deprecated Use `gravityview/template/table/body/after` |
|
311 | - * @since 1.0.7 |
|
312 | - * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
313 | - */ |
|
309 | + * @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
310 | + * @deprecated Use `gravityview/template/table/body/after` |
|
311 | + * @since 1.0.7 |
|
312 | + * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
313 | + */ |
|
314 | 314 | do_action( 'gravityview_table_body_after', \GravityView_View::getInstance() /** ugh! */ ); |
315 | 315 | } |
316 | 316 |