-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
89 lines (89 loc) · 3.09 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php get_header(); ?>
<main>
<div id="algolia-search-box">
<div id="algolia-stats"></div>
<svg class="search-icon"
viewBox="0 0 24 24"
aria-hidden="true"
focusable="false"
style="fill: #2b2b2b;height: 20px;width: 20px;">
<path fill-rule="evenodd" d="M23.53 22.47l-6.807-6.808A9.455 9.455 0 0 0 19 9.5 9.5 9.5 0 1 0 9.5 19c2.353 0 4.502-.86 6.162-2.277l6.808 6.807a.75.75 0 0 0 1.06-1.06zM9.5 17.5a8 8 0 1 1 0-16 8 8 0 0 1 0 16z"></path>
</svg>
<input
autocapitalize="off"
autocomplete="off"
autocorrect="off"
placeholder="Search"
role="textbox"
spellcheck="false"
type="search"
value=""
class="ais-search-box--input">
</div>
</div>
<nav id="ais-facets">
<div id="facet-post-types">
<div class="ais-root ais-menu">
<div class="ais-body ais-menu--body">
<div class="ais-menu--list">
<div class="ais-menu--item ais-menu--item__active">
<a class="ais-menu--link" href="">All</a>
</div>
<div class="ais-menu--item">
<a class="ais-menu--link" href="">Articles</a>
</div>
<div class="ais-menu--item">
<a class="ais-menu--link" href="">Events</a>
</div>
<div class="ais-menu--item">
<a class="ais-menu--link" href="">Videos</a>
</div>
</div>
</div>
</div>
</div>
</nav>
<div id="algolia-hits">
<div>
<div class="ais-infinite-hits">
<?php while(have_posts()): the_post();?>
<div class="ais-infinite-hits--item">
<article itemtype="http://schema.org/Article" .="" class="list-post">
<a class="thumb-link" href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" title="<?php the_title(); ?>">
<div class="cover-image" style="background-image: url(<?php the_post_thumbnail_url();?>);"></div>
</a>
<div class="card">
<a class="h-link" href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" title="<?php the_title(); ?>" itemprop="url">
<h2 itemprop="name headline"><?php the_title(); ?></h2>
</a>
<div class="meta">
<p>
<h3><?php the_excerpt(); ?></h3>
</p>
<div class="ais-hits--tags" style="display:none">
</div>
</div>
</div>
</article>
</div>
<?php endwhile; ?>
</div>
<div class="container">
<a class="btn-infinite infinite-load-more"
data-page="1"
data-posttypes="post,videos,collections"
data-term=""
data-total="12"
data-url="<?php echo admin_url('admin-ajax.php') ?>">
More
</a>
<div id="spinner">
<div id="spriteContainer"></div>
</div>
</div>
<!--<div class="ais-infinite-hits--showmore"><button>More</button></div>-->
</div>
</div>
</main>
<?php
get_footer();