SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?php |
| 1 | + | <?php |
| 2 | - | ob_start(); |
| 2 | + | ob_start(); |
| 3 | - | ?> |
| 3 | + | ?> |
| 4 | - | <div id="toolbar"><div class="tb"> |
| 4 | + | <div id="toolbar"><div class="tb"> |
| 5 | - | <a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="mylemonhead">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="tb"><g:plusone size="tall" href="<?php the_permalink(); ?>"></g:plusone></div><div class="tb"><div id="fb-root"></div><fb:like href="<?php echo get_permalink(); ?>" data-layout="box_count" data-width="" data-show_faces="false" data-send="false"></fb:like></div><div class="tb"><a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="vertical">Pin It</a><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script> |
| 5 | + | |
| 6 | - | </div></div> |
| 6 | + | <!-- twitter --> |
| 7 | - | <?php |
| 7 | + | <a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="itthinx">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div> |
| 8 | - | $markup = ob_get_contents(); |
| 8 | + | |
| 9 | - | ob_end_clean(); |
| 9 | + | <!-- google +1 --> |
| 10 | - | $atts = array( "throbber" => "true", "load_on_sight" => "false"); |
| 10 | + | <!-- div class="tb"><g:plusone size="tall" href="<?php the_permalink(); ?>"></g:plusone></div --> |
| 11 | - | echo IX_LL_lazyload( $markup, $atts ); |
| 11 | + | <div class="tb"><div class="g-plusone" data-size="tall" data-href="<?php the_permalink(); ?>"></div></div> |
| 12 | - | ?> |
| 12 | + | <script type="text/javascript"> |
| 13 | (function() {
| |
| 14 | var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
| |
| 15 | po.src = 'https://apis.google.com/js/plusone.js'; | |
| 16 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
| |
| 17 | })(); | |
| 18 | </script> | |
| 19 | ||
| 20 | <!-- fb like --> | |
| 21 | <!-- div class="tb"><div id="fb-root"></div><fb:like href="<?php echo get_permalink(); ?>" data-layout="box_count" data-width="" data-show_faces="false" data-send="false"></fb:like></div --> | |
| 22 | ||
| 23 | <div id="fb-root"></div> | |
| 24 | <script>(function(d, s, id) {
| |
| 25 | var js, fjs = d.getElementsByTagName(s)[0]; | |
| 26 | if (d.getElementById(id)) return; | |
| 27 | js = d.createElement(s); js.id = id; | |
| 28 | js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
| 29 | fjs.parentNode.insertBefore(js, fjs); | |
| 30 | }(document, 'script', 'facebook-jssdk'));</script> | |
| 31 | <div class="fb-like" data-send="false" data-layout="box_count" data-width="" data-show-faces="false"></div> | |
| 32 | ||
| 33 | <!-- pinterest --> | |
| 34 | <div class="tb"><a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="vertical">Pin It</a><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script></div> | |
| 35 | </div> | |
| 36 | <?php | |
| 37 | $markup = ob_get_contents(); | |
| 38 | ob_end_clean(); | |
| 39 | $atts = array( "throbber" => "true" ); | |
| 40 | echo IX_LL_lazyload( $markup, $atts ); | |
| 41 | ?> |