Convert Sidebar to ConditionalTagCheck

Simplify and generalize class since it had nothing to do directly with
the sidebar. Now it can be used for other purposes as well.
This commit is contained in:
Scott Walkinshaw
2015-02-19 15:20:49 -05:00
parent 75c0dc826f
commit e1663c5d2f
4 changed files with 65 additions and 74 deletions

View File

@@ -10,16 +10,16 @@
* @link https://github.com/roots/sage/pull/1042
*/
$sage_includes = [
'lib/utils.php', // Utility functions
'lib/init.php', // Initial theme setup and constants
'lib/wrapper.php', // Theme wrapper class
'lib/sidebar.php', // Sidebar class
'lib/config.php', // Configuration
'lib/assets.php', // Scripts and stylesheets
'lib/titles.php', // Page titles
'lib/nav.php', // Custom nav modifications
'lib/gallery.php', // Custom [gallery] modifications
'lib/extras.php', // Custom functions
'lib/utils.php', // Utility functions
'lib/init.php', // Initial theme setup and constants
'lib/wrapper.php', // Theme wrapper class
'lib/conditional-tag-check.php', // ConditionalTagCheck class
'lib/config.php', // Configuration
'lib/assets.php', // Scripts and stylesheets
'lib/titles.php', // Page titles
'lib/nav.php', // Custom nav modifications
'lib/gallery.php', // Custom [gallery] modifications
'lib/extras.php', // Custom functions
];
foreach ($sage_includes as $file) {