# gutenify/trunk/core/dist/blocks/hover-card-hover/index.php

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

- Page: https://pluginprobe.com/plugins/gutenify/trunk/code/core/dist/blocks/hover-card-hover/index.php
- Raw: https://pluginprobe.com/plugins/gutenify/trunk/raw/core/dist/blocks/hover-card-hover/index.php
- Modified: 2026-09-02T07:27:16+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/trunk/code/core/dist/blocks/hover-card-hover/index.php#L10-L20`.

```php
<?php

namespace gutenify;

defined( 'ABSPATH' ) || exit;

class Hover_Card_Hover{
	public static function init() {
		add_action('init', array(__CLASS__, 'register_block'));
	}

	public static function register_block( ) {
		if ( ! Helpers::is_pro_block_active() ) {
			return;
		}

		register_block_type( __DIR__, array(
			'render_callback' => array( __CLASS__, 'render_callback' )
		));
	}

	public static function render_callback( $attributes, $content ) {
		$wrapper_attributes = get_block_wrapper_attributes( );
		$output = sprintf( '<div %s>', $wrapper_attributes );
		$output .= $content;
		$output .= '</div>';
		return $output;
	}
}

Hover_Card_Hover::init();

```
