HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/mussarq_bak/wp-content/themes/wpnull24/framework/templates/elements/page_block.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Page Block element
 */

if ( is_numeric( $id ) ) {
	$page_block = get_post( $id );
} else {
	return;
}

if ( $page_block AND $page_block->post_type == 'us_page_block' ) {
	us_add_to_page_block_ids( $page_block->ID );

	$page_block_content = $page_block->post_content;
	us_open_wp_query_context();

	us_add_page_shortcodes_custom_css( $id );

	us_close_wp_query_context();
} else {
	return;
}

// Remove [vc_row] and [vc_column] if set
if ( $remove_rows ) {
	$page_block_content = str_replace( array( '[vc_row]', '[/vc_row]', '[vc_column]', '[/vc_column]' ), '', $page_block_content );
	$page_block_content = preg_replace( '~\[vc_row (.+?)]~', '', $page_block_content );
	$page_block_content = preg_replace( '~\[vc_column (.+?)]~', '', $page_block_content );
}

// Force fullwidth for all [vc_row] if set
if ( ! $remove_rows AND $force_fullwidth_rows ) {
	$page_block_content = str_replace( '[vc_row]', '[vc_row width="full"]', $page_block_content );
	$page_block_content = str_replace( '[vc_row ', '[vc_row width="full" ', $page_block_content );
}

// Apply filters to Page Block content and echoing it ouside of us_open_wp_query_context
echo apply_filters( 'us_page_block_the_content', $page_block_content );

us_remove_from_page_block_ids();