From f08eb9774e12ab2fb10be34b283a347125407e83 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 18 Apr 2022 21:26:52 -0400 Subject: [PATCH] JNJ Updated Templates --- .../JnJVision/_cards_course.html.liquid | 32 +++++++++++++---- .../_course_details_review.html.liquid | 18 ++++++++++ .../JnJVision/_head.html.liquid | 2 +- .../JnJVision/_homepage_events.html.liquid | 30 ++++++++++++++++ .../JnJVision/_section_faqs.html.liquid | 4 +-- .../JnJVision/homepage.html.liquid | 2 +- .../JnJVision/styles.css.liquid | 2 +- settings.json | 34 +++++++++++++++++++ 8 files changed, 113 insertions(+), 11 deletions(-) create mode 100644 settings.json diff --git a/NP_Custom_Templates/customer_templates/JnJVision/_cards_course.html.liquid b/NP_Custom_Templates/customer_templates/JnJVision/_cards_course.html.liquid index e8d7d5b8..9d6ecb28 100644 --- a/NP_Custom_Templates/customer_templates/JnJVision/_cards_course.html.liquid +++ b/NP_Custom_Templates/customer_templates/JnJVision/_cards_course.html.liquid @@ -8,7 +8,6 @@ src="{{ course.image_url }}" > -

{{ course.name }} @@ -38,6 +37,8 @@

{% endcomment %} +{% comment %} - This was Kaitlyn's original code, I'm commenting it out to keep it incase +the client wants to revert back. My categories boxes are below.
@@ -47,22 +48,41 @@ src="{{ course.image_url }}" >
- +

{{ course.name }}

+
{% endcomment %} + + +
+
+ +
+ +
+

+ {% for category in course.categories %} + {{course.categories.first.name }} + {% endfor %} +

+
+ diff --git a/NP_Custom_Templates/customer_templates/JnJVision/_course_details_review.html.liquid b/NP_Custom_Templates/customer_templates/JnJVision/_course_details_review.html.liquid index f1baab4a..fba9d334 100644 --- a/NP_Custom_Templates/customer_templates/JnJVision/_course_details_review.html.liquid +++ b/NP_Custom_Templates/customer_templates/JnJVision/_course_details_review.html.liquid @@ -25,6 +25,24 @@ {% endif %} {% endif %} + {% comment %}
+
+ {% for i in (1..5) %} + {% if course.properties.np_course_rating >= i %} + + + + {% else %} + + + + {% endif %} + {% endfor %} +
+ + {{course.properties.np_course_rating}}
({{course.properties.np_course_rating_count}})
+
+
{% endcomment %}