/
about.php
executable file
·50 lines (47 loc) · 1.41 KB
/
about.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
<?php /* Template Name: About */ ?>
<?php get_header(); ?>
<div class="content-area">
<div class="main">
<?php
while (have_posts()) {
the_post();
get_template_part( 'content', 'page' );
} ?>
</div>
<section class="interests">
<h1>areas of interest</h1>
<?php
$interestLoop = new WP_QUERY(array('post_type' => 'interests', 'posts_per_page' => -1, 'orderby' => 'name', 'order' => 'ASC'));
while ($interestLoop->have_posts()) {
$interestLoop->the_post();
$title = get_the_title();
$content = get_the_content();
$slug = $post->post_name;
$link = site_url("/contact/#") . $slug;
?>
<article class="interest">
<a href="<?php echo $link; ?>">
<h2>
<div class="icon <?php echo $slug; ?>"></div>
<?php echo $title; ?>
</h2>
</a>
<p><?php echo $content; ?></p>
</article>
<?php
}
?>
</section>
</div>
<style type="text/css">
@font-face {
font-family: kgsecondchances;
src: url("<?php echo get_stylesheet_directory_uri(); ?>/resources/KGSecondChancesSketch.eot") /* EOT file for IE */
}
@font-face {
font-family: kgsecondchances;
src: url("<?php echo get_stylesheet_directory_uri(); ?>/resources/KGSecondChancesSketch.ttf") /* TTF file for CSS3 browsers */
}
</style>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<?php get_footer(); ?>