-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
123 lines (85 loc) · 3.94 KB
/
header.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
<?php
/**
* Inperspective Records
*
* Developed by Simon van Stipriaan
* http://svs.design
*
*
*/?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
<!-- site icons -->
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/favicon-16x16.png">
<link rel="manifest" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/site.webmanifest">
<link rel="mask-icon" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/safari-pinned-tab.svg" color="#000000">
<link rel="shortcut icon" href="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/favicon.ico">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-config" content="<?php echo bloginfo('template_directory'); ?>/dist/site-icons/front-end/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- end site icons -->
<meta property="og:title" content="<?php the_title(); ?>"/>
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php the_permalink(); ?>" />
<meta name="description" content="<?php echo get_bloginfo( 'description' ); ?>"/>
<meta name="author" content="svs.design"/>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<script>
/* used for determining if we're local or live */
theme_directory = "<?php echo get_template_directory_uri() ?>";
</script>
</head>
<body <?php body_class('not-admin');?> >
<?php include('navigation.php');?>
<?php //query to return all the radio items
$radioquery = array(
'post_type' => 'radio',
'post_status' => 'publish',
'numberposts' => -1,
'posts_per_page' => 999999,
);
query_posts($radioquery); ?>
<?php if ( have_posts() ) :
$number = 0;
?>
<div class="radio-container">
<div class="sc-player">
<?php // Start the Loop.
while ( have_posts() ) : the_post();
$soundcloudlink = get_field('soundcloud_link');
if($soundcloudlink):?>
<a class="<?php the_permalink();?>" data-trackno="<?php echo $number?>" data-websitelink="<?php the_permalink();?>" data-tracklink="<?php echo $soundcloudlink;?>" href="<?php echo $soundcloudlink;?>"></a>
<?php endif;
// End the loop.
$number ++;
endwhile; ?>
</div><!--.sc-player -->
</div><!-- .radio-container -->
<?php else: // else no items ?>
<?php endif; // endif have post ?>
<?php if ( have_posts() ) :
//To do - sort these querries out - issue in term of querriing to much?
$number = 0;
?>
<!--to do - once a track has stopped playing - I should prompt the site to load the next permalink aswell as the next sc url? -->
<div class="data-container">
<?php // Start the Loop.
while ( have_posts() ) : the_post();
$soundcloudlink = get_field('soundcloud_link');
if($soundcloudlink):?>
<div id="data-item-<?php echo $number?>" data-websitelink="<?php the_permalink();?>" data-tracklink="<?php echo $soundcloudlink;?>" href="<?php echo $soundcloudlink;?>"></div>
<?php endif; // if sc loink
$number ++;
endwhile; // End the loop. ?>
</div><!-- .radio-container -->
<?php else: // else no items ?>
<?php endif; // endif have post ?>
<?php wp_reset_query(); ?>
<div id="ajax-wrapper" data-barba="wrapper">