Beispiel #1
0
/**
 * Enqueue scripts and styles.
 */
function cover_scripts()
{
    wp_enqueue_style('GoogleFonts', '//fonts.googleapis.com/css?family=Source+Code+Pro|Montserrat|Open+Sans:400,600');
    wp_enqueue_style('cover-style', get_stylesheet_uri());
    wp_enqueue_script('jquery');
    wp_enqueue_script('cover-skip-link-focus-fix', get_template_directory_uri() . '/dist/js/skip-link-focus-fix.js', array(), '20130115', true);
    wp_enqueue_script('skrollr', get_template_directory_uri() . '/dist/js/skrollr.min.js', array(), '20140821', true);
    wp_enqueue_script('headroom', get_template_directory_uri() . '/dist/js/headroom.min.js', array(), '20140814', true);
    wp_enqueue_script('cover-lib', get_template_directory_uri() . '/dist/js/cover.js', array('jquery'), '20140210', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (cover_has_featured_posts(2)) {
        wp_enqueue_script('unslider', get_template_directory_uri() . '/dist/js/unslider.min.js', array('jquery'), '20150727', true);
        wp_enqueue_script('unslider-cover', get_template_directory_uri() . '/dist/js/cover-unslider.js', array('jquery'), '20150727', true);
    }
    if ('grid' == esc_attr(get_theme_mod('cover_list_style', 'minimal')) && !is_singular() && !is_page()) {
        wp_enqueue_script('masonry', get_template_directory_uri() . '/dist/js/masonry.pkgd.min.js', array('jquery'), '20150730', true);
        wp_enqueue_script('masonry-cover', get_template_directory_uri() . '/dist/js/cover-masonry.js', array('jquery'), '20150730', true);
    }
}
Beispiel #2
0
 * The Index
 *
 * @package Cover
 */
get_header();
?>

<?php 
get_template_part('inc/wrapper', 'top');
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main"> <!-- .grid -->
            
			<?php 
if (cover_has_featured_posts()) {
    get_template_part('inc/cover', 'featured');
}
?>
			
            <?php 
if (have_posts()) {
    ?>
				
                <?php 
    $count = 0;
    ?>
                <?php 
    while (have_posts()) {
        the_post();
        ?>
Beispiel #3
0
<meta name="theme-color" content="#026ed2">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
">

<?php 
wp_head();
?>
    
</head>

<?php 
$header_class = '';
if (!(is_single() || is_page() || is_archive() || is_author() || is_search() || is_404() || cover_has_featured_posts())) {
    $header_class = ' bg';
}
$nav_primary = 'primary';
$nav_social = 'social_header';
$build_overlay = false;
if (has_nav_menu($nav_primary) || has_nav_menu($nav_social) || is_active_sidebar('cover-overlay')) {
    $build_overlay = true;
}
?>

<body <?php 
body_class();
?>
>