Skip to content

Commit

Permalink
fix iframe flash message rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Sep 27, 2024
1 parent 1587699 commit 20ba5da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/templates/Standard/add-edit-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@

<div class="page-title-container">
<div class="page-title">
<?php if(empty($subnav)): ?>
<h1><?= $vv_title; ?></h1>
<?php if(empty($subnav) || $this->getLayout() !== 'iframe'): ?>
<h1><?= $vv_title ?></h1>
<?php else: ?>
<h2><?= $vv_title; ?></h2>
<h2><?= $vv_title ?></h2>
<?php endif; ?>
</div>
<?php
Expand Down Expand Up @@ -157,9 +157,10 @@
?>
</div>

<?php if(empty($subnav)): ?>
<!-- If we have an iframe we alway render the flash messages -->
<?php if(empty($subnav) || $this->getLayout() === 'iframe'): ?>
<?php /* Flash Messages are placed below the main title when there's no subnavigation. */ ?>
<?= $this->element('flash', $flashArgs); ?>
<?= $this->element('flash', $flashArgs) ?>
<?php endif; ?>

<?php
Expand Down

0 comments on commit 20ba5da

Please sign in to comment.