-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
63 lines (48 loc) · 2.44 KB
/
single.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
<?php get_header(); ?>
<body class="single">
<div class="clip">
<?php
if (get_post(get_post_thumbnail_id()) -> post_excerpt) {
echo '<div id="legenda"><span class="categoriamob">' . $category = get_the_category();
echo $category[0] -> cat_name . '<br></span>' . get_post(get_post_thumbnail_id()) -> post_excerpt . '</div>';
}
?>
<?php
if (has_post_thumbnail()){
if ( is_mobile() )
echo the_post_thumbnail( 'celular' );
else if (has_post_thumbnail())
echo the_post_thumbnail( 'padrao' );
}
else { echo '<img src="'; header_image(); echo '" />'; }
?>
</div>
</header><!-- #masthead -->
<div id="main" class="site-main clearfix">
<?php while ( have_posts() ) : the_post(); ?>
<?php $post = get_post(get_the_ID()); ?>
<?php $post_parent = get_post($post->post_parent); ?>
<div id="primary" class="content-area clearfix">
<main id="content" class="clearfix">
<article>
<header class="topo clearfix">
<div class="info">
<span class="categorianormal">
<?php foreach((get_the_category()) as $category) if ( strcmp($category->cat_name, 'Destaques') ) echo $category->cat_name . ' '; ?></span>
<h2> <?php echo get_the_title(); ?></h2>
</div>
</header>
<?php the_content() ?>
<span class="autor">Por <?php echo get_the_author(); ?>, publicado em <?php the_time( 'j \d\e F \d\e Y' ); ?></time></span>
</article><?php endwhile;?>
</main>
</div><!-- Primary -->
<div id="calendario">
<ul>
<li><a href="#" id="caixa"></a></li>
<li><a href="https://www.facebook.com/caminhosdaculturausp"><span class="face"></span></a></li>
<li><a href="https://twitter.com/caminhosusp"></a></li>
</ul>
</div>
</div><!-- #main-->
<?php get_footer(); ?>