forked from hakkens/davehakkens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-community-what.php
66 lines (48 loc) · 1.6 KB
/
page-community-what.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
<?php
/*
Template Name: Community-what page
Description: Community page shwoing what
*/
get_header();
get_template_part( 'navbar' );
?>
<div id="submenu">
<a href="https://davehakkens.nl/community/dashboard"><div id="menuitems" class="menuitemnews">activity</div></a>
<a href="https://davehakkens.nl/community/forums"><div id="menuitems" class="menuitemforums">forums</div></a>
<a href="https://davehakkens.nl/community/members"><div id="menuitems" class="menuitemarmy">army</div></a>
<a href="https://davehakkens.nl/community/help-out"><div id="menuitems" class="menuitemhelp">help</div></a>
<a href="https://davehakkens.nl/community/army"><div id="menuitems" class="menuitemjoinus">join us</div></a>
</div>
<div id="topbar">
<?php
if( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>
</div>
<?php the_widget( 'bbp-topic-index', $instance, $args ); ?>
<div id="content">
<div class="post">
<?php
if( have_posts() ) : while ( have_posts() ) : the_post();
$post_meta = get_post_meta( $post->ID );
?>
<div class="post-content">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
<div class="joinusbutton">
<?php
if ( is_user_logged_in() ) {
echo '<h1 style="text-align: center;"><a href="/community/you-rock">thanks for being part of it</a></h1>';
} else {
echo '<h1 style="text-align: center;"><a href="/community/register">join our army</a></h1>';
}
?>
</div>
</div>
</div>
<div class="army-support">
</div>
<?php get_footer(); ?>
<?php edit_post_link(); ?>