-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-template.php
213 lines (172 loc) · 6.99 KB
/
archive-template.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
/*
Template Name: Archive View Template
*
* This is your custom page template. You can create as many of these as you need.
* Simply name is "page-whatever.php" and in add the "Template Name" title at the
* top, the same way it is here.
*
* When you create your page, you can just select the template and viola, you have
* a custom page template to call your very own. Your mother would be so proud.
*
* For more info: http://codex.wordpress.org/Page_Templates
*/
$about_title = get_field('about_title','option');
$about_text = get_field('about_text', 'option');
$support_title = get_field('donation_title','option');
$support_text = get_field('donation_text', 'option');
?>
<div id="archive-wrapper">
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap cf">
<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<section class="entry-content story-page-content cf">
<div id="story-content">
<div id="intro-wrapper-desktop">
<?
echo '<h3 class="intro-title">'.$intro_title.'</h3>';
echo '<p class="intro-text">'.$intro_text.'</p>';
?>
</div>
<?php
the_content();
ptp_the_posts_table(
array(
'columns' =>'tax:storyteller:Storyteller,
tax:story_event:Theme,
cf:listen,
cf:download,
cf:theme_button:View Event,
cf:tag_button:Add Tag,
cf:story_description:Description,
tax:story_tag:Tags,
cf:event_fundraisee:Fundraiser Org,
tax:story_location:Location,
cf:tag_button_2:Add Tag,
date
',
'priorities' => '1,
3,
2,
4,
5,
6,
7,
8,
9,
10,
11,
12,
',
'filters' => 'tax:story_event',
'responsive_control' => 'column',
'page_length' => 'bottom',
)
);
?>
<div id="intro-wrapper-below">
<?
echo '<p class="intro-text">'.$intro_text.'</p>';
?>
<div class="intro-text-below">
<div class="intro-text-below-text"><p>This project has been made possible with the generous support of Virginia Humanities.</p></div>
<a class="intro-text-below-logo-wrapper" href="https://virginiahumanities.org/" target="_blank"><div class="intro-text-below-logo"></div></a>
</div>
</div>
</div>
</div>
</section>
<div style="display: none;" id="download-modal">
<h3>Consider donating!</h3>
<div id="download-button-wrapper">
<a id="donate-button" class="sy-btn" href="https://donorbox.org/y-all-like-secretly-y-all?hide_donation_meter=true" target="_blank">Donate</a>
<a id="modal-download-btn" class="sy-btn" download>Download</a>
</div>
</div>
<div id="about-modal" style="display:none">
<div id="about-wrapper-main">
<?
echo '<h2 id="about-title">'.$about_title.'</h2>';
echo '<p id="about-text">'.$about_text.'</p>';
?>
<div id="contact-btn-wrapper">
<h3>Have a question or concern?</h3>
<a id="contact-btn" class="sy-btn" target="_blank" >Contact Us</a>
</div>
</div>
</div>
<div style="display: none;" id="support-modal">
<div id="support-wrapper-main">
<?
echo '<h2 id="support-title">'.$support_title.'</h2>';
echo '<p id="support-text">'.$support_text.'</p>';
?>
<a class="support-logo-wrapper" href="https://virginiahumanities.org/" target="_blank "><div class="support-logo"></div></a>
<div id="support-button-wrapper">
<a id="support-button" class="sy-btn" href="https://donorbox.org/y-all-like-secretly-y-all?hide_donation_meter=true" target="_blank">Donate Now</a>
</div>
</div>
</div>
<footer class="article-footer">
<?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
</footer>
<?php comments_template(); ?>
</article>
<?php endwhile; else : ?>
<article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
<section class="entry-content">
<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
</section>
<footer class="article-footer">
<p><?php _e( 'This is the error message in the page-custom.php template.', 'bonestheme' ); ?></p>
</footer>
</article>
<?php endif; ?>
</main>
</div>
</div>
<?php get_footer(); ?>
</div>
<div id="story-player">
<div id="player-content">
<div id="audio-embed">
<div id="sy-mediaelements" class="col4_5">
<?php echo do_shortcode('[audio src="/wp-content/uploads/2020/04/noisemp3_stimbox_liveinsantacruz.mp3"]')?>
</div>
<div id="audio-buttons" class="col1_5">
<div id=player-play-placeholder class="icon-btn col"></div>
<a id="player-previous" class="icon-btn col1_3" title="Previous"></a>
<a id="player-next" class="icon-btn col1_3" title="Next"></a>
<a id="player-close" class="icon-btn col1_3" title="Close"></a>
</div>
</div>
<div id="under-player-audio">
<div class="col1_5">
<h2 id="player-description"></h2>
</div>
<a class="col2_5 player-btn-wrapper" id="player-download-wrapper" data-fancybox data-src="#download-modal" href="javascript:;" title="Download">
<div id="player-download-btn" class="icon-btn" ></div>
<h3 class="player-btn-label">Download</h3>
</a>
<a class="col3_5 player-btn-wrapper" id="player-theme-wrapper" title="View Event">
<div id="player-theme-btn" class="icon-btn theme-btn"></div>
<h3 class="player-btn-label">View Event</h3>
</a>
<a class="col4_5 player-btn-wrapper tag-btn" id="player-tag-button-wrapper" href="#0" title="Add Tag">
<div id="player-tag-btn" class="icon-btn"></div>
<h3 class="player-btn-label">Add Tag</h3>
</a>
<div class="col5_5">
<div id="player-tag-wrapper">
<h2 id="player-tag-label">Tags:</h2>
<div id="player-tags" ></div>
</div>
</div>
</div>
</div>