-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.php
73 lines (73 loc) · 3.99 KB
/
blog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php // Template Name: Blog ?>
<?php get_header(); $layout_value_index = get_theme_mod( 'universal_post_type' ); ?>
<?php $layout_value = get_theme_mod( 'universal_sidebars', 'sidebar-right' ); ?>
<?php if ($layout_value == 'sidebar-left'): ?>
<section class="section-small">
<div class="container">
<div class="row">
<div class="col-md-8 col col-sm-12 sidebar-left">
<div class="row">
<div class="col-md-12 news-block-text">
<div class="pull-left"><h4><?php esc_html_e('Our Latest News', 'universal-wp' ) ?></h4></div>
</div>
</div>
<?php get_template_part( 'framework/content/content');?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php the_posts_pagination( array('prev_text' => __('«'), 'next_text' => __('»'))) ?>
</section>
<?php elseif ($layout_value == 'sidebar-right'): ?>
<section class="section-small">
<div class="container">
<div class="row">
<div class="col-md-8 col col-sm-12 sidebar-right">
<div class="row">
<div class="col-md-12 news-block-text">
<div class="pull-left"><h4><?php esc_html_e('Our Latest News', 'universal-wp' ) ?></h4></div>
</div>
</div>
<?php get_template_part( 'framework/content/content');?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php the_posts_pagination( array('prev_text' => __('«'), 'next_text' => __('»'))) ?>
</section>
<?php else: ?>
<?php if ($layout_value_index == 'masonry') {?>
<section class="section-small">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 no-sidebar">
<div class="row">
<div class="col-md-12 news-block-text">
<div class="pull-left"><h4><?php esc_html_e('Our Latest News', 'universal-wp' ) ?></h4></div>
</div>
</div>
<?php get_template_part( 'framework/content/content');?>
</div>
</div>
</div>
<?php the_posts_pagination( array('prev_text' => __('«'), 'next_text' => __('»'))) ?>
</section>
<?php } else { ?>
<section class="section-small">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 no-sidebar">
<div class="row">
<div class="col-md-12 news-block-text">
<div class="pull-left"><h4><?php esc_html_e('Our Latest News', 'universal-wp' ) ?></h4></div>
</div>
</div>
<?php get_template_part( 'framework/content/content');?>
</div>
</div>
</div>
<?php the_posts_pagination( array('prev_text' => __('«'), 'next_text' => __('»'))) ?>
</section>
<?php } ?>
<?php endif; ?>
<?php get_footer(); ?>