sss
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
16 changed files
with
42 additions
and
12 deletions
| ... | @@ -14676,6 +14676,11 @@ input[type=checkbox] { | ... | @@ -14676,6 +14676,11 @@ input[type=checkbox] { |
| 14676 | border-color: #fff; | 14676 | border-color: #fff; |
| 14677 | } | 14677 | } |
| 14678 | 14678 | ||
| 14679 | .empty-message { | ||
| 14680 | text-align: center; | ||
| 14681 | padding: 30px 0px; | ||
| 14682 | } | ||
| 14683 | |||
| 14679 | .pre-header { | 14684 | .pre-header { |
| 14680 | background-color: #0484b8; | 14685 | background-color: #0484b8; |
| 14681 | color: #fff; | 14686 | color: #fff; |
| ... | @@ -16247,6 +16252,11 @@ li.additional_information_tab { | ... | @@ -16247,6 +16252,11 @@ li.additional_information_tab { |
| 16247 | font-weight: bold; | 16252 | font-weight: bold; |
| 16248 | } | 16253 | } |
| 16249 | 16254 | ||
| 16255 | td.dataTables_empty { | ||
| 16256 | text-align: center; | ||
| 16257 | padding: 30px 0px; | ||
| 16258 | } | ||
| 16259 | |||
| 16250 | #resources.dataTable { | 16260 | #resources.dataTable { |
| 16251 | width: 100% !important; | 16261 | width: 100% !important; |
| 16252 | } | 16262 | } | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -86,7 +86,7 @@ function certs(){ | ... | @@ -86,7 +86,7 @@ function certs(){ |
| 86 | 86 | ||
| 87 | ob_start(); | 87 | ob_start(); |
| 88 | 88 | ||
| 89 | if (is_array($enrolled_courses)):?> | 89 | if (is_array($enrolled_courses) && !empty($enrolled_courses)):?> |
| 90 | 90 | ||
| 91 | <div class="carousel"> | 91 | <div class="carousel"> |
| 92 | <div id="cert" class="cert-carousel carousel-items container"> | 92 | <div id="cert" class="cert-carousel carousel-items container"> |
| ... | @@ -112,7 +112,8 @@ function certs(){ | ... | @@ -112,7 +112,8 @@ function certs(){ |
| 112 | <div class="swiper-button-next" data-id="cert"></div> | 112 | <div class="swiper-button-next" data-id="cert"></div> |
| 113 | </div> | 113 | </div> |
| 114 | </div> | 114 | </div> |
| 115 | 115 | <?php else: ?> | |
| 116 | <p class="empty-message" >When you complete a program, your well earned certificate will be saved here.</p> | ||
| 116 | <?php endif; | 117 | <?php endif; |
| 117 | wp_reset_query(); | 118 | wp_reset_query(); |
| 118 | $output = ob_get_clean(); | 119 | $output = ob_get_clean(); | ... | ... |
| ... | @@ -59,9 +59,8 @@ add_shortcode('my-course-list', 'my_course_list'); | ... | @@ -59,9 +59,8 @@ add_shortcode('my-course-list', 'my_course_list'); |
| 59 | function my_course_list(){ | 59 | function my_course_list(){ |
| 60 | 60 | ||
| 61 | ob_start(); | 61 | ob_start(); |
| 62 | $enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id()); | 62 | $enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id()); ?> |
| 63 | 63 | <?php if (is_array($enrolled_courses) && !empty($enrolled_courses)): ?> | |
| 64 | if (is_array($enrolled_courses)): ?> | ||
| 65 | <div class="carousel course"> | 64 | <div class="carousel course"> |
| 66 | <div id="<?php echo $uniqid; ?>" class="course-carousel carousel-items container"> | 65 | <div id="<?php echo $uniqid; ?>" class="course-carousel carousel-items container"> |
| 67 | <div class='swiper-wrapper'> | 66 | <div class='swiper-wrapper'> |
| ... | @@ -75,9 +74,16 @@ if (is_array($enrolled_courses)): ?> | ... | @@ -75,9 +74,16 @@ if (is_array($enrolled_courses)): ?> |
| 75 | <div class="swiper-button-prev" data-id="<?= $uniqid; ?>"></div> | 74 | <div class="swiper-button-prev" data-id="<?= $uniqid; ?>"></div> |
| 76 | <div class="swiper-button-next" data-id="<?= $uniqid; ?>"></div> | 75 | <div class="swiper-button-next" data-id="<?= $uniqid; ?>"></div> |
| 77 | 76 | ||
| 78 | </div> | 77 | </div> |
| 79 | <?php endif; | 78 | <?php else: ?> |
| 80 | wp_reset_query(); | 79 | <p class="empty-message" >You haven't enrolled in or completed any programs yet. When you have, they will be saved here.</p> |
| 80 | <?php endif; ?> | ||
| 81 | <style> | ||
| 82 | .paginate_button.disabled{ | ||
| 83 | display: none; | ||
| 84 | } | ||
| 85 | </style> | ||
| 86 | <?php wp_reset_query(); | ||
| 81 | $output = ob_get_clean(); | 87 | $output = ob_get_clean(); |
| 82 | return $output; | 88 | return $output; |
| 83 | } | 89 | } | ... | ... |
| ... | @@ -102,7 +102,8 @@ function resources_fav(){ | ... | @@ -102,7 +102,8 @@ function resources_fav(){ |
| 102 | </tbody> | 102 | </tbody> |
| 103 | </table> | 103 | </table> |
| 104 | </div> | 104 | </div> |
| 105 | <?php endif; | 105 | <?php endif; ?> |
| 106 | <?php | ||
| 106 | wp_reset_query(); | 107 | wp_reset_query(); |
| 107 | $output = ob_get_clean(); | 108 | $output = ob_get_clean(); |
| 108 | return $output; | 109 | return $output; | ... | ... |
| ... | @@ -35233,6 +35233,7 @@ | ... | @@ -35233,6 +35233,7 @@ |
| 35233 | console.log($quicksearch.val()); | 35233 | console.log($quicksearch.val()); |
| 35234 | $('#resources').DataTable().column(1).search($quicksearch.val()).draw(); | 35234 | $('#resources').DataTable().column(1).search($quicksearch.val()).draw(); |
| 35235 | }); | 35235 | }); |
| 35236 | $(".dataTables_empty").text("You haven't favourited any resources yet. When you do, they will be saved here for you to revisit."); | ||
| 35236 | 35237 | ||
| 35237 | // filter with selects and checkboxes | 35238 | // filter with selects and checkboxes |
| 35238 | var $checkboxes = $('.category-filter input'); | 35239 | var $checkboxes = $('.category-filter input'); | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -56,9 +56,11 @@ $program_info = get_field('program_info'); | ... | @@ -56,9 +56,11 @@ $program_info = get_field('program_info'); |
| 56 | <div class="row"> | 56 | <div class="row"> |
| 57 | <?php while( the_repeater_field('outcomes') ): ?> | 57 | <?php while( the_repeater_field('outcomes') ): ?> |
| 58 | <div class="col-out col-lg-3 col-md-1"> | 58 | <div class="col-out col-lg-3 col-md-1"> |
| 59 | <?php if(get_sub_field('content') != ""){ ?> | ||
| 59 | <div class="outcome"> | 60 | <div class="outcome"> |
| 60 | <?php the_sub_field('content'); ?> | 61 | <?php the_sub_field('content'); ?> |
| 61 | </div> | 62 | </div> |
| 63 | <?php } ?> | ||
| 62 | </div> | 64 | </div> |
| 63 | <?php endwhile; ?> | 65 | <?php endwhile; ?> |
| 64 | </div> | 66 | </div> | ... | ... |
| ... | @@ -26,7 +26,7 @@ jQuery(document).ready(function($) { | ... | @@ -26,7 +26,7 @@ jQuery(document).ready(function($) { |
| 26 | }); | 26 | }); |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | 29 | $(".dataTables_empty").text("You haven't favourited any resources yet. When you do, they will be saved here for you to revisit."); | |
| 30 | 30 | ||
| 31 | // filter with selects and checkboxes | 31 | // filter with selects and checkboxes |
| 32 | var $checkboxes = $('.category-filter input'); | 32 | var $checkboxes = $('.category-filter input'); | ... | ... |
| ... | @@ -204,4 +204,8 @@ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/s | ... | @@ -204,4 +204,8 @@ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/s |
| 204 | .wpcf7 form.sent .wpcf7-response-output{ | 204 | .wpcf7 form.sent .wpcf7-response-output{ |
| 205 | border-color: #fff; | 205 | border-color: #fff; |
| 206 | } | 206 | } |
| 207 | } | ||
| 208 | .empty-message{ | ||
| 209 | text-align: center; | ||
| 210 | padding: 30px 0px; | ||
| 207 | } | 211 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -158,4 +158,9 @@ li.additional_information_tab { | ... | @@ -158,4 +158,9 @@ li.additional_information_tab { |
| 158 | text-align: center; | 158 | text-align: center; |
| 159 | font-size: 20px; | 159 | font-size: 20px; |
| 160 | font-weight: bold; | 160 | font-weight: bold; |
| 161 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 161 | } | ||
| 162 | |||
| 163 | td.dataTables_empty { | ||
| 164 | text-align: center; | ||
| 165 | padding: 30px 0px; | ||
| 166 | } | ... | ... |
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| 5 | Author: Tenzing Communications | 5 | Author: Tenzing Communications |
| 6 | Author URI: https://tenzingbrand.com | 6 | Author URI: https://tenzingbrand.com |
| 7 | Template: understrap | 7 | Template: understrap |
| 8 | Version: 1.1.0015 | 8 | Version: 1.1.0016 |
| 9 | License: GNU General Public License v2 or later | 9 | License: GNU General Public License v2 or later |
| 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html | 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 11 | Text Domain: understrap-child | 11 | Text Domain: understrap-child | ... | ... |
-
Please register or sign in to post a comment