-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
130 lines (104 loc) · 3.97 KB
/
index.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="col-md-3 col-meta">
<div class="row picture-row">
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3 col-md-10 col-md-offset-1">
<img src="<?php echo get_theme_mod('sidebar_photo', get_bloginfo('template_url') . '/inc/img/selfy.jpg'); ?>" class="img-responsive img-circle center-block">
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<h3><?php echo get_theme_mod('sidebar_name', 'John Doe'); ?></h3>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<a href="<?php echo get_theme_mod('sidebar_social_link_1', 'facebook.com'); ?>">
<img src="<?php echo get_theme_mod('sidebar_social_icon_1', get_bloginfo('template_url') . '/inc/img/facebook.png'); ?>" class="social-icon">
</a>
<a href="<?php echo get_theme_mod('sidebar_social_link_2', 'instagram.com'); ?>">
<img src="<?php echo get_theme_mod('sidebar_social_icon_2', get_bloginfo('template_url') . '/inc/img/instagram.png'); ?>" class="social-icon">
</a>
<a href="<?php echo get_theme_mod('sidebar_social_link_3', 'twitter.com'); ?>">
<img src="<?php echo get_theme_mod('sidebar_social_icon_3', get_bloginfo('template_url') . '/inc/img/twitter.png'); ?>" class="social-icon">
</a>
</div>
</div>
<?php if(is_active_sidebar('slot1')) : ?>
<div class="row">
<div class="col-xs-12 text-center">
<?php dynamic_sidebar('slot1'); ?>
</div>
</div>
<?php endif; ?>
<?php if(is_active_sidebar('slot2')) : ?>
<div class="row">
<div class="col-xs-12 text-center">
<?php dynamic_sidebar('slot2'); ?>
</div>
</div>
<?php endif; ?>
<?php if(is_active_sidebar('slot3')) : ?>
<div class="row">
<div class="col-xs-12 text-center">
<?php dynamic_sidebar('slot3'); ?>
</div>
</div>
<?php endif; ?>
</div><!-- /.col-meta -->
<!--
====================
STANDARD POST
====================
-->
<div class="col-md-8 col-md-offset-1 col-blog">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="row blog-plate">
<div class="col-md-4">
<div class="row">
<div class="col-xs-12 blog-picture-plate">
<?php the_post_thumbnail(); ?>
</div>
<div class="col-xs-12 text-center blog-title-plate">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
</div>
<div class="col-xs-12 text-center blog-author-plate">
<h5><a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a></h5>
</div>
<div class="col-xs-12 text-center blog-date-plate">
<h5><?php the_time('F j, Y'); ?></h5>
</div>
<div class="col-xs-12 text-center blog-comment-plate">
<h5><a href="<?php comments_link(); ?>"><?php comments_number(); ?></a></h5>
</div>
</div>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-xs-12">
<p class="blog-excerpt"><?php echo get_the_excerpt(); ?><a href="<?php the_permalink(); ?>">READ MORE</a></p>
</div>
</div>
</div>
<div class="col-xs-12 blog-footer">
<div class="row footer-divider">
<div class="col-xs-6 col-xs-offset-3 footer-divider-line"></div>
</div>
<div class="row category-row">
<div class="col-xs-12 text-center">
<?php the_category(); ?>
</div>
</div>
<div class="row tag-row">
<div class="col-xs-12 text-center tag-plate">
<?php the_tags('<ul><li>', '</li><li>', '</li></ul>' ); ?>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div><!-- /.row end of main row -->
</div><!-- /.container end of Main -->
<?php get_footer(); ?>