-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delningsknappar
- Loading branch information
Showing
8 changed files
with
341 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="comments-wrapper"> | ||
|
||
<h1>Kommentarer</h1> | ||
|
||
<?php if ( have_comments() ) : ?> | ||
<?php wp_list_comments(array('walker' => new Walker_Comment_HTML5())); ?> | ||
|
||
<?php else : ?> | ||
|
||
<p>Inga kommentarer.</p> | ||
|
||
<?php endif ?> | ||
|
||
<?php pp_comment_form(array('title_reply' => 'Lämna kommentar')) ?> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php if ( is_single() ) : ?> | ||
<?php comments_template() ?> | ||
<?php endif ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
<?php the_tags("", ", ", ""); ?> | ||
<?php ob_start() ?> | ||
<?php the_tags("", ", ", ""); ?> | ||
<?php $tags = ob_get_contents(); ob_end_clean(); ?> | ||
|
||
<?php if ( is_single() || is_page() ) : ?> | ||
<div class="social"> | ||
<a class="FlattrButton" | ||
title="<?php the_title() ?>" | ||
data-flattr-uid="piratpartiet" | ||
data-flattr-tags="<?php echo strip_tags($tags) ?>" | ||
data-flattr-category="text" | ||
href="<?php the_permalink() ?>">Flattr this</a> | ||
|
||
<div class="fb-like" data-href="<?php the_permalink() ?>" data-send="false" data-layout="box_count" data-width="48" data-show-faces="false"></div> | ||
<div class="g-plusone" data-size="tall"></div> | ||
<div class="pusha-button"> | ||
<a href="http://www.pusha.se/posta?url=<?php echo urlencode(get_permalink()) ?>" target="_blank"> | ||
<img alt="Pusha" src="//static.pusha.se/176/i/push_arrow.png" title="Pusha denna nyhet" width=56 height=56 /> | ||
</a> | ||
</div> | ||
<div class="tweetmeme_button"> | ||
<a href="http://api.tweetmeme.com/share?url=<?php echo urlencode(get_permalink()) ?>"> | ||
<img src="http://api.tweetmeme.com/imagebutton.gif?url=<?php echo urlencode(get_permalink()) ?>" height="61" width="50" /> | ||
</a> | ||
</div> | ||
</div> | ||
<?php | ||
wp_enqueue_script('flattr'); | ||
wp_enqueue_script('facebook'); | ||
wp_enqueue_script('gplusone'); | ||
?> | ||
<?php endif ?> | ||
|
||
<?php echo $tags ?> | ||
<div class="clearfix"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.