Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apex_micro_site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
apex_micro_site
Commits
8bba7f98
Commit
8bba7f98
authored
May 17, 2018
by
jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge Request accepted by jenkins build success
parents
6634db58
32b2d1b1
Pipeline
#561
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+10
-3
download-now.php
...content/plugins/apex_global_lms/template/download-now.php
+13
-4
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
8bba7f98
...
@@ -180,11 +180,18 @@ function vq_lms_process_order()
...
@@ -180,11 +180,18 @@ function vq_lms_process_order()
}
}
}
}
$status
=
""
;
$pmsg
=
""
;
$to
.=
', '
.
$user
[
'email'
];
$to
.=
', '
.
$user
[
'email'
];
$subject
=
get_option
(
'vq_lms_payment_email_subject'
);
$subject
=
get_option
(
'vq_lms_payment_email_subject'
);
$body
=
''
;
$body
=
get_option
(
'vq_lms_payment_email_template'
);
$body
.=
$postContent
;
$body
=
str_replace
(
'[[ORDER_DETAILS]]'
,
$itemsXML
,
$body
);
$body
=
str_replace
(
'[[PRICE]]'
,
$totalCost
,
$body
);
$body
=
str_replace
(
'[[STATUS]]'
,
$status
,
$body
);
$body
=
str_replace
(
'[[RESPONSE]]'
,
$pmsg
,
$body
);
//$body .= $postContent;
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
$subject
,
$body
);
wp_mail
(
$to
,
$subject
,
$body
);
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/download-now.php
View file @
8bba7f98
...
@@ -49,11 +49,15 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
...
@@ -49,11 +49,15 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
if
(
$catx
==
'all'
)
{
if
(
$catx
==
'all'
)
{
$postContent
.=
'<br><strong>All Courses List: '
.
$listUrl
.
' </strong>'
;
//$postContent .= '<br><strong>All Courses List: ['. $listUrl .'] </strong>';
$list
=
'<br><strong>All Courses List: ['
.
$listUrl
.
'] </strong>'
;
}
else
{
$list
=
''
;
}
}
}
}
$postContent
.=
'<strong>Download Courses: ['
.
implode
(
', '
,
$courseName
)
.
'] </strong>'
;
//$postContent .= '<strong>Download Courses: [' . implode( ', ', $courseName ) . '] </strong>';
$courses
=
'<strong>Download Courses: ['
.
implode
(
', '
,
$courseName
)
.
'] </strong>'
;
$newDownloadRequest
=
array
(
$newDownloadRequest
=
array
(
'post_title'
=>
$fname
.
' '
.
$lname
,
'post_title'
=>
$fname
.
' '
.
$lname
,
...
@@ -65,8 +69,13 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
...
@@ -65,8 +69,13 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
$to
=
$_POST
[
'dl_email'
];
$to
=
$_POST
[
'dl_email'
];
$to
.=
', '
.
get_option
(
'vq_lms_payment_notify_email'
);
$to
.=
', '
.
get_option
(
'vq_lms_payment_notify_email'
);
$subject
=
get_option
(
'vq_lms_download_email_subject'
);
$subject
=
get_option
(
'vq_lms_download_email_subject'
);
$body
=
''
;
$body
=
get_option
(
'vq_lms_download_email_template'
);
$body
.=
$postContent
;
$body
=
str_replace
(
'[[DOWNLOAD_DETAILS]]'
,
$postContent
,
$body
);
$body
=
str_replace
(
'[[COURSES]]'
,
$courses
,
$body
);
$body
=
str_replace
(
'[[LIST]]'
,
$list
,
$body
);
//$body .= $postContent;
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
add_filter
(
'wp_mail_content_type'
,
'set_html_content_type'
);
wp_mail
(
$to
,
$subject
,
$body
);
wp_mail
(
$to
,
$subject
,
$body
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment