|
@@ 289-293 (lines=5) @@
|
| 286 |
|
if ( pods_is_admin( array( 'pods', 'pods_content', 'pods_edit_' . $item[ 'name' ], 'pods_delete_' . $item[ 'name' ] ) ) ) { |
| 287 |
|
$page = 'pods-manage-' . $item[ 'name' ]; |
| 288 |
|
|
| 289 |
|
if ( null === $parent_page ) { |
| 290 |
|
$parent_page = $page; |
| 291 |
|
|
| 292 |
|
add_menu_page( 'Pods', 'Pods', 'read', $parent_page, null, 'dashicons-pods', '58.5' ); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
$all_title = $plural_label; |
| 296 |
|
$all_label = __( 'Manage', 'pods' ) . ' ' . $plural_label; |
|
@@ 310-314 (lines=5) @@
|
| 307 |
|
elseif ( current_user_can( 'pods_add_' . $item[ 'name' ] ) ) { |
| 308 |
|
$page = 'pods-add-new-' . $item[ 'name' ]; |
| 309 |
|
|
| 310 |
|
if ( null === $parent_page ) { |
| 311 |
|
$parent_page = $page; |
| 312 |
|
|
| 313 |
|
add_menu_page( 'Pods', 'Pods', 'read', $parent_page, null, 'dashicons-pods', '58.5' ); |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
$add_title = __( 'Add New', 'pods' ) . ' ' . $singular_label; |
| 317 |
|
$add_label = __( 'Manage', 'pods' ) . ' ' . $plural_label; |