Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add Linkedin share link
  • Loading branch information
jjc16105 committed Aug 22, 2016
1 parent ebacef7 commit c166896
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content-single.php
Expand Up @@ -30,6 +30,8 @@
if(empty($twittershareline)) $twittershareline = get_the_title();
$facebookshareline = get_post_meta( $post->ID, 'facebookshareline', true);
if(empty($facebookshareline)) $facebookshareline = get_the_title();
$linkedinshareline = get_post_meta( $post->ID, 'linkedinshareline', true);
if(empty($linkedinshareline)) $linkedinshareline = get_the_title();

?>
<div class="shareline-twitter">
Expand All @@ -39,6 +41,10 @@
<div class="shareline-facebook">
<a href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><span class="social social-facebook"></span><span><?php echo $facebookshareline; ?></span></a>
</div>

<div class="shareline-linkedin">
<a href="https://www.linkedin.com/shareArticle?url=<?php the_permalink(); ?>"><span class="social social-linkedin"></span><span><?php echo $linkedinshareline; ?></span></a>
</div>
</div>

<?php the_content(); ?>
Expand Down

0 comments on commit c166896

Please sign in to comment.