PHP 8.2.31
Preview: module-extras.php Size: 2.93 KB
/home/nshryvcy/himaltourism.com/wp-content/plugins/jetpack/modules/module-extras.php

<?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.
 *
 * @package automattic/jetpack
 */

/**
 * Features available all the time:
 *    - When in offline mode.
 *    - When connected to WordPress.com.
 */
$tools = array(
	// Always loaded, but only registered if theme supports it.
	'custom-post-types/comics.php',
	'custom-post-types/testimonial.php',
	'custom-post-types/nova.php',
	'geo-location.php',
	// Those oEmbed providers are always available.
	'shortcodes/facebook.php',
	'shortcodes/others.php',
	// Theme Tools.
	'theme-tools.php',
	'theme-tools/social-links.php',
	'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',
	'theme-tools/content-options.php',
	'theme-tools/devicepx.php',
	// Needed for VideoPress, so videos keep working in existing posts/pages when the module is deactivated.
	'videopress/class.videopress-gutenberg.php',
);

// Some features are only available when connected to WordPress.com.
$connected_tools = array(
	'calypsoify/class-jetpack-calypsoify.php',
	'cloudflare-analytics/cloudflare-analytics.php',
	'plugin-search.php',
	'scan/scan.php', // Shows Jetpack Scan alerts in the admin bar if threats found.
	'simple-payments/simple-payments.php',
	'wpcom-block-editor/class-jetpack-wpcom-block-editor.php',
	'wpcom-tos/wpcom-tos.php',
	// These oEmbed providers are available when connected to WordPress.com.
	// Starting from 2020-10-24, they need an authentication token, and that token is stored on WordPress.com.
	// More information: https://developers.facebook.com/docs/instagram/oembed/.
	'shortcodes/instagram.php',
);

// Add connected features to our existing list if the site is currently connected.
if ( Jetpack::is_connection_ready() ) {
	$tools = array_merge( $tools, $connected_tools );
}

/**
 * Filter extra tools (not modules) to include.
 *
 * @since 2.4.0
 * @since 5.4.0 can be used in multisite when Jetpack is not connected to WordPress.com and not in offline mode.
 *
 * @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;
		}
	}
}

/**
 * Add the "(Jetpack)" suffix to the widget names
 *
 * @param string $widget_name Widget name.
 */
function jetpack_widgets_add_suffix( $widget_name ) {
	return sprintf(
		/* Translators: Placeholder is the name of a widget. */
		__( '%s (Jetpack)', 'jetpack' ),
		$widget_name
	);
}
add_filter( 'jetpack_widget_name', 'jetpack_widgets_add_suffix' );

Directory Contents

Dirs: 42 × Files: 53

Name Size Perms Modified Actions
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
carousel DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
comments DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
gravatar DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
likes DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
markdown DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
masterbar DIR
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
photon DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
protect DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
scan DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
seo-tools DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
site-icon DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
sitemaps DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
sso DIR
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
stats DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
widgets DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
wordads DIR
- drwxr-xr-x 2023-04-04 05:35:21
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
wpcom-tos DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
644 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
564 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
7.98 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
993 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
7.47 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
12.27 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.53 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1.37 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.44 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
501 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.72 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
11.81 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
8.14 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
484 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
4.61 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.12 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
21.35 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1007 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1.56 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.93 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
46.44 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
28.17 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.51 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.94 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
12.09 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
781 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
19.84 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
596 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
533 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
28.83 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
4.55 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.12 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.17 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1.52 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.61 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
6.06 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.37 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.28 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
38.12 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
51.87 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
31.93 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.52 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.05 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1.70 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
830 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1007 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
297 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
475 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.85 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
631 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
577 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.91 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).