Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( post_password_required() )
- return;
- $featured_img = wp_get_attachment_url( get_post_thumbnail_id());
- $posttitle = get_the_title();
- ?>
- <section class="article-sharer section container clearfix">
- <div class="socials-share">
- <a target="_blank" data-shareto="Facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo get_permalink() ?>" class="social-share share-facebook">
- <i class="fa fa-facebook"></i><span class="share-text">Share to Facebook</span>
- </a>
- <a target="_blank" data-shareto="Twitter" href="https://twitter.com/home?status=<?php echo urlencode($posttitle . ". " . esc_url( get_permalink() )); ?>" class="social-share share-twitter">
- <i class="fa fa-twitter"></i><span class="share-text">Share to Twitter</span>
- </a>
- <a target="_blank" data-shareto="Google" href="https://plus.google.com/share?url=<?php echo get_permalink() ?>" class="social-share share-google-plus">
- <i class="fa fa-google-plus"></i>
- </a>
- <a target="_blank" data-shareto="Pinterest" href="https://pinterest.com/pin/create/button/?url=<?php echo get_permalink() ?>&media=<?php echo esc_url( $featured_img ); ?>&description=<?php urlencode(esc_url( get_the_title() )); ?>" class="social-share share-pinterest">
- <i class="fa fa-pinterest"></i>
- </a>
- <a target="_blank" data-shareto="Linked In" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo get_permalink() ?>&title=<?php urlencode(esc_url( get_the_title() )) ?>&summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&source=<?php urlencode( esc_url( get_bloginfo( 'name' ) ) ) ?>" class="social-share share-linkedin">
- <i class="fa fa-linkedin"></i>
- </a>
- <a target="_blank" data-shareto="VK" href="http://vkontakte.ru/share.php?url=<?php echo get_permalink() ?>&title=<?php urlencode(esc_url( get_the_title() )) ?>&summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&source=<?php urlencode( esc_url( get_bloginfo( 'name' ) ) ) ?>" class="social-share share-vk">
- <i class="fa fa-vk"></i>
- </a>
- </div>
- <div class="article-shorturl">
- <input type="text" id="shorturl" class="shorturl" data-clipboard-text="<?php echo get_permalink() ?>" value="<?php echo get_permalink() ?>">
- </div>
- </section>
- <div class="dummy-share-block"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement