get('Version')); wp_style_add_data('barenote-style', 'rtl', 'replace'); // enqueue script wp_enqueue_script('barenote-custom', get_template_directory_uri() . '/assets/js/custom.js', array(), '', true); } endif; add_action('wp_enqueue_scripts', 'barenote_enqueue'); if (!function_exists('barenote_body_classes')): /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function barenote_body_classes($classes) { $classes[] = get_stylesheet(); $theme = wp_get_theme(); $classes[] = $theme->get('TextDomain'); return $classes; } endif; add_filter('body_class', 'barenote_body_classes'); /** * Registers block patterns and categories. */ if (!function_exists('barenote_register_block_patterns')): /** * Register pattern categories * * @since 1.0 * @return void */ function barenote_register_block_patterns() { register_block_pattern_category( 'barenote', array( 'label' => _x('BareNote', 'Block pattern category', 'barenote'), ) ); } endif; add_action('init', 'barenote_register_block_patterns'); /** * wpopus */ require get_template_directory() . '/inc/wpopus.php';