| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/new/wp-content/themes/neve/inc/compatibility/ |
Upload File : |
<?php
/**
* Patterns Compatibility.
*
* @package Patterns.php
*/
namespace Neve\Compatibility;
/**
* Class Patterns
*
* @package Neve\Compatibility
*/
class Patterns {
/**
* Define list of the patterns to load.
*
* @var string[] Patterns list.
*/
private $patterns = [
'dark-header-centered-content',
'two-columns-image-text',
'three-columns-images-text',
'three-columns-images-text',
'three-columns-images-texts-content',
'four-columns-team-members',
'two-columns-centered-content',
'two-columns-with-text',
'testimonials-columns',
'gallery-grid-buttons',
'gallery-title-buttons',
'light-header-left-aligned-content',
];
/**
* Register patterns bootstrap hook.
*/
public function init() {
add_action( 'init', [ $this, 'define_patterns' ] );
}
/**
* Load patterns.
*/
public function define_patterns() {
if ( ! function_exists( 'register_block_pattern' ) ) {
return;
}
foreach ( $this->patterns as $pattern ) {
register_block_pattern(
'neve/' . $pattern,
require __DIR__ . '/block-patterns/' . $pattern . '.php'
);
}
}
}