From da9e768d8e8e3ee3b5d94a791c32b3e7550544d8 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 30 Jul 2018 14:24:36 -0400 Subject: [PATCH] adding click listener for the course completion overlay --- assets/js/glm-dev.js | 2 +- content-single.php | 4 ++-- glm-dev/js/glm-dev.js | 4 +++- single.php | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/assets/js/glm-dev.js b/assets/js/glm-dev.js index 020bd16..fbad748 100644 --- a/assets/js/glm-dev.js +++ b/assets/js/glm-dev.js @@ -1 +1 @@ -jQuery(function(t){t(".glm-badge-alert").on("click",function(){t(this).fadeOut("slow"),"glm-badge-overlay"===t(this).parent().attr("id")&&t(this).parent().fadeOut("slow")})}); \ No newline at end of file +jQuery(function(t){t(".glm-badge-alert").on("click",function(){t(this).fadeOut("slow"),"glm-badge-overlay"===t(this).parent().attr("id")&&t(this).parent().fadeOut("slow")}),t("#glm-badge-overlay").on("click",function(){t(this).fadeOut("slow")})}); \ No newline at end of file diff --git a/content-single.php b/content-single.php index 1466166..6c649ed 100644 --- a/content-single.php +++ b/content-single.php @@ -4,7 +4,7 @@ */ global $post; $pt = $post->post_type; -$ld_types = array('sfwd-courses','sfwd-lesses','sfwd-quiz'); +$ld_types = array('sfwd-courses','sfwd-lessons','sfwd-quiz','sfwd-topic'); $post_date = of_get_option('post_date'); $post_footer = of_get_option('post_footer'); $post_date_class = ((!empty($post_date) && $post_date == ' ') || has_post_thumbnail()) ? " no-date" : ""; @@ -32,7 +32,7 @@ $lesson_content = $lessons_page->post_content;
-

+

post_type; $title = $post->post_name; -$ld_types = array('sfwd-courses','sfwd-lessons','sfwd-quiz'); +$ld_types = array('sfwd-courses','sfwd-lessons','sfwd-quiz','sfwd-topic'); if(in_array($pt, $ld_types)){ $fw = 'full-width'; }else { @@ -22,7 +22,7 @@ get_header(); ?>