# blockspare/2.6.1/inc/layout/components.php

BlockSpare – Gutenberg Blocks for News, Magazine, Blog &amp; Business Websites, version 2.6.1. 32 lines.

- Page: https://pluginprobe.com/plugins/blockspare/2.6.1/code/inc/layout/components.php
- Raw: https://pluginprobe.com/plugins/blockspare/2.6.1/raw/inc/layout/components.php
- Modified: 2023-05-11T08:51:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockspare/2.6.1/code/inc/layout/components.php#L10-L20`.

```php
<?php
/**
 * Register layouts and sections for the Layout block.
 *
 * @package Blockspare
 */

namespace Blockspare\Layouts;
include BLOCKSPARE_PLUGIN_DIR .'inc/template-library/init.php';
add_action( 'plugins_loaded', __NAMESPACE__ . '\register_components', 11 );
/**
 * Registers section and layout components.
 *
 * @since 2.0
 */
function register_components() {
	$blocks_lists = array();

	$templates = apply_filters( 'blockspare_template_library', $blocks_lists );

	if(!empty($templates)){
		foreach($templates as $temp){
		blockspare_register_layout_component($temp);
		}
	}

}





```
