9/13/2015 - 2:35 PM

Facebook, Twitter and Google+ share links

Facebook, Twitter and Google+ share links

            $title = urlencode(html_entity_decode( get_the_title(), ENT_QUOTES, "utf-8" ));
              $url = urlencode(get_the_permalink());

          <ul class="share">

            <li class="twitter">

              <a class="share" target="_blank" href="<?php echo $title; ?>&amp;url=<?php echo wp_get_shortlink(); ?>&amp;via=thelittleidiot"><i class="icon-twitter"></i>&nbsp;Tweet</a>


            <li class="facebook">

                <a target="_blank" href="<?php echo $url; ?>"><i class="icon-facebook"></i>&nbsp;Share</a>

            </li> <!-- facebook -->

            <!-- <li><a target="_blank" href="<?php echo wp_get_shortlink(); ?>"><i class="icon-gplus"></i> <span>G+</span></a></li> -->

            <!-- <li class="email">
            <a class="share" href="mailto:?subject=I&#39;d%20like%20to%20share%20this%20with%20you&amp;body=<?php echo $title; ?>%0A%0A<?php echo $url; ?>"><span class="icon-email"></span>&nbsp;Email</a>

            <!-- email -->

               <a href="<?php echo wp_get_shortlink(); ?>">
                <i class="icon-link"></i>
                <?php echo str_replace('http://','', wp_get_shortlink()); ?>


 <!-- share -->