Initial Commit
This commit is contained in:
parent
4c352bf02e
commit
1ab6e5f0b0
1085 changed files with 195258 additions and 0 deletions
39
plugins/jetpack/modules/module-extras.php
Normal file
39
plugins/jetpack/modules/module-extras.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
/*
|
||||
* Load module code that is needed even when a module isn't active.
|
||||
* For example, if a module shouldn't be activatable unless certain conditions are met, the code belongs in this file.
|
||||
*/
|
||||
|
||||
// Include extra tools that aren't modules, in a filterable way
|
||||
$tools = array(
|
||||
'theme-tools/social-links.php',
|
||||
'holiday-snow.php', // Happy Holidays!!!
|
||||
'theme-tools/random-redirect.php',
|
||||
'theme-tools/featured-content.php',
|
||||
'theme-tools/infinite-scroll.php',
|
||||
'theme-tools/responsive-videos.php',
|
||||
'theme-tools/site-logo.php',
|
||||
'theme-tools/site-breadcrumbs.php',
|
||||
'theme-tools/social-menu.php',
|
||||
'custom-post-types/comics.php',
|
||||
'custom-post-types/testimonial.php',
|
||||
'custom-post-types/nova.php',
|
||||
'theme-tools.php',
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter extra tools (not modules) to include.
|
||||
*
|
||||
* @since 2.4.0
|
||||
*
|
||||
* @param array $tools Array of extra tools to include.
|
||||
*/
|
||||
$jetpack_tools_to_include = apply_filters( 'jetpack_tools_to_include', $tools );
|
||||
|
||||
if ( ! empty( $jetpack_tools_to_include ) ) {
|
||||
foreach ( $jetpack_tools_to_include as $tool ) {
|
||||
if ( file_exists( JETPACK__PLUGIN_DIR . '/modules/' . $tool ) ) {
|
||||
require_once( JETPACK__PLUGIN_DIR . '/modules/' . $tool );
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue