| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | get_header(); |
|---|
| 4 | |
|---|
| 5 | if ( is_front_page() && is_home() ) { |
|---|
| 6 | require get_template_directory() . '/home.php'; |
|---|
| 7 | } elseif ( is_front_page() && ! is_home() ) { |
|---|
| 8 | ?> |
|---|
| 9 | <main id="primary" class="site-main"> |
|---|
| 10 | <?php require get_template_directory() . '/sections/sections.php'; ?> |
|---|
| 11 | <?php bridal_jewelry_store_homepage_sections(); ?> |
|---|
| 12 | </main> |
|---|
| 13 | <?php |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | if ( true === get_theme_mod( 'bridal_jewelry_store_enable_frontpage_content', false ) ) { |
|---|
| 17 | ?> |
|---|
| 18 | <div id="content" class="site-content"> |
|---|
| 19 | <div class="asterthemes-wrapper"> |
|---|
| 20 | <div class="asterthemes-page"> |
|---|
| 21 | <main id="primary" class="site-main"> |
|---|
| 22 | <?php |
|---|
| 23 | while ( have_posts() ) : |
|---|
| 24 | the_post(); |
|---|
| 25 | |
|---|
| 26 | get_template_part( 'template-parts/content', 'page' ); |
|---|
| 27 | |
|---|
| 28 | // If comments are open or we have at least one comment, load up the comment template. |
|---|
| 29 | if ( comments_open() || get_comments_number() ) : |
|---|
| 30 | comments_template(); |
|---|
| 31 | endif; |
|---|
| 32 | |
|---|
| 33 | endwhile; // End of the loop. |
|---|
| 34 | ?> |
|---|
| 35 | </main> |
|---|
| 36 | <?php |
|---|
| 37 | if ( bridal_jewelry_store_is_sidebar_enabled() ) { |
|---|
| 38 | get_sidebar(); |
|---|
| 39 | } |
|---|
| 40 | ?> |
|---|
| 41 | </div> |
|---|
| 42 | </div> |
|---|
| 43 | </div> |
|---|
| 44 | <?php |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | get_footer(); |
|---|
Note: See
TracBrowser
for help on using the repository browser.