Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.16.49.213
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/themes/siteorigin-unwind/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/themes/siteorigin-unwind/inc/jetpack.php
<?php
/**
 * Jetpack Compatibility File.
 *
 * @see https://jetpack.me/
 * @since siteorigin-unwind 0.1
 *
 * @license GPL 2.0
 */
if ( ! function_exists( 'siteorigin_unwind_jetpack_setup' ) ) {
	/**
	 * Jetpack setup function.
	 */
	function siteorigin_unwind_jetpack_setup() {
		/*
		 * Enable support for Jetpack Featured Content.
		 * See https://jetpack.com/support/featured-content/
		 */
		add_theme_support( 'featured-content', array(
			'filter'     => 'siteorigin_unwind_get_featured_posts',
			'max_posts'  => 5,
			'post_types' => array( 'post' ),
		) );

		/*
		 * Enable support for Jetpack Infinite Scroll.
		 * See https://jetpack.com/support/infinite-scroll/
		 */
		add_theme_support( 'infinite-scroll', array(
			'container'      => 'main',
			'render'         => 'siteorigin_unwind_infinite_scroll_render',
			'footer'    	 => 'page',
		) );

		/*
		 * Enable support for Jetpack Portfolio custom post type.
		 * See https://jetpack.com/support/custom-content-types/
		 */
		add_theme_support( 'jetpack-portfolio' );
	}
}
// siteorigin_unwind_jetpack_setup
add_action( 'after_setup_theme', 'siteorigin_unwind_jetpack_setup' );

/**
 * Remove the Jetpack stylesheets we don't require.
 */
function siteorigin_unwind_remove_jetpack_css() {
	wp_deregister_style( 'jetpack-portfolio-style' );
}
add_action( 'wp_footer', 'siteorigin_unwind_remove_jetpack_css' );

/**
 * Custom render function for Infinite Scroll.
 */
function siteorigin_unwind_infinite_scroll_render() {
	if ( is_search() ) { ?>
		<div class="left-medium-loop">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'search' );
			}
			?>
		</div>
		<?php
	} elseif ( function_exists( 'is_woocommerce' ) && ( is_shop() || is_woocommerce() ) ) {
		echo '<ul class="products test columns-' . esc_attr( wc_get_loop_prop( 'columns' ) ) . '">';

		while ( have_posts() ) {
			the_post();
			wc_get_template_part( 'content', 'product' );
		}
		echo '</ul>';
	} elseif ( siteorigin_setting( 'blog_archive_layout' ) == 'grid' ) { ?>
		<div class="blog-layout-grid">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'grid' );
			}
			?>
		</div>
		<?php
	} elseif ( siteorigin_setting( 'blog_archive_layout' ) == 'offset' ) { ?>
		<div class="blog-layout-offset">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'offset' );
			}
			?>
		</div>
		<?php
	} elseif ( siteorigin_setting( 'blog_archive_layout' ) == 'alternate' ) { ?>
		<div class="blog-layout-alternate">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'alternate' );
			}
			?>
		</div>
		<?php
	} elseif ( siteorigin_setting( 'blog_archive_layout' ) == 'masonry' ) {
		wp_enqueue_script( 'jquery-masonry' ); ?>
		<div class="blog-layout-masonry">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'masonry' );
			}
			?>
		</div>
		<?php
	} elseif ( is_post_type_archive( 'jetpack-portfolio' ) || is_tax( 'jetpack-portfolio-type' ) || is_tax( 'jetpack-portfolio-tag' ) ) { ?>
		<div id="projects-container">
			<?php
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content', 'portfolio' );
			}
		?></div>
		<?php
	} else {
		while ( have_posts() ) {
			the_post();
			get_template_part( 'template-parts/content', get_post_format() );
		}
	}
}

/**
 * Remove sharing buttons from their default locations.
 */
function siteorigin_unwind_remove_share() {
	remove_filter( 'the_content', 'sharing_display', 19 );
	remove_filter( 'the_excerpt', 'sharing_display', 19 );

	if ( class_exists( 'Jetpack_Likes' ) ) {
		remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
	}
}
add_action( 'loop_start', 'siteorigin_unwind_remove_share' );

if ( ! function_exists( 'siteorigin_unwind_jetpack_related_projects' ) ) {
	/**
	 * Displays jetpack related posts for projects.
	 */
	function siteorigin_unwind_jetpack_related_projects( $allowed_post_types ) {
		$allowed_post_type[] = 'jetpack-portfolio';

		return $allowed_post_type;
	}
}
add_filter( 'rest_api_allowed_post_types', 'siteorigin_unwind_jetpack_related_projects' );

Youez - 2016 - github.com/yon3zu
LinuXploit