| 1 |
<?php |
| 2 |
/* |
| 3 |
* Load module code that is needed even when a module isn't active. |
| 4 |
* For example, if a module shouldn't be activatable unless certain conditions are met, the code belongs in this file. |
| 5 |
*/ |
| 6 |
|
| 7 |
// Include extra tools that aren't modules, in a filterable way |
| 8 |
$tools = array( |
| 9 |
'theme-tools/social-links.php', |
| 10 |
'holiday-snow.php', // Happy Holidays!!! |
| 11 |
'theme-tools/random-redirect.php', |
| 12 |
'theme-tools/featured-content.php', |
| 13 |
'theme-tools/infinite-scroll.php', |
| 14 |
'theme-tools/responsive-videos.php', |
| 15 |
'theme-tools/site-logo.php', |
| 16 |
'custom-post-types/comics.php', |
| 17 |
'custom-post-types/testimonial.php', |
| 18 |
'custom-post-types/nova.php', |
| 19 |
'theme-tools.php', |
| 20 |
); |
| 21 |
$jetpack_tools_to_include = apply_filters( 'jetpack-tools-to-include', $tools ); |
| 22 |
|
| 23 |
if ( ! empty( $jetpack_tools_to_include ) ) { |
| 24 |
foreach ( $jetpack_tools_to_include as $tool ) { |
| 25 |
if ( file_exists( JETPACK__PLUGIN_DIR . '/modules/' . $tool ) ) { |
| 26 |
require_once( JETPACK__PLUGIN_DIR . '/modules/' . $tool ); |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
|