-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
54 lines (52 loc) · 2.27 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
<?php get_header(); ?>
<div class="main-container">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<section id="post-<?php the_ID(); ?>" class="main-section clearfix">
<article class="clearfix">
<header class="page-header clearfix">
<div class="container">
<div class="twelve columns">
<p class="breadcrumb">
<a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a>
<span class="sep">></span>
<a href="<?php echo home_url('/news/'); ?>"><?php _e('News', 'latavelha'); ?></a>
</p>
<h1><?php the_title(); ?></h1>
<aside class="social">
<div class="facebook">
<iframe src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&send=false&layout=button_count&width=100&show_faces=false&font=verdana&colorscheme=light&action=like&height=90&appId=521681297871040" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width: 100px; height:22px;" allowTransparency="true"></iframe>
</div>
<div class="twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-lang="en" data-count="horizontal">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</aside>
<div class="post-meta">
<p class="date"><?php the_date(); ?></p>
<p class="author"><?php _e('by', 'latavelha'); ?> <?php the_author(); ?></p>
</div>
</div>
</div>
</header>
<div class="container">
<div class="seven columns">
<section id="post-content">
<?php the_content(); ?>
</section>
<section id="comments">
<?php comments_template(); ?>
</section>
</div>
<div class="four columns offset-by-one">
<aside id="sidebar">
<ul class="widgets">
<?php dynamic_sidebar('single-news'); ?>
</ul>
</aside>
</div>
</div>
</article>
</section>
<?php endwhile; endif; ?>
</div>
<?php get_footer(); ?>