Skip to content

Commit

Permalink
list courses
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Nov 14, 2023
1 parent 4a49a34 commit 2960b0e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ li {
margin: 0;
}

.course-grid{
padding: 80px 60px 40px;
.learndash-course-grid {
.grid {
flex-wrap: wrap;
}
}
}

.all-courses {
padding: 40px 60px;
.cfa-title {
Expand Down
11 changes: 7 additions & 4 deletions wp-content/themes/academyAfrica/includes/widgets/all_courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public function get_name()

public function get_style_depends()
{
return ['academy-africa-all-courses', 'academy-africa', 'academy-africa-pathways'];
return ['academy-africa-all-courses', 'academy-africa', 'academy-africa-pathways', "'academy-africa-learndash-course-grid'"];
}

public function get_script_depends()
{
return ['academy-africa-filters'];
return ['academy-africa-filters', "academy-africa_learndash_course_grid"];
}

public function get_title()
Expand Down Expand Up @@ -346,7 +346,10 @@ protected function render()
</ul>
</div>
</section>
<section class="all-courses">
<section class="course-grid">
<?php echo do_shortcode('[learndash_course_grid id="course-list" columns="3" skin="grid" card="grid-1" per_page="9" filter="false" progress_bar="" button="" pagination="button" ]'); ?>
</section>
<!-- <section class="all-courses">
<h4 class="cfa-title">
<? echo $courses_title ?>
</h4>
Expand Down Expand Up @@ -429,7 +432,7 @@ protected function render()
</a></li>
</ul>
</div>
</section>
</section> -->
</div>
</main>
<?
Expand Down

0 comments on commit 2960b0e

Please sign in to comment.