|
@@ 1468-1485 (lines=18) @@
|
| 1465 |
|
<?php |
| 1466 |
|
echo wp_kses_post( $this->do_template( $duplicate ? $this->header[ 'duplicate' ] : $this->header[ 'edit' ] ) ); |
| 1467 |
|
|
| 1468 |
|
if ( !in_array( 'add', $this->actions_disabled ) && !in_array( 'add', $this->actions_hidden ) ) { |
| 1469 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'add', 'id' . $this->num => '', 'do' . $this->num = '' ), self::$allowed, $this->exclusion() ); |
| 1470 |
|
|
| 1471 |
|
if ( !empty( $this->action_links[ 'add' ] ) ) |
| 1472 |
|
$link = $this->action_links[ 'add' ]; |
| 1473 |
|
?> |
| 1474 |
|
<a href="<?php echo esc_url( $link ); ?>" class="add-new-h2"><?php echo wp_kses_post( $this->heading[ 'add' ] ); ?></a> |
| 1475 |
|
<?php |
| 1476 |
|
} |
| 1477 |
|
elseif ( !in_array( 'manage', $this->actions_disabled ) && !in_array( 'manage', $this->actions_hidden ) ) { |
| 1478 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'manage', 'id' . $this->num => '' ), self::$allowed, $this->exclusion() ); |
| 1479 |
|
|
| 1480 |
|
if ( !empty( $this->action_links[ 'manage' ] ) ) |
| 1481 |
|
$link = $this->action_links[ 'manage' ]; |
| 1482 |
|
?> |
| 1483 |
|
<a href="<?php echo esc_url( $link ); ?>" class="add-new-h2">« <?php echo sprintf( __( 'Back to %s', 'pods' ), $this->heading[ 'manage' ] ); ?></a> |
| 1484 |
|
<?php |
| 1485 |
|
} |
| 1486 |
|
?> |
| 1487 |
|
</h2> |
| 1488 |
|
|
|
@@ 1746-1765 (lines=20) @@
|
| 1743 |
|
<?php |
| 1744 |
|
echo wp_kses_post( $this->do_template( $this->header[ 'view' ] ) ); |
| 1745 |
|
|
| 1746 |
|
if ( !in_array( 'add', $this->actions_disabled ) && !in_array( 'add', $this->actions_hidden ) ) { |
| 1747 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'add', 'id' . $this->num => '', 'do' . $this->num = '' ), self::$allowed, $this->exclusion() ); |
| 1748 |
|
|
| 1749 |
|
if ( !empty( $this->action_links[ 'add' ] ) ) { |
| 1750 |
|
$link = $this->action_links[ 'add' ]; |
| 1751 |
|
} |
| 1752 |
|
?> |
| 1753 |
|
<a href="<?php echo esc_url( $link ); ?>" class="add-new-h2"><?php echo wp_kses_post( $this->heading[ 'add' ] ); ?></a> |
| 1754 |
|
<?php |
| 1755 |
|
} |
| 1756 |
|
elseif ( !in_array( 'manage', $this->actions_disabled ) && !in_array( 'manage', $this->actions_hidden ) ) { |
| 1757 |
|
$link = pods_query_arg( array( 'action' . $this->num => 'manage', 'id' . $this->num => '' ), self::$allowed, $this->exclusion() ); |
| 1758 |
|
|
| 1759 |
|
if ( !empty( $this->action_links[ 'manage' ] ) ) { |
| 1760 |
|
$link = $this->action_links[ 'manage' ]; |
| 1761 |
|
} |
| 1762 |
|
?> |
| 1763 |
|
<a href="<?php echo esc_url( $link ); ?>" class="add-new-h2">« <?php echo sprintf( __( 'Back to %s', 'pods' ), $this->heading[ 'manage' ] ); ?></a> |
| 1764 |
|
<?php |
| 1765 |
|
} |
| 1766 |
|
|
| 1767 |
|
pods_view( PODS_DIR . 'ui/admin/view.php', compact( array_keys( get_defined_vars() ) ) ); |
| 1768 |
|
?> |