summaryrefslogtreecommitdiffstats
path: root/include/dnxcf_mail_template_danixland.php
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2020-11-04 12:10:15 +0100
committerdanix <danix@danix.xyz>2020-11-04 12:10:15 +0100
commit8c3e9b00bbeb0a3493d5b0e9b6cc4c68d413a4b0 (patch)
tree21ccfcd4e007c9ecb2f595726b8583b6b1649153 /include/dnxcf_mail_template_danixland.php
parent09a20ca4916ec0f26a9d944ae2de8657050d2bc8 (diff)
downloaddanixland-contact-form-8c3e9b00bbeb0a3493d5b0e9b6cc4c68d413a4b0.tar.gz
danixland-contact-form-8c3e9b00bbeb0a3493d5b0e9b6cc4c68d413a4b0.zip
Linted files
modificato: danixland-contact-form.php modificato: include/dnxcf_helper.php modificato: include/dnxcf_mail_template_danixland.php modificato: include/dnxcf_options-display.php modificato: include/dnxcf_options-register.php modificato: include/dnxcf_settings.php modificato: include/index.php modificato: index.php modificato: uninstall.php
Diffstat (limited to 'include/dnxcf_mail_template_danixland.php')
-rw-r--r--include/dnxcf_mail_template_danixland.php35
1 files changed, 17 insertions, 18 deletions
diff --git a/include/dnxcf_mail_template_danixland.php b/include/dnxcf_mail_template_danixland.php
index 69766ac..1c7d5b7 100644
--- a/include/dnxcf_mail_template_danixland.php
+++ b/include/dnxcf_mail_template_danixland.php
@@ -1,4 +1,4 @@
-<?php
+<?php
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
/**
* danixland-contact-form standard Template
@@ -23,20 +23,20 @@ the 2 arrays example structure is the following:
// this is data gathered via various php variables and WordPress functions
$data = array(
- 'ownname' = '', // name of the person receiving the message aka US!
- 'site' = get_bloginfo('name'), // the site name
- 'time' = '', // string generated by current_time()
- 'host' = '', // string generated by getenv("REMOTE_ADDR")
- 'ua' = '' // string corresponding to $_SERVER['HTTP_USER_AGENT']
+ 'ownname' = '', // name of the person receiving the message aka US!
+ 'site' = get_bloginfo('name'), // the site name
+ 'time' = '', // string generated by current_time()
+ 'host' = '', // string generated by getenv("REMOTE_ADDR")
+ 'ua' = '' // string corresponding to $_SERVER['HTTP_USER_AGENT']
);
// this is data sent via $_POST by the form itself
$posted = array(
- 'dnxcf_name' = '', // the name of the user sending the message
- 'dnxcf_email' = '', // the user's email
- 'dnxcf_website' = '', // the user's website
- 'dnxcf_subject' = '', // the subject of the message
- 'dnxcf_message' = '' // the message body
+ 'dnxcf_name' = '', // the name of the user sending the message
+ 'dnxcf_email' = '', // the user's email
+ 'dnxcf_website' = '', // the user's website
+ 'dnxcf_subject' = '', // the subject of the message
+ 'dnxcf_message' = '' // the message body
);
*/
@@ -45,12 +45,12 @@ $posted = array(
// always the same name or the main plugin won't be able to send emails
// NOTE TO SELF: "I need to fix this ASAP"
function dnxcf_email_content( $data = array(), $posted = array() ) {
- extract($data);
- extract($posted);
+ extract( $data );
+ extract( $posted );
- $ownurl = get_bloginfo('url');
-// heredoc to return the email content
- $output = <<<DNX44665312EOT
+ $ownurl = get_bloginfo( 'url' );
+ // heredoc to return the email content
+ $output = <<<DNX44665312EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -882,9 +882,8 @@ function dnxcf_email_content( $data = array(), $posted = array() ) {
DNX44665312EOT;
- return $output;
+ return $output;
}
-?>