'#ffffff',
'icon_text_color' => '#fb4747',
'icon_bg_h_color' => '#fb4747',
'icon_text_h_color' => '#ffffff',
);
$about_section_social_links_colors = get_theme_mod('about_section_social_links_colors', $default_social_links_colors);
$inline_style_data = '
.about-section-social-links .social-link a{
'.( array_key_exists('icon_bg_color', $about_section_social_links_colors) ? 'background-color:' . $about_section_social_links_colors['icon_bg_color'] : '').';
'.( array_key_exists('icon_text_color', $about_section_social_links_colors) ? 'color:' . $about_section_social_links_colors['icon_text_color'] : '').';
}
.about-section-social-links .social-link a:hover, .about-section-social-links .social-link a:active{
'.( array_key_exists('icon_bg_h_color', $about_section_social_links_colors) ? 'background-color:' . $about_section_social_links_colors['icon_bg_h_color'] : '').';
'.( array_key_exists('icon_text_h_color', $about_section_social_links_colors) ? 'color:' . $about_section_social_links_colors['icon_text_h_color'] : '').';
}
';
wp_add_inline_style('author-personal-blog-style', $inline_style_data);
if ( (is_home() || is_archive()) && true == $isMasonryActivated) :
wp_enqueue_script( 'imagesloaded', esc_url( get_template_directory_uri() ) . '/assets/js/imagesloaded.pkgd.min.js', array( 'jquery' ), '1.0', true );
wp_enqueue_script( 'masonry' );
endif;
wp_enqueue_script( 'author-personal-blog-menu', esc_url( get_template_directory_uri() ) . '/assets/js/menu.js', array( 'jquery' ), '1.0', true );
if ( (is_home() && true == $isBookSliderActivated) || class_exists('WooCommerce') && is_product()) {
wp_enqueue_script( 'slick', esc_url( get_template_directory_uri() ) . '/assets/js/slick.js', array( 'jquery' ), '1.0', true );
}
wp_enqueue_script( 'author-personal-blog-active', esc_url( get_template_directory_uri() ) . '/assets/js/active.js', array( 'jquery' ), '1.0', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'author_personal_blog_scripts' );
add_action('customize_controls_enqueue_scripts', 'author_personal_blog_customizer_scripts');
function author_personal_blog_customizer_scripts(){
wp_enqueue_style('customizer-style', esc_url(get_theme_file_uri('assets/customizer/customizer-style.css')));
}
add_action('enqueue_block_editor_assets', 'author_personal_blog_global_scripts');
add_action('wp_enqueue_scripts', 'author_personal_blog_global_scripts');
function author_personal_blog_global_scripts(){
wp_enqueue_style( 'bootstrap-grid', esc_url(get_theme_file_uri( 'assets/css/bootstrap-grid.css' )) );
wp_enqueue_style( 'fontawesome-v4', esc_url(get_theme_file_uri( 'assets/css/fontawesome.css' )) );
wp_enqueue_style( 'block-style', esc_url(get_theme_file_uri( 'assets/blocks-style/block-styles.css' )) );
}
/**
* Conditional Script
*/
add_action('wp_print_footer_scripts', 'author_personal_blog_print_scripts');
function author_personal_blog_print_scripts(){
$showBookSlider = get_theme_mod('books_slider_on_off', false);
if (is_home() && true == $showBookSlider) :
?>