|
@@ 3670-3677 (lines=8) @@
|
| 3667 |
|
$toggle = false; |
| 3668 |
|
$actions = array(); |
| 3669 |
|
|
| 3670 |
|
if ( !in_array( 'view', $this->actions_disabled ) && !in_array( 'view', $this->actions_hidden ) ) { |
| 3671 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'view', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ] ), self::$allowed, $this->exclusion() ); |
| 3672 |
|
|
| 3673 |
|
if ( !empty( $this->action_links[ 'view' ] ) ) |
| 3674 |
|
$link = $this->do_template( $this->action_links[ 'view' ], $row ); |
| 3675 |
|
|
| 3676 |
|
$actions[ 'view' ] = '<span class="view"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'View this item', 'pods' ) . '">' . __( 'View', 'pods' ) . '</a></span>'; |
| 3677 |
|
} |
| 3678 |
|
|
| 3679 |
|
if ( !in_array( 'edit', $this->actions_disabled ) && !in_array( 'edit', $this->actions_hidden ) && !$this->restricted( 'edit', $row ) ) { |
| 3680 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'edit', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ] ), self::$allowed, $this->exclusion() ); |
|
@@ 3679-3686 (lines=8) @@
|
| 3676 |
|
$actions[ 'view' ] = '<span class="view"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'View this item', 'pods' ) . '">' . __( 'View', 'pods' ) . '</a></span>'; |
| 3677 |
|
} |
| 3678 |
|
|
| 3679 |
|
if ( !in_array( 'edit', $this->actions_disabled ) && !in_array( 'edit', $this->actions_hidden ) && !$this->restricted( 'edit', $row ) ) { |
| 3680 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'edit', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ] ), self::$allowed, $this->exclusion() ); |
| 3681 |
|
|
| 3682 |
|
if ( !empty( $this->action_links[ 'edit' ] ) ) |
| 3683 |
|
$link = $this->do_template( $this->action_links[ 'edit' ], $row ); |
| 3684 |
|
|
| 3685 |
|
$actions[ 'edit' ] = '<span class="edit"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'Edit this item', 'pods' ) . '">' . __( 'Edit', 'pods' ) . '</a></span>'; |
| 3686 |
|
} |
| 3687 |
|
|
| 3688 |
|
if ( !in_array( 'duplicate', $this->actions_disabled ) && !in_array( 'duplicate', $this->actions_hidden ) && !$this->restricted( 'edit', $row ) ) { |
| 3689 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'duplicate', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ] ), self::$allowed, $this->exclusion() ); |
|
@@ 3688-3695 (lines=8) @@
|
| 3685 |
|
$actions[ 'edit' ] = '<span class="edit"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'Edit this item', 'pods' ) . '">' . __( 'Edit', 'pods' ) . '</a></span>'; |
| 3686 |
|
} |
| 3687 |
|
|
| 3688 |
|
if ( !in_array( 'duplicate', $this->actions_disabled ) && !in_array( 'duplicate', $this->actions_hidden ) && !$this->restricted( 'edit', $row ) ) { |
| 3689 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'duplicate', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ] ), self::$allowed, $this->exclusion() ); |
| 3690 |
|
|
| 3691 |
|
if ( !empty( $this->action_links[ 'duplicate' ] ) ) |
| 3692 |
|
$link = $this->do_template( $this->action_links[ 'duplicate' ], $row ); |
| 3693 |
|
|
| 3694 |
|
$actions[ 'duplicate' ] = '<span class="edit"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'Duplicate this item', 'pods' ) . '">' . __( 'Duplicate', 'pods' ) . '</a></span>'; |
| 3695 |
|
} |
| 3696 |
|
|
| 3697 |
|
if ( !in_array( 'delete', $this->actions_disabled ) && !in_array( 'delete', $this->actions_hidden ) && !$this->restricted( 'delete', $row ) ) { |
| 3698 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'delete', 'id' . $this->num => $row[ $this->sql[ 'field_id' ] ], '_wpnonce' => wp_create_nonce( 'pods-ui-action-delete' ) ), self::$allowed, $this->exclusion() ); |