for posts and comments.
add_theme_support( 'automatic-feed-links' );
/*
* Enable support for Post Formats.
*/
add_theme_support( 'post-formats', array(
'gallery','video', 'audio', 'link','quote'
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
) );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/**
* dynamic social link
*
*/
}
add_action( 'after_setup_theme', 'blogangellite_setup' );
require_once( get_template_directory() . '/inc/index.php' );
/**
* Enqueue scripts and styles for the front end.
*
*/
function blogangellite_scripts() {
// Add Genericons font, used in the main stylesheet.
wp_enqueue_style( 'blogangellite-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '1.0.0' );
wp_enqueue_style('blogangellite-style', get_stylesheet_uri());
wp_enqueue_script( 'blogangellite-classie', get_template_directory_uri() . '/js/classie.js', array( 'jquery' ), '', false );
wp_enqueue_script( 'blogangellite-flexslider-min', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array( 'jquery' ), '', true );
wp_enqueue_script( 'blogangellite-smoothscroll.min', get_template_directory_uri() . '/js/smoothscroll.min.js', array( 'jquery' ), '', true );
wp_enqueue_script( 'blogangellite-custom', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), '', true );
// Comment reply
if (is_singular() && get_option('thread_comments')){
wp_enqueue_script('comment-reply');
}
}
add_action( 'wp_enqueue_scripts', 'blogangellite_scripts' );
function blogangellite_social_links(){
?>