| 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 |
// Happy Holidays! |
| 8 |
require_once( dirname( __FILE__ ) . '/holiday-snow.php' ); |
| 9 |
|
| 10 |
// Include extra tools that aren't modules, in a filterable way |
| 11 |
$jetpack_tools_to_include = apply_filters( 'jetpack-tools-to-include', array( 'theme-tools.php' ) ); |
| 12 |
|
| 13 |
if ( ! empty( $jetpack_tools_to_include ) ) { |
| 14 |
foreach ( $jetpack_tools_to_include as $tool ) { |
| 15 |
if ( file_exists( JETPACK__PLUGIN_DIR . '/modules/' . $tool ) ) { |
| 16 |
require_once( JETPACK__PLUGIN_DIR . '/modules/' . $tool ); |
| 17 |
} |
| 18 |
} |
| 19 |
} |