/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* php snippet to allow Bricks Catchall Tempalte to work correctly

add_filter( 'bricks/code/echo_function_names', function() {
  return [
    'has_blocks',
  ];
} ); 

*/


/* php snippets to enable Fancy Bricks templates to work properly in Brick Builder versions 2.X.X */

add_filter( 'bricks/allowed_html_tags', function( $allowed_html_tags ) {
// Define the additional tags to be added (e.g. 'form' & 'select')
$additional_tags = ['svg', 'defs', 'path', 'text', 'textPath', 'progress', 'img-comparison-slider', 'bar', 'time', 'li', 'ul','input','progressbar'];

// Merge additional tags with the existing allowed tags
return array_merge( $allowed_html_tags, $additional_tags );
} );

add_filter( 'bricks/code/echo_function_names', function() {
  return [
    'count_term_use',
    'fb_get_post_type',
    'show_quantity',
    'subcat_woo',
  ];
} );