|
@@ 4294-4301 (lines=8) @@
|
| 4291 |
|
|
| 4292 |
|
$actions = array(); |
| 4293 |
|
|
| 4294 |
|
if ( ! in_array( 'view', $this->actions_disabled ) && ! in_array( 'view', $this->actions_hidden ) ) { |
| 4295 |
|
$link = pods_query_arg( |
| 4296 |
|
array( |
| 4297 |
|
'action' . $this->num => 'view', |
| 4298 |
|
'id' . $this->num => $row[ $this->sql['field_id'] ], |
| 4299 |
|
), self::$allowed, $this->exclusion() |
| 4300 |
|
); |
| 4301 |
|
|
| 4302 |
|
if ( ! empty( $this->action_links['view'] ) ) { |
| 4303 |
|
$link = $this->do_template( $this->action_links['view'], $row ); |
| 4304 |
|
} |
|
@@ 4309-4316 (lines=8) @@
|
| 4306 |
|
$actions['view'] = '<span class="view"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'View this item', 'pods' ) . '">' . __( 'View', 'pods' ) . '</a></span>'; |
| 4307 |
|
} |
| 4308 |
|
|
| 4309 |
|
if ( ! in_array( 'edit', $this->actions_disabled ) && ! in_array( 'edit', $this->actions_hidden ) && ! $this->restricted( 'edit', $row ) ) { |
| 4310 |
|
$link = pods_query_arg( |
| 4311 |
|
array( |
| 4312 |
|
'action' . $this->num => 'edit', |
| 4313 |
|
'id' . $this->num => $row[ $this->sql['field_id'] ], |
| 4314 |
|
), self::$allowed, $this->exclusion() |
| 4315 |
|
); |
| 4316 |
|
|
| 4317 |
|
if ( ! empty( $this->action_links['edit'] ) ) { |
| 4318 |
|
$link = $this->do_template( $this->action_links['edit'], $row ); |
| 4319 |
|
} |
|
@@ 4324-4331 (lines=8) @@
|
| 4321 |
|
$actions['edit'] = '<span class="edit"><a href="' . esc_url( $link ) . '" title="' . esc_attr__( 'Edit this item', 'pods' ) . '">' . __( 'Edit', 'pods' ) . '</a></span>'; |
| 4322 |
|
} |
| 4323 |
|
|
| 4324 |
|
if ( ! in_array( 'duplicate', $this->actions_disabled ) && ! in_array( 'duplicate', $this->actions_hidden ) && ! $this->restricted( 'edit', $row ) ) { |
| 4325 |
|
$link = pods_query_arg( |
| 4326 |
|
array( |
| 4327 |
|
'action' . $this->num => 'duplicate', |
| 4328 |
|
'id' . $this->num => $row[ $this->sql['field_id'] ], |
| 4329 |
|
), self::$allowed, $this->exclusion() |
| 4330 |
|
); |
| 4331 |
|
|
| 4332 |
|
if ( ! empty( $this->action_links['duplicate'] ) ) { |
| 4333 |
|
$link = $this->do_template( $this->action_links['duplicate'], $row ); |
| 4334 |
|
} |