SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > filebird > includes > > Blocks


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/filebird/includes//Blocks

NameTypeSizeLast ModifiedActions
AbstractBlock.php File 2197 bytes January 09 2023 15:29:40.
BlockController.php File 814 bytes August 23 2024 17:15:40.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/filebird/includes//Blocks/BlockController.php

<?php

namespace FileBird\Blocks;

defined( 'ABSPATH' ) || exit;

final class BlockController {
    public function __construct() {
        if ( function_exists( 'register_block_type' ) ) {
            add_action( 'init', array( $this, 'register_blocks' ) );
        }
	}

    public function get_blocks() {
        $blocks = apply_filters(
            'fbv_blocks',
            array()
        );

        return $blocks;
    }

    public function register_blocks() {
        $blocks = $this->get_blocks();

        foreach ( $blocks as $block ) {
            $block_class = __NAMESPACE__ . "\\{$block}";
            if ( class_exists( $block_class ) ) {
                new $block_class();
            } else {
                error_log( "Block class {$block_class} not found" );
            }
        }
    }
}

SILENT KILLER Tool