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
99d6176c
Commit
99d6176c
authored
Jan 24, 2018
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form shortcode with cf7
parent
d6d3dd40
Pipeline
#209
passed with stage
in 0 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
68 deletions
+86
-68
inquiry-now.html
...t/plugins/apex_global_lms/admin/includes/inquiry-now.html
+34
-0
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+9
-0
lms.css
...A/wp-content/plugins/apex_global_lms/template/css/lms.css
+5
-0
it-course.php
...wp-content/plugins/apex_global_lms/template/it-course.php
+14
-34
lms.js
...ATA/wp-content/plugins/apex_global_lms/template/js/lms.js
+8
-0
single-course.php
...ontent/plugins/apex_global_lms/template/single-course.php
+16
-34
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/admin/includes/inquiry-now.html
0 → 100644
View file @
99d6176c
<div
class=
"inquire-box"
>
<div
class=
"inquire-heading"
>
<h2>
Inquire Now
</h2>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Name"
>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Email"
>
</div>
<div
class=
"col-sm-12"
>
<select
class=
"form-control text-feild"
>
<option>
E-Learning Solution
</option>
<option>
2
</option>
<option>
3
</option>
<option>
4
</option>
<option>
5
</option>
</select>
</div>
<div
class=
"col-sm-12"
>
<textarea
class=
"form-control text-feild"
placeholder=
"Message"
rows=
"5"
></textarea>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Verification Code"
>
</div>
<div
class=
"col-sm-12"
>
<button
type=
"submit"
class=
"submit-course-button"
>
Submit
</button>
</div>
<div
class=
"clear"
></div>
</div>
\ No newline at end of file
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
99d6176c
...
...
@@ -30,6 +30,8 @@ add_filter('query_vars', 'vq_query_vars_filter');
add_shortcode
(
'vq_course_banner'
,
'vq_render_course_banner'
);
add_shortcode
(
'vq_lms_inquiry_form'
,
'vq_render_inquiry_form'
);
function
vq_lms_process_order
()
{
if
(
!
isset
(
$_POST
[
'data'
]))
{
...
...
@@ -400,3 +402,10 @@ function vq_render_course_banner($attr)
return
$banner
;
}
function
vq_render_inquiry_form
()
{
$file
=
file_get_contents
(
__DIR__
.
'/admin/includes/inquiry-now.html'
);
return
$file
;
}
WWW_DATA/wp-content/plugins/apex_global_lms/template/css/lms.css
View file @
99d6176c
...
...
@@ -669,4 +669,8 @@
.bootstrap-iso
.disabled
{
pointer-events
:
none
;
opacity
:
0.8
;
}
.inquire-box
input
.form-control
,
.inquire-box
select
.form-control
{
border-radius
:
0
;
padding-left
:
8px
;
}
\ No newline at end of file
WWW_DATA/wp-content/plugins/apex_global_lms/template/it-course.php
View file @
99d6176c
...
...
@@ -7,6 +7,18 @@ $args = array(
'post_type'
=>
'vq_course'
);
$courses
=
new
WP_Query
(
$args
);
$courses1
=
$courses
;
$crsList
=
array
();
while
(
$courses1
->
have_posts
())
{
$courses1
->
the_post
();
$crsList
[]
=
get_the_title
();
}
echo
"<script> crsList = "
.
json_encode
(
$crsList
)
.
" </script>>"
;
?>
<div
class=
"bootstrap-iso"
>
...
...
@@ -44,7 +56,7 @@ $courses = new WP_Query($args);
<div
class=
"col-sm-3 col-padding"
>
<div
class=
"download-course-box"
>
<div
class=
"course-heading"
>
<h4><a
href=
"
<?php
echo
'/download-all
a
?course='
.
get_the_ID
();
?>
"
>
Download
<br>
course list
</a></h4>
<h4><a
href=
"
<?php
echo
'/download-all
/
?course='
.
get_the_ID
();
?>
"
>
Download
<br>
course list
</a></h4>
</div>
<div
class=
"text-center"
>
...
...
@@ -57,39 +69,7 @@ $courses = new WP_Query($args);
<?php
}
?>
</div>
<div
class=
"col-sm-4"
>
<div
class=
"inquire-box"
>
<div
class=
"inquire-heading"
>
<h2>
Inquire Now
</h2>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Name"
>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Email"
>
</div>
<div
class=
"col-sm-12"
>
<select
class=
"form-control text-feild"
>
<option>
E-Learning Solution
</option>
<option>
2
</option>
<option>
3
</option>
<option>
4
</option>
<option>
5
</option>
</select>
</div>
<div
class=
"col-sm-12"
>
<textarea
class=
"form-control text-feild"
placeholder=
"Message"
rows=
"5"
></textarea>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Verification Code"
>
</div>
<div
class=
"col-sm-12"
>
<button
type=
"submit"
class=
"submit-course-button"
>
Submit
</button>
</div>
<div
class=
"clear"
></div>
</div>
<?php
echo
do_shortcode
(
'[contact-form-7 id="6212" title="Inquiry Form"]'
);
?>
</div>
</div>
</div>
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/js/lms.js
View file @
99d6176c
...
...
@@ -219,4 +219,11 @@
});
var
courseList
=
$
(
"#course_list"
);
courseList
.
html
(
""
);
crsList
.
forEach
(
function
(
item
)
{
var
option
=
"<option value='"
+
item
+
"'>"
+
item
+
"</option>"
;
courseList
.
append
(
option
);
});
})(
jQuery
);
\ No newline at end of file
WWW_DATA/wp-content/plugins/apex_global_lms/template/single-course.php
View file @
99d6176c
...
...
@@ -3,6 +3,20 @@ get_header();
$meta
=
get_post_meta
(
get_the_ID
());
$args
=
array
(
'post_type'
=>
'vq_course'
);
$courses1
=
new
WP_Query
(
$args
);
while
(
$courses1
->
have_posts
())
{
$courses1
->
the_post
();
$crsList
[]
=
get_the_title
();
}
echo
"<script> crsList = "
.
json_encode
(
$crsList
)
.
" </script>>"
;
?>
<div
class=
"bootstrap-iso"
>
<div
class=
"e-learning-banner"
style=
"background-image: url(
<?php
echo
get_the_post_thumbnail_url
(
get_the_ID
());
?>
)"
>
...
...
@@ -53,44 +67,12 @@ $meta = get_post_meta(get_the_ID());
</div>
<div
class=
"col-sm-4"
>
<div
class=
"inquire-box"
>
<div
class=
"inquire-heading"
>
<h2>
Inquire Now
</h2>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Name"
>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Email"
>
</div>
<div
class=
"col-sm-12"
>
<select
class=
"form-control text-feild"
>
<option>
E-Learning Solution
</option>
<option>
2
</option>
<option>
3
</option>
<option>
4
</option>
<option>
5
</option>
</select>
</div>
<div
class=
"col-sm-12"
>
<textarea
class=
"form-control text-feild"
placeholder=
"Message"
rows=
"5"
></textarea>
</div>
<div
class=
"col-sm-12"
>
<input
type=
"email"
class=
"form-control text-feild"
id=
"exampleInputEmail1"
placeholder=
"Verification Code"
>
</div>
<div
class=
"col-sm-12"
>
<button
type=
"submit"
class=
"submit-course-button"
>
Submit
</button>
</div>
<div
class=
"clear"
></div>
</div>
<?php
echo
do_shortcode
(
'[contact-form-7 id="6212" title="Inquiry Form"]'
);
?>
</div>
</div>
</div>
<?php
do_shortcode
(
'[vq_short_banner
<?php
echo
do_shortcode
(
'[vq_short_banner
txtClr="#fff"
btnClr="#fff"
bgClr="#2898c4"
...
...
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