Changeset 1037006
- Timestamp:
- 12/02/2014 09:09:22 PM (11 years ago)
- Location:
- because/trunk
- Files:
-
- 3 added
- 5 edited
-
README.txt (modified) (1 diff)
-
assets/fb.png (added)
-
assets/gplus.png (added)
-
assets/twit.png (added)
-
public/assets/css/public.css (modified) (2 diffs)
-
public/assets/js/public.js (modified) (1 diff)
-
public/includes/class-sp_comments.php (modified) (1 diff)
-
social-polling.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
because/trunk/README.txt
r1032795 r1037006 7 7 Tested up to: 4.0 8 8 <<<<<<< .mine 9 Stable tag: 1.5. 09 Stable tag: 1.5.1 10 10 ======= 11 Stable tag: 1.5. 011 Stable tag: 1.5.1 12 12 >>>>>>> .r969865 13 13 License: GPLv2 or later -
because/trunk/public/assets/css/public.css
r1032802 r1037006 456 456 } 457 457 458 .comment-social-share{ 459 display: inline-block; 460 opacity: 0; 461 } 462 463 .comment-body a img.social-share-button{ 464 height: 13px; 465 margin: 0 0 3px 10px; 466 } 467 458 468 /*comment body text*/ 459 469 .comment-awaiting-moderation{ … … 465 475 margin: 5px 0 !important; 466 476 text-align: left; 467 468 /*word-wrap:break-word;*/469 477 } 470 478 471 479 .odd, .even{ 472 480 background: none!important; 473 }474 475 .comment-social-share{476 display: inline-block;477 opacity: 0;478 481 } 479 482 -
because/trunk/public/assets/js/public.js
r1032795 r1037006 534 534 }) 535 535 536 537 538 539 540 541 542 543 544 545 546 547 548 536 // Comment sharing javascript 537 538 var fadeOut = ""; 539 540 $('.share-anchor').mouseover(function(){ 541 $(this).siblings('.comment-social-share').stop(); 542 $(this).siblings('.comment-social-share').css('display','inline-block').animate({ 543 opacity: 1 544 }, 300); 545 }) 546 547 $('.share-anchor').click(function(){ 548 clearTimeout(fadeOut); 549 550 $(this).siblings('.comment-social-share').stop(); 551 $(this).siblings('.comment-social-share').css('display','inline-block').animate({ 552 opacity: 1 553 }, 300); 554 }) 555 556 $('.reply-vote-share-container').mouseover(function(){ 557 clearTimeout(fadeOut); 558 }); 559 560 $('.reply-vote-share-container').mouseleave(function(){ 561 if($(this).children('.comment-social-share').css('opacity') === '1'){ 562 $(this).children('.comment-social-share').stop(); 563 var tempDiv = $(this); 564 fadeOut = setTimeout(function(){ 565 tempDiv.children('.comment-social-share').animate({ 566 opacity: 0 567 },300, function(){ 568 $(this).css('display','none'); 569 }); 570 },700) 571 572 } 573 574 575 }) 549 576 550 577 -
because/trunk/public/includes/class-sp_comments.php
r1032795 r1037006 1722 1722 1723 1723 1724 <!-- <span class="comment-pipe">|</span> 1725 <a href="#">Share</a> 1726 <div class="comment-social-share">aaa</div> --> 1724 <span class="comment-pipe">|</span> 1725 <a href="#" class="share-anchor" onclick="return false;">Share</a> 1726 <div class="comment-social-share"> 1727 <a href="<?php 1728 echo 'https://www.facebook.com/sharer/sharer.php?app_id=113869198637480&sdk=joey&u=' . urlencode(htmlspecialchars( get_comment_link( $comment->comment_ID ) )) . '&display=popup&ref=plugin'; 1729 1730 ?>" target="_blank"> 1731 <?php 1732 echo '<img src="' . plugins_url('../../assets/fb.png', __FILE__) . '" class="social-share-button">' 1733 1734 ?> 1735 </a> 1736 <a href="<?php 1737 echo 'https://twitter.com/intent/tweet?text=' . urlencode(htmlspecialchars( get_comment_link( $comment->comment_ID ) )) . urlencode(' I just commented on "' . get_the_title() . '"'); 1738 ?>" target="_blank"> 1739 <?php 1740 echo '<img src="' . plugins_url('../../assets/twit.png', __FILE__) . '" class="social-share-button">' 1741 ?> 1742 </a> 1743 <a href="https://plus.google.com/share?url=<?php echo urlencode(htmlspecialchars( get_comment_link( $comment->comment_ID ) )) ?>" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"> 1744 <?php 1745 echo '<img src="' . plugins_url('../../assets/gplus.png', __FILE__) . '" class="social-share-button">' 1746 ?> 1747 </a> 1748 </div> 1727 1749 1728 1750 </div> -
because/trunk/social-polling.php
r1032795 r1037006 34 34 35 35 <<<<<<< .mine 36 * Version: 1.5. 036 * Version: 1.5.1 37 37 ======= 38 * Version: 1.5. 038 * Version: 1.5.1 39 39 >>>>>>> .r969865 40 40
Note: See TracChangeset
for help on using the changeset viewer.