/home/desid573/verdenaturopathy.com.au/wp-content/themes/polite/templatesell
Edit: /home/desid573/verdenaturopathy.com.au/wp-content/themes/polite/templatesell/enqueue.php (5370B)
1 ) ? get_query_var( 'paged' ) : 1;
$max_num_pages = $wp_query->max_num_pages;
wp_localize_script( 'polite-custom', 'polite_ajax', array(
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'paged' => absint($paged),
'max_num_pages' => absint($max_num_pages),
'next_posts' => next_posts( absint($max_num_pages), false ),
'show_more' => __( 'View More', 'polite' ),
'no_more_posts' => __( 'No More', 'polite' ),
));
wp_enqueue_script( 'polite-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20200412', true );
/*Sticky Sidebar*/
global $polite_theme_options;
if( 1 == absint($polite_theme_options['polite-enable-sticky-sidebar'])) {
wp_enqueue_script( 'theia-sticky-sidebar', get_template_directory_uri() . '/assets/js/theia-sticky-sidebar.js', array(), '20200412', true );
wp_enqueue_script( 'polite-sticky-sidebar', get_template_directory_uri() . '/assets/js/custom-sticky-sidebar.js', array(), '20200412', true );
}
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script('comment-reply');
}
}
add_action( 'wp_enqueue_scripts', 'polite_scripts' );
/**
* Enqueue fonts for the editor style
*/
function polite_block_styles() {
wp_enqueue_style( 'polite-editor-styles', get_theme_file_uri( 'css/editor-styles.css' ) );
wp_enqueue_style('polite-editor-body', '//fonts.googleapis.com/css?family=Muli:400,400i,500,600,700&display=swap', array(), null);
/*heading */
wp_enqueue_style('polite-editor-heading', '//fonts.googleapis.com/css?family=Prata&display=swap', array(), null);
$polite_custom_css = '
.edit-post-visual-editor.editor-styles-wrapper{ font-family: Muli;}
.editor-post-title__block .editor-post-title__input,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6{font-family:Prata;}
';
wp_add_inline_style( 'polite-editor-styles', $polite_custom_css );
}
add_action( 'enqueue_block_editor_assets', 'polite_block_styles' );