GRAYBYTE WORDPRESS FILE MANAGER1507

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/theme-tools/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/theme-tools//social-links.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Theme Tools: Social Links.
 *
 * This feature will only be activated for themes that declare their support.
 * This can be done by adding code similar to the following during the
 * 'after_setup_theme' action:
 *
 * add_theme_support( 'social-links', array(
 *     'facebook', 'twitter', 'linkedin', 'tumblr',
 * ) );
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\Status\Host;

// phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files.

if ( ! function_exists( 'jetpack_theme_supports_social_links' ) ) {
	/**
	 * Init Social_Links if the theme declares support.
	 */
	function jetpack_theme_supports_social_links() {
			// @phan-suppress-next-line PhanNoopNew
			new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links();
	}
	if ( ! ( new Host() )->is_wpcom_platform() ) {
		add_action( 'init', 'jetpack_theme_supports_social_links', 30 );
	}
}

if ( ! class_exists( 'Social_Links' ) ) {

	/**
	 * Social_Links main class.
	 *
	 * @deprecated 13.8 Moved to Classic Theme Helper package.
	 */
	class Social_Links {

		/**
		 * Constructor.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 */
		public function __construct() {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->__construct' );
			// @phan-suppress-next-line PhanNoopNew
			new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links();
		}

		/**
		 * Init the admin setup.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 */
		public function admin_setup() {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->admin_setup' );
			$social_links_instance = new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links();
			$social_links_instance->admin_setup();
		}

		/**
		 * Compares the currently saved links with the connected services and removes
		 * links from services that are no longer connected.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 * @return void
		 */
		public function check_links() {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->check_links' );
			$social_links_instance = new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links();
			$social_links_instance->check_links();
		}

		/**
		 * Add social link dropdown to the Customizer.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
		 */
		public function customize_register( $wp_customize ) {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->customize_register' );
			$social_links_instance = new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links();
			$social_links_instance->customize_register( $wp_customize );
		}

		/**
		 * Sanitizes social links.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 * @param array $option The incoming values to be sanitized.
		 * @return array
		 */
		public function sanitize_link( $option ) {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->sanitize_link' );
			return ( new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links() )->sanitize_link( $option );
		}

		/**
		 * Returns whether there are any social links set.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 * @return bool
		 */
		public function has_social_links() {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->has_social_links' );
			return ( new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links() )->has_social_links();     }

		/**
		 * Return available social links.
		 *
		 * @return array
		 */
		public function get_social_links() {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->get_social_links' );
			return ( new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links() )->get_social_links();
		}

		/**
		 * Short-circuits get_option and get_theme_mod calls.
		 *
		 * @deprecated 13.8 Moved to Classic Theme Helper package.
		 * @param string $link The incoming value to be replaced.
		 * @return string $link The social link that we've got.
		 */
		public function get_social_link_filter( $link ) {
			_deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->get_social_link_filter' );
			return ( new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links() )->get_social_link_filter( $link );
		}
	}

} // - end if ( ! class_exists( 'Social_Links' )

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
compat
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
content-options
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
js
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
responsive-videos
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
site-logo
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
social-menu
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
content-options.php
8.258 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
devicepx.php
1.397 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
featured-content.php
14.421 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
responsive-videos.php
6.11 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
site-breadcrumbs.php
4.257 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
site-logo.php
2.683 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
social-links.php
4.683 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
social-menu.php
3.704 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF