Skip to content

Commit

Permalink
Move dialog above opener
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Apr 18, 2024
1 parent fb7962d commit 1a9db4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions contao/templates/recommendation/recommendation_default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
<?php if ($this->allowRedirect): ?>
<p class="more"><?= $this->more ?></p>
<?php elseif ($this->dialog): ?>
<p class="more">
<span class="rec_show-modal" data-id="<?= $this->id ?>"><?= $this->more ?></span>
</p>
<dialog class="rec_dialog rec_dialog_<?= $this->id ?>">
<div class="rec_dialog--content">
<?= $this->text ?>
<?= $this->text ?>
<form class="dialog-btn" method="dialog">
<button><?= $this->trans('MSC.close') ?></button>
</form>
</div>
</dialog>
<p class="more">
<span class="rec_show-modal" data-id="<?= $this->id ?>"><?= $this->more ?></span>
</p>
<?php endif; ?>
</div>

Expand Down
8 changes: 4 additions & 4 deletions contao/templates/recommendation/recommendation_latest.html5
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@
<?php if ($this->allowRedirect): ?>
<p class="more"><?= $this->more ?></p>
<?php elseif ($this->dialog): ?>
<p class="more">
<span class="rec_show-modal" data-id="<?= $this->id ?>"><?= $this->more ?></span>
</p>
<dialog class="rec_dialog rec_dialog_<?= $this->id ?>">
<div class="rec_dialog--content">
<?= $this->text ?>
<?= $this->text ?>
<form class="dialog-btn" method="dialog">
<button><?= $this->trans('MSC.close') ?></button>
</form>
</div>
</dialog>
<p class="more">
<span class="rec_show-modal" data-id="<?= $this->id ?>"><?= $this->more ?></span>
</p>
<?php endif; ?>
</div>

Expand Down

0 comments on commit 1a9db4d

Please sign in to comment.