|
@@ 344-348 (lines=5) @@
|
| 341 |
|
) ) { |
| 342 |
|
$page = 'pods-manage-' . $item['name']; |
| 343 |
|
|
| 344 |
|
if ( null === $parent_page ) { |
| 345 |
|
$parent_page = $page; |
| 346 |
|
|
| 347 |
|
add_menu_page( 'Pods', 'Pods', 'read', $parent_page, null, 'dashicons-pods', '58.5' ); |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
$all_title = $plural_label; |
| 351 |
|
$all_label = __( 'Manage', 'pods' ) . ' ' . $plural_label; |
|
@@ 370-374 (lines=5) @@
|
| 367 |
|
} elseif ( current_user_can( 'pods_add_' . $item['name'] ) ) { |
| 368 |
|
$page = 'pods-add-new-' . $item['name']; |
| 369 |
|
|
| 370 |
|
if ( null === $parent_page ) { |
| 371 |
|
$parent_page = $page; |
| 372 |
|
|
| 373 |
|
add_menu_page( 'Pods', 'Pods', 'read', $parent_page, null, 'dashicons-pods', '58.5' ); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
$add_title = __( 'Add New', 'pods' ) . ' ' . $singular_label; |
| 377 |
|
$add_label = __( 'Manage', 'pods' ) . ' ' . $plural_label; |