Exemple #1
0
function blackoot_styles()
{
    $template_directory_uri = get_template_directory_uri();
    // Parent theme URI
    $stylesheet_directory_uri = get_stylesheet_directory_uri();
    // Current theme URI
    $stylesheet_directory = get_stylesheet_directory();
    // Current theme directory
    $responsive_mode = blackoot_get_option('responsive_mode');
    if ($responsive_mode != 'off') {
        $stylesheet = '/css/blackoot.min.css';
    } else {
        $stylesheet = '/css/blackoot-unresponsive.min.css';
    }
    /* Child theme support:
     * Enqueue child-theme's versions of stylesheet in /css if they exist,
     * or the parent theme's version otherwise
     */
    if (@file_exists($stylesheet_directory . $stylesheet)) {
        wp_register_style('blackoot', $stylesheet_directory_uri . $stylesheet);
    } else {
        wp_register_style('blackoot', $template_directory_uri . $stylesheet);
    }
    // Always enqueue style.css from the current theme
    wp_register_style('blackoot-style', $stylesheet_directory_uri . '/style.css');
    wp_enqueue_style('blackoot');
    wp_enqueue_style('blackoot-style');
    // Load font-awesome
    wp_enqueue_style('font-awesome', $template_directory_uri . "/css/font-awesome/css/font-awesome.min.css");
    // Google Webfonts
    wp_enqueue_style('Quicksand-webfonts', "//fonts.googleapis.com/css?family=Quicksand:400italic,700italic,400,700&subset=latin,latin-ext", array(), null);
    // Over themes
    wp_enqueue_style('over_blackoot_css', $template_directory_uri . "/css/over_blackoot.css");
}
Exemple #2
0
            comments_popup_link(__('0 Comment', 'blackoot'), __('1 Comment', 'blackoot'), __('% Comments', 'blackoot'), '', __('Comments Off', 'blackoot'));
            ?>
</span><?php 
        }
        /* Meta: Tags */
        if (has_tag()) {
            the_tags('<div class="meta-tags"><span class="tags-icon"><i class="fa fa-tags"></i></span>', '', '</div>');
        }
        /* Edit link (only for logged in users allowed to edit post) */
        edit_post_link(__('Edit', 'blackoot'), '<span class="editlink"><i class="fa fa-pencil"></i>', '</span>');
        ?>
</div><?php 
        // End metadata
        ?>
<div class="post-content"><?php 
        if (get_post_format() || post_password_required() || "Full content" == blackoot_get_option('blog_index_shows')) {
            the_content();
        } else {
            the_excerpt();
        }
        ?>
</div><?php 
        ?>
</div><?php 
        // end div post
        ?>
<hr /><?php 
    }
} else {
    // If there is no post in the loop
    if (is_search()) {
Exemple #3
0
<div id="nav-wrap"><?php 
?>
<div id="navbar" class="container"><?php 
wp_nav_menu(array('theme_location' => 'primary', 'items_wrap' => '<ul id="%1$s" class="%2$s sf-menu">%3$s</ul>'));
blackoot_dropdown_nav_menu();
?>
</div><?php 
// End #navbar
?>
</div><?php 
// End #nav-wrap
?>
</div><?php 
// End #header-wrap
if (get_custom_header()->url) {
    if (is_front_page() && blackoot_get_option('home_header_image') != 'Off' || is_page() && !is_front_page() && blackoot_get_option('pages_header_image') != 'Off' || is_single() && blackoot_get_option('single_header_image') != 'Off' || !is_front_page() && !is_singular() && blackoot_get_option('blog_header_image') != 'Off' || is_404()) {
        ?>
<div id="header-image" class="container"><?php 
        ?>
<img src="<?php 
        header_image();
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" width="<?php 
        echo get_custom_header()->width;
        ?>
" alt="" /><?php 
        ?>
</div><?php