-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
82 lines (67 loc) · 2.65 KB
/
index.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
<?php get_header() ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$src = wp_get_attachment_image_src( get_post_thumbnail_id(), "full" );
$src = $src[0];
?>
<article itemscope itemtype="http://schema.org/Article">
<div class="hidden" itemprop="url"><?php the_permalink() ?></div>
<div class="hidden" itemprop="description"><?php the_excerpt() ?></div>
<div class="hidden" ><img itemprop="image" alt="thumbnail_hidden" src="<?php echo $src ?>"></div>
<div class="parallax-index parallax-window" data-natural-height="100%" data-parallax="scroll" data-image-src="<?php echo $src ?>"></div>
<div class="titleWrapper">
<div class="titlePage">
<h2 itemprop="headline"><a href="<?php the_permalink(); ?>" title="Collegamento a <?php the_title() ?>"><?php the_title() ?></a></h2>
<div class="postInfo">
<?php if(has_category()) {
the_category();
echo " - ";
}
?>
<time itemprop="datePublished" datetime="<?php echo get_the_date( "c"); ?>"><?php the_date() ?></time>
</div>
</div>
</div>
<div class="container">
<div itemprop="description" class="col-md-12 thePost">
<?php the_excerpt() ?>
</div>
<div class="col-md-12">
<aside itemprop="author" itemscope itemtype="http://schema.org/Person" class="authorCredits">
<div class="authorAvatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?></div>
<div class="authorLink" style="vertical-align: middle">
<span itemprop="name" class="authorName"><?php the_author_link() ?></span>
<span><?php echo get_the_author_meta( "twitter" ); ?></span>
</div>
</aside>
</div>
</div>
</article>
<?php endwhile; endif; ?>
<?php if (!have_posts()) : ?>
<div class="notFound">
<?php if ( is_404() ) : ?>
<div class="container404">
<div class="container">
<div class="col-md-12">
<div class="p404">
<span class="p404title">404</span>
<span class="message">Pagina non trovata!</span>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php endif; ?>
<div class="container">
<div class="col-md-12">
<h2>Trovato niente?</h2>
<p>Prova fare una ricerca, potresti trovare quello che cerchi.</p>
</div>
<div class="col-md-12"><?php get_search_form(); ?></div>
<img alt="John" height="250" src="http://i.imgur.com/H1dY8lY.gif">
</div>
</div>
<?php endif; ?>
<?php get_footer() ?>