forked from starburst1977/readium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
teaser.php
97 lines (78 loc) · 5.47 KB
/
teaser.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
<?php
if(ot_get_option('site_coverphoto')) {
$cover = ot_get_option('site_coverphoto');
}
else {
$cover = get_stylesheet_directory_uri() . '/assets/img/santiagum-cover.jpg';
}
if(ot_get_option('site_logo')) {
$logo = ot_get_option('site_logo');
}
else {
$logo = get_stylesheet_directory_uri() . '/assets/img/santiagum-logo.png';
}
?>
<!-- teaser image -->
<div class="teaserimage">
<div class="teaserimage-image" style="background-image: url(<?php echo $cover; ?>);"></div>
</div>
<!-- /teaser image -->
<!-- header -->
<header class="blog-header">
<a class="blog-logo" href="<?php bloginfo('url'); ?>" style="background-image: url(<?php echo $logo; ?>);"><?php bloginfo('name'); ?></a>
<h1 class="blog-title"><?php bloginfo('name'); ?></h1>
<h2 class="blog-description"><?php bloginfo('description'); ?></h2>
<div class="custom-links">
<?php if(ot_get_option('site_in_url')) : ?>
<a href="<?php echo ot_get_option('site_in_url'); ?>" rel="external"><i class="fa fa-linkedin"></i><span class="none">Linkedin</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_fb_url')) : ?>
<a href="<?php echo ot_get_option('site_fb_url'); ?>" rel="external"><i class="fa fa-facebook"></i><span class="none">Facebook</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_tw_url')) : ?>
<a href="<?php echo ot_get_option('site_tw_url'); ?>" rel="external"><i class="fa fa-twitter"></i><span class="none">Twitter</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_gg_url')) : ?>
<a href="<?php echo ot_get_option('site_gg_url'); ?>" rel="external"><i class="fa fa-google-plus"></i><span class="none">Google</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_tb_url')) : ?>
<a href="<?php echo ot_get_option('site_tb_url'); ?>" rel="external"><i class="fa fa-tumblr"></i><span class="none">Tumblr</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_4s_url')) : ?>
<a href="<?php echo ot_get_option('site_4s_url'); ?>" rel="external"><i class="fa fa-foursquare"></i><span class="none">Foursquare</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_ig_url')) : ?>
<a href="<?php echo ot_get_option('site_ig_url'); ?>" rel="external"><i class="fa fa-instagram"></i><span class="none">Instagram</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_fr_url')) : ?>
<a href="<?php echo ot_get_option('site_fr_url'); ?>" rel="external"><i class="fa fa-flickr"></i><span class="none">Flickr</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_yt_url')) : ?>
<a href="<?php echo ot_get_option('site_yt_url'); ?>" rel="external"><i class="fa fa-youtube"></i><span class="none">YouTube</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_fm_url')) : ?>
<a href="<?php echo ot_get_option('site_fm_url'); ?>" rel="external"><i class="fa fa-music"></i><span class="none">last.fm</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_sc_url')) : ?>
<a href="<?php echo ot_get_option('site_sc_url'); ?>" rel="external"><i class="fa fa-cloud"></i><span class="none">SoundCloud</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_pr_url')) : ?>
<a href="<?php echo ot_get_option('site_pr_url'); ?>" rel="external"><i class="fa fa-pinterest"></i><span class="none">Pinterest</span></a>
<?php endif; ?>
<?php if(ot_get_option('site_db_url')) : ?>
<a href="<?php echo ot_get_option('site_db_url'); ?>" rel="external"><i class="fa fa-dribbble"></i><span class="none">Dribbble</span></a>
<?php endif; ?>
·
<?php
$home_nav = wp_get_nav_menu_items('Home Nav');
if(!empty($home_nav)) :
$home_nav_count = count($home_nav);
$i = 1;
foreach($home_nav as $item) :
?>
<a href="<?php echo $item->url; ?>"><?php echo $item->title; ?></a>
<?php if($i !== $home_nav_count) : ?> · <?php endif; ?>
<?php $i++; endforeach; endif; ?>
</div>
</header>
<!-- /header -->