@@ 363-380 (lines=18) @@ | ||
360 | } |
|
361 | } |
|
362 | ||
363 | if ($this->pagesConfiguration->getPossibleChildTypes( |
|
364 | $node->getRefEntityName() |
|
365 | ) |
|
366 | ) { |
|
367 | $menu->addChild( |
|
368 | 'action.addsubpage', |
|
369 | [ |
|
370 | 'linkAttributes' => [ |
|
371 | 'type' => 'button', |
|
372 | 'class' => 'btn btn-default btn--raise-on-hover', |
|
373 | 'data-toggle' => 'modal', |
|
374 | 'data-keyboard' => 'true', |
|
375 | 'data-target' => '#add-subpage-modal', |
|
376 | ], |
|
377 | 'extras' => ['renderType' => 'button'], |
|
378 | ] |
|
379 | ); |
|
380 | } |
|
381 | ||
382 | if (null !== $node->getParent() && $canEdit) { |
|
383 | $menu->addChild( |
|
@@ 397-411 (lines=15) @@ | ||
394 | ] |
|
395 | ); |
|
396 | ||
397 | if ($this->showDuplicateWithChildren) { |
|
398 | $menu->addChild( |
|
399 | 'action.duplicate_with_children', |
|
400 | [ |
|
401 | 'linkAttributes' => [ |
|
402 | 'type' => 'button', |
|
403 | 'class' => 'btn btn-default btn--raise-on-hover', |
|
404 | 'data-toggle' => 'modal', |
|
405 | 'data-keyboard' => 'true', |
|
406 | 'data-target' => '#duplicate-with-children-page-modal', |
|
407 | ], |
|
408 | 'extras' => ['renderType' => 'button'], |
|
409 | ] |
|
410 | ); |
|
411 | } |
|
412 | } |
|
413 | ||
414 | if ((null !== $node->getParent() || $node->getChildren()->isEmpty()) |