97ecd2de by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 6292af2e
......@@ -14676,6 +14676,11 @@ input[type=checkbox] {
border-color: #fff;
}
.empty-message {
text-align: center;
padding: 30px 0px;
}
.pre-header {
background-color: #0484b8;
color: #fff;
......@@ -16247,6 +16252,11 @@ li.additional_information_tab {
font-weight: bold;
}
td.dataTables_empty {
text-align: center;
padding: 30px 0px;
}
#resources.dataTable {
width: 100% !important;
}
......
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(){
ob_start();
if (is_array($enrolled_courses)):?>
if (is_array($enrolled_courses) && !empty($enrolled_courses)):?>
<div class="carousel">
<div id="cert" class="cert-carousel carousel-items container">
......@@ -112,7 +112,8 @@ function certs(){
<div class="swiper-button-next" data-id="cert"></div>
</div>
</div>
<?php else: ?>
<p class="empty-message" >When you complete a program, your well earned certificate will be saved here.</p>
<?php endif;
wp_reset_query();
$output = ob_get_clean();
......
......@@ -59,9 +59,8 @@ add_shortcode('my-course-list', 'my_course_list');
function my_course_list(){
ob_start();
$enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id());
if (is_array($enrolled_courses)): ?>
$enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id()); ?>
<?php if (is_array($enrolled_courses) && !empty($enrolled_courses)): ?>
<div class="carousel course">
<div id="<?php echo $uniqid; ?>" class="course-carousel carousel-items container">
<div class='swiper-wrapper'>
......@@ -75,9 +74,16 @@ if (is_array($enrolled_courses)): ?>
<div class="swiper-button-prev" data-id="<?= $uniqid; ?>"></div>
<div class="swiper-button-next" data-id="<?= $uniqid; ?>"></div>
</div>
<?php endif;
wp_reset_query();
</div>
<?php else: ?>
<p class="empty-message" >You haven't enrolled in or completed any programs yet. When you have, they will be saved here.</p>
<?php endif; ?>
<style>
.paginate_button.disabled{
display: none;
}
</style>
<?php wp_reset_query();
$output = ob_get_clean();
return $output;
}
......
......@@ -102,7 +102,8 @@ function resources_fav(){
</tbody>
</table>
</div>
<?php endif;
<?php endif; ?>
<?php
wp_reset_query();
$output = ob_get_clean();
return $output;
......
......@@ -35233,6 +35233,7 @@
console.log($quicksearch.val());
$('#resources').DataTable().column(1).search($quicksearch.val()).draw();
});
$(".dataTables_empty").text("You haven't favourited any resources yet. When you do, they will be saved here for you to revisit.");
// filter with selects and checkboxes
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');
<div class="row">
<?php while( the_repeater_field('outcomes') ): ?>
<div class="col-out col-lg-3 col-md-1">
<?php if(get_sub_field('content') != ""){ ?>
<div class="outcome">
<?php the_sub_field('content'); ?>
</div>
<?php } ?>
</div>
<?php endwhile; ?>
</div>
......
......@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
});
$(".dataTables_empty").text("You haven't favourited any resources yet. When you do, they will be saved here for you to revisit.");
// filter with selects and checkboxes
var $checkboxes = $('.category-filter input');
......
......@@ -204,4 +204,8 @@ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/s
.wpcf7 form.sent .wpcf7-response-output{
border-color: #fff;
}
}
.empty-message{
text-align: center;
padding: 30px 0px;
}
\ No newline at end of file
......
......@@ -158,4 +158,9 @@ li.additional_information_tab {
text-align: center;
font-size: 20px;
font-weight: bold;
}
\ No newline at end of file
}
td.dataTables_empty {
text-align: center;
padding: 30px 0px;
}
......
......@@ -5,7 +5,7 @@
Author: Tenzing Communications
Author URI: https://tenzingbrand.com
Template: understrap
Version: 1.1.0015
Version: 1.1.0016
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
......