| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying the landing page/blog posts |
|---|
| 4 | * The functions used here can be found in includes/landing-page.php |
|---|
| 5 | * |
|---|
| 6 | * @package Anima |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | $anima_landingpage = cryout_get_option( 'anima_landingpage' ); |
|---|
| 10 | |
|---|
| 11 | if ( is_page() && ! $anima_landingpage ) { |
|---|
| 12 | load_template( get_page_template() ); |
|---|
| 13 | return true; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | if ( 'posts' == get_option( 'show_on_front' ) ) { |
|---|
| 17 | include( get_home_template() ); |
|---|
| 18 | } else { |
|---|
| 19 | |
|---|
| 20 | get_header(); |
|---|
| 21 | ?> |
|---|
| 22 | |
|---|
| 23 | <div id="container" class="anima-landing-page one-column"> |
|---|
| 24 | <main id="main" role="main" class="main"> |
|---|
| 25 | <?php |
|---|
| 26 | //cryout_before_content_hook(); |
|---|
| 27 | |
|---|
| 28 | if ( $anima_landingpage ) { |
|---|
| 29 | get_template_part( apply_filters('anima_landingpage_main_template', 'content/landing-page' ) ); |
|---|
| 30 | } else { |
|---|
| 31 | anima_lpindex(); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | //cryout_after_content_hook(); |
|---|
| 35 | ?> |
|---|
| 36 | </main><!-- #main --> |
|---|
| 37 | <?php if ( ! $anima_landingpage ) { anima_get_sidebar(); } ?> |
|---|
| 38 | </div><!-- #container --> |
|---|
| 39 | |
|---|
| 40 | <?php get_footer(); |
|---|
| 41 | } //else !posts |
|---|
Note: See
TracBrowser
for help on using the repository browser.