diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/.DS_Store b/Custom_Templates/customer_templates/Cin7 Customer Academy/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Custom_Templates/customer_templates/Cin7 Customer Academy/.DS_Store differ diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_course.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_course.html.liquid index 226a69b9..3acaaaaf 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_course.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_course.html.liquid @@ -1,4 +1,4 @@ -
+
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
@@ -16,7 +16,7 @@ {% endif %}
-
COURSE
+
COURSE

{{ course.name }}

@@ -30,10 +30,10 @@ {{course.properties.course_duration}} min
{% endif %} - {% unless course.properties.audience == 'missing property: audience' %} + {% unless course.properties.recommended_for_group == 'missing property: audience' %} {% endunless %}
diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path.html.liquid index 30290ac2..a8f171fb 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path.html.liquid @@ -1,11 +1,13 @@ -
+
+
{{ learning_path.name }} +
diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path_homepage.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path_homepage.html.liquid index 85f9daf8..6609a9ee 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path_homepage.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_cards_learning_path_homepage.html.liquid @@ -6,6 +6,7 @@ class="learning-path-card-image" src="{{ learning_path.image_url }}" /> + {% if learning_path.name contains "Omni" or learning_path.name contains "Core"%}
{% if learning_path.name contains "Omni" %} Omni @@ -13,9 +14,10 @@ Core {% endif %}
+ {%endif%}
-
LEARNING PATH
+
LEARNING PATH

{{ learning_path.name }}

diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards.html.liquid index 5e7dad39..4c5bc9d8 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards.html.liquid @@ -9,3 +9,4 @@
+ diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards_core.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards_core.html.liquid new file mode 100644 index 00000000..990b2b16 --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_cards_core.html.liquid @@ -0,0 +1,25 @@ + + +
+
+ +
+
+

{{category.name | replace: ": Core", " Deep Dives"}}

+
Level up your expertise and enhance your operations with {{category.name | replace: ": Core", " Deep Dives"}}.
+
+
+
+ diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel.html.liquid index ec7cc6f0..cc7f9cee 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel.html.liquid @@ -24,7 +24,7 @@ $('.category-carousel').slick({ infinite: true, slidesToShow: 4, - slidesToScroll: 5, + slidesToScroll: 4, prevArrow: "", nextArrow: "", responsive: [ @@ -58,7 +58,7 @@ padding: 1rem 0; height: auto; } - .my-courses-carousel { + .category-carousel { margin: 0 1rem; } \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel_core.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel_core.html.liquid new file mode 100644 index 00000000..18a1f61c --- /dev/null +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_category_carousel_core.html.liquid @@ -0,0 +1,64 @@ +{% assign unique_category = "" %} +{% assign category_images = 'https://s3.amazonaws.com/static.northpass.com/Cin7/categories+images+core+/Accounting+Deep+Dives+-+Thumbnails.png, https://s3.amazonaws.com/static.northpass.com/Cin7/categories+images+core+/Administrative+Deep+Dives+-+Thumbnail.png, https://s3.amazonaws.com/static.northpass.com/Cin7/categories+images+core+/Product+Management+Deep+Dives+-+Thumbnail.png, https://s3.amazonaws.com/static.northpass.com/Cin7/categories+images+core+/Simple+Manufacturing+Deep+Dives+-+Thumbnail.png, https://s3.amazonaws.com/static.northpass.com/Cin7/categories+images+core+/Warehouse+Operations+Deep+Dives+-+Thumbnail.png' | split: ', ' %} +{% assign category_counter = 0 %} +{% assign core_categories = 'Warehouse Operations: Core, Admin: Core, Product Management: Core, Accounting: Core, Simple Manufacturing: Core' | split: ", " %} + + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_desktop_view.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_desktop_view.html.liquid index 570ef46c..6e30d32c 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_desktop_view.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_desktop_view.html.liquid @@ -1,3 +1,27 @@ +{% assign omni = false %} +{% assign core = false %} +{% assign redirect = false %} + +{% if current_person.signed_in? %} + {% for group in current_person.groups %} + {% if group.name contains 'Core' %} + {% assign core = true %} + {% elsif group.name contains 'Omni' %} + {% assign omni = true %} + {% endif %} + {% endfor %} +{% endif %} + +{% if core and course.name contains 'Omni' %} + {% assign redirect = true %} +{% elsif omni and course.name contains 'Core' %} + {% assign redirect = true %} +{% endif %} + +{% if redirect %} + +{% endif %} +
{{ course.name }}
diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_progress_and_cta.html.liquid index 29da778b..4d712024 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_progress_and_cta.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_course_progress_and_cta.html.liquid @@ -23,6 +23,13 @@ {% t .retake, key: current_school.course_vocabulary %} +{% else %} +{% if current_person.signed_in? == false%} + + Sign In + {% else %} {% endif %} +{% endif %} diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_featured_courses.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_featured_courses.html.liquid index cc7e0a3c..7dcbd8db 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_featured_courses.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_featured_courses.html.liquid @@ -44,7 +44,7 @@ $('.feature-courses-carousel').slick({ infinite: true, slidesToShow: 4, - slidesToScroll: 5, + slidesToScroll: 4, prevArrow: "", nextArrow: "", responsive: [ @@ -78,7 +78,7 @@ padding: 1rem 0; height: auto; } - .my-courses-carousel { + .feature-courses-carousel { margin: 0 1rem; } diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_filters_catalog.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_filters_catalog.html.liquid index eaefc3f5..d87db12a 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_filters_catalog.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_filters_catalog.html.liquid @@ -150,15 +150,17 @@ document.addEventListener("DOMContentLoaded", function() { }); var urlParams = new URLSearchParams(window.location.search); - var categoryFromUrl = urlParams.get('category'); + var categoriesFromUrl = urlParams.getAll('category'); var durationFromUrl = urlParams.get('duration'); - if (categoryFromUrl) { - var categoryCheckbox = document.getElementById(categoryFromUrl); + if (categoriesFromUrl.length > 0) { + categoriesFromUrl.forEach(function(category) { + var categoryCheckbox = document.getElementById(category); if (categoryCheckbox) { categoryCheckbox.click(); } - } + }); +} if (durationFromUrl) { var durationCheckbox = document.getElementById(durationFromUrl); @@ -210,7 +212,7 @@ function getSelectedDurations() { } function matchesCategories(courseCategories, selectedCategories) { - var courseCategoriesArray = courseCategories.split(',').map(function (category) { + var courseCategoriesArray = courseCategories.split('[$]').map(function (category) { return category.trim(); }); diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_header.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_header.html.liquid index 306cd5d5..2365d15e 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_header.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_header.html.liquid @@ -154,7 +154,6 @@
{% else %} - {% unless log_out %} - {% endunless %} {% endif %}
diff --git a/Custom_Templates/customer_templates/Cin7 Customer Academy/_homepage_testimonials.html.liquid b/Custom_Templates/customer_templates/Cin7 Customer Academy/_homepage_testimonials.html.liquid index b1bc9a1f..56031c78 100644 --- a/Custom_Templates/customer_templates/Cin7 Customer Academy/_homepage_testimonials.html.liquid +++ b/Custom_Templates/customer_templates/Cin7 Customer Academy/_homepage_testimonials.html.liquid @@ -25,26 +25,26 @@
- {% elsif core %} + {% elsif core or log_out%}
Transformative education for Connected Inventory Performance