<?php /** * The template for displaying all pages * * @subpackage Organic Farm * @since 1.0 */ ?> <?php get_header(); ?> <main id="content" class="site-main" role="main"> <?php $organic_farm_header_option = get_theme_mod( 'organic_farm_show_header_image','on'); if($organic_farm_header_option == 'on'){ ?> <?php while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="outer-div"> <?php if(has_post_thumbnail()){ ?> <div class="single-post-image"> <?php the_post_thumbnail(); ?> </div> <?php } else { ?> <div class="header-image"></div> <?php } ?> <div class="inner-div"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb single_breadcrumb align-self-center text-center"> <?php organic_farm_breadcrumb(); ?> </div> <?php } ?> <h2 class="text-center mt-4"><?php the_title();?></h2> </div> </div> <?php endwhile; ?> <div class="content-area my-5"> <div class="container"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'organic-farm' ), 'after' => '</div>', ) ); ?> </div> </article> <?php endwhile; // End of the loop. ?> <div class="clearfix"></div> </div> </div> <?php } else if($organic_farm_header_option == 'off'){ ?> <?php while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="without-img-head py-5"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb single_breadcrumb align-self-center text-center"> <div class="without-img"> <?php organic_farm_breadcrumb(); ?> </div> </div> <?php } ?> <h2 class="my-4 withoutimg text-center"><span><?php the_title();?></span></h2> </div> <?php endwhile; ?> <div class="content-area my-5"> <div class="container"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php if(has_post_thumbnail()){ ?> <div class="pb-4"><?php the_post_thumbnail(); ?></div> <?php } ?> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'organic-farm' ), 'after' => '</div>', ) ); ?> </div> </article> <?php endwhile; // End of the loop. ?> <div class="clearfix"></div> </div> </div> <?php } ?> </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 |
|