Make WordPress Themes

source: travel-booking-agency/0.3/single.php

Last change on this file was 201402, checked in by themedropbox, 2 years ago

New version of Travel Booking Agency - 0.2.2

File size: 2.9 KB
Line 
1<?php
2/**
3 * The Template for displaying all single pages.
4 *
5 * @package Travel Booking Agency
6 */
7get_header(); ?>
8
9<?php do_action( 'travel_booking_agency_single_post_header' ); ?>
10
11<main id="main" role="main" class="middle-align">
12        <div class="container space-top">
13                <?php
14        $travel_booking_agency_single_post_sidebar = get_theme_mod( 'travel_booking_agency_single_post_sidebar','Right Sidebar');
15        if($travel_booking_agency_single_post_sidebar == 'Left Sidebar'){ ?>
16            <div class="row">
17                                <div class="col-lg-4 col-md-4"><?php get_sidebar();?></div>
18                                <div class="col-lg-8 col-md-8" class="content-ma">
19                                        <?php if (get_theme_mod('travel_booking_agency_single_post_breadcrumb',true) != ''){ ?>
20                                    <div class="bradcrumbs">
21                                        <?php travel_booking_agency_the_breadcrumb(); ?>
22                                    </div>
23                                <?php }?>
24                                        <?php while ( have_posts() ) : the_post(); 
25                                                get_template_part( 'template-parts/single-post');
26                                        endwhile; // end of the loop. ?>
27                        </div>
28                </div>
29            <?php }else if($travel_booking_agency_single_post_sidebar == 'Right Sidebar'){ ?>
30                <div class="row">
31                        <div class="col-lg-8 col-md-8" class="content-ma">
32                                <?php if (get_theme_mod('travel_booking_agency_single_post_breadcrumb',true) != ''){ ?>
33                                    <div class="bradcrumbs">
34                                        <?php travel_booking_agency_the_breadcrumb(); ?>
35                                    </div>
36                                <?php }?>
37                                        <?php while ( have_posts() ) : the_post(); 
38                                                get_template_part( 'template-parts/single-post');
39                                        endwhile; // end of the loop. ?>
40                        </div>
41                                <div class="col-lg-4 col-md-4"><?php get_sidebar();?></div>
42                        </div>
43                <?php }else if($travel_booking_agency_single_post_sidebar == 'One Column'){ ?>
44                        <div class="content-ma">
45                                <?php if (get_theme_mod('travel_booking_agency_single_post_breadcrumb',true) != ''){ ?>
46                                    <div class="bradcrumbs">
47                                        <?php travel_booking_agency_the_breadcrumb(); ?>
48                                    </div>
49                            <?php }?>
50                                <?php while ( have_posts() ) : the_post(); 
51                                        get_template_part( 'template-parts/single-post');
52                                endwhile; // end of the loop. ?>
53                </div>
54            <?php }else {?>
55                        <div class="row">
56                        <div class="col-lg-8 col-md-8" class="content-ma">
57                                <?php if (get_theme_mod('travel_booking_agency_single_post_breadcrumb',true) != ''){ ?>
58                                    <div class="bradcrumbs">
59                                        <?php travel_booking_agency_the_breadcrumb(); ?>
60                                    </div>
61                                <?php }?>
62                                        <?php while ( have_posts() ) : the_post(); 
63                                                get_template_part( 'template-parts/single-post');
64                                        endwhile; // end of the loop. ?>
65                        </div>
66                                <div class="col-lg-4 col-md-4"><?php get_sidebar();?></div>
67                        </div>
68        <?php } ?>
69        <div class="clearfix"></div>
70    </div>
71</main>
72
73<?php do_action( 'travel_booking_agency_single_post_footer' ); ?>
74
75<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.