# gutenify/1.0.3/src/blocks/team/_index.php

Gutenify – Visual Site Builder Blocks &amp; Starter Templates, version 1.0.3. 32 lines.

- Page: https://pluginprobe.com/plugins/gutenify/1.0.3/code/src/blocks/team/_index.php
- Raw: https://pluginprobe.com/plugins/gutenify/1.0.3/raw/src/blocks/team/_index.php
- Modified: 2022-04-05T14:40:40+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/gutenify/1.0.3/code/src/blocks/team/_index.php#L10-L20`.

```php
<?php
/**
 * Server-side rendering of the `gutenify/social` block.
 *
 * @package Gutenify
 */

/**
 * Registers the block on server.
 */
function gutenify_register_team_block() {
	// Return early if this function does not exist.
	if ( ! function_exists( 'register_block_type' ) ) {
		return;
	}

	// Load attributes from block.json.
	ob_start();
	include GUTENIFY_PLUGIN_DIR . 'src/blocks/team/block.json';
	$metadata = json_decode( ob_get_clean(), true );

	register_block_type(
		'gutenify/team',
		array(
			'editor_script' => 'gutenify-editor',
			'editor_style'  => 'gutenify-editor',
			'style'         => 'gutenify-frontend',
		)
	);
}
add_action( 'init', 'gutenify_register_team_block' );

```
