$attributes['count'],
'cats' => $attributes['showAllCats'] ? 'all' : $attributes['cats'],
'caption' => $attributes['caption'],
'frame' => $attributes['showFrame'] ? 1 : 0,
'divider' => $attributes['showDivider'] ? 1 : 0,
'modified' => $attributes['modified'] ? 1 : 0,
'comment' => $attributes['comment'] ? 1 : 0,
];
ob_start();
echo '
';
generate_info_list_tag($atts);
echo '
';
$html = ob_get_clean();
$html = change_fa($html);
if (is_rest()) {
$html = add_editor_no_link_click_class($html);
}
return $html;
}
/**
* Registers the `cocoon-blocks/info-list` block on server.
*/
if (function_exists('register_block_type')) {
register_block_type(__DIR__, [
'render_callback' => 'render_block_cocoon_block_info_list',
]);
}