Make WordPress Themes

source: atua/1.0.41/page.php

Last change on this file was 185077, checked in by themedropbox, 3 years ago

New theme: Atua - 0.1

File size: 1.7 KB
Line 
1<?php
2/**
3 * The template for displaying all pages.
4 *
5 * This is the template that displays all pages by default.
6 * Please note that this is the WordPress construct of pages
7 * and that other 'pages' on your WordPress site may use a
8 * different template.
9 *
10 * @link https://codex.wordpress.org/Template_Hierarchy
11 *
12 * @package atua
13 */
14
15get_header();
16$atua_default_pg_sidebar_option= get_theme_mod('atua_default_pg_sidebar_option', 'right_sidebar'); 
17?>
18<section class="dt__posts dt_posts--one dt-py-default">
19        <div class="dt-container">
20                <div class="dt-row dt-g-5">
21                        <?php if($atua_default_pg_sidebar_option == 'left_sidebar'): 
22                                        if ( class_exists( 'WooCommerce' ) ) {
23                                                if( is_account_page() || is_cart() || is_checkout() ) {
24                                                        get_sidebar('woocommerce'); 
25                                                }else{ 
26                                                        get_sidebar(); 
27                                                }       
28                                        }else{ 
29                                                get_sidebar(); 
30                                        }       
31                        endif; ?>
32                        <?php if($atua_default_pg_sidebar_option == 'no_sidebar'): ?>
33                                <div class="dt-col-lg-12 dt-col-md-12 dt-col-12 wow fadeInUp">
34                        <?php else: ?> 
35                                <div class="dt-col-lg-8 dt-col-md-12 dt-col-12 wow fadeInUp">
36                        <?php endif;           
37                                        if( have_posts()) :  the_post();
38                                       
39                                        the_content(); 
40                                        endif;
41                                       
42                                        if( $post->comment_status == 'open' ) { 
43                                                 comments_template( '', true ); // show comments
44                                        }
45                                ?>
46                        </div>
47                        <?php if($atua_default_pg_sidebar_option == 'right_sidebar'): 
48                                        if ( class_exists( 'WooCommerce' ) ) {
49                                                if( is_account_page() || is_cart() || is_checkout() ) {
50                                                        get_sidebar('woocommerce'); 
51                                                }else{ 
52                                                        get_sidebar(); 
53                                                }       
54                                        }else{ 
55                                                get_sidebar(); 
56                                        }       
57                        endif; ?>
58                </div>
59        </div>
60</section>
61<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.