Creates an encoded email address, including proper html-tags
static public email ( string $email, string $text = false, string $title = false, string $class = false ) : string | ||
string | The email address | |
$text | string | Specify a text for the email link. If false the email address will be used |
$title | string | An optional title for the html tag. |
$class | string | An optional class name for the html tag. |
return | string |
static function email($params) { $url = @$params['email']; $class = @$params['class']; $title = @$params['title']; if (empty($url)) { return false; } return str::email($url, @$params['text'], $title, $class); }
static function email($params) { $url = @$params['email']; if (empty($url)) { return false; } return str::email($url, @$params['text']); }
<div class="col-4-6 last"> <article class="text"> <h1><?php echo html($page->title()); ?> </h1> <?php if ($page->text() == '') { /* Check if content is available */ ?> <p class="delta">Coming soon...</p> <p>At the moment we're working hard to complete and improve the docs. Thanks for your patience! In case you've got an urgent issue with Kirby please send us an email.</p> <p><?php echo str::email($site->email()); ?> </p> <p>In the meantime you might want to check out our <a href="http://getkirby.com/docs">docs</a> where we already collected a whole bunch of stuff.</p> <?php } else { ?> <?php echo str_replace('(\\', '(', kirbytext($page->text())); ?> <?php if ($page->docs() != '' or $page->blogposts() != '' or $page->forumposts() != '' or $page->internals() != '' or $page->externals() != '') {