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
6d016e3f
Commit
6d016e3f
authored
Mar 01, 2018
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feedback fixes
parent
9848ea4a
Pipeline
#371
passed with stage
in 0 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
584 additions
and
152 deletions
+584
-152
lms-setting.php
.../wp-content/plugins/apex_global_lms/admin/lms-setting.php
+28
-0
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+22
-2
lms.css
...A/wp-content/plugins/apex_global_lms/template/css/lms.css
+314
-2
download-now.php
...content/plugins/apex_global_lms/template/download-now.php
+143
-125
e-learning.php
...p-content/plugins/apex_global_lms/template/e-learning.php
+24
-21
it-course.php
...wp-content/plugins/apex_global_lms/template/it-course.php
+9
-0
lms.js
...ATA/wp-content/plugins/apex_global_lms/template/js/lms.js
+15
-0
learner-detail.php
...ntent/plugins/apex_global_lms/template/learner-detail.php
+15
-2
management.php
...p-content/plugins/apex_global_lms/template/management.php
+7
-0
pricing-request.php
...tent/plugins/apex_global_lms/template/pricing-request.php
+7
-0
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/admin/lms-setting.php
View file @
6d016e3f
...
...
@@ -229,6 +229,20 @@ function vq_lms_settings_init()
]
);
add_settings_field
(
'vq_lms_settings_field_intro_price'
,
'Intro Price'
,
'vq_lms_settings_field_intro_price_cb'
,
'vq_lms_settings'
,
'vq_lms_settings_section_developers'
,
[
'label_for'
=>
'vq_lms_settings_field_intro_price'
,
'class'
=>
'vq_lms_settings_row'
,
'vq_lms_settings_custom_data'
=>
'custom'
,
]
);
add_settings_field
(
'vq_lms_settings_field_shortcode'
,
'Banner Shortcode'
,
...
...
@@ -282,6 +296,20 @@ function vq_lms_settings_section_developers_cb($args)
}
function
vq_lms_settings_field_intro_price_cb
(
$args
)
{
$options
=
get_option
(
'vq_lms_settings_options'
);
?>
<input
type=
"text"
name=
"vq_lms_settings_options[
<?php
echo
esc_attr
(
$args
[
'label_for'
]);
?>
]"
value=
"
<?php
echo
$options
[
$args
[
'label_for'
]];
?>
"
>
<p
class=
"description"
>
<?php
esc_html_e
(
'Your entered price will be listed as intro price (special offer).'
,
'vq_lms_settings'
);
?>
</p>
<?php
}
function
vq_lms_settings_field_price_cb
(
$args
)
{
$options
=
get_option
(
'vq_lms_settings_options'
);
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
6d016e3f
...
...
@@ -34,6 +34,21 @@ add_shortcode('vq_course_banner', 'vq_render_course_banner');
add_shortcode
(
'vq_lms_inquiry_form'
,
'vq_render_inquiry_form'
);
add_filter
(
'the_title'
,
'change_title'
);
function
change_title
(
$data
)
{
global
$post
;
$title
=
get_post_meta
(
$post
->
ID
,
'lms_title'
,
true
);
if
(
$title
!=
null
)
{
$data
=
$title
;
}
return
$data
;
}
add_action
(
'vq_course_promo_add_form_fields'
,
'add_course_promo'
,
10
,
2
);
add_action
(
'vq_course_promo_edit_form_fields'
,
'edit_course_promo'
,
10
,
2
);
add_action
(
'created_vq_course_promo'
,
'save_course_promo'
,
10
,
2
);
...
...
@@ -100,11 +115,16 @@ function vq_lms_process_order()
}
$data
=
json_decode
(
stripslashes
(
$_POST
[
'data'
]),
true
);
if
(
$data
[
'terms'
]
!=
'on'
)
{
echo
"Terms & Conditions not accepted."
;
die
;
}
$code
=
""
;
if
(
isset
(
$data
[
'pcode'
]))
{
$code
=
$data
[
'pcode'
];
}
print_r
(
json_decode
(
$_POST
));
if
(
count
(
$data
[
'data'
])
===
0
)
{
echo
"Unable to process your request"
;
...
...
@@ -510,7 +530,7 @@ function vq_render_course_banner($attr)
if
(
empty
(
$fee
)
||
$fee
<=
0
)
{
$settings
=
get_option
(
'vq_lms_settings_options'
);
$fee
=
$settings
[
'vq_lms_settings_field_
general
_price'
];
$fee
=
$settings
[
'vq_lms_settings_field_
intro
_price'
];
}
$banner
=
file_get_contents
(
__DIR__
.
'/admin/includes/large-banner.html'
);
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/css/lms.css
View file @
6d016e3f
...
...
@@ -736,4 +736,317 @@
.bootstrap-iso
h3
.lms-excerpt
{
text-align
:
center
;
color
:
#fff
;
}
\ No newline at end of file
}
.bootstrap-iso
.lms-breadcrumbs
{
background-color
:
#ececec
;
padding
:
20px
;
}
.bootstrap-iso
.lms-breadcrumbs
p
{
font-size
:
18px
;
border-bottom
:
1px
dotted
#000
;
display
:
inline-block
;
}
.bootstrap-iso
.col-xs-5th-1
,
.bootstrap-iso
.col-xs-5th-2
,
.bootstrap-iso
.col-xs-5th-3
,
.bootstrap-iso
.col-xs-5th-4
{
float
:
left
;
}
.bootstrap-iso
.col-xs-5th-5
{
float
:
left
;
width
:
100%
;
}
.bootstrap-iso
.col-xs-5th-4
{
width
:
80%
;
}
.bootstrap-iso
.col-xs-5th-3
{
width
:
60%
;
}
.bootstrap-iso
.col-xs-5th-2
{
width
:
40%
;
}
.bootstrap-iso
.col-xs-5th-1
{
width
:
20%
;
margin-left
:
10px
;
}
.bootstrap-iso
.col-xs-5th-pull-5
{
right
:
100%
;
}
.bootstrap-iso
.col-xs-5th-pull-4
{
right
:
80%
;
}
.bootstrap-iso
.col-xs-5th-pull-3
{
right
:
60%
;
}
.bootstrap-iso
.col-xs-5th-pull-2
{
right
:
40%
;
}
.bootstrap-iso
.col-xs-5th-pull-1
{
right
:
20%
;
}
.bootstrap-iso
.col-xs-5th-pull-0
{
right
:
auto
;
}
.bootstrap-iso
.col-xs-5th-push-5
{
left
:
100%
;
}
.bootstrap-iso
.col-xs-5th-push-4
{
left
:
80%
;
}
.bootstrap-iso
.col-xs-5th-push-3
{
left
:
60%
;
}
.bootstrap-iso
.col-xs-5th-push-2
{
left
:
40%
;
}
.bootstrap-iso
.col-xs-5th-push-1
{
left
:
20%
;
}
.bootstrap-iso
.col-xs-5th-push-0
{
left
:
auto
;
}
.bootstrap-iso
.col-xs-5th-offset-5
{
margin-left
:
100%
;
}
.bootstrap-iso
.col-xs-5th-offset-4
{
margin-left
:
80%
;
}
.bootstrap-iso
.col-xs-5th-offset-3
{
margin-left
:
60%
;
}
.bootstrap-iso
.col-xs-5th-offset-2
{
margin-left
:
40%
;
}
.bootstrap-iso
.col-xs-5th-offset-1
{
margin-left
:
20%
;
}
.bootstrap-iso
.col-xs-5th-offset-0
{
margin-left
:
0%
;
}
@media
(
min-width
:
768px
)
{
.bootstrap-iso
.col-sm-5th-1
,
.bootstrap-iso
.col-sm-5th-2
,
.bootstrap-iso
.col-sm-5th-3
,
.bootstrap-iso
.col-sm-5th-4
{
float
:
left
;
}
.bootstrap-iso
.col-sm-5th-5
{
float
:
left
;
width
:
100%
;
}
.bootstrap-iso
.col-sm-5th-4
{
width
:
80%
;
}
.bootstrap-iso
.col-sm-5th-3
{
width
:
60%
;
}
.bootstrap-iso
.col-sm-5th-2
{
width
:
40%
;
}
.bootstrap-iso
.col-sm-5th-1
{
width
:
20%
;
margin-left
:
15px
;
}
.bootstrap-iso
.col-sm-5th-pull-5
{
right
:
100%
;
}
.bootstrap-iso
.col-sm-5th-pull-4
{
right
:
80%
;
}
.bootstrap-iso
.col-sm-5th-pull-3
{
right
:
60%
;
}
.bootstrap-iso
.col-sm-5th-pull-2
{
right
:
40%
;
}
.bootstrap-iso
.col-sm-5th-pull-1
{
right
:
20%
;
}
.bootstrap-iso
.col-sm-5th-pull-0
{
right
:
auto
;
}
.bootstrap-iso
.col-sm-5th-push-5
{
left
:
100%
;
}
.bootstrap-iso
.col-sm-5th-push-4
{
left
:
80%
;
}
.bootstrap-iso
.col-sm-5th-push-3
{
left
:
60%
;
}
.bootstrap-iso
.col-sm-5th-push-2
{
left
:
40%
;
}
.bootstrap-iso
.col-sm-5th-push-1
{
left
:
20%
;
}
.bootstrap-iso
.col-sm-5th-push-0
{
left
:
auto
;
}
.bootstrap-iso
.col-sm-5th-offset-5
{
margin-left
:
100%
;
}
.bootstrap-iso
.col-sm-5th-offset-4
{
margin-left
:
80%
;
}
.bootstrap-iso
.col-sm-5th-offset-3
{
margin-left
:
60%
;
}
.bootstrap-iso
.col-sm-5th-offset-2
{
margin-left
:
40%
;
}
.bootstrap-iso
.col-sm-5th-offset-1
{
margin-left
:
20%
;
}
.bootstrap-iso
.col-sm-5th-offset-0
{
margin-left
:
0%
;
}
}
@media
(
min-width
:
992px
)
{
.bootstrap-iso
.col-md-5th-1
,
.bootstrap-iso
.col-md-5th-2
,
.bootstrap-iso
.col-md-5th-3
,
.bootstrap-iso
.col-md-5th-4
{
float
:
left
;
}
.bootstrap-iso
.col-md-5th-5
{
float
:
left
;
width
:
100%
;
}
.bootstrap-iso
.col-md-5th-4
{
width
:
80%
;
}
.bootstrap-iso
.col-md-5th-3
{
width
:
60%
;
}
.bootstrap-iso
.col-md-5th-2
{
width
:
40%
;
}
.bootstrap-iso
.col-md-5th-1
{
margin-left
:
20px
;
width
:
20%
;
}
.bootstrap-iso
.col-md-5th-pull-5
{
right
:
100%
;
}
.bootstrap-iso
.col-md-5th-pull-4
{
right
:
80%
;
}
.bootstrap-iso
.col-md-5th-pull-3
{
right
:
60%
;
}
.bootstrap-iso
.col-md-5th-pull-2
{
right
:
40%
;
}
.bootstrap-iso
.col-md-5th-pull-1
{
right
:
20%
;
}
.bootstrap-iso
.col-md-5th-pull-0
{
right
:
auto
;
}
.bootstrap-iso
.col-md-5th-push-5
{
left
:
100%
;
}
.bootstrap-iso
.col-md-5th-push-4
{
left
:
80%
;
}
.bootstrap-iso
.col-md-5th-push-3
{
left
:
60%
;
}
.bootstrap-iso
.col-md-5th-push-2
{
left
:
40%
;
}
.bootstrap-iso
.col-md-5th-push-1
{
left
:
20%
;
}
.bootstrap-iso
.col-md-5th-push-0
{
left
:
auto
;
}
.bootstrap-iso
.col-md-5th-offset-5
{
margin-left
:
100%
;
}
.bootstrap-iso
.col-md-5th-offset-4
{
margin-left
:
80%
;
}
.bootstrap-iso
.col-md-5th-offset-3
{
margin-left
:
60%
;
}
.bootstrap-iso
.col-md-5th-offset-2
{
margin-left
:
40%
;
}
.bootstrap-iso
.col-md-5th-offset-1
{
margin-left
:
20%
;
}
.bootstrap-iso
.col-md-5th-offset-0
{
margin-left
:
0%
;
}
}
@media
(
min-width
:
1200px
)
{
.bootstrap-iso
.col-lg-5th-1
,
.bootstrap-iso
.col-lg-5th-2
,
.bootstrap-iso
.col-lg-5th-3
,
.bootstrap-iso
.col-lg-5th-4
{
float
:
left
;
}
.bootstrap-iso
.col-lg-5th-5
{
float
:
left
;
width
:
100%
;
}
.bootstrap-iso
.col-lg-5th-4
{
width
:
80%
;
}
.bootstrap-iso
.col-lg-5th-3
{
width
:
60%
;
}
.bootstrap-iso
.col-lg-5th-2
{
width
:
40%
;
}
.bootstrap-iso
.col-lg-5th-1
{
width
:
20%
;
margin-left
:
20px
;
}
.bootstrap-iso
.col-lg-5th-pull-5
{
right
:
100%
;
}
.bootstrap-iso
.col-lg-5th-pull-4
{
right
:
80%
;
}
.bootstrap-iso
.col-lg-5th-pull-3
{
right
:
60%
;
}
.bootstrap-iso
.col-lg-5th-pull-2
{
right
:
40%
;
}
.bootstrap-iso
.col-lg-5th-pull-1
{
right
:
20%
;
}
.bootstrap-iso
.col-lg-5th-pull-0
{
right
:
auto
;
}
.bootstrap-iso
.col-lg-5th-push-5
{
left
:
100%
;
}
.bootstrap-iso
.col-lg-5th-push-4
{
left
:
80%
;
}
.bootstrap-iso
.col-lg-5th-push-3
{
left
:
60%
;
}
.bootstrap-iso
.col-lg-5th-push-2
{
left
:
40%
;
}
.bootstrap-iso
.col-lg-5th-push-1
{
left
:
20%
;
}
.bootstrap-iso
.col-lg-5th-push-0
{
left
:
auto
;
}
.bootstrap-iso
.col-lg-5th-offset-5
{
margin-left
:
100%
;
}
.bootstrap-iso
.col-lg-5th-offset-4
{
margin-left
:
80%
;
}
.bootstrap-iso
.col-lg-5th-offset-3
{
margin-left
:
60%
;
}
.bootstrap-iso
.col-lg-5th-offset-2
{
margin-left
:
40%
;
}
.bootstrap-iso
.col-lg-5th-offset-1
{
margin-left
:
20%
;
}
.bootstrap-iso
.col-lg-5th-offset-0
{
margin-left
:
0%
;
}
}
WWW_DATA/wp-content/plugins/apex_global_lms/template/download-now.php
View file @
6d016e3f
<?php
if
(
'POST'
===
$_SERVER
[
'REQUEST_METHOD'
]
&&
isset
(
$_POST
[
'download_submit'
])
&&
$_POST
[
'post_action'
]
===
'download-all'
)
{
$fname
=
$_POST
[
'dl_firstName'
];
$lname
=
$_POST
[
'dl_lastName'
];
$company
=
$_POST
[
'dl_company'
];
$email
=
$_POST
[
'dl_email'
];
$cNumber
=
$_POST
[
'dl_contactNumber'
];
$jobTitle
=
$_POST
[
'dl_jobTitle'
];
$country
=
$_POST
[
'dl_country'
];
$dlCourses
=
$_POST
[
'dl_course'
];
if
(
'POST'
===
$_SERVER
[
'REQUEST_METHOD'
]
&&
isset
(
$_POST
[
'download_submit'
]
)
&&
$_POST
[
'post_action'
]
===
'download-all'
)
{
$fname
=
$_POST
[
'dl_firstName'
];
$lname
=
$_POST
[
'dl_lastName'
];
$company
=
$_POST
[
'dl_company'
];
$email
=
$_POST
[
'dl_email'
];
$cNumber
=
$_POST
[
'dl_contactNumber'
];
$jobTitle
=
$_POST
[
'dl_jobTitle'
];
$country
=
$_POST
[
'dl_country'
];
$dlCourses
=
$_POST
[
'dl_course'
];
$postContent
=
'<strong>First Name: '
.
$fname
.
'</strong><br>'
;
$postContent
.=
'<strong>Last Name: '
.
$lname
.
'</strong><br>'
;
$postContent
.=
'<strong>Company: '
.
$company
.
'</strong><br>'
;
$postContent
.=
'<strong>Email: '
.
$email
.
'</strong><br>'
;
$postContent
.=
'<strong>Contact Number: '
.
$cNumber
.
'</strong><br>'
;
$postContent
.=
'<strong>Job Title: '
.
$jobTitle
.
'</strong><br>'
;
$postContent
.=
'<strong>Country: '
.
$country
.
'</strong><br>'
;
$courseName
=
array
();
foreach
(
$dlCourses
as
$course
)
{
$courses
=
new
WP_Query
(
array
(
'post_type'
=>
'vq_course'
)
);
while
(
$courses
->
have_posts
()
)
{
$courses
->
the_post
();
if
(
$course
==
get_the_ID
())
{
$courseName
[]
=
get_the_title
();
}
}
}
$postContent
.=
'<strong>Courses: ['
.
implode
(
', '
,
$courseName
)
.
'] </strong>'
;
$newDownloadRequest
=
array
(
'post_title'
=>
$fname
.
' '
.
$lname
,
'post_type'
=>
'vq_lms_drequest'
,
'post_status'
=>
'publish'
,
'post_content'
=>
$postContent
);
$postContent
=
'<strong>First Name: '
.
$fname
.
'</strong><br>'
;
$postContent
.=
'<strong>Last Name: '
.
$lname
.
'</strong><br>'
;
$postContent
.=
'<strong>Company: '
.
$company
.
'</strong><br>'
;
$postContent
.=
'<strong>Email: '
.
$email
.
'</strong><br>'
;
$postContent
.=
'<strong>Contact Number: '
.
$cNumber
.
'</strong><br>'
;
$postContent
.=
'<strong>Job Title: '
.
$jobTitle
.
'</strong><br>'
;
$postContent
.=
'<strong>Country: '
.
$country
.
'</strong><br>'
;
$courseName
=
array
();
foreach
(
$dlCourses
as
$course
)
{
$courses
=
new
WP_Query
(
array
(
'post_type'
=>
'vq_course'
)
);
while
(
$courses
->
have_posts
()
)
{
$courses
->
the_post
();
if
(
$course
==
get_the_ID
()
)
{
$courseName
[]
=
get_the_title
();
}
}
}
$postContent
.=
'<strong>Courses: ['
.
implode
(
', '
,
$courseName
)
.
'] </strong>'
;
$newDownloadRequest
=
array
(
'post_title'
=>
$fname
.
' '
.
$lname
,
'post_type'
=>
'vq_lms_drequest'
,
'post_status'
=>
'publish'
,
'post_content'
=>
$postContent
);
$pid
=
wp_insert_post
(
$newDownloadRequest
);
$pid
=
wp_insert_post
(
$newDownloadRequest
);
update_post_meta
(
$pid
,
'dl_firstName'
,
$fname
);
update_post_meta
(
$pid
,
'dl_lastName'
,
$lname
);
update_post_meta
(
$pid
,
'dl_company'
,
$company
);
update_post_meta
(
$pid
,
'dl_email'
,
$email
);
update_post_meta
(
$pid
,
'dl_contactNumber'
,
$cNumber
);
update_post_meta
(
$pid
,
'dl_jobTitle'
,
$jobTitle
);
update_post_meta
(
$pid
,
'dl_country'
,
$country
);
update_post_meta
(
$pid
,
'dl_courses'
,
json_encode
(
$courses
)
);
update_post_meta
(
$pid
,
'dl_firstName'
,
$fname
);
update_post_meta
(
$pid
,
'dl_lastName'
,
$lname
);
update_post_meta
(
$pid
,
'dl_company'
,
$company
);
update_post_meta
(
$pid
,
'dl_email'
,
$email
);
update_post_meta
(
$pid
,
'dl_contactNumber'
,
$cNumber
);
update_post_meta
(
$pid
,
'dl_jobTitle'
,
$jobTitle
);
update_post_meta
(
$pid
,
'dl_country'
,
$country
);
update_post_meta
(
$pid
,
'dl_courses'
,
json_encode
(
$courses
)
);
header
(
'Location: '
.
'/thank-you-download'
);
header
(
'Location: '
.
'/thank-you-download'
);
}
get_header
();
$page
=
get_page_by_path
(
'download-all'
);
$settings
=
$options
=
get_option
(
'vq_lms_settings_options'
);
$video
=
$settings
[
'vq_lms_settings_field_video'
];
$courses
=
new
WP_Query
(
array
(
'post_type'
=>
'vq_course'
)
);
$page
=
get_page_by_path
(
'download-all'
);
$settings
=
$options
=
get_option
(
'vq_lms_settings_options'
);
$video
=
$settings
[
'vq_lms_settings_field_video'
];
$courses
=
new
WP_Query
(
array
(
'post_type'
=>
'vq_course'
)
);
$selected_id
=
isset
(
$_GET
[
'course'
])
?
$_GET
[
'course'
]
:
-
1
;
$selected_id
=
isset
(
$_GET
[
'course'
]
)
?
$_GET
[
'course'
]
:
-
1
;
?>
<div
class=
"bootstrap-iso"
>
<div
class=
"e-learning-banner"
style=
"background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
$page
);
?>
)"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"e-learning-heading"
>
<h2>
<?php
echo
$page
->
post_title
?>
</h2>
</div>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<form
class=
"inquire-box"
method=
"post"
name=
"download-post"
action=
""
>
<div
class=
"bootstrap-iso"
>
<div
class=
"e-learning-banner"
style=
"background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
$page
);
?>
)"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"e-learning-heading"
>
<h2>
<?php
echo
$page
->
post_title
?>
</h2>
</div>
</div>
</div>
</div>
<div
class=
"lms-breadcrumbs"
>
<div
class=
"container"
>
<div
class=
"row"
>
<p><a
href=
"
<?php
echo
"/lms"
?>
"
>
LMS
</a>
>
<?php
echo
$page
->
post_title
;
?>
</p>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<form
class=
"inquire-box"
method=
"post"
name=
"download-post"
action=
""
>
<h2
class=
"text-center"
style=
"margin-top: 0; font-weight: bold;"
>
Download Now
</h2>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_firstName"
placeholder=
"First Name"
required
>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_firstName"
placeholder=
"First Name"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_lastName"
placeholder=
"Last Name"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_company"
placeholder=
"Company Name"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_email"
placeholder=
"Email Address"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_lastName"
placeholder=
"Last Name"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_company"
placeholder=
"Company Name"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_email"
placeholder=
"Email Address"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_contactNumber"
placeholder=
"Contact Number"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_jobTitle"
placeholder=
"Job Title"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<select
class=
"form-control chosen-select"
name=
"dl_country"
data-placeholder=
"Select Country"
>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_contactNumber"
placeholder=
"Contact Number"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"dl_jobTitle"
placeholder=
"Job Title"
required
>
</div>
<div
class=
"col-md-12 form-group"
>
<select
class=
"form-control chosen-select"
name=
"dl_country"
data-placeholder=
"Select Country"
>
<option
value=
"AF"
>
Afghanistan
</option>
<option
value=
"AX"
>
Åland Islands
</option>
<option
value=
"AL"
>
Albania
</option>
...
...
@@ -345,54 +357,59 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
<option
value=
"ZM"
>
Zambia
</option>
<option
value=
"ZW"
>
Zimbabwe
</option>
</select>
</div>
<div
class=
"col-md-12 form-group"
>
<select
class=
"form-control chosen-select"
name=
"dl_course[]"
multiple
data-placeholder=
"Select Courses"
>
<?php
while
(
$courses
->
have_posts
())
{
$courses
->
the_post
();
?>
<option
value=
"
<?php
the_ID
();
?>
"
<?php
if
(
get_the_ID
()
==
$selected_id
)
echo
' selected'
;
?>
>
<?php
the_title
();
?>
</option>
<?php
}
$page
=
get_page_by_path
(
'download-all'
);
?>
</div>
<div
class=
"col-md-12 form-group"
>
<select
class=
"form-control chosen-select"
name=
"dl_course[]"
multiple
data-placeholder=
"Select Courses"
>
<?php
while
(
$courses
->
have_posts
()
)
{
$courses
->
the_post
();
?>
<option
value=
"
<?php
the_ID
();
?>
"
<?php
if
(
get_the_ID
()
==
$selected_id
)
{
echo
' selected'
;
}
?>
>
<?php
the_title
();
?>
</option>
<?php
}
$page
=
get_page_by_path
(
'download-all'
);
?>
</select>
</div>
<div
class=
"col-md-12 form-group"
>
<input
value=
"Submit"
type=
"submit"
name=
"download_submit"
class=
"submit-course-button"
/>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"col-md-12 form-group"
>
<input
value=
"Submit"
type=
"submit"
name=
"download_submit"
class=
"submit-course-button"
/>
</div>
<div
class=
"clear"
></div>
<?php
wp_nonce_field
(
'new_song_nonce'
);
?>
<input
type=
"hidden"
id=
"post_action"
name=
"post_action"
value=
"download-all"
/>
</form>
</div>
<div
class=
"col-sm-6"
>
<input
type=
"hidden"
id=
"post_action"
name=
"post_action"
value=
"download-all"
/>
</form>
</div>
<div
class=
"col-sm-6"
>
<video
class=
"management-video"
src=
"
<?php
echo
$video
;
?>
"
>
</video>
<div
class=
"inquire-box"
>
<div
class=
"col-sm-12"
>
<div
class=
"payment-heading"
>
<h4>
<?php
echo
$page
->
post_excerpt
;
?>
</h4>
<p>
<?php
echo
$page
->
post_content
?>
</p>
</div>
</div>
<div
class=
"col-sm-4"
>
<div
class=
"text-center"
>
<img
class=
"icon"
src=
"
<?php
plugin_dir_url
(
__FILE__
);
?>
imgaes/learning-management-icon.png"
alt=
""
/>
</div>
</div>
<div
class=
"col-sm-8"
>
<button
type=
"submit"
class=
"submit-course-button"
>
Learn More
</button>
</div>
<div
class=
"clear"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"inquire-box"
>
<div
class=
"col-sm-12"
>
<div
class=
"payment-heading"
>
<h4>
<?php
echo
$page
->
post_excerpt
;
?>
</h4>
<p>
<?php
echo
$page
->
post_content
?>
</p>
</div>
</div>
<div
class=
"col-sm-4"
>
<div
class=
"text-center"
>
<img
class=
"icon"
src=
"
<?php
plugin_dir_url
(
__FILE__
);
?>
imgaes/learning-management-icon.png"
alt=
""
/>
</div>
</div>
<div
class=
"col-sm-8"
>
<button
type=
"submit"
class=
"submit-course-button"
>
Learn More
</button>
</div>
<div
class=
"clear"
></div>
</div>
</div>
</div>
</div>
</div>
<?php
get_footer
();
?>
\ No newline at end of file
WWW_DATA/wp-content/plugins/apex_global_lms/template/e-learning.php
View file @
6d016e3f
...
...
@@ -10,7 +10,7 @@ $course_categories = get_terms( array(
?>
<div
class=
"bootstrap-iso"
>
<div
class=
"e-learning-banner"
style=
"position: relative; background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
$page
);
?>
)"
>
<div
class=
"e-learning-banner"
style=
"position: relative; background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
$page
);
?>
)
;padding-bottom: 0;
"
>
<a
href=
"https://www.learn.apexgloballearning.com/"
class=
""
style=
"position: absolute; top: -1%; right: 9%;"
>
<img
style=
"width: 80%;"
src=
"
<?php
echo
plugin_dir_url
(
__FILE__
);
?>
imgaes/E-learning-login.png"
alt=
""
>
...
...
@@ -22,6 +22,7 @@ $course_categories = get_terms( array(
<h3>
<?php
echo
$page
->
post_content
?>
</h3>
</div>
</div>
<p
style=
"color: #fff; padding: 50px 0;"
class=
"text-center"
>
Learning Management System
</p>
</div>
</div>
<div
class=
"learning-profile-bg"
>
...
...
@@ -32,28 +33,30 @@ $course_categories = get_terms( array(
<h4>
<?php
echo
$page
->
post_excerpt
?>
</h4>
</div>
</div>
<?php
foreach
(
$course_categories
as
$category
){
?>
<div
class=
"col-sm-3"
>
<div
class=
"learning-profile-box"
>
<div
class=
"e-learning-course-1"
style=
"background-image: url(
<?php
echo
wp_get_attachment_url
(
get_term_meta
(
$category
->
term_id
,
'vq_course_taxonomy-image-id'
,
true
))
?>
)"
>
<div
class=
"e-learning-heading"
>
<h5>
<?php
echo
$category
->
name
?>
</h5>
<div
class=
"bootstrap-iso"
>
<?php
foreach
(
$course_categories
as
$category
){
?>
<div
class=
"col-md-5th-1"
>
<div
class=
"learning-profile-box"
>
<div
class=
"e-learning-course-1"
style=
"background-image: url(
<?php
echo
wp_get_attachment_url
(
get_term_meta
(
$category
->
term_id
,
'vq_course_taxonomy-image-id'
,
true
))
?>
)"
>
<div
class=
"e-learning-heading"
>
<h5>
<?php
echo
$category
->
name
?>
</h5>
</div>
</div>
<div
class=
"col-sm-12"
>
<div
class=
"e-learning-heading descrip"
>
<p>
<?php
echo
substr
(
$category
->
description
,
0
,
150
)
.
' ...'
;
?>
</p>
</div>
</div>
<div
class=
"col-sm-12"
>
<div
class=
"text-center"
>
<a
href=
"
<?php
echo
get_permalink
(
get_page_by_path
(
'lms-courses'
))
.
$category
->
slug
?>
"
class=
"learn-button"
>
Learn More
</a>
</div>
</div>
<div
class=
"clear"
></div>
</div>
</div>
<div
class=
"col-sm-12"
>
<div
class=
"e-learning-heading descrip"
>
<p>
<?php
echo
substr
(
$category
->
description
,
0
,
150
)
.
' ...'
;
?>
</p>
</div>
</div>
<div
class=
"col-sm-12"
>
<div
class=
"text-center"
>
<a
href=
"
<?php
echo
get_permalink
(
get_page_by_path
(
'lms-courses'
))
.
$category
->
slug
?>
"
class=
"learn-button"
>
Learn More
</a>
</div>
</div>
<div
class=
"clear"
></div>
</div>
<?php
}
?>
</div>
<?php
}
?>
</div>
</div>
</div>
...
...
@@ -63,7 +66,7 @@ $course_categories = get_terms( array(
btnClr="#fff"
bgClr="#f89f18"
btnBg="#2898c4"
btnLink="
lms-pricing
"
btnLink="
download-all
"
btnTxt="Download Full List Of Courses"
txt="Not sure which course to take?"]'
);
?>
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/it-course.php
View file @
6d016e3f
...
...
@@ -47,6 +47,13 @@ $page = get_page_by_path('lms-courses');
</div>
</div>
</div>
<div
class=
"lms-breadcrumbs"
>
<div
class=
"container"
>
<div
class=
"row"
>
<p><a
href=
"
<?php
echo
"/lms"
?>
"
>
LMS
</a>
>
<?php
echo
$term
->
name
;
?>
</p>
</div>
</div>
</div>
<div
class=
"learning-profile-bg"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -54,6 +61,8 @@ $page = get_page_by_path('lms-courses');
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-8"
>
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/js/lms.js
View file @
6d016e3f
...
...
@@ -228,10 +228,16 @@
return
;
}
if
(
!
$
(
"#accepted_terms"
).
is
(
':checked'
))
{
alert
(
'Please accept turns & conditions.'
);
return
;
}
var
data
=
{};
data
.
data
=
learners
;
data
.
pcode
=
$
(
"#pcode-value"
).
val
();
data
.
terms
=
$
(
"#accepted_terms"
).
val
();
data
.
id
=
parseInt
(
pid
);
...
...
@@ -288,5 +294,13 @@
});
$
(
"#accepted_terms"
).
on
(
'click'
,
function
()
{
if
(
$
(
this
).
is
(
':checked'
))
{
$
(
"#lmsProcessPayment"
).
prop
(
'disabled'
,
false
);
}
else
{
$
(
"#lmsProcessPayment"
).
attr
(
'disabled'
,
true
);
}
});
})(
jQuery
);
\ No newline at end of file
WWW_DATA/wp-content/plugins/apex_global_lms/template/learner-detail.php
View file @
6d016e3f
...
...
@@ -46,6 +46,13 @@ while (have_posts()):
</div>
</div>
</div>
<div
class=
"lms-breadcrumbs"
>
<div
class=
"container"
>
<div
class=
"row"
>
<p><a
href=
"
<?php
echo
"/lms"
?>
"
>
LMS
</a>
>
<?php
echo
get_the_title
();
?>
</p>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row ldr"
id=
"ldr"
>
<div
class=
"loader"
></div>
...
...
@@ -95,6 +102,11 @@ while (have_posts()):
</div>
</div>
<div
class=
"col-sm-12"
>
<label
for=
""
>
<input
type=
"checkbox"
id=
"accepted_terms"
name=
"terms_condition"
>
<span
style=
"font-weight: normal; font-size: 14px; margin-left: 5px;"
>
I have read and understood the
<a
href=
"http://apexgloballearning.com/refund-and-cancellation-policy/"
>
Terms
&
Conditions
</a></span>
.
</label>
</div>
<div
class=
"col-sm-12"
>
<button
type=
"submit"
id=
"lmsProcessPayment"
class=
"payment-course-button"
>
Proceed to
payment
</button>
</div>
...
...
@@ -115,14 +127,15 @@ while (have_posts()):
<
div
class
=
"col-sm-8 col-padding"
>
<
input
class
=
"form-control text-feild"
placeholder
=
"Name"
maxlength
=
"200"
type
=
"string"
name
=
"fname"
required
pattern
=
"[a-zA-Z]+[ ][a-zA-Z]+"
/>
<
small
style
=
"font-size: 12px;"
>
format
:
FirstName
LastName
<
/small>
<
small
style
=
"font-size: 12px;"
>
format
:
John
Smith
<
/small>
<
input
class
=
"form-control text-feild"
placeholder
=
"Email"
maxlength
=
"200"
type
=
"email"
name
=
"email"
required
/>
<
small
style
=
"font-size: 12px;"
>
format
:
john
@
example
.
com
<
/small>
<
input
class
=
"form-control text-feild"
placeholder
=
"Confirm Email"
maxlength
=
"200"
type
=
"email"
name
=
"confirmEmail"
required
/>
<
input
class
=
"form-control text-feild"
placeholder
=
"Phone number"
maxlength
=
"200"
type
=
"string"
name
=
"phone"
pattern
=
"
\
+
\
d{2,3}
\
s
\
d*"
required
/>
<
small
style
=
"font-size: 12px;"
>
format
:
+
xx
xxxxxxx
<
/small>
<
small
style
=
"font-size: 12px;"
>
format
:
+
12
3456789
<
/small>
<
div
class
=
"lms-all-course-holder"
>
<
/div>
<
a
href
=
"#"
class
=
"lms-courses-select-btn"
><
img
class
=
"add-icon"
src
=
"
<?php
echo
plugin_dir_url
(
__FILE__
);
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/management.php
View file @
6d016e3f
...
...
@@ -12,6 +12,13 @@ get_header();
</div>
</div>
</div>
<div
class=
"lms-breadcrumbs"
>
<div
class=
"container"
>
<div
class=
"row"
>
<p><a
href=
"
<?php
echo
"/lms"
?>
"
>
LMS
</a>
>
<?php
echo
get_the_title
();
?>
</p>
</div>
</div>
</div>
<div
class=
"learning-profile-bg"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/pricing-request.php
View file @
6d016e3f
...
...
@@ -56,6 +56,13 @@ get_header();
</div>
</div>
</div>
<div
class=
"lms-breadcrumbs"
>
<div
class=
"container"
>
<div
class=
"row"
>
<p><a
href=
"
<?php
echo
"/lms"
?>
"
>
LMS
</a>
>
<?php
echo
get_the_title
();
?>
</p>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
...
...
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