GRAYBYTE WORDPRESS FILE MANAGER5019

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-menu.php
<?php
/**
 * Social Menu.
 *
 * 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( 'jetpack-social-menu' );
 *
 * @package automattic/jetpack
 */

if ( ! class_exists( '\Automattic\Jetpack\Classic_Theme_Helper\Main' ) ) {
	if ( ! function_exists( 'jetpack_social_menu_init' ) ) {
		/**
		 * Activate the Social Menu plugin.
		 *
		 * @uses current_theme_supports()
		 */
		function jetpack_social_menu_init() {
			_deprecated_function( __FUNCTION__, 'jetpack-13.7' );
			// Only load our code if our theme declares support
			if ( ! current_theme_supports( 'jetpack-social-menu' ) ) {
				return;
			}

			/*
			* Social Menu description.
			*
			* Rename the social menu description.
			*
			* @module theme-tools
			*
			* @since 3.9.0
			*
			* @param string $social_menu_description Social Menu description
			*/
			$social_menu_description = apply_filters( 'jetpack_social_menu_description', __( 'Social Menu', 'jetpack' ) );

			// Register a new menu location
			register_nav_menus(
				array(
					'jetpack-social-menu' => esc_html( $social_menu_description ),
				)
			);

			// Enqueue CSS
			add_action( 'wp_enqueue_scripts', 'jetpack_social_menu_style' );

			// Load SVG icons related functions and filters
			if ( 'svg' === jetpack_social_menu_get_type() ) {
				require __DIR__ . '/social-menu/icon-functions.php';
			}
		}
		add_action( 'after_setup_theme', 'jetpack_social_menu_init', 99 );
		add_action( 'restapi_theme_init', 'jetpack_social_menu_init' );
	}

	if ( ! function_exists( 'jetpack_social_menu_get_type' ) ) {
		/**
		 * Return the type of menu the theme is using.
		 *
		 * @uses get_theme_support()
		 * @return null|string $menu_type
		 */
		function jetpack_social_menu_get_type() {
			_deprecated_function( __FUNCTION__, 'jetpack-13.7' );
			$options = get_theme_support( 'jetpack-social-menu' );

			if ( ! $options ) {
				$menu_type = null;
			} else {
				$menu_type = 'genericons';
				if ( is_array( $options ) && isset( $options[0] ) ) {
					$menu_type = ( in_array( $options[0], array( 'genericons', 'svg' ), true ) ) ? $options[0] : 'genericons';
				}
			}

			return $menu_type;
		}
	}

	if ( ! function_exists( 'jetpack_social_menu_style' ) ) {
		/**
		 * Function to enqueue the CSS.
		 */
		function jetpack_social_menu_style() {
			_deprecated_function( __FUNCTION__, 'jetpack-13.7' );
			$menu_type = jetpack_social_menu_get_type();

			if ( ! $menu_type ) {
				return;
			}

			$deps = ( 'genericons' === $menu_type ) ? array( 'genericons' ) : null;

			if ( has_nav_menu( 'jetpack-social-menu' ) ) {
				wp_enqueue_style( 'jetpack-social-menu', plugins_url( 'social-menu/social-menu.css', __FILE__ ), $deps, '1.0' );
			}
		}
	}

	if ( ! function_exists( 'jetpack_social_menu' ) ) {
		/**
		 * Create the function for the menu.
		 */
		function jetpack_social_menu() {
			_deprecated_function( __FUNCTION__, 'jetpack-13.7' );
			if ( has_nav_menu( 'jetpack-social-menu' ) ) :
				$menu_type  = jetpack_social_menu_get_type();
				$link_after = '</span>';

				if ( 'svg' === $menu_type ) {
					$link_after .= jetpack_social_menu_get_svg( array( 'icon' => 'chain' ) );
				} ?>
				<nav class="jetpack-social-navigation jetpack-social-navigation-<?php echo esc_attr( $menu_type ); ?>" aria-label="<?php esc_html_e( 'Social Links Menu', 'jetpack' ); ?>">
					<?php
						wp_nav_menu(
							array(
								'theme_location' => 'jetpack-social-menu',
								'link_before'    => '<span class="screen-reader-text">',
								'link_after'     => $link_after,
								'depth'          => 1,
							)
						);
					?>
				</nav><!-- .jetpack-social-navigation -->
				<?php
			endif;
		}
	}
}

[ 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