-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.php
72 lines (65 loc) · 1.54 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
<?php /* Template Name: SearchResults */ ?>
<html>
<head>
<title>Ping!<?php echo wp_title(); ?></title>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/bootstrap.css">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.post_title {
font-size: 1.4em;
}
.more-link {
font-family: gotham;
text-transform: uppercase;
color: rgba(0,0,0,0.6);
}
.post_time {
margin-bottom: 0px;
font-size: 0.8em;
}
#content p {
font-size: 1em;
}
a {
text-decoration: none;
color: black;
}
#content img {
display: none;
}
</style>
</head>
<body>
<div id="wrapper">
<?php get_header(); ?>
<div id="main">
<div id="content">
<h1 id="page_title">SEARCH RESULTS</h1>
<hr />
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>"><h1 class="post_title"><?php the_title(); ?></h1></a>
<h4 class="post_time">Posted on <?php the_time('F jS, Y') ?></h4>
<p><?php the_content('Continue reading...'); ?></p>
<hr />
<?php endwhile; else: ?>
<p><?php _e('Oops! Looks like there are no posts matching that criteria. '); ?></p><?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
</div>
<div id="delimiter">
</div>
</div>
</body>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.js"></script>
<script>
var original_text;
$('.coming-soon').hover(function() {
original_text = $(this).text();
$(this).text('Coming Soon');
}, function() {
$(this).text(original_text);
});
</script>
</html>