<?php

return <<<'VALUE'
"namespace IPS\\Theme;\n\tfunction email_html_core_contact_form( $member, $name, $fromEmail, $message, $referrer, $email ) {\n\t\t$return = '';\n\t\t$return .= <<<IPSCONTENT\n\n{$email->language->addToStack(\"email_contact_form\", FALSE)}\n<br><br>\n<table width='100%' cellpadding='0' cellspacing='50' border='0'>\n\t<tr>\n\t\t<td dir='{dir}' width='40' valign='top' class='hidePhone'>\n\t\t\t<img src='{$member->get_photo( true, true )}' width='40' height='40' style='border-radius: 6px;'>\n\t\t<\/td>\n\t\t<td dir='{dir}' valign='top'>\n\t\t\t<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td dir='{dir}' style=\"font-family: system-ui, 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 14px;\">\n\t\t\t\t\t\t<strong class=\"color_hard\">{$email->language->addToStack(\"email_contact_said\", FALSE, array( 'sprintf' => array( $name, $fromEmail ) ) )}<\/strong>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t{$email->parseTextForEmail( $message, $email->language )}\n\t\t\t\t\t\t\nIPSCONTENT;\n\nif ( $referrer ):\n$return .= <<<IPSCONTENT\n\n\t\t\t\t\t\t\t<br><br><div class=\"color_soft\">\nIPSCONTENT;\n\n$sprintf = array($referrer, $referrer); $return .= \\IPS\\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'contact_form_referrer', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) );\n$return .= <<<IPSCONTENT\n<\/div>\n\t\t\t\t\t\t\nIPSCONTENT;\n\nendif;\n$return .= <<<IPSCONTENT\n\n\t\t\t\t\t<\/td>\n\t\t\t\t<\/tr>\n\t\t\t<\/table>\n\t\t<\/td>\n\t<\/tr>\n<\/table>\n<br><br>\n<em class=\"color_soft\" style=\"color:#4b4b4b;\">&mdash; \nIPSCONTENT;\n\n$return .= \\IPS\\Settings::i()->board_name;\n$return .= <<<IPSCONTENT\n<\/em>\nIPSCONTENT;\n\n\t\treturn $return;\n}\n\tfunction email_plaintext_core_contact_form( $member, $name, $fromEmail, $message, $referrer, $email ) {\n\t\t$return = '';\n\t\t$return .= <<<IPSCONTENT\n\n\n{$email->language->addToStack(\"email_contact_form\", FALSE)}\n\n----\n\n{$email->language->addToStack(\"email_contact_said\", FALSE, array( 'htmlsprintf' => array( $name, $fromEmail ) ) )}\n\n\nIPSCONTENT;\n\n$return .= \\IPS\\Email::buildPlaintextBody( $message );\n$return .= <<<IPSCONTENT\n\n\n\nIPSCONTENT;\n\nif ( $referrer ):\n$return .= <<<IPSCONTENT\n\n\t\nIPSCONTENT;\n\n$sprintf = array($referrer); $return .= \\IPS\\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'contact_form_referrer_plain', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) );\n$return .= <<<IPSCONTENT\n\n\nIPSCONTENT;\n\nendif;\n$return .= <<<IPSCONTENT\n\nIPSCONTENT;\n\n\t\treturn $return;\n}"
VALUE;
