<?php /** * The main template file * * @subpackage Organic Farm * @since 1.0 */ get_header(); ?> <main id="content"> <?php $organic_farm_header_option = get_theme_mod( 'organic_farm_show_header_image','on'); if($organic_farm_header_option == 'on'){ ?> <?php if ( is_home() && ! is_front_page() ) : ?> <header class="page-header"> <div class="header-image"></div> <div class="internal-div"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <?php organic_farm_breadcrumb(); ?> </div> <?php } ?> <h1 class="page-title mt-4 text-center"><span><?php single_post_title(); ?></span></h1> </div> </header> <?php else : ?> <header class="page-header"> <div class="header-image"></div> <div class="internal-div"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <?php organic_farm_breadcrumb(); ?> </div> <?php } ?> <h2 class="page-title mt-4 text-center"><span><?php esc_html_e( 'Posts', 'organic-farm' ); ?></span></h2> </div> </header> <?php endif; ?> <?php } else if($organic_farm_header_option == 'off'){ ?> <?php if ( is_home() && ! is_front_page() ) : ?> <header class="mt-4"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <div class="without-img"> <?php organic_farm_breadcrumb(); ?> </div> </div> <?php } ?> <h1 class="page-title mt-4 withoutimg text-center"><span><?php single_post_title(); ?></span></h1> </header> <?php else : ?> <header class="mt-4"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <div class="without-img"> <?php organic_farm_breadcrumb(); ?> </div> </div> <?php } ?> <h2 class="page-title mt-4 withoutimg text-center"><span><?php esc_html_e( 'Posts', 'organic-farm' ); ?></span></h2> </header> <?php endif; ?> <?php } ?> <div class="container"> <div class="content-area my-5"> <div id="main" class="site-main" role="main"> <div class="row m-0"> <?php get_template_part( 'template-parts/post/post-layout' ); ?> </div> </div> </div> </div> </main> <?php get_footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
page-template | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
woocommerce | Folder | 0755 |
|
|
404.php | File | 2.5 KB | 0644 |
|
archive.php | File | 1.94 KB | 0644 |
|
comments.php | File | 1.62 KB | 0644 |
|
footer.php | File | 934 B | 0644 |
|
functions.php | File | 19.59 KB | 0644 |
|
header.php | File | 8.38 KB | 0644 |
|
index.php | File | 2.56 KB | 0644 |
|
page.php | File | 2.93 KB | 0644 |
|
readme.txt | File | 12.71 KB | 0644 |
|
screenshot.png | File | 291.08 KB | 0644 |
|
search.php | File | 2.82 KB | 0644 |
|
searchform.php | File | 622 B | 0644 |
|
sidebar.php | File | 1.04 KB | 0644 |
|
single.php | File | 220 B | 0644 |
|
style.css | File | 56.34 KB | 0644 |
|