'custom-layout-block-editor', 'editor_style' => 'custom-layout-block-editor-style', 'style' => 'fluent_community_global', 'render_callback' => [$this, 'render'], 'supports' => [ 'html' => false ], 'attributes' => array( 'showPageHeader' => array( 'type' => 'boolean', 'default' => true, ), 'useFullWidth' => array( 'type' => 'boolean', 'default' => false, ), 'hideCommunityHeader' => array( 'type' => 'boolean', 'default' => false, ), 'useBuildInTheme' => array( 'type' => 'boolean', 'default' => true, ), ), ) ); } } public function render($attributes, $content) { static $isLoaded; if ($isLoaded) { return 'Space Layout is already loaded before'; } if (!$isLoaded) { $isLoaded = true; } $contenx = 'wp'; if (isset($_REQUEST['context']) && $_REQUEST['context'] == 'edit' && Helper::isSiteAdmin()) { $contenx = 'block_editor'; } $useBuildInTheme = $attributes['useBuildInTheme'] ?? false; do_action('fluent_community/enqueue_global_assets', $useBuildInTheme); $showHeader = $attributes['showPageHeader'] ?? true; $useFullWidth = $attributes['useFullWidth'] ?? true; $hideCommunityHeader = $attributes['hideCommunityHeader'] ?? false; ob_start(); ?>
{{ Page Title }}

Your page content will be shown here