<?php use Elgg\Filesystem\Directory; $subject = elgg_extract("subject", $vars); $message = nl2br(elgg_extract("body", $vars)); $language = elgg_extract("language", $vars, get_current_language()); $recipient = elgg_extract("recipient", $vars); $site = elgg_get_site_entity(); $site_url = elgg_get_site_url(); $isElggAtRoot = Elgg\Application::elggDir()->getPath() === Directory\Local::root()->getPath(); $elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $language; ?> " lang="<?php echo $language; ?> "> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <base target="_blank" /> <?php if (!empty($subject)) { echo elgg_format_element('title', [], $subject); } ?> </head> <body>