get_rest_url(), 'ajax_url' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'bastet-nonce' ), 'tra' => array( 'all' => esc_html__( 'All', 'bastet' ), 'no-posts' => esc_html__( 'No more posts found :(', 'bastet' ), ), ) ); wp_enqueue_script( 'bastet-navigation', get_template_directory_uri() . '/js/navigation.js', array(), BASTET_VERSION, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } $body_typo = get_theme_mod( 'body_global_typo' ); $p_typo = get_theme_mod( 'paragraph_global_typo' ); $heading_typo = get_theme_mod( 'heading_global_typo' ); $body_font = ( is_array( $body_typo ) ? $body_typo['font-family'] : 'Poppins' ); $p_font = ( is_array( $p_typo ) ? $p_typo['font-family'] : 'Roboto Slab' ); $heading_font = ( is_array( $heading_typo ) ? $heading_typo['font-family'] : 'Poppins' ); $custom_css = " :root{ --heading-font: {$heading_font}; --paragraph-font: {$p_font}; --body-font: {$body_font} }"; wp_add_inline_style( 'bastet-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'bastet_scripts' );