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
e67a9512
Commit
e67a9512
authored
Feb 20, 2018
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
category fix
parent
587d8626
Pipeline
#330
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
it-course.php
...wp-content/plugins/apex_global_lms/template/it-course.php
+19
-5
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/template/it-course.php
View file @
e67a9512
...
...
@@ -2,8 +2,21 @@
get_header
();
$tax
=
get_query_var
(
'course'
);
$term
=
get_term_by
(
'slug'
,
$tax
,
'vq_course_taxonomy'
);
$args
=
array
(
'post_type'
=>
'vq_course'
'post_type'
=>
'vq_course'
,
'posts_per_page'
=>
'-1'
,
'tax_query'
=>
array
(
array
(
'taxonomy'
=>
'vq_course_taxonomy'
,
'field'
=>
'name'
,
'terms'
=>
$tax
),
),
);
$courses
=
new
WP_Query
(
$args
);
$courses1
=
$courses
;
...
...
@@ -27,8 +40,7 @@ $page = get_page_by_path('lms-courses');
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"e-learning-heading"
>
<h2>
<?php
echo
$page
->
post_title
?>
</h2>
<h3
class=
"lms-excerpt"
>
<?php
echo
$page
->
post_excerpt
?>
</h3>
<h2>
<?php
echo
$term
->
name
?>
</h2>
</div>
</div>
</div>
...
...
@@ -36,15 +48,16 @@ $page = get_page_by_path('lms-courses');
<div
class=
"learning-profile-bg"
>
<div
class=
"container"
>
<div
class=
"row"
>
<?php
echo
$
page
->
post_content
?>
<?php
echo
$
term
->
description
?>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-8"
>
<?php
if
(
$courses
->
have_posts
()){
?>
<?php
while
(
$courses
->
have_posts
())
{
$courses
->
the_post
();
?>
<div
class=
"course-box"
>
<div
class=
"course-box"
>
<div
class=
"col-sm-3 col-padding"
style=
"line-height: 0;"
>
<?php
the_post_thumbnail
(
'thumbnail'
)
?>
</div>
...
...
@@ -64,6 +77,7 @@ $page = get_page_by_path('lms-courses');
<div
class=
"clear"
></div>
</div>
<?php
}
?>
<?php
}
else
echo
'No Courses Found!'
;
?>
</div>
<div
class=
"col-sm-4"
>
<?php
echo
do_shortcode
(
'[contact-form-7 id="6212" title="Inquiry Form"]'
);
?>
...
...
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