* and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @since 3.0.0 */ $bavotasan_theme_options = bavotasan_theme_options(); get_header(); if ('page' == get_option('show_on_front')) { include get_page_template(); } else { ?> <div id="primary" <?php bavotasan_primary_attr(); ?> role="main"> <?php $sticky = get_option('sticky_posts'); $featured = new WP_Query(array('posts_per_page' => 1, 'post__in' => $sticky, 'ignore_sticky_posts' => 1)); global $paged; if (!empty($sticky[0]) && 2 > $paged) { ?> <div id="featured" class="row"> <?php while ($featured->have_posts()) { $featured->the_post(); global $mb_content_area; $mb_content_area = 'main'; get_template_part('content', get_post_format());
/** * Adds the needed HTML before all WooCommerce pages * * This function is attached to the 'woocommerce_before_main_content' action hook. * * @uses get_query_var() * @uses is_front_page() * @uses bavotasan_header_image() * @uses bavotasan_primary_attr() * * @since 1.0.0 */ function bavotasan_wrapper_start() { $paged = get_query_var('paged') ? get_query_var('paged') : 1; if (is_front_page() && 1 == $paged) { bavotasan_header_image(); ?> <div class="home-container"> <div class="wrapper"> <?php } ?> <div class="container"> <div class="row"> <div id="primary" <?php bavotasan_primary_attr(); ?> > <?php }
/** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @since 1.0.0 */ get_header(); ?> <div class="container"> <div class="row"> <div id="primary" class="col-md-12" <?php bavotasan_primary_attr(); ?>> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- <h1 class="entry-title"><?php the_title(); ?></h1> --> <div class="entry-content description clearfix"> <?php the_content( __( 'Read more', 'arcade') ); ?> </div><!-- .entry-content --> <?php get_template_part( 'content', 'footer' ); ?> </article><!-- #post-<?php the_ID(); ?> --> <?php comments_template( '', true );
* * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * * If you'd like to further customize these archive views, you may create a * new template file for each specific one. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @since 1.0.0 */ get_header(); ?> <div class="container"> <div class="row"> <section id="primary" <?php bavotasan_primary_attr(); ?>> <?php if ( have_posts() ) : ?> <header id="archive-header"> <?php if ( is_author() ) echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?> <h1 class="page-title"> <?php if ( is_category() ) : ?> <?php echo single_cat_title( '', false ); ?> <?php elseif ( is_author() ) : ?> <?php printf( __( '%s', 'arcade' ), get_the_author_meta( 'display_name', get_query_var( 'author' ) ) ); ?> <?php elseif ( is_tag() ) : ?> <?php printf( __( 'Tag Archive for %s', 'arcade' ), single_tag_title( '', false ) ); ?> <?php elseif ( is_day() ) : ?> <?php printf( __( 'Daily Archives: %s', 'arcade' ), get_the_date() ); ?> <?php elseif ( is_month() ) : ?>
* The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @since 1.0.0 */ get_header(); ?> <div class="container"> <div class="row"> <div id="primary" <?php bavotasan_primary_attr(); ?>> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; bavotasan_pagination(); else : get_template_part( 'content', 'none' ); endif; ?> </div> </div> </div>