Hey there.
First, here is an overview of my structure:
<a class="button someClass" href="mailto:hello@mail.com">
<div class="someClass">
<p class="button_text someClass"> <?= $support->support_button()->ktr() ?></p>
</div>
<div class="someClass button-shadow">
</div>
</a>
It is supposed to be a button, that is basically a mailto: link.
I love the (email:…) function automatically encoding the mail address, and would like to embed it into my structure. Is that possible?
Right now it doesn’t work, because it builds a new anchor with the (email:…) function.:
<a class="button someClass" href="<?= $support->email_from_the_function()->ktr() ?>">
<div class="someClass">
<p class="button_text someClass"> <?= $support->support_button()->ktr() ?></p>
</div>
<div class="someClass button-shadow">
</div>
</a>
I guess the real question is, is there a way to get the email encoded in Kirby without getting the anchor as well?