@@ -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 ) ) { |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | - * Returns the label for a column, with support for all deprecated filters |
|
| 117 | - * |
|
| 118 | - * @since 2.1 |
|
| 119 | - * |
|
| 116 | + * Returns the label for a column, with support for all deprecated filters |
|
| 117 | + * |
|
| 118 | + * @since 2.1 |
|
| 119 | + * |
|
| 120 | 120 | * @param \GV\Field $field |
| 121 | 121 | * @param \GV\Template_Context $context |
| 122 | 122 | */ |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $column_label = apply_filters( 'gravityview/template/field/label', $column_label, $context ); |
| 140 | 140 | |
| 141 | 141 | return $column_label; |
| 142 | - } |
|
| 142 | + } |
|
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * Output the entry row. |
@@ -208,15 +208,15 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | do_action( 'gravityview/template/table/cells/before', $context ); |
| 210 | 210 | |
| 211 | - /** |
|
| 212 | - * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
| 213 | - * @since 1.0.7 |
|
| 211 | + /** |
|
| 212 | + * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
| 213 | + * @since 1.0.7 |
|
| 214 | 214 | * @param \GravityView_View $this Current GravityView_View object |
| 215 | 215 | * @deprecated Use `gravityview/template/table/cells/before` |
| 216 | - */ |
|
| 217 | - do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() ); |
|
| 216 | + */ |
|
| 217 | + do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() ); |
|
| 218 | 218 | |
| 219 | - foreach ( $fields->all() as $field ) { |
|
| 219 | + foreach ( $fields->all() as $field ) { |
|
| 220 | 220 | $this->the_field( $field, $entry ); |
| 221 | 221 | } |
| 222 | 222 | |
@@ -227,13 +227,13 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | do_action( 'gravityview/template/table/cells/after', $context ); |
| 229 | 229 | |
| 230 | - /** |
|
| 231 | - * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
| 232 | - * @since 1.0.7 |
|
| 230 | + /** |
|
| 231 | + * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells. |
|
| 232 | + * @since 1.0.7 |
|
| 233 | 233 | * @param \GravityView_View $this Current GravityView_View object |
| 234 | 234 | * @deprecated Use `gravityview/template/table/cells/after` |
| 235 | - */ |
|
| 236 | - do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() ); |
|
| 235 | + */ |
|
| 236 | + do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() ); |
|
| 237 | 237 | |
| 238 | 238 | ?> |
| 239 | 239 | </tr> |
@@ -271,9 +271,9 @@ discard block |
||
| 271 | 271 | 'value' => $value, |
| 272 | 272 | 'hide_empty' => false, |
| 273 | 273 | 'zone_id' => 'directory_table-columns', |
| 274 | - 'label' => self::get_field_column_label( $field, $context ), |
|
| 274 | + 'label' => self::get_field_column_label( $field, $context ), |
|
| 275 | 275 | 'markup' => '<td id="{{ field_id }}" class="{{ class }}" data-label="{{label_value:data-label}}">{{ value }}</td>', |
| 276 | - 'form' => $form, |
|
| 276 | + 'form' => $form, |
|
| 277 | 277 | ); |
| 278 | 278 | |
| 279 | 279 | /** Output. */ |
@@ -298,11 +298,11 @@ discard block |
||
| 298 | 298 | do_action( 'gravityview/template/table/body/before', $context ); |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
| 302 | - * @deprecated Use `gravityview/template/table/body/before` |
|
| 303 | - * @since 1.0.7 |
|
| 304 | - * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
| 305 | - */ |
|
| 301 | + * @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
| 302 | + * @deprecated Use `gravityview/template/table/body/before` |
|
| 303 | + * @since 1.0.7 |
|
| 304 | + * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
| 305 | + */ |
|
| 306 | 306 | do_action( 'gravityview_table_body_before', \GravityView_View::getInstance() /** ugh! */ ); |
| 307 | 307 | } |
| 308 | 308 | |
@@ -324,11 +324,11 @@ discard block |
||
| 324 | 324 | do_action( 'gravityview/template/table/body/after', $context ); |
| 325 | 325 | |
| 326 | 326 | /** |
| 327 | - * @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
| 328 | - * @deprecated Use `gravityview/template/table/body/after` |
|
| 329 | - * @since 1.0.7 |
|
| 330 | - * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
| 331 | - */ |
|
| 327 | + * @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
| 328 | + * @deprecated Use `gravityview/template/table/body/after` |
|
| 329 | + * @since 1.0.7 |
|
| 330 | + * @param \GravityView_View $gravityview_view Current GravityView_View object. |
|
| 331 | + */ |
|
| 332 | 332 | do_action( 'gravityview_table_body_after', \GravityView_View::getInstance() /** ugh! */ ); |
| 333 | 333 | } |
| 334 | 334 | |