-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home-flip.php
165 lines (122 loc) · 4.67 KB
/
page-home-flip.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Template Name: Home Flip
*
* This template is the default page template. It is used to display content when someone is viewing a
* singular view of a page ('page' post_type) unless another page template overrules this one.
* @link http://codex.wordpress.org/Pages
*
* @package WooFramework
* @subpackage Template
*/
get_header('testes');
global $woo_options;
?>
<?php woo_main_before(); ?>
<div id="main-home" class="col-full">
<?php
$query_args = array(
'post_type' => 'post',
'posts_per_page' => 9,
'paged' => $paged,
);
query_posts( $query_args );
if ( have_posts() ) {
$count = 0;
while ( have_posts() ) { the_post(); $count++; ?>
<div class="cada-post-home">
<div id="post_card" class="shadow">
<div class="card">
<article <?php post_class('content-cada-post-home'); ?>>
<div class="thumb">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail( 'thumb-home' );
} else { ?>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/thumb-home-default.jpg" alt="<?php the_title(); ?>" />
<?php } ?>
</div><!-- .thumb -->
<header>
<h3><?php the_title(); ?></h3>
</header>
<div class="clear"></div>
<div class="meta-cada-post-home">
<div class="comments-post">
<?php count_comments('%'); ?>
</div><!-- .comments-post -->
<div class="seta-post">
<a href="<?php the_permalink(); ?>"></a>
</div><!-- .seta-post -->
</div><!-- .meta-cada-post-home -->
</article><!-- .post -->
</div> <!-- front face -->
<div class="fundo card">
<div class="excerpt-home contenthover">
<div class="hover-home-content">
<a href="<?php the_permalink(); ?>"><span class="dia"><?php the_time('d'); ?></span><span class="mes">/<?php the_date('M'); ?></span></a>
<div class="autor">Por <?php the_author_posts_link(); ?></div>
<div class="clear"></div>
<div class="excerpt-home-content">
<a href="<?php the_permalink(); ?>">
<?php the_excerpt(); ?>
</a>
</div>
<div class="categories-post">
<?php
$cada_category = get_the_category();
if ( $cada_category ) {
echo '<a href="' . get_category_link( $cada_category[0]->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $cada_category[0]->name ) . '" ' . '>' . $cada_category[0]->name.'</a> ';
}
?>
</div><!-- .categories-post -->
<div class="mais">
<a href="<?php the_permalink(); ?>"></a>
</div><!-- .mais -->
</div><!-- .hover-home-content -->
</div><!-- /.excerpt-home -->
</div> <!-- back face center -->
</div><!-- post_card -->
</div><!-- /cada-post-home -->
<?php } } ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php global $wp_query;
$total_pages = $wp_query->max_num_pages;
if ($total_pages > 1){
$current_page = max(1, get_query_var('paged'));
echo '<div class="page-nav-brasa">';
echo paginate_links(array(
'base' => get_pagenum_link(1) . '%_%',
'format' => 'page/%#%',
'current' => $current_page,
'total' => $total_pages,
'prev_text' => '<< Anteriores',
'next_text' => 'Próximos >>'
));
echo '</div>';
}
?>
<?php wp_reset_query(); ?>
<!-- TESTE DO FLIP PARA CHROME -->
<div id="sidebarcontent">
<div id="fixedscrollbox">
Sidebar fixed content
</div>
</div>
<div id="right">
This is the text of the main part of the page.
</div>
<!-- <div id="f1_container">
<div id="f1_card" class="shadow">
<div class="front face">
</div>
<div class="back face center">
<p>Construções, chaminés, crianças brincando em meio às linhas retas de uma cidade que já dava sinais de que seria uma das maiores metrópoles do mundo. Esta São Paulo moderna, que nascia com a industrialização e a ocupação dos espaços por edifícios altos, pontes e viadutos, passou pelas lentes de fotógrafos que, no mesmo passo, também modernizavam sua estética.</p>
</div>
</div>
</div>
<p></p>
<p align="center"> Para visualizar o Demo de onde tiramos o código <a href="http://css3.bradshawenterprises.com/flip/" target="_blank">acesse aqui</a></p>
FIM DO TESTE DO FLIP PARA CHROME -->
</div><!-- /#main-home -->
<?php woo_main_after(); ?>
<?php get_footer(); ?>