Hello!
Is there a possibility to add a picture with an e-mail link, which is also encrypted via Kirby?
We added following Code as a Tag, but there is no encryption for the E-Mail-Address.
kirbytext::$tags['emailbestellung'] = array(
'attr' => array(
'img',
'subject',
'text',
'body'
),
'html' => function($tag) {
$email = $tag->attr('emailbestellung');
$url = $tag->page()->url();
$bild = $tag->attr('img');
$subject = rawurlencode($tag->attr('subject',null));
$body = $tag->attr('body',null);
$body = rawurlencode(str_replace('\n', "\n", $body));
$query = ($subject || $body) ? '?' : '';
$query .= ($subject) ? 'subject='.$subject : '';
$query .= ($subject && $body) ? '&' : '';
$query .= ($body) ? 'body='.$body : '';
return '<a href="'.$email.$query.'" title="'.$title.'">'.$text.'<img class="emailbestellung" src="' . $url . '/' . $bild . '" /></a>';
}
);