`;
$.each(data.dyPages, function(i, item) {
var active = (current_page == item) ? 'active' : '';
paginationHTML += `
` + item + ``;
});
paginationHTML += `
`;
$('.rbt-pagination').html(paginationHTML);
let courseDivClass = 'course-grid-3';
if (teacherID !== "") {
courseDivClass = 'col-lg-4 col-md-6 col-sm-12 col-12 ';
}
$.each(data.aData, function(i, item) {
var bookmarkClass = '';
if(item.isBookmarked == 1) {
bookmarkClass = 'active';
}
var coursePrice = `
` + item.course_price
.actualPriceCurrency + ``;
if (item.course_price.salePrice != null && (item.course_price.salePrice != item
.course_price.regularPrice)) {
coursePrice += `
` + item.course_price
.regularPriceCurrency + ``;
}
var authorInfo = '';
if(item.author_name != null){
authorInfo = `
`;
}
let totalLessons = item.total_lessons + ' Lessons';
if (item.type == 'bundle') {
totalLessons = item.totalBundleCourses + ' Courses';
}
var html1 = `
` + item.short_description + `
`+ authorInfo +`
`;
$('#dynamicData').append(html1);
});
}
});
}
-->