-
Notifications
You must be signed in to change notification settings - Fork 21
/
single.php
78 lines (66 loc) · 3.03 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="posttitle"><?php the_title(); ?></h2>
<?php if ( function_exists('previous_cat_post') ) { ?>
<div id="postnavigation">
<ul>
<li class="navheader">Next Entries</li>
<?php next_cat_post($beforeGroup='', $afterGroup='', $beforeEach='<li>', $afterEach='</li>', $showtitle=true, $textForEach='(%) '); ?>
<li class="navheader">Previous Entries</li>
<?php previous_cat_post($beforeGroup='', $afterGroup='', $beforeEach='<li>', $afterEach='</li>', $showtitle=true, $textForEach='(%) '); ?>
</ul>
</div>
<?php } ?>
<div class="postentry">
<?php if(!empty($post->post_excerpt)) {
//This post have an excerpt, let's display it
echo '<div class="riassunto">';
the_excerpt();
echo '</div>';
} else {
// This post have no excerpt
} ?>
<?php the_content(__('Leggi il resto »')); ?>
<?php wp_link_pages(); ?>
<div class="postmeta">
<?php if (get_option('Pasw_Social')) : ?>
<div style="float:right;margin: 6px;" class="share42init" data-url="<?php the_permalink() ?>" data-title="<?php the_title() ?>"></div>
<script type="text/javascript" src="<?php echo get_template_directory_uri() . '/share42/share42.js';?>"></script>
<?php endif; ?>
<?php if (!is_page()) { ?>
<p><span class="postauthor">Pubblicato il <?php the_time('j F Y') ?> da <?php echo get_the_author(); ?></span>
<br/>
<?php
if (get_post_type() == 'post') {
echo 'Contenuto in: '; the_category(', ');
} else { echo '<br/>'; }
?>
<?php $posttags = get_the_tags($post->ID);
if ($posttags) { ?>
<span><br/>Tag:</span>
<?php
foreach($posttags as $tag) {
echo '<a href="';
echo get_tag_link($tag);
echo '">';
echo $tag->name . '';
echo '</a> ';
}
}
?>
<?php } ?></p>
</div>
</div>
<p class="postfeedback">
</p>
</div>
<?php comments_template(); ?>
<?php endwhile; else : ?>
<h2><?php _e('Non trovato'); ?></h2>
<p><?php _e('Spiacenti, ma la pagina richiesta non � stata trovata.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar('right'); ?>
<?php get_footer(); ?>