-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
executable file
·68 lines (42 loc) · 1.82 KB
/
search.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
<?php get_header(); ?>
<?php do_action('before_hero'); ?>
<section id="hero-container">
<div class="hero-wrapper">
<div class="hero-meta">
<h1 class="loop-title archive-title">Search Results <?php echo ( isset($_GET['s']) && !empty($_GET['s']) ? 'for <em>' . esc_html(urldecode($_GET['s'])) . '</em>' : "" ); ?></h1>
</div>
<?php do_action('in_hero'); ?>
</div>
</section>
<?php do_action('after_hero'); ?>
<?php do_action('before_world'); ?>
<section id="world">
<div id="content-container">
<div class="content-wrapper">
<?php do_action('before_content'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
$episode = Nexus_Episode::factory(get_the_ID());
$cp_episode = new Coprime_Episode($episode);
?>
<article id="item-<?php the_ID(); ?>" role="article" <?php post_class('stand-alone'); ?>>
<?php do_action('before_in_content'); ?>
<header class="content-header">
<div class="show-albumart"><?php echo $cp_episode->get_showboard_albumart(); ?></div>
<h2 class="show-title"><?php echo $cp_episode->get_title(); ?></h2>
<h4 class="show-number"><?php echo $cp_episode->get_episode_position(); ?></h3>
<h4 class="show-date"><?php echo $cp_episode->get_is_new(); ?> <?php echo $cp_episode->get_posted_date_ago(); ?></h4>
<div class="show-description">
<?php echo $cp_episode->get_episode_description(); ?>
</div>
<?php do_action('in_content_header'); ?>
</header>
<?php do_action('after_in_content'); ?>
</article>
<?php endwhile; endif; ?>
<?php get_template_part('partials/loop-pagination'); ?>
<?php do_action('after_content'); ?>
</div>
</div>
</section>
<?php do_action('after_world'); ?>
<?php get_footer(); ?>