$name,
'type' => $attributes['menuType'],
'bold' => $attributes['bold'] ? 1 : 0,
'arrow' => $attributes['arrow'] ? 1 : 0,
'horizontal' => $attributes['horizontal'] ? 1 : 0,
];
$navi_card_content = get_navi_card_list_tag($atts);
ob_start();
echo '
';
echo $navi_card_content;
echo '
';
$html = ob_get_clean();
if (is_rest()) {
$html = add_editor_no_link_click_class($html);
}
return $html;
}
}
/**
* Registers the `cocoon-blocks/navicard` block on server.
*/
if( function_exists('register_block_type')) {
register_block_type(
__DIR__,
array(
'render_callback' => 'render_block_cocoon_navi_card',
)
);
}