From ae75d1ec57d3b5fa099a45260b96ff79b24a2068 Mon Sep 17 00:00:00 2001
From: Igor Stepanov
Date: Wed, 11 Mar 2015 00:18:10 +0300
Subject: [PATCH] learn.jquery.com: change highlight top categories
I was wrong when I deleted this code. It's necessary to highlight top
categories (without subcategories) in the sidebar.
---
themes/learn.jquery.com/sidebar.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/learn.jquery.com/sidebar.php b/themes/learn.jquery.com/sidebar.php
index 95e624b2..8d8cf6a0 100644
--- a/themes/learn.jquery.com/sidebar.php
+++ b/themes/learn.jquery.com/sidebar.php
@@ -12,7 +12,7 @@
have_posts() ) : $chapters->the_post(); ?>
- ID == $chapters->post->ID); ?>
+ ID == $chapters->post->ID) || ($active_post->post_parent == $chapters->post->ID); ?>
- >
ID, "icon" ) ) : ?>