-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
98 lines (65 loc) · 4.03 KB
/
front-page.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
90
91
92
93
94
95
96
97
98
<?php get_header() ?>
<!-- When homepage is using blog posts -->
<?php if ( is_home() ) : ?>
<?php do_action( 'bp_before_blog_page' ) ?>
<div id="content" <?php if ( is_active_sidebar('home-right') ) : ?>class="three_column"<?php else : ?> class="two_column_left"<?php endif; ?>>
<div class="padder">
<div class="page" id="home-page">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<p class="date"><?php the_date('M j, Y') ?> at <?php the_time() ?> <?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?> <?php if ('open' == $post->comment_status): ?><span class="comments">· <?php comments_popup_link( __( 'Leave a Comment »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span><?php else : ?>· <?php _e('Comments are closed.', 'buddypress'); ?><?php endif; ?></p>
<div class="entry">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail');?></a>
<?php the_excerpt( __( 'Read the rest of this entry →', 'buddypress' ) ); ?>
<?php wp_link_pages(array('before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div>
<div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2>
<p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?></p>
<?php locate_template( array( 'searchform.php' ), true ) ?>
<?php endif; ?>
</div><!-- .page -->
</div><!-- .padder -->
</div><!-- #content -->
<?php do_action( 'bp_after_blog_page' ) ?>
<?php locate_template( array( 'sidebar-home-right.php' ), true ) ?>
<!-- When homepage is using a regular Page -->
<?php else : ?>
<div id="content" class="full-width">
<div class="padder">
<div class="page">
<div id="espaco-01">
<!-- PRIMEIRO BLOCO -->
<?php locate_template( array( 'home-content-top-01.php' ), true ) ?>
<!-- SEGUNDO BLOCO -->
<?php locate_template( array( 'home-content-top-02.php' ), true ) ?>
<!-- TERCEIRO BLOCO -->
<?php locate_template( array( 'home-content-top-03.php' ), true ) ?>
<!-- QUARTO BLOCO -->
<?php locate_template( array( 'home-content-top-04.php' ), true ) ?>
</div>
<!-- BLOCO DE NOTÍCIAS -->
<?php locate_template( array( 'home-content-left.php' ), true ) ?>
<!-- BLOCO DE ATIVIDADES -->
<?php locate_template( array( 'home-content-right.php' ), true ) ?>
<?php //if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php //<h1 class="pagetitle"><?php the_title(); </h1>?>
<!--<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<?php //the_content( __( '<p class="serif">Read the rest of this page →</p>', 'buddypress' ) ); ?>
<?php //wp_link_pages( array( 'before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div> -->
<?php //endwhile; endif; ?>
</div><!-- .page -->
</div><!-- .padder -->
</div><!-- #content -->
<?php endif; ?>
<?php get_footer(); ?>