Version Description
- [Bugfix] Text was appearing in encoded format in Whatsapp sharing
- [Improvement] <div id="vk_api_transport"></div> was being added in <head> section on enabling Vkontakte login
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 6.6.4 |
Comparing to | |
See all releases |
Code changes from version 6.6.3 to 6.6.4
- css/front.css +1 -1
- inc/social_sharing.php +773 -773
- js/front/social_login/vkontakte.js +1 -1
- readme.txt +12 -4
- super_socializer.php +32 -33
css/front.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "utf-8";#the_champ_error{color:red;margin:7px 0}.the_champ_login_container{margin:2px 0}.the_champ_login_container img,.the_champ_sharing_container img{cursor:pointer;margin:2px;border:none}.the_champ_login_container img{display:none;float:left}#the_champ_loading_image{display:block!important;float:none}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#the_champ_sharing_more_providers{position:fixed;top:50%;left:47%;background:#FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important}#the_champ_popup_bg{background:url(../images/transparent_bg.png);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#the_champ_sharing_more_providers .title{font-size:14px!important;height:auto!important;background:#58B8F8!important;border-bottom:1px solid #D7D7D7!important;color:#fff;font-weight:700;letter-spacing:inherit;line-height:34px!important;padding:0!important;text-align:center;text-transform:none;margin:0!important;text-shadow:none!important;width:100%}#the_champ_sharing_more_providers *{font-family:Arial,Helvetica,sans-serif}#the_champ_sharing_more_providers #the_champ_sharing_more_content{background:#FAFAFA;border-radius:4px;color:#555;height:100%;width:100%}#the_champ_sharing_more_providers .filter{margin:0;padding:10px 0 0;position:relative;width:100%}#the_champ_sharing_more_providers .all-services{clear:both;height:250px;overflow:auto}#the_champ_sharing_more_content .all-services ul{margin:10px!important;overflow:hidden;list-style:none;padding-left:0!important;position:static!important;width:auto!important}#the_champ_sharing_more_content .all-services ul li{background:0 0!important;float:left;width:33.3333%!important;text-align:left!important}#the_champ_sharing_more_providers .close-button.separated{background:0 0!important;border:none!important;box-shadow:none!important;width:auto!important;height:auto!important;z-index:1000}#the_champ_sharing_more_providers .close-button{height:auto!important;width:auto!important;left:auto!important;display:block!important;color:#555!important;cursor:pointer!important;font-size:29px!important;line-height:29px!important;margin:0!important;padding:0!important;position:absolute;right:-13px;top:-11px}#the_champ_sharing_more_providers .filter input.search{width:92%;display:block;float:none;font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-weight:300;height:auto;line-height:inherit;margin:0 auto;padding:5px 8px 5px 10px;border:1px solid #ccc!important;color:#000;background:#FFF!important;font-size:16px!important;text-align:left!important}#the_champ_sharing_more_providers .footer-panel{background:#58B8F8;border-top:1px solid #D7D7D7;padding:6px 0;width:100%;color:#fff}#the_champ_sharing_more_providers .footer-panel p{background-color:transparent;top:0;text-align:left!important;color:#000;font-family:'helvetica neue',arial,helvetica,sans-serif;font-size:12px;line-height:1.2;margin:0!important;padding:0 6px!important;text-indent:0!important}#the_champ_sharing_more_providers .footer-panel a{color:#fff;text-decoration:none;font-weight:700;text-indent:0!important}#the_champ_sharing_more_providers .all-services ul li a{border-radius:3px;color:#666!important;display:block;font-size:14px;height:auto;line-height:20px;overflow:hidden;padding:8px;text-decoration:none!important;text-overflow:ellipsis;white-space:nowrap;border:none!important;text-indent:0!important;background:0 0!important;text-shadow:none}.the_champ_share_count{display:block;text-indent:0!important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto!important;box-sizing:content-box!important}.the_champ_share_count,.the_champ_vertical_counter,.the_champ_vertical_sharing{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}ul.the_champ_login_ul,ul.the_champ_sharing_ul{list-style:none!important;padding-left:0!important}#the_champ_comment_toggle{margin-bottom:10px}.the_champ_sharing_service{display:block;background:url(../images/sharing/more_sprite.png) no-repeat;margin-right:3px;float:left}.the_champ_sharing_service_amazon{background-position:0 0;width:20px;height:20px}.the_champ_sharing_service_aol{background-position:-20px 0;width:20px;height:20px}.the_champ_sharing_service_arto{background-position:-40px 0;width:20px;height:20px}.the_champ_sharing_service_bebo{background-position:-60px 0;width:20px;height:20px}.the_champ_sharing_service_bitly{background-position:-80px 0;width:20px;height:20px}.the_champ_sharing_service_blogger{background-position:-100px 0;width:20px;height:20px}.the_champ_sharing_service_box{background-position:-120px 0;width:20px;height:20px}.the_champ_sharing_service_boxee{background-position:0 -20px;width:20px;height:20px}.the_champ_sharing_service_buffer{background-position:-20px -20px;width:20px;height:20px}.the_champ_sharing_service_buzzster{background-position:-40px -20px;width:20px;height:20px}.the_champ_sharing_service_delicious{background-position:-60px -20px;width:20px;height:20px}.the_champ_sharing_service_digg{background-position:-80px -20px;width:20px;height:20px}.the_champ_sharing_service_diigo{background-position:-100px -20px;width:20px;height:20px}.the_champ_sharing_service_diigolet{background-position:-120px -20px;width:20px;height:20px}.the_champ_sharing_service_email{background-position:0 -40px;width:20px;height:20px}.the_champ_sharing_service_evernote{background-position:-20px -40px;width:20px;height:20px}.the_champ_sharing_service_facebook{background-position:-40px -40px;width:20px;height:20px}.the_champ_sharing_service_fancy{background-position:-60px -40px;width:20px;height:20px}.the_champ_sharing_service_fark{background-position:-80px -40px;width:20px;height:20px}.the_champ_sharing_service_flipboard{background-position:-100px -40px;width:20px;height:20px}.the_champ_sharing_service_google{background-position:-120px -40px;width:20px;height:20px}.the_champ_sharing_service_google-apps{background-position:0 -60px;width:20px;height:20px}.the_champ_sharing_service_google-bookmark{background-position:-20px -60px;width:20px;height:20px}.the_champ_sharing_service_google-mail{background-position:-40px -60px;width:20px;height:20px}.the_champ_sharing_service_heart{background-position:-60px -60px;width:20px;height:20px}.the_champ_sharing_service_hootsuite{background-position:-80px -60px;width:20px;height:20px}.the_champ_sharing_service_hotmail{background-position:-100px -60px;width:20px;height:20px}.the_champ_sharing_service_identica{background-position:-120px -60px;width:20px;height:20px}.the_champ_sharing_service_inbound{background-position:0 -80px;width:20px;height:20px}.the_champ_sharing_service_instapaper{background-position:-20px -80px;width:20px;height:20px}.the_champ_sharing_service_izeby{background-position:-40px -80px;width:20px;height:20px}.the_champ_sharing_service_kaboodle{background-position:-60px -80px;width:20px;height:20px}.the_champ_sharing_service_linkedin{background-position:-80px -80px;width:20px;height:20px}.the_champ_sharing_service_mister-wong{background-position:-100px -80px;width:20px;height:20px}.the_champ_sharing_service_msdn{background-position:-120px -80px;width:20px;height:20px}.the_champ_sharing_service_ning{background-position:0 -100px;width:20px;height:20px}.the_champ_sharing_service_orkut{background-position:-20px -100px;width:20px;height:20px}.the_champ_sharing_service_pinboard{background-position:-40px -100px;width:20px;height:20px}.the_champ_sharing_service_pinterest{background-position:-60px -100px;width:20px;height:20px}.the_champ_sharing_service_plurk{background-position:-80px -100px;width:20px;height:20px}.the_champ_sharing_service_pocket{background-position:-100px -100px;width:20px;height:20px}.the_champ_sharing_service_print-friendly{background-position:-120px -100px;width:20px;height:20px}.the_champ_sharing_service_quora{background-position:0 -120px;width:20px;height:20px}.the_champ_sharing_service_read-later{background-position:-20px -120px;width:20px;height:20px}.the_champ_sharing_service_reddit{background-position:-40px -120px;width:20px;height:20px}.the_champ_sharing_service_soup{background-position:-60px -120px;width:20px;height:20px}.the_champ_sharing_service_springpad{background-position:-80px -120px;width:20px;height:20px}.the_champ_sharing_service_stumbleupon{background-position:-100px -120px;width:20px;height:20px}.the_champ_sharing_service_stumpedia{background-position:-120px -120px;width:20px;height:20px}.the_champ_sharing_service_techmeme{background-position:0 -140px;width:20px;height:20px}.the_champ_sharing_service_tinyurl{background-position:-20px -140px;width:20px;height:20px}.the_champ_sharing_service_tumblr{background-position:-40px -140px;width:20px;height:20px}.the_champ_sharing_service_twitter{background-position:-60px -140px;width:20px;height:20px}.the_champ_sharing_service_typepad{background-position:-80px -140px;width:20px;height:20px}.the_champ_sharing_service_viadeo{background-position:-100px -140px;width:20px;height:20px}.the_champ_sharing_service_vkontakte{background-position:-120px -140px;width:20px;height:20px}.the_champ_sharing_service_wanelo{background-position:0 -160px;width:20px;height:20px}.the_champ_sharing_service_windows-live{background-position:-20px -160px;width:20px;height:20px}.the_champ_sharing_service_wordpress{background-position:-40px -160px;width:20px;height:20px}.the_champ_sharing_service_yahoo{background-position:-60px -160px;width:20px;height:20px}.the_champ_sharing_service_yammer{background-position:-80px -160px;width:20px;height:20px}.the_champ_sharing_service_yc-hacker{background-position:-100px -160px;width:20px;height:20px}ul.the_champ_login_ul{margin:3px 0!important}ul.the_champ_login_ul li{background:0 0!important;float:left;padding:0!important;margin:0!important;border:0!important;width:auto!important;clear:none!important;list-style-type:none!important}.theChampLoginSvg{width:100%;height:100%}.theChampXingLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDYgOSBoIDUgbCA0IDQgbCAtNSA3IGggLTUgbCA1IC03IHogbSAxNSAtNCBoIDUgbCAtOSAxMyBsIDQgOCBoIC01IGwgLTQgLTggeiIgZmlsbD0iI2ZmZiI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampGoogleLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNIDUxLjIyODc3NjYwNTc1NzA3IDM4LjE5MDgwNzcwMjE5NzA1IEEgMTcgMTcgMCAxIDAgNTYgNTAuMDAwMDAwMDAwMDAwMDEgaCAtMTciIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSA2NSA0OSBoIDE4IG0gLTkgLTkgdiAxOCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjUiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampLinkedinLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8Y2lyY2xlIGN4PSIxMCIgY3k9IjgiIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT4NCjxwYXRoIGQ9Ik0gMTAgMTEgdiAxMSBtIDUgMCB2IC0xMSBtIDAgMyBxIDYgLTMgNyAwIHYgOCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampTwitterLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+DQo8cGF0aCBkPSJNIDM4IDE5IHEgMiAtMSA0IC01IHEgLTEuNSAyIC00IDIgcSAxLjUgLTEgMy41IC01IHEgLTEuNSAyIC01IDIgYyAtNSAtNSAtMTMgLTIgLTEyIDYgcSAtNyAxIC0xNSAtOCBxIC0yIDQgMSA5IHEgLTEgMCAtMyAtMSBxIDAgNSA1IDcgcSAtMSAuNSAtMyAwIHEgMSA0IDggNiBxIC01IDMgLTExIDMgYyAxNCA4IDMwIDAgMzEuNSAtMTQiIHN0cm9rZS13aWR0aD0iMC4zIiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4=) left no-repeat}.theChampVkontakteLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIuNSA5IGggNC41IGwgNSA3IHYgLTcgaCA0LjUgdiA3IGwgNSAtNyBoIDUgbCAtNSA3IGwgNSA3IGggLTUgbCAtNSAtNyB2IDcgaCAtNC41IHEgLTIgMCAtNSAtNiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampFacebookLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggc3Ryb2tlPSIjZmZmIiBkPSJNMTQgMjUgdiAtMTMgUSAxMyA2IDIxIDcuNSBNIDEwIDE0IEwgMjAgMTQiIHN0cm9rZS13aWR0aD0iNCIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampInstagramLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjZmZmIj48L2NpcmNsZT4NCjxwYXRoIGQ9Ik0gMiAxNSB2IDEzIGggMjYgdiAtMTMgaCAtNCBjIC0zIDEyIC0xNSAxMiAtMTggMCB6IG0gMiAtMTMgdiA1IG0gMiAtNSB2IDUgbSAyIC01IHYgNCBtIC02IDYgdiAtMTAgaCAyNiB2IDEwIGggLTQgYyAtNCAtOC41IC0xNCAtOC41IC0xOCAwIHoiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJub25lIj48L3BhdGg+PHJlY3Qgd2lkdGg9IjUiIGhlaWdodD0iNSIgZmlsbD0iI2ZmZiIgeD0iMjMiIHk9IjIiPjwvcmVjdD4NCjwvc3ZnPg==) left no-repeat}.theChampLoginButton{background:url(../images/login/login.png) no-repeat}.theChampLogin{padding:0!important;margin:2px;height:35px;width:35px;float:left;cursor:pointer;border:none}.theChampInstagramLogin,.theChampTwitterLogin,.theChampXingLogin{display:block}.theChampFacebookLogin,.theChampGoogleLogin,.theChampLinkedinLogin,.theChampVkontakteLogin{display:none}.theChampXingButton{background-position:-64px 0;width:32px;height:32px;display:block}.theChampFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.theChampLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.theChampGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.theChampInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.theChampVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.the_champ_sharing_ul{margin:1px 0!important}#the_champ_sharing_popup_close img{background:0 0!important;border:none!important;outline:0!important;box-shadow:none!important;width:auto!important;height:auto!important;top:inherit!important;right:inherit!important;left:9px!important;padding:0!important}ul.the_champ_sharing_ul li.theChampSharingRound{background:0 0!important}.the_champ_square_count{display:none;color:#fff;text-align:center;font-weight:bolder;font-family:sans-serif;line-height:1.8em}ul.the_champ_sharing_ul li{float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}.theChampSharing,.theChampSharingButton{display:block;cursor:pointer;margin:2px}ul.the_champ_login_ul li:before,ul.the_champ_sharing_ul li:before{content:none!important}.theChampSharingButton{background:url(../images/sharing/sharing.png) no-repeat;float:left;border:none}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingXingButton{background-position:0 -128px;width:32px;height:32px}.theChampSharingWhatsappButton{background-position:-32px -128px;width:32px;height:32px}.theChampSharingYummlyButton{background-position:-64px -128px;width:32px;height:32px}.theChampSharingBufferButton{background-position:-96px -128px;width:32px;height:32px}.theChampSharingTotalsharesButton{background-position: -200px -200px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingMoreButton{background-position:-96px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.the_champ_vertical_counter,.the_champ_vertical_sharing{background:0 0;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;box-sizing:content-box!important}.the_champ_vertical_counter li{clear:both}li.the_champ_facebook_like .fb-like span,li.the_champ_facebook_recommend .fb-like span{vertical-align:top!important}li.the_champ_facebook_like .fb-like span iframe,li.the_champ_facebook_recommend .fb-like span iframe{max-width:none!important;z-index:1000!important}li.the_champ_facebook_like{width:110px}li.the_champ_facebook_recommend{width:145px}li.the_champ_twitter_tweet{width:95px}li.the_champ_linkedin_share{width:117px}li.the_champ_google_plusone{width:74px}li.the_champ_buffer{width:81px;}li.the_champ_reddit{width:130px}li.the_champ_yummly{width:81px}li.the_champ_gp_share{width:95px}li.the_champ_pinterest_pin{width:76px}li.the_champ_xing{width:98px}.the_champ_stumble{width:80px}.the_champ_counter_container li{height:21px}input#user_login,input#user_pass{height:auto!important}.theChampHorizontalSharingButton,.theChampVerticalSharingButton{display:block}.theChampDeliciousSquareBackground{background-color:#474749}.theChampInstagramBackground{background-color:#624E47}.theChampYummlyBackground{background-color:#E16120}.theChampBufferBackground{background-color:#000}.theChampFacebookBackground{background-color:#3C589A}.theChampDiggBackground{background-color:#006094}.theChampEmailBackground{background-color:#649A3F}.theChampFloatitBackground{background-color:#53BEEE}.theChampGoogleBackground{background-color:#dd4b39}.theChampLinkedinBackground{background-color:#2886EF}.theChampMoreBackground{background-color:#EE8E2D}.theChampPinterestBackground{background-color:#CC2329}.theChampPrintBackground{background-color:#FD6500}.theChampRedditBackground{background-color:#247CED}.theChampStumbleuponBackground{background-color:#EA4823}.theChampTumblrBackground{background-color:#29435D}.theChampTwitterBackground{background-color:#14B2C8}.theChampVkontakteBackground{background-color:#5E84AC}.theChampYahooBackground{background-color:#8F03CC}.theChampXingBackground{background-color:#00797D}.theChampWhatsappBackground{background-color:#55EB4C}.theChampTCBackground,.theChampSharingTotalsharesButton{font-style:normal!important;word-wrap:normal;color:#666;line-height:1}.theChampSharingSvg{width:100%;height:100%}.theChampYummlySvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggc3Ryb2tlPSIjZmZmIiBkPSJNIDEwLjUgMTAgcSA0IC0yIDIuNSAxIGwgLTEgNCBxIDAgMiA1IDAgbCAxIC02LjUgbSAtMSA2LjUgbCAtMSA0IGMgLTMgNiAtNiAtMSAwIC0xIHEgMSAtMSA1IDEiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampBufferSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM5Ij48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0gMTUgNiBsIC0xMCA1IGwgMTAgNSBsIDEwIC01IHoiIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iI2ZmZiI+PC9wYXRoPjxwYXRoIHN0cm9rZT0iI2ZmZiIgZD0iTSA1LjUgMTQuNSBsIDkuNSA1IGwgOS41IC01IG0gLTE5IDQgbCA5LjUgNSBsIDkuNSAtNSIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampFacebookSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0xNCAyNSB2IC0xMyBRIDEzIDYgMjEgNy41IE0gMTAgMTQgTCAyMCAxNCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampDeliciousSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHN0eWxlPSJmaWxsOiNlZWU7IiAvPg0KPHJlY3QgeD0iMTUiIHk9IjAiIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgc3R5bGU9ImZpbGw6IzMxNzNEMDsiIC8+DQo8cmVjdCB4PSIwIiB5PSIxNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiBzdHlsZT0iZmlsbDojMDAwOyIgLz4NCjxyZWN0IHg9IjE1IiB5PSIxNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiBzdHlsZT0iZmlsbDojQkRCREJEOyIgLz4NCjwvc3ZnPg==) left no-repeat}.theChampDiggSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQ5IDQ5Ij48cGF0aCBkPSJNIDYgMjAgaCAxMCBjIDAgLTE0IC05IC0xNCAtOSAwIG0gNSAwIHYgNyBtIC0xIDAgdiAtNyBtIDQgLTcgaCA0LjUgdiAtNSBoIDggdiA4IGggLTggdiAtMyBtIDggMCBoIDQgdiA1LjUgaCAtMyB2IDEyIGggLTQgdiAtOCBtIDAgOCBoIC02LjUgdiAtMTIgaCAtMiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48ZWxsaXBzZSBjeD0iMTEuNSIgY3k9IjI4LjUiIHJ4PSI0IiByeT0iMiIgc3R5bGU9ImZpbGw6d2hpdGU7Ij48L2VsbGlwc2U+PC9zdmc+) left no-repeat}.theChampEmailSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDQzIDQzIj48cGF0aCBkPSJNIDUuNSAxMSBoIDIzIHYgMSBsIC0xMSA2IGwgLTExIC02IHYgLTEgbSAwIDIgbCAxMSA2IGwgMTEgLTYgdiAxMSBoIC0yMiB2IC0xMSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampFloatitSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSIxMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIzIiBmaWxsPSJub25lIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0gNSAxNSBoIDUgTSAxNSA1IHYgNSBNIDI1IDE1IGggLTUgTSAxNSAyNSB2IC01IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampGoogleSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNIDUxLjIyODc3NjYwNTc1NzA3IDM4LjE5MDgwNzcwMjE5NzA1IEEgMTcgMTcgMCAxIDAgNTYgNTAuMDAwMDAwMDAwMDAwMDEgaCAtMTciIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSA2NSA0OSBoIDE4IG0gLTkgLTkgdiAxOCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjUiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampLinkedinSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij4NCjxjaXJjbGUgY3g9IjEwIiBjeT0iOCIgcj0iMiIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPg0KPHBhdGggZD0iTSAxMCAxMSB2IDExIG0gNSAwIHYgLTExIG0gMCAzIHEgNiAtMyA3IDAgdiA4IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampMoreSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48Y2lyY2xlIGN4PSIxMCIgY3k9IjE1IiByPSIzIiBmaWxsPSJ3aGl0ZSI+PC9jaXJjbGU+PGNpcmNsZSBjeD0iMjAiIGN5PSIxMCIgcj0iMyIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjMiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48cGF0aCBkPSJNIDEwIDE1IEwgMjAgMTAgbSAwIDEwIEwgMTAgMTUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSIjZmZmIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampPinterestSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02LjUgLTUgNDIgNDIiPjxwYXRoIGQ9Ik0gNiAyMCBjIC0zIC00IC0yIC0xMCAzIC0xMy41IGMgNCAtMyAxMSAtMyAxNSAzIGMgMyA1IDIgMTMgLTYgMTUgcSAtNCAxIC02IC0zIGwgLTIgNiBsIC0xLjIgMiBsIC0wLjggLTIgbCAyLjUgLTExIGMgLTIgLTQgMSAtOCA0IC02IHEgMCA1IC0xLjQgOC41IGMgMyA4IDEwIDAgOS41IC00IGMgMCAtOSAtMTEgLTExIC0xNC41IC00IGMgMCAwIC0zIDUgMCA4IGwgLTEgMiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampPrintSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC02IDM4IDM4Ij48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0gNyAxMCBoIDIgdiAzIGggMTIgdiAtMyBoIDIgdiA3IGggLTIgdiAtMyBoIC0xMiB2IDMgaCAtMiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD48cmVjdCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS44IiBoZWlnaHQ9IjciIHdpZHRoPSIxMCIgeD0iMTAiIHk9IjUiIGZpbGw9Im5vbmUiPjwvcmVjdD48cmVjdCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMSIgaGVpZ2h0PSI1IiB3aWR0aD0iOCIgeD0iMTEiIHk9IjE2IiBmaWxsPSIjZmZmIj48L3JlY3Q+PC9zdmc+) left no-repeat}.theChampRedditSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02IC02IDQyIDQyIj48ZWxsaXBzZSBjeD0iMTUiIGN5PSIxOSIgcng9IjkiIHJ5PSI3IiBzdHlsZT0ic3Ryb2tlOndoaXRlO3N0cm9rZS13aWR0aDoyIiBmaWxsPSJub25lIj48L2VsbGlwc2U+PGNpcmNsZSBjeD0iMTEiIGN5PSIxNyIgcj0iMiIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjE5IiBjeT0iMTciIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIyMiIgY3k9IjciIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSI3IiBjeT0iMTQiIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIyMyIgY3k9IjE0IiByPSIyIiBmaWxsPSJ3aGl0ZSI+PC9jaXJjbGU+PHBhdGggZD0iTSAxMCAyMiBxIDUgMyAxMCAwIE0gMTUgMTIgbCAxIC02IGwgNiAxIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampStumbleuponSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBkPSJNIDYuNiAxNSB2IDEgYyAtMSA3IDYuNSA3IDUuNSAwIHYgLTQgYyAtMSAtNyA2IC03IDYgLTIgdiAyLjUgbSAwIDIuNSB2IDEgYyAtMSA3IDYuNSA3IDUuNSAwIHYgLTEiIHN0cm9rZS13aWR0aD0iMy41IiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampTumblrSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48cGF0aCBkPSJNIDE0IDcgdiAxNCBxIDMgMiA2IDAgTSAxNCA3LjUgcSAwIDUuNSAtNCA1LjUgaCA5IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampTwitterSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii04IC04IDY0IDY0Ij4NCjxwYXRoIGQ9Ik0gMzggMTkgcSAyIC0xIDQgLTUgcSAtMS41IDIgLTQgMiBxIDEuNSAtMSAzLjUgLTUgcSAtMS41IDIgLTUgMiBjIC01IC01IC0xMyAtMiAtMTIgNiBxIC03IDEgLTE1IC04IHEgLTIgNCAxIDkgcSAtMSAwIC0zIC0xIHEgMCA1IDUgNyBxIC0xIC41IC0zIDAgcSAxIDQgOCA2IHEgLTUgMyAtMTEgMyBjIDE0IDggMzAgMCAzMS41IC0xNCIgc3Ryb2tlLXdpZHRoPSIwLjMiIGZpbGw9IiNmZmYiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampVkontakteSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj4NCjxwYXRoIGQ9Ik0gMi41IDkgaCA0LjUgbCA1IDcgdiAtNyBoIDQuNSB2IDcgbCA1IC03IGggNSBsIC01IDcgbCA1IDcgaCAtNSBsIC01IC03IHYgNyBoIC00LjUgcSAtMiAwIC01IC02IHoiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0iI2ZmZiI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampYahooSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48cGF0aCBkPSJNIDggMTAgbCA3IDcgbCA1IC01IG0gLTQuNyA1IHYgMyBoIC0wLjUgdiAtMyBtIDggLTQgdiA1IG0gMCAxIHYgMSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48cGF0aCBkPSJNIDYgMTAgaCA2IG0gNSAyIGggNiBtIC0xMSA5LjUgaCA2IiBzdHJva2Utd2lkdGg9IjEuNCIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampXingSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02IC02IDQyIDQyIj4NCjxwYXRoIGQ9Ik0gNiA5IGggNSBsIDQgNCBsIC01IDcgaCAtNSBsIDUgLTcgeiBtIDE1IC00IGggNSBsIC05IDEzIGwgNCA4IGggLTUgbCAtNCAtOCB6IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4=) left no-repeat}.theChampWhatsappSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBpZD0iYXJjMSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiIGQ9Ik0gMTEuNTc5Nzk4NTY2NzQzMzE0IDI0LjM5NjkyNjIwNzg1OTA4NSBBIDEwIDEwIDAgMSAwIDYuODA4NDc5NTU3MTEwMDc5IDIwLjczNTc2NDM2MzUxMDQ2Ij48L3BhdGg+PHBhdGggZD0iTSA3IDE5IGwgLTEgNiBsIDYgLTEiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSAxMCAxMCBxIC0xIDggOCAxMSBjIDUgLTEgMCAtNiAtMSAtMyBxIC00IC0zIC01IC01IGMgNCAtMiAtMSAtNSAtMSAtNCIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampSharing{float:left;border:none}.theChampSharingArrow{background-color:#000!important;height:16px;width:16px;cursor:pointer;margin-top:10px}.theChampPushIn{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDcgNiBxIDIgNiAxMCA2IHYgLTYgbCA2IDkgbCAtNiA5IHYgLTYgcSAtMTAgMiAtMTAgLTEyIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZT0iI2ZmZiIgZmlsbD0id2hpdGUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampPushInPng{background:url(../images/sharing/pushin.png) left no-repeat}.theChampPullOut{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIzIDYgcSAtMiA2IC0xMCA2IHYgLTYgbCAtNiA5IGwgNiA5IHYgLTYgcSAxMCAyIDEwIC0xMiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiNmZmYiIGZpbGw9IndoaXRlIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampPullOutPng{background:url(../images/sharing/pullout.png) left no-repeat}.theChampCommentingTabs li{padding-left:0!important;float:left;margin:0 1em 0 0!important;list-style:none;color:#aaa;display:block;cursor:pointer;font-size:.85em}.theChampCommentingTabs ul{float:left;padding-left:0;margin-left:0}li.theChampSelectedTab{color:#333;border-bottom:2px solid #23a9e1}.fb-comments,.fb-comments span,.fb-comments span iframe[style]{min-width:100%!important;width:100%!important}#mc-input,#user_email,#user_login{height:auto!important}div.the_champ_horizontal_counter li{margin-right:14px!important}div.theChampTotalShareCount{word-wrap:normal!important;font-weight: bolder;font-family: sans-serif;padding: 0;margin: 0;text-align:center}div.theChampTotalShareText{word-wrap:normal!important;margin: 0;padding: 0;text-align: center;}div.the_champ_horizontal_sharing li{width:auto !important}@media screen and (max-width:783px){#the_champ_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow:none!important}#the_champ_sharing_more_providers .filter input.search{border:1px solid #ccc;width:92%}.the_champ_hide_sharing{display:none}.the_champ_bottom_sharing{width:auto!important;bottom:-10px!important;top:auto!important;}.the_champ_bottom_sharing .theChampSharingArrow{display:none;}.the_champ_bottom_sharing .theChampTCBackground{margin-right: 1.1em !important}.the_champ_bottom_sharing .the_champ_square_count{display: block;line-height: inherit;}}
|
1 |
+
@charset "utf-8";#the_champ_error{color:red;margin:7px 0}.the_champ_login_container{margin:2px 0}.the_champ_login_container img,.the_champ_sharing_container img{cursor:pointer;margin:2px;border:none}.the_champ_login_container img{display:none;float:left}#the_champ_loading_image{display:block!important;float:none}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#the_champ_sharing_more_providers{position:fixed;top:50%;left:47%;background:#FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important}#the_champ_popup_bg{background:url(../images/transparent_bg.png);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#the_champ_sharing_more_providers .title{font-size:14px!important;height:auto!important;background:#58B8F8!important;border-bottom:1px solid #D7D7D7!important;color:#fff;font-weight:700;letter-spacing:inherit;line-height:34px!important;padding:0!important;text-align:center;text-transform:none;margin:0!important;text-shadow:none!important;width:100%}#the_champ_sharing_more_providers *{font-family:Arial,Helvetica,sans-serif}#the_champ_sharing_more_providers #the_champ_sharing_more_content{background:#FAFAFA;border-radius:4px;color:#555;height:100%;width:100%}#the_champ_sharing_more_providers .filter{margin:0;padding:10px 0 0;position:relative;width:100%}#the_champ_sharing_more_providers .all-services{clear:both;height:250px;overflow:auto}#the_champ_sharing_more_content .all-services ul{margin:10px!important;overflow:hidden;list-style:none;padding-left:0!important;position:static!important;width:auto!important}#the_champ_sharing_more_content .all-services ul li{background:0 0!important;float:left;width:33.3333%!important;text-align:left!important}#the_champ_sharing_more_providers .close-button.separated{background:0 0!important;border:none!important;box-shadow:none!important;width:auto!important;height:auto!important;z-index:1000}#the_champ_sharing_more_providers .close-button{height:auto!important;width:auto!important;left:auto!important;display:block!important;color:#555!important;cursor:pointer!important;font-size:29px!important;line-height:29px!important;margin:0!important;padding:0!important;position:absolute;right:-13px;top:-11px}#the_champ_sharing_more_providers .filter input.search{width:92%;display:block;float:none;font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-weight:300;height:auto;line-height:inherit;margin:0 auto;padding:5px 8px 5px 10px;border:1px solid #ccc!important;color:#000;background:#FFF!important;font-size:16px!important;text-align:left!important}#the_champ_sharing_more_providers .footer-panel{background:#58B8F8;border-top:1px solid #D7D7D7;padding:6px 0;width:100%;color:#fff}#the_champ_sharing_more_providers .footer-panel p{background-color:transparent;top:0;text-align:left!important;color:#000;font-family:'helvetica neue',arial,helvetica,sans-serif;font-size:12px;line-height:1.2;margin:0!important;padding:0 6px!important;text-indent:0!important}#the_champ_sharing_more_providers .footer-panel a{color:#fff;text-decoration:none;font-weight:700;text-indent:0!important}#the_champ_sharing_more_providers .all-services ul li a{border-radius:3px;color:#666!important;display:block;font-size:14px;height:auto;line-height:20px;overflow:hidden;padding:8px;text-decoration:none!important;text-overflow:ellipsis;white-space:nowrap;border:none!important;text-indent:0!important;background:0 0!important;text-shadow:none}.the_champ_share_count{display:block;text-indent:0!important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto!important;box-sizing:content-box!important}.the_champ_share_count,.the_champ_vertical_counter,.the_champ_vertical_sharing{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}ul.the_champ_login_ul,ul.the_champ_sharing_ul{list-style:none!important;padding-left:0!important}#the_champ_comment_toggle{margin-bottom:10px}.the_champ_sharing_service{display:block;background:url(../images/sharing/more_sprite.png) no-repeat;margin-right:3px;float:left}.the_champ_sharing_service_amazon{background-position:0 0;width:20px;height:20px}.the_champ_sharing_service_aol{background-position:-20px 0;width:20px;height:20px}.the_champ_sharing_service_arto{background-position:-40px 0;width:20px;height:20px}.the_champ_sharing_service_bebo{background-position:-60px 0;width:20px;height:20px}.the_champ_sharing_service_bitly{background-position:-80px 0;width:20px;height:20px}.the_champ_sharing_service_blogger{background-position:-100px 0;width:20px;height:20px}.the_champ_sharing_service_box{background-position:-120px 0;width:20px;height:20px}.the_champ_sharing_service_boxee{background-position:0 -20px;width:20px;height:20px}.the_champ_sharing_service_buffer{background-position:-20px -20px;width:20px;height:20px}.the_champ_sharing_service_buzzster{background-position:-40px -20px;width:20px;height:20px}.the_champ_sharing_service_delicious{background-position:-60px -20px;width:20px;height:20px}.the_champ_sharing_service_digg{background-position:-80px -20px;width:20px;height:20px}.the_champ_sharing_service_diigo{background-position:-100px -20px;width:20px;height:20px}.the_champ_sharing_service_diigolet{background-position:-120px -20px;width:20px;height:20px}.the_champ_sharing_service_email{background-position:0 -40px;width:20px;height:20px}.the_champ_sharing_service_evernote{background-position:-20px -40px;width:20px;height:20px}.the_champ_sharing_service_facebook{background-position:-40px -40px;width:20px;height:20px}.the_champ_sharing_service_fancy{background-position:-60px -40px;width:20px;height:20px}.the_champ_sharing_service_fark{background-position:-80px -40px;width:20px;height:20px}.the_champ_sharing_service_flipboard{background-position:-100px -40px;width:20px;height:20px}.the_champ_sharing_service_google{background-position:-120px -40px;width:20px;height:20px}.the_champ_sharing_service_google-apps{background-position:0 -60px;width:20px;height:20px}.the_champ_sharing_service_google-bookmark{background-position:-20px -60px;width:20px;height:20px}.the_champ_sharing_service_google-mail{background-position:-40px -60px;width:20px;height:20px}.the_champ_sharing_service_heart{background-position:-60px -60px;width:20px;height:20px}.the_champ_sharing_service_hootsuite{background-position:-80px -60px;width:20px;height:20px}.the_champ_sharing_service_hotmail{background-position:-100px -60px;width:20px;height:20px}.the_champ_sharing_service_identica{background-position:-120px -60px;width:20px;height:20px}.the_champ_sharing_service_inbound{background-position:0 -80px;width:20px;height:20px}.the_champ_sharing_service_instapaper{background-position:-20px -80px;width:20px;height:20px}.the_champ_sharing_service_izeby{background-position:-40px -80px;width:20px;height:20px}.the_champ_sharing_service_kaboodle{background-position:-60px -80px;width:20px;height:20px}.the_champ_sharing_service_linkedin{background-position:-80px -80px;width:20px;height:20px}.the_champ_sharing_service_mister-wong{background-position:-100px -80px;width:20px;height:20px}.the_champ_sharing_service_msdn{background-position:-120px -80px;width:20px;height:20px}.the_champ_sharing_service_ning{background-position:0 -100px;width:20px;height:20px}.the_champ_sharing_service_orkut{background-position:-20px -100px;width:20px;height:20px}.the_champ_sharing_service_pinboard{background-position:-40px -100px;width:20px;height:20px}.the_champ_sharing_service_pinterest{background-position:-60px -100px;width:20px;height:20px}.the_champ_sharing_service_plurk{background-position:-80px -100px;width:20px;height:20px}.the_champ_sharing_service_pocket{background-position:-100px -100px;width:20px;height:20px}.the_champ_sharing_service_print-friendly{background-position:-120px -100px;width:20px;height:20px}.the_champ_sharing_service_quora{background-position:0 -120px;width:20px;height:20px}.the_champ_sharing_service_read-later{background-position:-20px -120px;width:20px;height:20px}.the_champ_sharing_service_reddit{background-position:-40px -120px;width:20px;height:20px}.the_champ_sharing_service_soup{background-position:-60px -120px;width:20px;height:20px}.the_champ_sharing_service_springpad{background-position:-80px -120px;width:20px;height:20px}.the_champ_sharing_service_stumbleupon{background-position:-100px -120px;width:20px;height:20px}.the_champ_sharing_service_stumpedia{background-position:-120px -120px;width:20px;height:20px}.the_champ_sharing_service_techmeme{background-position:0 -140px;width:20px;height:20px}.the_champ_sharing_service_tinyurl{background-position:-20px -140px;width:20px;height:20px}.the_champ_sharing_service_tumblr{background-position:-40px -140px;width:20px;height:20px}.the_champ_sharing_service_twitter{background-position:-60px -140px;width:20px;height:20px}.the_champ_sharing_service_typepad{background-position:-80px -140px;width:20px;height:20px}.the_champ_sharing_service_viadeo{background-position:-100px -140px;width:20px;height:20px}.the_champ_sharing_service_vkontakte{background-position:-120px -140px;width:20px;height:20px}.the_champ_sharing_service_wanelo{background-position:0 -160px;width:20px;height:20px}.the_champ_sharing_service_windows-live{background-position:-20px -160px;width:20px;height:20px}.the_champ_sharing_service_wordpress{background-position:-40px -160px;width:20px;height:20px}.the_champ_sharing_service_yahoo{background-position:-60px -160px;width:20px;height:20px}.the_champ_sharing_service_yammer{background-position:-80px -160px;width:20px;height:20px}.the_champ_sharing_service_yc-hacker{background-position:-100px -160px;width:20px;height:20px}ul.the_champ_login_ul{margin:3px 0!important}ul.the_champ_login_ul li{background:0 0!important;float:left;padding:0!important;margin:0!important;border:0!important;width:auto!important;clear:none!important;list-style-type:none!important}.theChampLoginSvg{width:100%;height:100%}.theChampXingLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDYgOSBoIDUgbCA0IDQgbCAtNSA3IGggLTUgbCA1IC03IHogbSAxNSAtNCBoIDUgbCAtOSAxMyBsIDQgOCBoIC01IGwgLTQgLTggeiIgZmlsbD0iI2ZmZiI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampGoogleLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNIDUxLjIyODc3NjYwNTc1NzA3IDM4LjE5MDgwNzcwMjE5NzA1IEEgMTcgMTcgMCAxIDAgNTYgNTAuMDAwMDAwMDAwMDAwMDEgaCAtMTciIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSA2NSA0OSBoIDE4IG0gLTkgLTkgdiAxOCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjUiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampLinkedinLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8Y2lyY2xlIGN4PSIxMCIgY3k9IjgiIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT4NCjxwYXRoIGQ9Ik0gMTAgMTEgdiAxMSBtIDUgMCB2IC0xMSBtIDAgMyBxIDYgLTMgNyAwIHYgOCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampTwitterLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+DQo8cGF0aCBkPSJNIDM4IDE5IHEgMiAtMSA0IC01IHEgLTEuNSAyIC00IDIgcSAxLjUgLTEgMy41IC01IHEgLTEuNSAyIC01IDIgYyAtNSAtNSAtMTMgLTIgLTEyIDYgcSAtNyAxIC0xNSAtOCBxIC0yIDQgMSA5IHEgLTEgMCAtMyAtMSBxIDAgNSA1IDcgcSAtMSAuNSAtMyAwIHEgMSA0IDggNiBxIC01IDMgLTExIDMgYyAxNCA4IDMwIDAgMzEuNSAtMTQiIHN0cm9rZS13aWR0aD0iMC4zIiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4=) left no-repeat}.theChampVkontakteLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIuNSA5IGggNC41IGwgNSA3IHYgLTcgaCA0LjUgdiA3IGwgNSAtNyBoIDUgbCAtNSA3IGwgNSA3IGggLTUgbCAtNSAtNyB2IDcgaCAtNC41IHEgLTIgMCAtNSAtNiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampFacebookLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggc3Ryb2tlPSIjZmZmIiBkPSJNMTQgMjUgdiAtMTMgUSAxMyA2IDIxIDcuNSBNIDEwIDE0IEwgMjAgMTQiIHN0cm9rZS13aWR0aD0iNCIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampInstagramLoginSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjZmZmIj48L2NpcmNsZT4NCjxwYXRoIGQ9Ik0gMiAxNSB2IDEzIGggMjYgdiAtMTMgaCAtNCBjIC0zIDEyIC0xNSAxMiAtMTggMCB6IG0gMiAtMTMgdiA1IG0gMiAtNSB2IDUgbSAyIC01IHYgNCBtIC02IDYgdiAtMTAgaCAyNiB2IDEwIGggLTQgYyAtNCAtOC41IC0xNCAtOC41IC0xOCAwIHoiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJub25lIj48L3BhdGg+PHJlY3Qgd2lkdGg9IjUiIGhlaWdodD0iNSIgZmlsbD0iI2ZmZiIgeD0iMjMiIHk9IjIiPjwvcmVjdD4NCjwvc3ZnPg==) left no-repeat}.theChampLoginButton{background:url(../images/login/login.png) no-repeat}.theChampLogin{padding:0!important;margin:2px;height:35px;width:35px;float:left;cursor:pointer;border:none}.theChampInstagramLogin,.theChampTwitterLogin,.theChampXingLogin{display:block}.theChampFacebookLogin,.theChampGoogleLogin,.theChampLinkedinLogin,.theChampVkontakteLogin{display:none}.theChampXingButton{background-position:-64px 0;width:32px;height:32px;display:block}.theChampFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.theChampLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.theChampGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.theChampInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.theChampVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.the_champ_sharing_ul{margin:1px 0!important}#the_champ_sharing_popup_close img{background:0 0!important;border:none!important;outline:0!important;box-shadow:none!important;width:auto!important;height:auto!important;top:inherit!important;right:inherit!important;left:9px!important;padding:0!important}ul.the_champ_sharing_ul li.theChampSharingRound{background:0 0!important}.the_champ_square_count{display:none;color:#fff;text-align:center;font-weight:bolder;font-family:sans-serif;line-height:1.8em}ul.the_champ_sharing_ul li{float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}.theChampSharing,.theChampSharingButton{display:block;cursor:pointer;margin:2px}ul.the_champ_login_ul li:before,ul.the_champ_sharing_ul li:before{content:none!important}.theChampSharingButton{background:url(../images/sharing/sharing.png) no-repeat;float:left;border:none}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingXingButton{background-position:0 -128px;width:32px;height:32px}.theChampSharingWhatsappButton{background-position:-32px -128px;width:32px;height:32px}.theChampSharingYummlyButton{background-position:-64px -128px;width:32px;height:32px}.theChampSharingBufferButton{background-position:-96px -128px;width:32px;height:32px}.theChampSharingTotalsharesButton{background-position: -200px -200px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingMoreButton{background-position:-96px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.the_champ_vertical_counter,.the_champ_vertical_sharing{background:0 0;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;box-sizing:content-box!important}.the_champ_vertical_counter li{clear:both}li.the_champ_facebook_like .fb-like span,li.the_champ_facebook_recommend .fb-like span{vertical-align:top!important}li.the_champ_facebook_like .fb-like span iframe,li.the_champ_facebook_recommend .fb-like span iframe{max-width:none!important;z-index:1000!important}li.the_champ_facebook_like{width:110px}li.the_champ_facebook_recommend{width:145px}li.the_champ_twitter_tweet{width:95px}li.the_champ_linkedin_share{width:117px}li.the_champ_google_plusone{width:74px}li.the_champ_buffer{width:81px;}li.the_champ_reddit{width:130px}li.the_champ_yummly{width:81px}li.the_champ_gp_share{width:95px}li.the_champ_pinterest_pin{width:76px}li.the_champ_xing{width:98px}.the_champ_stumble{width:80px}.the_champ_counter_container li{height:21px}input#user_login,input#user_pass{height:auto!important}.theChampHorizontalSharingButton,.theChampVerticalSharingButton{display:block}.theChampDeliciousSquareBackground{background-color:#474749}.theChampInstagramBackground{background-color:#624E47}.theChampYummlyBackground{background-color:#E16120}.theChampBufferBackground{background-color:#000}.theChampFacebookBackground{background-color:#3C589A}.theChampDiggBackground{background-color:#006094}.theChampEmailBackground{background-color:#649A3F}.theChampFloatitBackground{background-color:#53BEEE}.theChampGoogleBackground{background-color:#dd4b39}.theChampLinkedinBackground{background-color:#2886EF}.theChampMoreBackground{background-color:#EE8E2D}.theChampPinterestBackground{background-color:#CC2329}.theChampPrintBackground{background-color:#FD6500}.theChampRedditBackground{background-color:#247CED}.theChampStumbleuponBackground{background-color:#EA4823}.theChampTumblrBackground{background-color:#29435D}.theChampTwitterBackground{background-color:#14B2C8}.theChampVkontakteBackground{background-color:#5E84AC}.theChampYahooBackground{background-color:#8F03CC}.theChampXingBackground{background-color:#00797D}.theChampWhatsappBackground{background-color:#55EB4C}.theChampTCBackground,.theChampSharingTotalsharesButton{font-style:normal!important;word-wrap:normal;color:#666;line-height:1}.theChampSharingSvg{width:100%;height:100%}.theChampYummlySvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggc3Ryb2tlPSIjZmZmIiBkPSJNIDEwLjUgMTAgcSA0IC0yIDIuNSAxIGwgLTEgNCBxIDAgMiA1IDAgbCAxIC02LjUgbSAtMSA2LjUgbCAtMSA0IGMgLTMgNiAtNiAtMSAwIC0xIHEgMSAtMSA1IDEiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampBufferSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM5Ij48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0gMTUgNiBsIC0xMCA1IGwgMTAgNSBsIDEwIC01IHoiIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iI2ZmZiI+PC9wYXRoPjxwYXRoIHN0cm9rZT0iI2ZmZiIgZD0iTSA1LjUgMTQuNSBsIDkuNSA1IGwgOS41IC01IG0gLTE5IDQgbCA5LjUgNSBsIDkuNSAtNSIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampFacebookSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0xNCAyNSB2IC0xMyBRIDEzIDYgMjEgNy41IE0gMTAgMTQgTCAyMCAxNCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampDeliciousSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHN0eWxlPSJmaWxsOiNlZWU7IiAvPg0KPHJlY3QgeD0iMTUiIHk9IjAiIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgc3R5bGU9ImZpbGw6IzMxNzNEMDsiIC8+DQo8cmVjdCB4PSIwIiB5PSIxNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiBzdHlsZT0iZmlsbDojMDAwOyIgLz4NCjxyZWN0IHg9IjE1IiB5PSIxNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiBzdHlsZT0iZmlsbDojQkRCREJEOyIgLz4NCjwvc3ZnPg==) left no-repeat}.theChampDiggSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQ5IDQ5Ij48cGF0aCBkPSJNIDYgMjAgaCAxMCBjIDAgLTE0IC05IC0xNCAtOSAwIG0gNSAwIHYgNyBtIC0xIDAgdiAtNyBtIDQgLTcgaCA0LjUgdiAtNSBoIDggdiA4IGggLTggdiAtMyBtIDggMCBoIDQgdiA1LjUgaCAtMyB2IDEyIGggLTQgdiAtOCBtIDAgOCBoIC02LjUgdiAtMTIgaCAtMiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48ZWxsaXBzZSBjeD0iMTEuNSIgY3k9IjI4LjUiIHJ4PSI0IiByeT0iMiIgc3R5bGU9ImZpbGw6d2hpdGU7Ij48L2VsbGlwc2U+PC9zdmc+) left no-repeat}.theChampEmailSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDQzIDQzIj48cGF0aCBkPSJNIDUuNSAxMSBoIDIzIHYgMSBsIC0xMSA2IGwgLTExIC02IHYgLTEgbSAwIDIgbCAxMSA2IGwgMTEgLTYgdiAxMSBoIC0yMiB2IC0xMSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampFloatitSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSIxMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIzIiBmaWxsPSJub25lIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0gNSAxNSBoIDUgTSAxNSA1IHYgNSBNIDI1IDE1IGggLTUgTSAxNSAyNSB2IC01IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampGoogleSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNIDUxLjIyODc3NjYwNTc1NzA3IDM4LjE5MDgwNzcwMjE5NzA1IEEgMTcgMTcgMCAxIDAgNTYgNTAuMDAwMDAwMDAwMDAwMDEgaCAtMTciIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSA2NSA0OSBoIDE4IG0gLTkgLTkgdiAxOCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjUiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampLinkedinSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij4NCjxjaXJjbGUgY3g9IjEwIiBjeT0iOCIgcj0iMiIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPg0KPHBhdGggZD0iTSAxMCAxMSB2IDExIG0gNSAwIHYgLTExIG0gMCAzIHEgNiAtMyA3IDAgdiA4IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampMoreSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48Y2lyY2xlIGN4PSIxMCIgY3k9IjE1IiByPSIzIiBmaWxsPSJ3aGl0ZSI+PC9jaXJjbGU+PGNpcmNsZSBjeD0iMjAiIGN5PSIxMCIgcj0iMyIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjMiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48cGF0aCBkPSJNIDEwIDE1IEwgMjAgMTAgbSAwIDEwIEwgMTAgMTUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSIjZmZmIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampPinterestSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02LjUgLTUgNDIgNDIiPjxwYXRoIGQ9Ik0gNiAyMCBjIC0zIC00IC0yIC0xMCAzIC0xMy41IGMgNCAtMyAxMSAtMyAxNSAzIGMgMyA1IDIgMTMgLTYgMTUgcSAtNCAxIC02IC0zIGwgLTIgNiBsIC0xLjIgMiBsIC0wLjggLTIgbCAyLjUgLTExIGMgLTIgLTQgMSAtOCA0IC02IHEgMCA1IC0xLjQgOC41IGMgMyA4IDEwIDAgOS41IC00IGMgMCAtOSAtMTEgLTExIC0xNC41IC00IGMgMCAwIC0zIDUgMCA4IGwgLTEgMiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampPrintSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC02IDM4IDM4Ij48cGF0aCBzdHJva2U9IiNmZmYiIGQ9Ik0gNyAxMCBoIDIgdiAzIGggMTIgdiAtMyBoIDIgdiA3IGggLTIgdiAtMyBoIC0xMiB2IDMgaCAtMiB6IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNmZmYiPjwvcGF0aD48cmVjdCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS44IiBoZWlnaHQ9IjciIHdpZHRoPSIxMCIgeD0iMTAiIHk9IjUiIGZpbGw9Im5vbmUiPjwvcmVjdD48cmVjdCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMSIgaGVpZ2h0PSI1IiB3aWR0aD0iOCIgeD0iMTEiIHk9IjE2IiBmaWxsPSIjZmZmIj48L3JlY3Q+PC9zdmc+) left no-repeat}.theChampRedditSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02IC02IDQyIDQyIj48ZWxsaXBzZSBjeD0iMTUiIGN5PSIxOSIgcng9IjkiIHJ5PSI3IiBzdHlsZT0ic3Ryb2tlOndoaXRlO3N0cm9rZS13aWR0aDoyIiBmaWxsPSJub25lIj48L2VsbGlwc2U+PGNpcmNsZSBjeD0iMTEiIGN5PSIxNyIgcj0iMiIgZmlsbD0id2hpdGUiPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjE5IiBjeT0iMTciIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIyMiIgY3k9IjciIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSI3IiBjeT0iMTQiIHI9IjIiIGZpbGw9IndoaXRlIj48L2NpcmNsZT48Y2lyY2xlIGN4PSIyMyIgY3k9IjE0IiByPSIyIiBmaWxsPSJ3aGl0ZSI+PC9jaXJjbGU+PHBhdGggZD0iTSAxMCAyMiBxIDUgMyAxMCAwIE0gMTUgMTIgbCAxIC02IGwgNiAxIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampStumbleuponSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBkPSJNIDYuNiAxNSB2IDEgYyAtMSA3IDYuNSA3IDUuNSAwIHYgLTQgYyAtMSAtNyA2IC03IDYgLTIgdiAyLjUgbSAwIDIuNSB2IDEgYyAtMSA3IDYuNSA3IDUuNSAwIHYgLTEiIHN0cm9rZS13aWR0aD0iMy41IiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampTumblrSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48cGF0aCBkPSJNIDE0IDcgdiAxNCBxIDMgMiA2IDAgTSAxNCA3LjUgcSAwIDUuNSAtNCA1LjUgaCA5IiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2ZmZiIgZmlsbD0ibm9uZSI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampTwitterSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii04IC04IDY0IDY0Ij4NCjxwYXRoIGQ9Ik0gMzggMTkgcSAyIC0xIDQgLTUgcSAtMS41IDIgLTQgMiBxIDEuNSAtMSAzLjUgLTUgcSAtMS41IDIgLTUgMiBjIC01IC01IC0xMyAtMiAtMTIgNiBxIC03IDEgLTE1IC04IHEgLTIgNCAxIDkgcSAtMSAwIC0zIC0xIHEgMCA1IDUgNyBxIC0xIC41IC0zIDAgcSAxIDQgOCA2IHEgLTUgMyAtMTEgMyBjIDE0IDggMzAgMCAzMS41IC0xNCIgc3Ryb2tlLXdpZHRoPSIwLjMiIGZpbGw9IiNmZmYiPjwvcGF0aD4NCjwvc3ZnPg==) left no-repeat}.theChampVkontakteSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj4NCjxwYXRoIGQ9Ik0gMi41IDkgaCA0LjUgbCA1IDcgdiAtNyBoIDQuNSB2IDcgbCA1IC03IGggNSBsIC01IDcgbCA1IDcgaCAtNSBsIC01IC03IHYgNyBoIC00LjUgcSAtMiAwIC01IC02IHoiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0iI2ZmZiI+PC9wYXRoPg0KPC9zdmc+) left no-repeat}.theChampYahooSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii00IC00IDM4IDM4Ij48cGF0aCBkPSJNIDggMTAgbCA3IDcgbCA1IC01IG0gLTQuNyA1IHYgMyBoIC0wLjUgdiAtMyBtIDggLTQgdiA1IG0gMCAxIHYgMSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNmZmYiIGZpbGw9Im5vbmUiPjwvcGF0aD48cGF0aCBkPSJNIDYgMTAgaCA2IG0gNSAyIGggNiBtIC0xMSA5LjUgaCA2IiBzdHJva2Utd2lkdGg9IjEuNCIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJub25lIj48L3BhdGg+PC9zdmc+) left no-repeat}.theChampXingSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii02IC02IDQyIDQyIj4NCjxwYXRoIGQ9Ik0gNiA5IGggNSBsIDQgNCBsIC01IDcgaCAtNSBsIDUgLTcgeiBtIDE1IC00IGggNSBsIC05IDEzIGwgNCA4IGggLTUgbCAtNCAtOCB6IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4=) left no-repeat}.theChampWhatsappSvg{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9Ii01IC01IDQwIDQwIj48cGF0aCBpZD0iYXJjMSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiIGQ9Ik0gMTEuNTc5Nzk4NTY2NzQzMzE0IDI0LjM5NjkyNjIwNzg1OTA4NSBBIDEwIDEwIDAgMSAwIDYuODA4NDc5NTU3MTEwMDc5IDIwLjczNTc2NDM2MzUxMDQ2Ij48L3BhdGg+PHBhdGggZD0iTSA3IDE5IGwgLTEgNiBsIDYgLTEiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIj48L3BhdGg+PHBhdGggZD0iTSAxMCAxMCBxIC0xIDggOCAxMSBjIDUgLTEgMCAtNiAtMSAtMyBxIC00IC0zIC01IC01IGMgNCAtMiAtMSAtNSAtMSAtNCIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampSharing{float:left;border:none}.theChampSharingArrow{background-color:#000!important;height:16px;width:16px;cursor:pointer;margin-top:10px}.theChampPushIn{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDcgNiBxIDIgNiAxMCA2IHYgLTYgbCA2IDkgbCAtNiA5IHYgLTYgcSAtMTAgMiAtMTAgLTEyIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZT0iI2ZmZiIgZmlsbD0id2hpdGUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.theChampPushInPng{background:url(../images/sharing/pushin.png) left no-repeat}.theChampPullOut{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIzIDYgcSAtMiA2IC0xMCA2IHYgLTYgbCAtNiA5IGwgNiA5IHYgLTYgcSAxMCAyIDEwIC0xMiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiNmZmYiIGZpbGw9IndoaXRlIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.theChampPullOutPng{background:url(../images/sharing/pullout.png) left no-repeat}.theChampCommentingTabs li{padding-left:0!important;float:left;margin:0 1em 0 0!important;list-style:none;color:#aaa;display:block;cursor:pointer;font-size:.85em}.theChampCommentingTabs ul{float:left;padding-left:0;margin-left:0}li.theChampSelectedTab{color:#333;border-bottom:2px solid #23a9e1}.fb-comments,.fb-comments span,.fb-comments span iframe[style]{min-width:100%!important;width:100%!important}#mc-input,#user_email,#user_login{height:auto!important}div.the_champ_horizontal_counter li{margin-right:14px!important}div.theChampTotalShareCount{word-wrap:normal!important;font-weight: bolder;font-family: sans-serif;padding: 0;margin: 0;text-align:center}div.theChampTotalShareText{word-wrap:normal!important;margin: 0;padding: 0;text-align: center;}div.the_champ_horizontal_sharing li{width:auto !important}i.theChampWhatsappBackground a{display: inline!important}@media screen and (max-width:783px){#the_champ_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow:none!important}#the_champ_sharing_more_providers .filter input.search{border:1px solid #ccc;width:92%}.the_champ_hide_sharing{display:none}.the_champ_bottom_sharing{width:auto!important;bottom:-10px!important;top:auto!important;}.the_champ_bottom_sharing .theChampSharingArrow{display:none;}.the_champ_bottom_sharing .theChampTCBackground{margin-right: 1.1em !important}.the_champ_bottom_sharing .the_champ_square_count{display: block;line-height: inherit;}}
|
inc/social_sharing.php
CHANGED
@@ -1,774 +1,774 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die("Cheating........Uh!!");
|
3 |
-
/**
|
4 |
-
* File contains the functions necessary for Social Sharing functionality
|
5 |
-
*/
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Render sharing interface html.
|
9 |
-
*/
|
10 |
-
function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $displayCount, $totalShares){
|
11 |
-
global $theChampSharingOptions, $post;
|
12 |
-
if($sharingType == 'vertical' && (is_front_page() || is_home())){
|
13 |
-
$postTitle = wp_title('', false);
|
14 |
-
if($postTitle == ''){
|
15 |
-
$postTitle = get_bloginfo('name') . " - " . get_bloginfo('description');
|
16 |
-
}
|
17 |
-
}else{
|
18 |
-
$postTitle = $post->post_title;
|
19 |
-
}
|
20 |
-
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
21 |
-
$postTitle = urlencode($postTitle);
|
22 |
-
$postTitle = str_replace('#', '%23', $postTitle);
|
23 |
-
$postTitle = esc_html($postTitle);
|
24 |
-
$postUrl = (isset($theChampSharingOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $postUrl;
|
25 |
-
if(!isset($theChampSharingOptions['horizontal_sharing_size'])){
|
26 |
-
$theChampSharingOptions['horizontal_sharing_size'] = 30;
|
27 |
-
}
|
28 |
-
if(!isset($theChampSharingOptions['horizontal_sharing_shape'])){
|
29 |
-
$theChampSharingOptions['horizontal_sharing_shape'] = 'round';
|
30 |
-
}
|
31 |
-
if(!isset($theChampSharingOptions['vertical_sharing_size'])){
|
32 |
-
$theChampSharingOptions['vertical_sharing_size'] = 35;
|
33 |
-
}
|
34 |
-
if(!isset($theChampSharingOptions['vertical_sharing_shape'])){
|
35 |
-
$theChampSharingOptions['vertical_sharing_shape'] = 'square';
|
36 |
-
}
|
37 |
-
$output = apply_filters('the_champ_sharing_interface_filter', '', $postUrl, $sharingType, $theChampSharingOptions, $post, $displayCount, $totalShares);
|
38 |
-
if($output != ''){
|
39 |
-
return $output;
|
40 |
-
}
|
41 |
-
$html = '';
|
42 |
-
$sharingMeta = '';
|
43 |
-
if(!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))){
|
44 |
-
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
45 |
-
}
|
46 |
-
if(isset($theChampSharingOptions[$sharingType.'_re_providers'])){
|
47 |
-
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
48 |
-
$style = 'style="width:' . $theChampSharingOptions[$sharingType . '_sharing_size'] . 'px;height:' . $theChampSharingOptions[$sharingType . '_sharing_size'] . 'px;';
|
49 |
-
$counterContainerInitHtml = '<span class="the_champ_share_count';
|
50 |
-
$counterContainerEndHtml = '</span>';
|
51 |
-
$innerStyle = 'display:block;';
|
52 |
-
$liClass = 'theChampSharingRound';
|
53 |
-
if($theChampSharingOptions[$sharingType . '_sharing_shape'] == 'round'){
|
54 |
-
$style .= 'border-radius:999px;';
|
55 |
-
$innerStyle .= 'border-radius:999px;';
|
56 |
-
}
|
57 |
-
if($sharingType == 'vertical' && $theChampSharingOptions[$sharingType . '_sharing_shape'] == 'square'){
|
58 |
-
$style .= 'margin:0;';
|
59 |
-
$counterContainerInitHtml = '<ss class="the_champ_square_count';
|
60 |
-
$counterContainerEndHtml = '</ss>';
|
61 |
-
$liClass = '';
|
62 |
-
}
|
63 |
-
$style .= '"';
|
64 |
-
$liItems = '';
|
65 |
-
foreach($theChampSharingOptions[$sharingType.'_re_providers'] as $provider){
|
66 |
-
$liItems .= '<li class="' . ($liClass != '' ? $liClass : 'theChamp' . ucfirst(str_replace(' ', '', $provider)) .'Background theChamp' . ucfirst(str_replace(' ', '', $provider)) .'SquareBackground') . '">';
|
67 |
-
if($displayCount){
|
68 |
-
$startingCount = isset($sharingMeta[$provider . '_' . $sharingType . '_count']) && $sharingMeta[$provider . '_' . $sharingType . '_count'] != '' ? true : false;
|
69 |
-
$liItems .= $counterContainerInitHtml . ' the_champ_'.$provider.'_count" '. ($startingCount ? 'ss_st_count="'. $sharingMeta[$provider . '_' . $sharingType . '_count'] .'"' : '') .' > ' . $counterContainerEndHtml;
|
70 |
-
}
|
71 |
-
if($provider == 'print'){
|
72 |
-
$liItems .= '<i ' .$style. ' alt="Print" Title="Print" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick=\'window.print()\'><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
73 |
-
}elseif($provider == 'email'){
|
74 |
-
$liItems .= '<i ' .$style. ' alt="Email" Title="Email" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\''. $postTitle .'\') + \'&body=\' + decodeURIComponent(\''.$postUrl.'\')"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
75 |
-
}else{
|
76 |
-
if($provider == 'facebook'){
|
77 |
-
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
78 |
-
}elseif($provider == 'twitter'){
|
79 |
-
$sharingUrl = 'http://twitter.com/intent/tweet?'. (isset($theChampSharingOptions['twitter_username']) && $theChampSharingOptions['twitter_username'] != '' ? 'via=' . $theChampSharingOptions['twitter_username'] . '&' : '') . 'text=' . $postTitle .'&url=' . $postUrl;
|
80 |
-
}elseif($provider == 'linkedin'){
|
81 |
-
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl . '&title=' . $postTitle;
|
82 |
-
}elseif($provider == 'google'){
|
83 |
-
$sharingUrl = 'https://plus.google.com/share?url=' . $postUrl;
|
84 |
-
}elseif($provider == 'yahoo'){
|
85 |
-
$sharingUrl = 'http://bookmarks.yahoo.com/toolbar/SaveBM/?u=' . $postUrl . '&t=' . $postTitle;
|
86 |
-
}elseif($provider == 'reddit'){
|
87 |
-
$sharingUrl = 'http://reddit.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
88 |
-
}elseif($provider == 'digg'){
|
89 |
-
$sharingUrl = 'http://digg.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
90 |
-
}elseif($provider == 'delicious'){
|
91 |
-
$sharingUrl = 'http://del.icio.us/post?url='.$postUrl.'&title=' . $postTitle;
|
92 |
-
}elseif($provider == 'stumbleupon'){
|
93 |
-
$sharingUrl = 'http://www.stumbleupon.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
94 |
-
}elseif($provider == 'float it'){
|
95 |
-
$sharingUrl = 'http://www.designfloat.com/submit.php?url='.$postUrl.'&title=' . $postTitle;
|
96 |
-
}elseif($provider == 'tumblr'){
|
97 |
-
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' . $postTitle . '&s=';
|
98 |
-
}elseif($provider == 'vkontakte'){
|
99 |
-
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
100 |
-
}elseif($provider == 'xing'){
|
101 |
-
$sharingUrl = 'https://www.xing-share.com/social_plugins/share?url='. urlencode($postUrl) .'&wtmc=XING&sc_p=xing-share';
|
102 |
-
}elseif($provider == 'whatsapp'){
|
103 |
-
$sharingUrl = 'whatsapp://send?text='
|
104 |
-
}elseif($provider == 'yummly'){
|
105 |
-
$sharingUrl = 'http://www.yummly.com/urb/verify?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
106 |
-
}elseif($provider == 'buffer'){
|
107 |
-
$sharingUrl = 'https://buffer.com/add?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
108 |
-
}elseif($provider == 'pinterest'){
|
109 |
-
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
110 |
-
}
|
111 |
-
$liItems .= '<i ' .$style. ' alt="'.($provider == 'google' ? 'Google Plus' : ucfirst($provider)).'" Title="'.($provider == 'google' ? 'Google Plus' : ucfirst($provider)).'" class="theChampSharing theChamp'. ucfirst( str_replace(' ', '', $provider) ) .'Background" ';
|
112 |
-
if($provider == 'pinterest'){
|
113 |
-
$liItems .= 'onclick="'.$sharingUrl.'"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
114 |
-
}elseif($provider == 'whatsapp'){
|
115 |
-
$liItems .= '><a href="'.$sharingUrl.'"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></a></i>';
|
116 |
-
}else{
|
117 |
-
$liItems .= 'onclick=\' theChampPopup("'.$sharingUrl.'")\'><ss style="'. $innerStyle .'" class="theChampSharingSvg theChamp'. ucfirst( str_replace(' ', '', $provider) ) .'Svg"></ss></i>';
|
118 |
-
}
|
119 |
-
}
|
120 |
-
$liItems .= '</li>';
|
121 |
-
}
|
122 |
-
if(isset($theChampSharingOptions[$sharingType . '_more'])){
|
123 |
-
$liItems .= '<li class="' . ($liClass != '' ? $liClass : 'theChampMoreBackground') . '">';
|
124 |
-
if($displayCount){
|
125 |
-
$liItems .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
126 |
-
}
|
127 |
-
$liItems .= '<i ' .$style. ' title="More" alt="More" class="theChampSharing theChampMoreBackground" onclick="theChampMoreSharingPopup(this, \''.$postUrl.'\', \''.$postTitle.'\')" ><ss style="display:block" class="theChampSharingSvg theChampMoreSvg"></ss></i></li>';
|
128 |
-
}
|
129 |
-
|
130 |
-
$totalSharesHtml = '';
|
131 |
-
if($totalShares){
|
132 |
-
$totalSharesHtml = '<li class="' . $liClass . '">';
|
133 |
-
if($displayCount){
|
134 |
-
$totalSharesHtml .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
135 |
-
}
|
136 |
-
if($sharingType == 'horizontal'){
|
137 |
-
$addStyle = ';margin-left:9px !important;';
|
138 |
-
}else{
|
139 |
-
$addStyle = ';margin-bottom:9px !important;';
|
140 |
-
}
|
141 |
-
$addStyle .= '"';
|
142 |
-
$style = str_replace(';"', $addStyle, $style);
|
143 |
-
$totalSharesHtml .= '<i ' . $style . ' title="Total Shares" alt="Total Shares" class="theChampSharing theChampTCBackground"></i></li>';
|
144 |
-
}
|
145 |
-
|
146 |
-
if($sharingType == 'vertical'){
|
147 |
-
$html .= $totalSharesHtml . $liItems;
|
148 |
-
}else{
|
149 |
-
$html .= $liItems . $totalSharesHtml;
|
150 |
-
}
|
151 |
-
|
152 |
-
$html .= '</ul><div style="clear:both"></div>';
|
153 |
-
}
|
154 |
-
return $html;
|
155 |
-
}
|
156 |
-
|
157 |
-
/**
|
158 |
-
* Render counter interface html.
|
159 |
-
*/
|
160 |
-
function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $shortUrl){
|
161 |
-
global $theChampCounterOptions, $post;
|
162 |
-
if($sharingType == 'vertical' && (is_front_page() || is_home())){
|
163 |
-
$postTitle = wp_title('', false);
|
164 |
-
if($postTitle == ''){
|
165 |
-
$postTitle = get_bloginfo('name') . " - " . get_bloginfo('description');
|
166 |
-
}
|
167 |
-
}else{
|
168 |
-
$postTitle = $post->post_title;
|
169 |
-
}
|
170 |
-
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
171 |
-
$postTitle = urlencode($postTitle);
|
172 |
-
$postTitle = str_replace('#', '%23', $postTitle);
|
173 |
-
$postTitle = esc_html($postTitle);
|
174 |
-
$shortUrl = (isset($theChampCounterOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $shortUrl;
|
175 |
-
$output = apply_filters('the_champ_counter_interface_filter', '', $postUrl, $shortUrl, $sharingType, $theChampCounterOptions, $post);
|
176 |
-
if($output != ''){
|
177 |
-
return $output;
|
178 |
-
}
|
179 |
-
$html = '<div id="fb-root"></div>';
|
180 |
-
if(isset($theChampCounterOptions[$sharingType.'_providers']) && is_array($theChampCounterOptions[$sharingType.'_providers'])){
|
181 |
-
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
182 |
-
$language = isset($theChampCounterOptions['language']) && $theChampCounterOptions['language'] != '' ? $theChampCounterOptions['language'] : '';
|
183 |
-
foreach($theChampCounterOptions[$sharingType.'_providers'] as $provider){
|
184 |
-
if($provider == 'facebook_like'){
|
185 |
-
$html .= '<li class="the_champ_facebook_like"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div></li>';
|
186 |
-
}elseif($provider == 'facebook_recommend'){
|
187 |
-
$html .= '<li class="the_champ_facebook_recommend"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="recommend" data-show-faces="false" data-share="false"></div></li>';
|
188 |
-
}elseif($provider == 'twitter_tweet'){
|
189 |
-
$html .= '<li class="the_champ_twitter_tweet" heateor-ss-data-href="'. $postUrl .'"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-counturl="'. $postUrl .'" data-text="'. $postTitle .'" data-via="'. (isset($theChampCounterOptions['twitter_username']) && $theChampCounterOptions['twitter_username'] != '' ? $theChampCounterOptions['twitter_username'] : '') .'" data-lang="'. $language .'" >Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "twitter-wjs");</script></li>';
|
190 |
-
}elseif($provider == 'linkedin_share'){
|
191 |
-
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang: '. $language .'</script><script type="IN/Share" data-url="' . $postUrl . '" data-counter="right"></script></li>';
|
192 |
-
}elseif($provider == 'google_plusone'){
|
193 |
-
$html .= '<li class="the_champ_google_plusone"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plusone" data-size="medium" data-href="'. $postUrl .'" data-callback="heateorSsmiGpCallback"></div></li>';
|
194 |
-
}elseif($provider == 'pinterest_pin_it'){
|
195 |
-
$html .= '<li class="the_champ_pinterest_pin"><a data-pin-lang="'. $language .'" href="//www.pinterest.com/pin/create/button/?url='. $postUrl .'" data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a><script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script></li>';
|
196 |
-
}elseif($provider == 'googleplus_share'){
|
197 |
-
$html .= '<li class="the_champ_gp_share"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plus" data-action="share" data-annotation="bubble" data-href="'. $postUrl .'"></div></li>';
|
198 |
-
}elseif($provider == 'reddit'){
|
199 |
-
$html .= '<li class="the_champ_reddit"><script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script></li>';
|
200 |
-
}elseif($provider == 'yummly'){
|
201 |
-
$html .= '<li class="the_champ_yummly"><a href="//yummly.com" class="YUMMLY-YUM-BUTTON">Yum</a><script src="https://www.yummly.com/js/widget.js?general"></script></li>';
|
202 |
-
}elseif($provider == 'buffer'){
|
203 |
-
$html .= '<li class="the_champ_buffer"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="' . $postTitle . '" data-url="' . $postUrl . '" data-count="horizontal" data-via="'. (isset($theChampCounterOptions['buffer_username']) && $theChampCounterOptions['buffer_username'] != '' ? $theChampCounterOptions['buffer_username'] : '') .'" ></a><script type="text/javascript" src="https://d389zggrogs7qo.cloudfront.net/js/button.js"></script></li>';
|
204 |
-
}elseif($provider == 'xing'){
|
205 |
-
$html .= '<li class="the_champ_xing"><div data-type="XING/Share" data-counter="right" data-url="'. $postUrl .'" data-lang="'. $language .'"></div><script>(function (d, s) {var x = d.createElement(s), s = d.getElementsByTagName(s)[0]; x.src = "https://www.xing-share.com/js/external/share.js"; s.parentNode.insertBefore(x, s); })(document, "script");</script></li>';
|
206 |
-
}elseif($provider == 'stumbleupon_badge'){
|
207 |
-
$html .= '<li class="the_champ_stumble"><su:badge layout="1" location="'. $postUrl .'"></su:badge><script type="text/javascript">(function() {var li = document.createElement(\'script\'); li.type = \'text/javascript\'; li.async = true;li.src = (\'https:\' == document.location.protocol ? \'https:\' : \'http:\') + \'//platform.stumbleupon.com/1/widgets.js\';var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(li, s);})();</script></li>';
|
208 |
-
}
|
209 |
-
}
|
210 |
-
$html .= '</ul><div style="clear:both"></div>';
|
211 |
-
}
|
212 |
-
return $html;
|
213 |
-
}
|
214 |
-
|
215 |
-
function the_champ_generate_sharing_bitly_url($url, $postId = 0){
|
216 |
-
global $theChampSharingOptions;
|
217 |
-
$bitlyUrl = get_post_meta($postId, '_the_champ_ss_bitly_url', true);
|
218 |
-
if($bitlyUrl){
|
219 |
-
return $bitlyUrl;
|
220 |
-
}else{
|
221 |
-
//generate the URL
|
222 |
-
$bitly = 'http://api.bit.ly/v3/shorten?format=txt&login='. $theChampSharingOptions['bitly_username'] .'&apiKey='. $theChampSharingOptions['bitly_key'] .'&longUrl='.urlencode($url);
|
223 |
-
$response = wp_remote_get( $bitly, array( 'timeout' => 15 ) );
|
224 |
-
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
225 |
-
$shortUrl = trim(wp_remote_retrieve_body( $response ));
|
226 |
-
update_post_meta($postId, '_the_champ_ss_bitly_url', $shortUrl);
|
227 |
-
return $shortUrl;
|
228 |
-
}
|
229 |
-
}
|
230 |
-
return false;
|
231 |
-
}
|
232 |
-
|
233 |
-
function the_champ_generate_counter_bitly_url($url, $postId = 0){
|
234 |
-
global $theChampCounterOptions;
|
235 |
-
$bitlyUrl = get_post_meta($postId, '_the_champ_ss_bitly_url', true);
|
236 |
-
if($bitlyUrl){
|
237 |
-
return $bitlyUrl;
|
238 |
-
}else{
|
239 |
-
//generate the URL
|
240 |
-
$bitly = 'http://api.bit.ly/v3/shorten?format=txt&login='. $theChampCounterOptions['bitly_username'] .'&apiKey='. $theChampCounterOptions['bitly_key'] .'&longUrl='.urlencode($url);
|
241 |
-
$response = wp_remote_get( $bitly, array( 'timeout' => 15 ) );
|
242 |
-
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
243 |
-
$shortUrl = trim(wp_remote_retrieve_body( $response ));
|
244 |
-
update_post_meta($postId, '_the_champ_ss_bitly_url', $shortUrl);
|
245 |
-
return $shortUrl;
|
246 |
-
}
|
247 |
-
}
|
248 |
-
return false;
|
249 |
-
}
|
250 |
-
|
251 |
-
$theChampVerticalHomeCount = 0;
|
252 |
-
$theChampVerticalExcerptCount = 0;
|
253 |
-
$theChampVerticalCounterHomeCount = 0;
|
254 |
-
$theChampVerticalCounterExcerptCount = 0;
|
255 |
-
/**
|
256 |
-
* Enable sharing interface at selected areas.
|
257 |
-
*/
|
258 |
-
function the_champ_render_sharing($content){
|
259 |
-
global $post;
|
260 |
-
// hook to bypass sharing
|
261 |
-
$disable = apply_filters('the_champ_bypass_sharing', $post, $content);
|
262 |
-
// if $disable value is 1, return content without sharing interface
|
263 |
-
if($disable === 1){ return $content; }
|
264 |
-
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
265 |
-
global $theChampSharingOptions, $theChampCounterOptions;
|
266 |
-
|
267 |
-
$sharingBpActivity = false;
|
268 |
-
$counterBpActivity = false;
|
269 |
-
if(current_filter() == 'bp_activity_entry_meta'){
|
270 |
-
if(isset($theChampSharingOptions['bp_activity'])){
|
271 |
-
$sharingBpActivity = true;
|
272 |
-
}
|
273 |
-
if(isset($theChampCounterOptions['bp_activity'])){
|
274 |
-
$counterBpActivity = true;
|
275 |
-
}
|
276 |
-
}
|
277 |
-
|
278 |
-
$post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
|
279 |
-
$post_types = array_diff( $post_types, array( 'post', 'page' ) );
|
280 |
-
|
281 |
-
if(isset($theChampCounterOptions['enable'])){
|
282 |
-
//counter interface
|
283 |
-
if(isset($theChampCounterOptions['hor_enable']) && !(isset($sharingMeta['counter']) && $sharingMeta['counter'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
284 |
-
$postId = $post -> ID;
|
285 |
-
if($counterBpActivity){
|
286 |
-
$counterPostUrl = bp_get_activity_thread_permalink();
|
287 |
-
}elseif(isset($theChampCounterOptions['horizontal_target_url'])){
|
288 |
-
if($theChampCounterOptions['horizontal_target_url'] == 'default'){
|
289 |
-
$counterPostUrl = get_permalink($post->ID);
|
290 |
-
if($counterPostUrl == ''){
|
291 |
-
$counterPostUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
292 |
-
}
|
293 |
-
}elseif($theChampCounterOptions['horizontal_target_url'] == 'home'){
|
294 |
-
$counterPostUrl = site_url();
|
295 |
-
$postId = 0;
|
296 |
-
}elseif($theChampCounterOptions['horizontal_target_url'] == 'custom'){
|
297 |
-
$counterPostUrl = isset($theChampCounterOptions['horizontal_target_url_custom']) ? trim($theChampCounterOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
298 |
-
$postId = 0;
|
299 |
-
}
|
300 |
-
}else{
|
301 |
-
$counterPostUrl = get_permalink($post->ID);
|
302 |
-
}
|
303 |
-
|
304 |
-
$counterUrl = $counterPostUrl;
|
305 |
-
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
306 |
-
$counterUrl = wp_get_shortlink();
|
307 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
308 |
-
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
309 |
-
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, $postId);
|
310 |
-
if($shortUrl){
|
311 |
-
$counterUrl = $shortUrl;
|
312 |
-
}
|
313 |
-
}
|
314 |
-
|
315 |
-
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'horizontal', $counterUrl);
|
316 |
-
$sharingContainerStyle = '';
|
317 |
-
$sharingTitleStyle = 'style="font-weight:bold"';
|
318 |
-
if(isset($theChampCounterOptions['hor_counter_alignment'])){
|
319 |
-
if($theChampCounterOptions['hor_counter_alignment'] == 'right'){
|
320 |
-
$sharingContainerStyle = 'style="float: right"';
|
321 |
-
}elseif($theChampCounterOptions['hor_counter_alignment'] == 'center'){
|
322 |
-
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
323 |
-
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
324 |
-
}
|
325 |
-
}
|
326 |
-
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_counter_container the_champ_horizontal_counter'><div ". $sharingTitleStyle .">".ucfirst($theChampCounterOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
327 |
-
if($counterBpActivity){
|
328 |
-
echo $horizontalDiv;
|
329 |
-
}
|
330 |
-
// show horizontal counter
|
331 |
-
if((isset( $theChampCounterOptions['home']) && is_front_page()) || (isset( $theChampCounterOptions['category']) && is_category()) || (isset( $theChampCounterOptions['archive']) && is_archive()) || ( isset( $theChampCounterOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampCounterOptions['bb_forum'] ) && (isset( $theChampCounterOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampCounterOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampCounterOptions['bb_topic'] ) && (isset( $theChampCounterOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampCounterOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) )) || (isset( $theChampCounterOptions['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item') || (isset( $theChampCounterOptions['woocom_product'] ) && current_filter() == 'woocommerce_share') || (isset( $theChampCounterOptions['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou') || (current_filter() == 'bp_before_group_header' && isset($theChampCounterOptions['bp_group'])) ) {
|
332 |
-
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum','woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header') ) ){
|
333 |
-
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
334 |
-
}else{
|
335 |
-
if(isset($theChampCounterOptions['top'] ) && isset($theChampCounterOptions['bottom'])){
|
336 |
-
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
337 |
-
}else{
|
338 |
-
if(isset($theChampCounterOptions['top'])){
|
339 |
-
$content = $horizontalDiv.$content;
|
340 |
-
}elseif(isset($theChampCounterOptions['bottom'])){
|
341 |
-
$content = $content.$horizontalDiv;
|
342 |
-
}
|
343 |
-
}
|
344 |
-
}
|
345 |
-
} elseif( count( $post_types ) ) {
|
346 |
-
foreach ( $post_types as $post_type ) {
|
347 |
-
if( isset( $theChampCounterOptions[$post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
348 |
-
if(isset($theChampCounterOptions['top'] ) && isset($theChampCounterOptions['bottom'])){
|
349 |
-
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
350 |
-
}else{
|
351 |
-
if(isset($theChampCounterOptions['top'])){
|
352 |
-
$content = $horizontalDiv.$content;
|
353 |
-
}elseif(isset($theChampCounterOptions['bottom'])){
|
354 |
-
$content = $content.$horizontalDiv;
|
355 |
-
}
|
356 |
-
}
|
357 |
-
}
|
358 |
-
}
|
359 |
-
}
|
360 |
-
}
|
361 |
-
if(isset($theChampCounterOptions['vertical_enable']) && !(isset($sharingMeta['vertical_counter']) && $sharingMeta['vertical_counter'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
362 |
-
$postId = $post -> ID;
|
363 |
-
if(isset($theChampCounterOptions['vertical_target_url'])){
|
364 |
-
if($theChampCounterOptions['vertical_target_url'] == 'default'){
|
365 |
-
$counterPostUrl = get_permalink($post->ID);
|
366 |
-
if($counterPostUrl == ''){
|
367 |
-
$counterPostUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
368 |
-
}
|
369 |
-
}elseif($theChampCounterOptions['vertical_target_url'] == 'home'){
|
370 |
-
$counterPostUrl = site_url();
|
371 |
-
$postId = 0;
|
372 |
-
}elseif($theChampCounterOptions['vertical_target_url'] == 'custom'){
|
373 |
-
$counterPostUrl = isset($theChampCounterOptions['vertical_target_url_custom']) ? trim($theChampCounterOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
374 |
-
$postId = 0;
|
375 |
-
}
|
376 |
-
}else{
|
377 |
-
$counterPostUrl = get_permalink($post->ID);
|
378 |
-
}
|
379 |
-
|
380 |
-
$counterUrl = $counterPostUrl;
|
381 |
-
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
382 |
-
$counterUrl = wp_get_shortlink();
|
383 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
384 |
-
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
385 |
-
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, $postId);
|
386 |
-
if($shortUrl){
|
387 |
-
$counterUrl = $shortUrl;
|
388 |
-
}
|
389 |
-
}
|
390 |
-
|
391 |
-
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
392 |
-
$offset = (isset($theChampCounterOptions['alignment']) && $theChampCounterOptions['alignment'] != '' && isset($theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset']) ? $theChampCounterOptions['alignment'].': '. ( $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] == '' ? 0 : $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] ) .'px;' : '').(isset($theChampCounterOptions['top_offset']) ? 'top: '. ( $theChampCounterOptions['top_offset'] == '' ? 0 : $theChampCounterOptions['top_offset'] ) .'px;' : '');
|
393 |
-
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter" . ( isset( $theChampCounterOptions['hide_mobile_likeb'] ) ? ' the_champ_hide_sharing' : '' ) . "' style='". $offset . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
394 |
-
// show vertical counter
|
395 |
-
if((isset( $theChampCounterOptions['vertical_home']) && is_front_page()) || (isset( $theChampCounterOptions['vertical_category']) && is_category()) || (isset( $theChampCounterOptions['vertical_archive']) && is_archive()) || ( isset( $theChampCounterOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampCounterOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic'))) || (current_filter() == 'bp_before_group_header' && isset($theChampCounterOptions['vertical_bp_group'])) ){
|
396 |
-
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header') ) ){
|
397 |
-
echo $verticalDiv;
|
398 |
-
}else{
|
399 |
-
if(is_front_page()){
|
400 |
-
global $theChampVerticalCounterHomeCount, $theChampVerticalCounterExcerptCount;
|
401 |
-
if(current_filter() == 'the_content'){
|
402 |
-
$var = 'theChampVerticalCounterHomeCount';
|
403 |
-
}elseif(current_filter() == 'get_the_excerpt'){
|
404 |
-
$var = 'theChampVerticalCounterExcerptCount';
|
405 |
-
}
|
406 |
-
if($$var == 0){
|
407 |
-
if(isset($theChampCounterOptions['vertical_target_url']) && $theChampCounterOptions['vertical_target_url'] == 'default'){
|
408 |
-
$counterPostUrl = site_url();
|
409 |
-
$counterUrl = $counterPostUrl;
|
410 |
-
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
411 |
-
$counterUrl = wp_get_shortlink();
|
412 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
413 |
-
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
414 |
-
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, 0);
|
415 |
-
if($shortUrl){
|
416 |
-
$counterUrl = $shortUrl;
|
417 |
-
}
|
418 |
-
}
|
419 |
-
|
420 |
-
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
421 |
-
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter" . ( isset( $theChampCounterOptions['hide_mobile_likeb'] ) ? ' the_champ_hide_sharing' : '' ) . "' style='". $offset . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
422 |
-
}
|
423 |
-
$content = $content.$verticalDiv;
|
424 |
-
$$var++;
|
425 |
-
}
|
426 |
-
}else{
|
427 |
-
$content = $content.$verticalDiv;
|
428 |
-
}
|
429 |
-
}
|
430 |
-
} elseif( count( $post_types ) ) {
|
431 |
-
foreach ( $post_types as $post_type ) {
|
432 |
-
if( isset( $theChampCounterOptions['vertical_' . $post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
433 |
-
$content = $content . $verticalDiv;
|
434 |
-
}
|
435 |
-
}
|
436 |
-
}
|
437 |
-
}
|
438 |
-
}
|
439 |
-
|
440 |
-
if(isset($theChampSharingOptions['enable'])){
|
441 |
-
// sharing interface
|
442 |
-
if(isset($theChampSharingOptions['hor_enable']) && !(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
443 |
-
$postId = $post -> ID;
|
444 |
-
if($sharingBpActivity){
|
445 |
-
$postUrl = bp_get_activity_thread_permalink();
|
446 |
-
$postId = 0;
|
447 |
-
}elseif(isset($theChampSharingOptions['horizontal_target_url'])){
|
448 |
-
if($theChampSharingOptions['horizontal_target_url'] == 'default'){
|
449 |
-
$postUrl = get_permalink($post->ID);
|
450 |
-
if($postUrl == ''){
|
451 |
-
$postUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
452 |
-
}
|
453 |
-
}elseif($theChampSharingOptions['horizontal_target_url'] == 'home'){
|
454 |
-
$postUrl = site_url();
|
455 |
-
$postId = 0;
|
456 |
-
}elseif($theChampSharingOptions['horizontal_target_url'] == 'custom'){
|
457 |
-
$postUrl = isset($theChampSharingOptions['horizontal_target_url_custom']) ? trim($theChampSharingOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
458 |
-
$postId = 0;
|
459 |
-
}
|
460 |
-
}else{
|
461 |
-
$postUrl = get_permalink($post->ID);
|
462 |
-
}
|
463 |
-
|
464 |
-
$sharingUrl = $postUrl;
|
465 |
-
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
466 |
-
$sharingUrl = wp_get_shortlink();
|
467 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
468 |
-
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
469 |
-
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, $postId);
|
470 |
-
if($shortUrl){
|
471 |
-
$sharingUrl = $shortUrl;
|
472 |
-
}
|
473 |
-
}
|
474 |
-
|
475 |
-
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'horizontal', isset($theChampSharingOptions['horizontal_counts']), isset($theChampSharingOptions['horizontal_total_shares']));
|
476 |
-
$sharingContainerStyle = '';
|
477 |
-
$sharingTitleStyle = 'style="font-weight:bold"';
|
478 |
-
if(isset($theChampSharingOptions['hor_sharing_alignment'])){
|
479 |
-
if($theChampSharingOptions['hor_sharing_alignment'] == 'right'){
|
480 |
-
$sharingContainerStyle = 'style="float: right"';
|
481 |
-
}elseif($theChampSharingOptions['hor_sharing_alignment'] == 'center'){
|
482 |
-
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
483 |
-
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
484 |
-
}
|
485 |
-
}
|
486 |
-
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".$postUrl."'><div ". $sharingTitleStyle ." >".ucfirst($theChampSharingOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
487 |
-
if($sharingBpActivity){
|
488 |
-
echo $horizontalDiv;
|
489 |
-
}
|
490 |
-
// show horizontal sharing
|
491 |
-
if((isset( $theChampSharingOptions['home']) && is_front_page()) || (isset( $theChampSharingOptions['category']) && is_category()) || (isset( $theChampSharingOptions['archive']) && is_archive()) || ( isset( $theChampSharingOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampSharingOptions['bb_forum'] ) && (isset( $theChampSharingOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampSharingOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampSharingOptions['bb_topic'] ) && (isset( $theChampSharingOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampSharingOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) )) || (isset( $theChampSharingOptions['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item') || (isset( $theChampSharingOptions['woocom_product'] ) && current_filter() == 'woocommerce_share') || (isset( $theChampSharingOptions['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou') || (current_filter() == 'bp_before_group_header' && isset($theChampSharingOptions['bp_group'])) ) {
|
492 |
-
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum', 'woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header') ) ){
|
493 |
-
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
494 |
-
}else{
|
495 |
-
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
496 |
-
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
497 |
-
}else{
|
498 |
-
if(isset($theChampSharingOptions['top'])){
|
499 |
-
$content = $horizontalDiv.$content;
|
500 |
-
}elseif(isset($theChampSharingOptions['bottom'])){
|
501 |
-
$content = $content.$horizontalDiv;
|
502 |
-
}
|
503 |
-
}
|
504 |
-
}
|
505 |
-
} elseif( count( $post_types ) ) {
|
506 |
-
foreach ( $post_types as $post_type ) {
|
507 |
-
if( isset( $theChampSharingOptions[$post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
508 |
-
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
509 |
-
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
510 |
-
}else{
|
511 |
-
if(isset($theChampSharingOptions['top'])){
|
512 |
-
$content = $horizontalDiv.$content;
|
513 |
-
}elseif(isset($theChampSharingOptions['bottom'])){
|
514 |
-
$content = $content.$horizontalDiv;
|
515 |
-
}
|
516 |
-
}
|
517 |
-
}
|
518 |
-
}
|
519 |
-
}
|
520 |
-
}
|
521 |
-
if(isset($theChampSharingOptions['vertical_enable']) && !(isset($sharingMeta['vertical_sharing']) && $sharingMeta['vertical_sharing'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
522 |
-
$postId = $post -> ID;
|
523 |
-
if(isset($theChampSharingOptions['vertical_target_url'])){
|
524 |
-
if($theChampSharingOptions['vertical_target_url'] == 'default'){
|
525 |
-
$postUrl = get_permalink($post->ID);
|
526 |
-
if($postUrl == ''){
|
527 |
-
$postUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
528 |
-
}
|
529 |
-
}elseif($theChampSharingOptions['vertical_target_url'] == 'home'){
|
530 |
-
$postUrl = site_url();
|
531 |
-
$postId = 0;
|
532 |
-
}elseif($theChampSharingOptions['vertical_target_url'] == 'custom'){
|
533 |
-
$postUrl = isset($theChampSharingOptions['vertical_target_url_custom']) ? trim($theChampSharingOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
534 |
-
$postId = 0;
|
535 |
-
}
|
536 |
-
}else{
|
537 |
-
$postUrl = get_permalink($post->ID);
|
538 |
-
}
|
539 |
-
|
540 |
-
$sharingUrl = $postUrl;
|
541 |
-
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
542 |
-
$sharingUrl = wp_get_shortlink();
|
543 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
544 |
-
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
545 |
-
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, $postId);
|
546 |
-
if($shortUrl){
|
547 |
-
$sharingUrl = $shortUrl;
|
548 |
-
}
|
549 |
-
}
|
550 |
-
|
551 |
-
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']), isset($theChampSharingOptions['vertical_total_shares']));
|
552 |
-
$offset = (isset($theChampSharingOptions['alignment']) && $theChampSharingOptions['alignment'] != '' && isset($theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset']) && $theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'] != '' ? $theChampSharingOptions['alignment'].': '.$theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'].'px;' : '').(isset($theChampSharingOptions['top_offset']) && $theChampSharingOptions['top_offset'] != '' ? 'top: '.$theChampSharingOptions['top_offset'].'px;' : '');
|
553 |
-
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . "' style='width:" . ($theChampSharingOptions['vertical_sharing_size'] + 4) . "px;" . $offset . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
554 |
-
// show vertical sharing
|
555 |
-
if((isset( $theChampSharingOptions['vertical_home']) && is_front_page()) || (isset( $theChampSharingOptions['vertical_category']) && is_category()) || (isset( $theChampSharingOptions['vertical_archive']) && is_archive()) || ( isset( $theChampSharingOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampSharingOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic'))) || (current_filter() == 'bp_before_group_header' && isset($theChampSharingOptions['vertical_bp_group']))) {
|
556 |
-
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header') ) ){
|
557 |
-
echo $verticalDiv;
|
558 |
-
}else{
|
559 |
-
if(is_front_page()){
|
560 |
-
global $theChampVerticalHomeCount, $theChampVerticalExcerptCount;
|
561 |
-
if(current_filter() == 'the_content'){
|
562 |
-
$var = 'theChampVerticalHomeCount';
|
563 |
-
}elseif(current_filter() == 'get_the_excerpt'){
|
564 |
-
$var = 'theChampVerticalExcerptCount';
|
565 |
-
}
|
566 |
-
if($$var == 0){
|
567 |
-
if(isset($theChampSharingOptions['vertical_target_url']) && $theChampSharingOptions['vertical_target_url'] == 'default'){
|
568 |
-
$postUrl = site_url();
|
569 |
-
$sharingUrl = $postUrl;
|
570 |
-
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
571 |
-
$sharingUrl = wp_get_shortlink();
|
572 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
573 |
-
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
574 |
-
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, 0);
|
575 |
-
if($shortUrl){
|
576 |
-
$sharingUrl = $shortUrl;
|
577 |
-
}
|
578 |
-
}
|
579 |
-
|
580 |
-
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']), isset($theChampSharingOptions['vertical_total_shares']));
|
581 |
-
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . "' style='width:" . ($theChampSharingOptions['vertical_sharing_size'] + 4) . "px;" . $offset . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
582 |
-
}
|
583 |
-
$content = $content.$verticalDiv;
|
584 |
-
$$var++;
|
585 |
-
}
|
586 |
-
}else{
|
587 |
-
$content = $content.$verticalDiv;
|
588 |
-
}
|
589 |
-
}
|
590 |
-
} elseif( count( $post_types ) ) {
|
591 |
-
foreach ( $post_types as $post_type ) {
|
592 |
-
if( isset( $theChampSharingOptions['vertical_' . $post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
593 |
-
$content = $content . $verticalDiv;
|
594 |
-
}
|
595 |
-
}
|
596 |
-
}
|
597 |
-
}
|
598 |
-
}
|
599 |
-
return $content;
|
600 |
-
}
|
601 |
-
add_filter('the_content', 'the_champ_render_sharing');
|
602 |
-
add_filter('get_the_excerpt', 'the_champ_render_sharing');
|
603 |
-
if(isset($theChampSharingOptions['bp_activity']) || isset($theChampCounterOptions['bp_activity'])){
|
604 |
-
add_action('bp_activity_entry_meta', 'the_champ_render_sharing', 999);
|
605 |
-
}
|
606 |
-
if(isset($theChampSharingOptions['bp_group']) || isset($theChampSharingOptions['vertical_bp_group']) || isset($theChampCounterOptions['bp_group']) || isset($theChampCounterOptions['vertical_bp_group'])){
|
607 |
-
add_action('bp_before_group_header', 'the_champ_render_sharing');
|
608 |
-
}
|
609 |
-
add_filter('bbp_get_reply_content', 'the_champ_render_sharing');
|
610 |
-
add_filter( 'bbp_template_before_single_forum', 'the_champ_render_sharing' );
|
611 |
-
add_filter( 'bbp_template_before_single_topic', 'the_champ_render_sharing' );
|
612 |
-
add_filter( 'bbp_template_before_lead_topic', 'the_champ_render_sharing' );
|
613 |
-
add_filter( 'bbp_template_after_single_forum', 'the_champ_render_sharing' );
|
614 |
-
add_filter( 'bbp_template_after_single_topic', 'the_champ_render_sharing' );
|
615 |
-
add_filter( 'bbp_template_after_lead_topic', 'the_champ_render_sharing' );
|
616 |
-
// Sharing at WooCommerce pages
|
617 |
-
if(isset($theChampSharingOptions['woocom_shop']) || isset($theChampCounterOptions['woocom_shop'])){
|
618 |
-
add_action('woocommerce_after_shop_loop_item', 'the_champ_render_sharing');
|
619 |
-
}
|
620 |
-
if(isset($theChampSharingOptions['woocom_product']) || isset($theChampCounterOptions['woocom_product'])){
|
621 |
-
add_action('woocommerce_share', 'the_champ_render_sharing');
|
622 |
-
}
|
623 |
-
if(isset($theChampSharingOptions['woocom_thankyou']) || isset($theChampCounterOptions['woocom_thankyou'])){
|
624 |
-
add_action('woocommerce_thankyou', 'the_champ_render_sharing');
|
625 |
-
}
|
626 |
-
|
627 |
-
/**
|
628 |
-
* Get sharing count for providers
|
629 |
-
*/
|
630 |
-
function the_champ_sharing_count(){
|
631 |
-
if(isset($_GET['urls']) && count($_GET['urls']) > 0){
|
632 |
-
$targetUrls = array_unique($_GET['urls']);
|
633 |
-
foreach($targetUrls as $k => $v){
|
634 |
-
$targetUrls[$k] = esc_attr($v);
|
635 |
-
}
|
636 |
-
}else{
|
637 |
-
the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
|
638 |
-
}
|
639 |
-
global $theChampSharingOptions;
|
640 |
-
$horizontalSharingNetworks = isset($theChampSharingOptions['providers']) ? $theChampSharingOptions['providers'] : array();
|
641 |
-
$verticalSharingNetworks = isset($theChampSharingOptions['vertical_providers']) ? $theChampSharingOptions['vertical_providers'] : array();
|
642 |
-
$sharingNetworks = array_unique(array_merge($horizontalSharingNetworks, $verticalSharingNetworks));
|
643 |
-
if(count($sharingNetworks) == 0){
|
644 |
-
the_champ_ajax_response(array('status' => 0, 'message' => __('Providers not selected')));
|
645 |
-
}
|
646 |
-
$responseData = array();
|
647 |
-
foreach($targetUrls as $targetUrl){
|
648 |
-
foreach($sharingNetworks as $provider){
|
649 |
-
switch($provider){
|
650 |
-
case 'facebook':
|
651 |
-
$url = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' . $targetUrl . '&format=json&callback=';
|
652 |
-
break;
|
653 |
-
case 'twitter':
|
654 |
-
$url = 'http://urls.api.twitter.com/1/urls/count.json?url=' . $targetUrl;
|
655 |
-
break;
|
656 |
-
case 'linkedin':
|
657 |
-
$url = 'http://www.linkedin.com/countserv/count/share?url='. $targetUrl .'&format=json';
|
658 |
-
break;
|
659 |
-
case 'reddit':
|
660 |
-
$url = 'http://www.reddit.com/api/info.json?url='. $targetUrl;
|
661 |
-
break;
|
662 |
-
case 'delicious':
|
663 |
-
$url = 'http://feeds.delicious.com/v2/json/urlinfo/data?url='. $targetUrl;
|
664 |
-
break;
|
665 |
-
case 'pinterest':
|
666 |
-
$url = 'http://api.pinterest.com/v1/urls/count.json?callback=theChamp&url='. $targetUrl;
|
667 |
-
break;
|
668 |
-
case 'buffer':
|
669 |
-
$url = 'https://api.bufferapp.com/1/links/shares.json?url='. $targetUrl;
|
670 |
-
break;
|
671 |
-
case 'stumbleupon':
|
672 |
-
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url='. $targetUrl;
|
673 |
-
break;
|
674 |
-
case 'google':
|
675 |
-
$url = 'http://share.yandex.ru/gpp.xml?url='. $targetUrl;
|
676 |
-
break;
|
677 |
-
case 'vkontakte':
|
678 |
-
$url = 'https://vk.com/share.php?act=count&url='. $targetUrl;
|
679 |
-
break;
|
680 |
-
default:
|
681 |
-
$url = '';
|
682 |
-
}
|
683 |
-
if($url == '') { continue; }
|
684 |
-
$response = wp_remote_get( $url, array( 'timeout' => 15 ) );
|
685 |
-
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
686 |
-
$body = wp_remote_retrieve_body( $response );
|
687 |
-
if($provider == 'pinterest'){
|
688 |
-
$body = str_replace(array('theChamp(', ')'), '', $body);
|
689 |
-
}
|
690 |
-
if(!in_array($provider, array('google', 'vkontakte'))){
|
691 |
-
$body = json_decode($body);
|
692 |
-
}
|
693 |
-
switch($provider){
|
694 |
-
case 'facebook':
|
695 |
-
if(!empty($body[0] -> total_count)){
|
696 |
-
$responseData[$targetUrl]['facebook'] = $body[0] -> total_count;
|
697 |
-
}else{
|
698 |
-
$responseData[$targetUrl]['facebook'] = 0;
|
699 |
-
}
|
700 |
-
break;
|
701 |
-
case 'twitter':
|
702 |
-
if(!empty($body -> count)){
|
703 |
-
$responseData[$targetUrl]['twitter'] = $body -> count;
|
704 |
-
}else{
|
705 |
-
$responseData[$targetUrl]['twitter'] = 0;
|
706 |
-
}
|
707 |
-
break;
|
708 |
-
case 'linkedin':
|
709 |
-
if(!empty($body -> count)){
|
710 |
-
$responseData[$targetUrl]['linkedin'] = $body -> count;
|
711 |
-
}else{
|
712 |
-
$responseData[$targetUrl]['linkedin'] = 0;
|
713 |
-
}
|
714 |
-
break;
|
715 |
-
case 'reddit':
|
716 |
-
$responseData[$targetUrl]['reddit'] = 0;
|
717 |
-
if(!empty($body -> data -> children)){
|
718 |
-
$children = $body -> data -> children;
|
719 |
-
if(!empty($children[0] -> data -> score)){
|
720 |
-
$responseData[$targetUrl]['reddit'] = $children[0] -> data -> score;
|
721 |
-
}
|
722 |
-
}
|
723 |
-
break;
|
724 |
-
case 'delicious':
|
725 |
-
if(!empty($body[0] -> total_posts)){
|
726 |
-
$responseData[$targetUrl]['delicious'] = $body[0] -> total_posts;
|
727 |
-
}else{
|
728 |
-
$responseData[$targetUrl]['delicious'] = 0;
|
729 |
-
}
|
730 |
-
break;
|
731 |
-
case 'pinterest':
|
732 |
-
if(!empty($body -> count)){
|
733 |
-
$responseData[$targetUrl]['pinterest'] = $body -> count;
|
734 |
-
}else{
|
735 |
-
$responseData[$targetUrl]['pinterest'] = 0;
|
736 |
-
}
|
737 |
-
break;
|
738 |
-
case 'buffer':
|
739 |
-
if(!empty($body -> shares)){
|
740 |
-
$responseData[$targetUrl]['buffer'] = $body -> shares;
|
741 |
-
}else{
|
742 |
-
$responseData[$targetUrl]['buffer'] = 0;
|
743 |
-
}
|
744 |
-
break;
|
745 |
-
case 'stumbleupon':
|
746 |
-
if(!empty($body -> result) && isset( $body -> result -> views )){
|
747 |
-
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
748 |
-
}else{
|
749 |
-
$responseData[$targetUrl]['stumbleupon'] = 0;
|
750 |
-
}
|
751 |
-
break;
|
752 |
-
case 'google':
|
753 |
-
if(!empty($body)){
|
754 |
-
$responseData[$targetUrl]['google'] = $body;
|
755 |
-
}else{
|
756 |
-
$responseData[$targetUrl]['google'] = 0;
|
757 |
-
}
|
758 |
-
break;
|
759 |
-
case 'vkontakte':
|
760 |
-
if(!empty($body)){
|
761 |
-
$responseData[$targetUrl]['vkontakte'] = $body;
|
762 |
-
}else{
|
763 |
-
$responseData[$targetUrl]['vkontakte'] = 0;
|
764 |
-
}
|
765 |
-
break;
|
766 |
-
}
|
767 |
-
}
|
768 |
-
}
|
769 |
-
}
|
770 |
-
the_champ_ajax_response(array('status' => 1, 'message' => $responseData));
|
771 |
-
}
|
772 |
-
|
773 |
-
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
774 |
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
1 |
+
<?php
|
2 |
+
defined('ABSPATH') or die("Cheating........Uh!!");
|
3 |
+
/**
|
4 |
+
* File contains the functions necessary for Social Sharing functionality
|
5 |
+
*/
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Render sharing interface html.
|
9 |
+
*/
|
10 |
+
function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $displayCount, $totalShares){
|
11 |
+
global $theChampSharingOptions, $post;
|
12 |
+
if($sharingType == 'vertical' && (is_front_page() || is_home())){
|
13 |
+
$postTitle = wp_title('', false);
|
14 |
+
if($postTitle == ''){
|
15 |
+
$postTitle = get_bloginfo('name') . " - " . get_bloginfo('description');
|
16 |
+
}
|
17 |
+
}else{
|
18 |
+
$postTitle = $post->post_title;
|
19 |
+
}
|
20 |
+
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
21 |
+
$postTitle = urlencode($postTitle);
|
22 |
+
$postTitle = str_replace('#', '%23', $postTitle);
|
23 |
+
$postTitle = esc_html($postTitle);
|
24 |
+
$postUrl = (isset($theChampSharingOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $postUrl;
|
25 |
+
if(!isset($theChampSharingOptions['horizontal_sharing_size'])){
|
26 |
+
$theChampSharingOptions['horizontal_sharing_size'] = 30;
|
27 |
+
}
|
28 |
+
if(!isset($theChampSharingOptions['horizontal_sharing_shape'])){
|
29 |
+
$theChampSharingOptions['horizontal_sharing_shape'] = 'round';
|
30 |
+
}
|
31 |
+
if(!isset($theChampSharingOptions['vertical_sharing_size'])){
|
32 |
+
$theChampSharingOptions['vertical_sharing_size'] = 35;
|
33 |
+
}
|
34 |
+
if(!isset($theChampSharingOptions['vertical_sharing_shape'])){
|
35 |
+
$theChampSharingOptions['vertical_sharing_shape'] = 'square';
|
36 |
+
}
|
37 |
+
$output = apply_filters('the_champ_sharing_interface_filter', '', $postUrl, $sharingType, $theChampSharingOptions, $post, $displayCount, $totalShares);
|
38 |
+
if($output != ''){
|
39 |
+
return $output;
|
40 |
+
}
|
41 |
+
$html = '';
|
42 |
+
$sharingMeta = '';
|
43 |
+
if(!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))){
|
44 |
+
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
45 |
+
}
|
46 |
+
if(isset($theChampSharingOptions[$sharingType.'_re_providers'])){
|
47 |
+
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
48 |
+
$style = 'style="width:' . $theChampSharingOptions[$sharingType . '_sharing_size'] . 'px;height:' . $theChampSharingOptions[$sharingType . '_sharing_size'] . 'px;';
|
49 |
+
$counterContainerInitHtml = '<span class="the_champ_share_count';
|
50 |
+
$counterContainerEndHtml = '</span>';
|
51 |
+
$innerStyle = 'display:block;';
|
52 |
+
$liClass = 'theChampSharingRound';
|
53 |
+
if($theChampSharingOptions[$sharingType . '_sharing_shape'] == 'round'){
|
54 |
+
$style .= 'border-radius:999px;';
|
55 |
+
$innerStyle .= 'border-radius:999px;';
|
56 |
+
}
|
57 |
+
if($sharingType == 'vertical' && $theChampSharingOptions[$sharingType . '_sharing_shape'] == 'square'){
|
58 |
+
$style .= 'margin:0;';
|
59 |
+
$counterContainerInitHtml = '<ss class="the_champ_square_count';
|
60 |
+
$counterContainerEndHtml = '</ss>';
|
61 |
+
$liClass = '';
|
62 |
+
}
|
63 |
+
$style .= '"';
|
64 |
+
$liItems = '';
|
65 |
+
foreach($theChampSharingOptions[$sharingType.'_re_providers'] as $provider){
|
66 |
+
$liItems .= '<li class="' . ($liClass != '' ? $liClass : 'theChamp' . ucfirst(str_replace(' ', '', $provider)) .'Background theChamp' . ucfirst(str_replace(' ', '', $provider)) .'SquareBackground') . '">';
|
67 |
+
if($displayCount){
|
68 |
+
$startingCount = isset($sharingMeta[$provider . '_' . $sharingType . '_count']) && $sharingMeta[$provider . '_' . $sharingType . '_count'] != '' ? true : false;
|
69 |
+
$liItems .= $counterContainerInitHtml . ' the_champ_'.$provider.'_count" '. ($startingCount ? 'ss_st_count="'. $sharingMeta[$provider . '_' . $sharingType . '_count'] .'"' : '') .' > ' . $counterContainerEndHtml;
|
70 |
+
}
|
71 |
+
if($provider == 'print'){
|
72 |
+
$liItems .= '<i ' .$style. ' alt="Print" Title="Print" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick=\'window.print()\'><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
73 |
+
}elseif($provider == 'email'){
|
74 |
+
$liItems .= '<i ' .$style. ' alt="Email" Title="Email" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\''. $postTitle .'\') + \'&body=\' + decodeURIComponent(\''.$postUrl.'\')"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
75 |
+
}else{
|
76 |
+
if($provider == 'facebook'){
|
77 |
+
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
78 |
+
}elseif($provider == 'twitter'){
|
79 |
+
$sharingUrl = 'http://twitter.com/intent/tweet?'. (isset($theChampSharingOptions['twitter_username']) && $theChampSharingOptions['twitter_username'] != '' ? 'via=' . $theChampSharingOptions['twitter_username'] . '&' : '') . 'text=' . $postTitle .'&url=' . $postUrl;
|
80 |
+
}elseif($provider == 'linkedin'){
|
81 |
+
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl . '&title=' . $postTitle;
|
82 |
+
}elseif($provider == 'google'){
|
83 |
+
$sharingUrl = 'https://plus.google.com/share?url=' . $postUrl;
|
84 |
+
}elseif($provider == 'yahoo'){
|
85 |
+
$sharingUrl = 'http://bookmarks.yahoo.com/toolbar/SaveBM/?u=' . $postUrl . '&t=' . $postTitle;
|
86 |
+
}elseif($provider == 'reddit'){
|
87 |
+
$sharingUrl = 'http://reddit.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
88 |
+
}elseif($provider == 'digg'){
|
89 |
+
$sharingUrl = 'http://digg.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
90 |
+
}elseif($provider == 'delicious'){
|
91 |
+
$sharingUrl = 'http://del.icio.us/post?url='.$postUrl.'&title=' . $postTitle;
|
92 |
+
}elseif($provider == 'stumbleupon'){
|
93 |
+
$sharingUrl = 'http://www.stumbleupon.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
94 |
+
}elseif($provider == 'float it'){
|
95 |
+
$sharingUrl = 'http://www.designfloat.com/submit.php?url='.$postUrl.'&title=' . $postTitle;
|
96 |
+
}elseif($provider == 'tumblr'){
|
97 |
+
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' . $postTitle . '&s=';
|
98 |
+
}elseif($provider == 'vkontakte'){
|
99 |
+
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
100 |
+
}elseif($provider == 'xing'){
|
101 |
+
$sharingUrl = 'https://www.xing-share.com/social_plugins/share?url='. urlencode($postUrl) .'&wtmc=XING&sc_p=xing-share';
|
102 |
+
}elseif($provider == 'whatsapp'){
|
103 |
+
$sharingUrl = 'whatsapp://send?text='. $postTitle . ' ' . urlencode($postUrl);
|
104 |
+
}elseif($provider == 'yummly'){
|
105 |
+
$sharingUrl = 'http://www.yummly.com/urb/verify?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
106 |
+
}elseif($provider == 'buffer'){
|
107 |
+
$sharingUrl = 'https://buffer.com/add?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
108 |
+
}elseif($provider == 'pinterest'){
|
109 |
+
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
110 |
+
}
|
111 |
+
$liItems .= '<i ' .$style. ' alt="'.($provider == 'google' ? 'Google Plus' : ucfirst($provider)).'" Title="'.($provider == 'google' ? 'Google Plus' : ucfirst($provider)).'" class="theChampSharing theChamp'. ucfirst( str_replace(' ', '', $provider) ) .'Background" ';
|
112 |
+
if($provider == 'pinterest'){
|
113 |
+
$liItems .= 'onclick="'.$sharingUrl.'"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
114 |
+
}elseif($provider == 'whatsapp'){
|
115 |
+
$liItems .= '><a href="'.$sharingUrl.'"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></a></i>';
|
116 |
+
}else{
|
117 |
+
$liItems .= 'onclick=\' theChampPopup("'.$sharingUrl.'")\'><ss style="'. $innerStyle .'" class="theChampSharingSvg theChamp'. ucfirst( str_replace(' ', '', $provider) ) .'Svg"></ss></i>';
|
118 |
+
}
|
119 |
+
}
|
120 |
+
$liItems .= '</li>';
|
121 |
+
}
|
122 |
+
if(isset($theChampSharingOptions[$sharingType . '_more'])){
|
123 |
+
$liItems .= '<li class="' . ($liClass != '' ? $liClass : 'theChampMoreBackground') . '">';
|
124 |
+
if($displayCount){
|
125 |
+
$liItems .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
126 |
+
}
|
127 |
+
$liItems .= '<i ' .$style. ' title="More" alt="More" class="theChampSharing theChampMoreBackground" onclick="theChampMoreSharingPopup(this, \''.$postUrl.'\', \''.$postTitle.'\')" ><ss style="display:block" class="theChampSharingSvg theChampMoreSvg"></ss></i></li>';
|
128 |
+
}
|
129 |
+
|
130 |
+
$totalSharesHtml = '';
|
131 |
+
if($totalShares){
|
132 |
+
$totalSharesHtml = '<li class="' . $liClass . '">';
|
133 |
+
if($displayCount){
|
134 |
+
$totalSharesHtml .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
135 |
+
}
|
136 |
+
if($sharingType == 'horizontal'){
|
137 |
+
$addStyle = ';margin-left:9px !important;';
|
138 |
+
}else{
|
139 |
+
$addStyle = ';margin-bottom:9px !important;';
|
140 |
+
}
|
141 |
+
$addStyle .= '"';
|
142 |
+
$style = str_replace(';"', $addStyle, $style);
|
143 |
+
$totalSharesHtml .= '<i ' . $style . ' title="Total Shares" alt="Total Shares" class="theChampSharing theChampTCBackground"></i></li>';
|
144 |
+
}
|
145 |
+
|
146 |
+
if($sharingType == 'vertical'){
|
147 |
+
$html .= $totalSharesHtml . $liItems;
|
148 |
+
}else{
|
149 |
+
$html .= $liItems . $totalSharesHtml;
|
150 |
+
}
|
151 |
+
|
152 |
+
$html .= '</ul><div style="clear:both"></div>';
|
153 |
+
}
|
154 |
+
return $html;
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Render counter interface html.
|
159 |
+
*/
|
160 |
+
function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $shortUrl){
|
161 |
+
global $theChampCounterOptions, $post;
|
162 |
+
if($sharingType == 'vertical' && (is_front_page() || is_home())){
|
163 |
+
$postTitle = wp_title('', false);
|
164 |
+
if($postTitle == ''){
|
165 |
+
$postTitle = get_bloginfo('name') . " - " . get_bloginfo('description');
|
166 |
+
}
|
167 |
+
}else{
|
168 |
+
$postTitle = $post->post_title;
|
169 |
+
}
|
170 |
+
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
171 |
+
$postTitle = urlencode($postTitle);
|
172 |
+
$postTitle = str_replace('#', '%23', $postTitle);
|
173 |
+
$postTitle = esc_html($postTitle);
|
174 |
+
$shortUrl = (isset($theChampCounterOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $shortUrl;
|
175 |
+
$output = apply_filters('the_champ_counter_interface_filter', '', $postUrl, $shortUrl, $sharingType, $theChampCounterOptions, $post);
|
176 |
+
if($output != ''){
|
177 |
+
return $output;
|
178 |
+
}
|
179 |
+
$html = '<div id="fb-root"></div>';
|
180 |
+
if(isset($theChampCounterOptions[$sharingType.'_providers']) && is_array($theChampCounterOptions[$sharingType.'_providers'])){
|
181 |
+
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
182 |
+
$language = isset($theChampCounterOptions['language']) && $theChampCounterOptions['language'] != '' ? $theChampCounterOptions['language'] : '';
|
183 |
+
foreach($theChampCounterOptions[$sharingType.'_providers'] as $provider){
|
184 |
+
if($provider == 'facebook_like'){
|
185 |
+
$html .= '<li class="the_champ_facebook_like"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div></li>';
|
186 |
+
}elseif($provider == 'facebook_recommend'){
|
187 |
+
$html .= '<li class="the_champ_facebook_recommend"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="recommend" data-show-faces="false" data-share="false"></div></li>';
|
188 |
+
}elseif($provider == 'twitter_tweet'){
|
189 |
+
$html .= '<li class="the_champ_twitter_tweet" heateor-ss-data-href="'. $postUrl .'"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-counturl="'. $postUrl .'" data-text="'. $postTitle .'" data-via="'. (isset($theChampCounterOptions['twitter_username']) && $theChampCounterOptions['twitter_username'] != '' ? $theChampCounterOptions['twitter_username'] : '') .'" data-lang="'. $language .'" >Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "twitter-wjs");</script></li>';
|
190 |
+
}elseif($provider == 'linkedin_share'){
|
191 |
+
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang: '. $language .'</script><script type="IN/Share" data-url="' . $postUrl . '" data-counter="right"></script></li>';
|
192 |
+
}elseif($provider == 'google_plusone'){
|
193 |
+
$html .= '<li class="the_champ_google_plusone"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plusone" data-size="medium" data-href="'. $postUrl .'" data-callback="heateorSsmiGpCallback"></div></li>';
|
194 |
+
}elseif($provider == 'pinterest_pin_it'){
|
195 |
+
$html .= '<li class="the_champ_pinterest_pin"><a data-pin-lang="'. $language .'" href="//www.pinterest.com/pin/create/button/?url='. $postUrl .'" data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a><script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script></li>';
|
196 |
+
}elseif($provider == 'googleplus_share'){
|
197 |
+
$html .= '<li class="the_champ_gp_share"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plus" data-action="share" data-annotation="bubble" data-href="'. $postUrl .'"></div></li>';
|
198 |
+
}elseif($provider == 'reddit'){
|
199 |
+
$html .= '<li class="the_champ_reddit"><script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script></li>';
|
200 |
+
}elseif($provider == 'yummly'){
|
201 |
+
$html .= '<li class="the_champ_yummly"><a href="//yummly.com" class="YUMMLY-YUM-BUTTON">Yum</a><script src="https://www.yummly.com/js/widget.js?general"></script></li>';
|
202 |
+
}elseif($provider == 'buffer'){
|
203 |
+
$html .= '<li class="the_champ_buffer"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="' . $postTitle . '" data-url="' . $postUrl . '" data-count="horizontal" data-via="'. (isset($theChampCounterOptions['buffer_username']) && $theChampCounterOptions['buffer_username'] != '' ? $theChampCounterOptions['buffer_username'] : '') .'" ></a><script type="text/javascript" src="https://d389zggrogs7qo.cloudfront.net/js/button.js"></script></li>';
|
204 |
+
}elseif($provider == 'xing'){
|
205 |
+
$html .= '<li class="the_champ_xing"><div data-type="XING/Share" data-counter="right" data-url="'. $postUrl .'" data-lang="'. $language .'"></div><script>(function (d, s) {var x = d.createElement(s), s = d.getElementsByTagName(s)[0]; x.src = "https://www.xing-share.com/js/external/share.js"; s.parentNode.insertBefore(x, s); })(document, "script");</script></li>';
|
206 |
+
}elseif($provider == 'stumbleupon_badge'){
|
207 |
+
$html .= '<li class="the_champ_stumble"><su:badge layout="1" location="'. $postUrl .'"></su:badge><script type="text/javascript">(function() {var li = document.createElement(\'script\'); li.type = \'text/javascript\'; li.async = true;li.src = (\'https:\' == document.location.protocol ? \'https:\' : \'http:\') + \'//platform.stumbleupon.com/1/widgets.js\';var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(li, s);})();</script></li>';
|
208 |
+
}
|
209 |
+
}
|
210 |
+
$html .= '</ul><div style="clear:both"></div>';
|
211 |
+
}
|
212 |
+
return $html;
|
213 |
+
}
|
214 |
+
|
215 |
+
function the_champ_generate_sharing_bitly_url($url, $postId = 0){
|
216 |
+
global $theChampSharingOptions;
|
217 |
+
$bitlyUrl = get_post_meta($postId, '_the_champ_ss_bitly_url', true);
|
218 |
+
if($bitlyUrl){
|
219 |
+
return $bitlyUrl;
|
220 |
+
}else{
|
221 |
+
//generate the URL
|
222 |
+
$bitly = 'http://api.bit.ly/v3/shorten?format=txt&login='. $theChampSharingOptions['bitly_username'] .'&apiKey='. $theChampSharingOptions['bitly_key'] .'&longUrl='.urlencode($url);
|
223 |
+
$response = wp_remote_get( $bitly, array( 'timeout' => 15 ) );
|
224 |
+
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
225 |
+
$shortUrl = trim(wp_remote_retrieve_body( $response ));
|
226 |
+
update_post_meta($postId, '_the_champ_ss_bitly_url', $shortUrl);
|
227 |
+
return $shortUrl;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
return false;
|
231 |
+
}
|
232 |
+
|
233 |
+
function the_champ_generate_counter_bitly_url($url, $postId = 0){
|
234 |
+
global $theChampCounterOptions;
|
235 |
+
$bitlyUrl = get_post_meta($postId, '_the_champ_ss_bitly_url', true);
|
236 |
+
if($bitlyUrl){
|
237 |
+
return $bitlyUrl;
|
238 |
+
}else{
|
239 |
+
//generate the URL
|
240 |
+
$bitly = 'http://api.bit.ly/v3/shorten?format=txt&login='. $theChampCounterOptions['bitly_username'] .'&apiKey='. $theChampCounterOptions['bitly_key'] .'&longUrl='.urlencode($url);
|
241 |
+
$response = wp_remote_get( $bitly, array( 'timeout' => 15 ) );
|
242 |
+
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
243 |
+
$shortUrl = trim(wp_remote_retrieve_body( $response ));
|
244 |
+
update_post_meta($postId, '_the_champ_ss_bitly_url', $shortUrl);
|
245 |
+
return $shortUrl;
|
246 |
+
}
|
247 |
+
}
|
248 |
+
return false;
|
249 |
+
}
|
250 |
+
|
251 |
+
$theChampVerticalHomeCount = 0;
|
252 |
+
$theChampVerticalExcerptCount = 0;
|
253 |
+
$theChampVerticalCounterHomeCount = 0;
|
254 |
+
$theChampVerticalCounterExcerptCount = 0;
|
255 |
+
/**
|
256 |
+
* Enable sharing interface at selected areas.
|
257 |
+
*/
|
258 |
+
function the_champ_render_sharing($content){
|
259 |
+
global $post;
|
260 |
+
// hook to bypass sharing
|
261 |
+
$disable = apply_filters('the_champ_bypass_sharing', $post, $content);
|
262 |
+
// if $disable value is 1, return content without sharing interface
|
263 |
+
if($disable === 1){ return $content; }
|
264 |
+
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
265 |
+
global $theChampSharingOptions, $theChampCounterOptions;
|
266 |
+
|
267 |
+
$sharingBpActivity = false;
|
268 |
+
$counterBpActivity = false;
|
269 |
+
if(current_filter() == 'bp_activity_entry_meta'){
|
270 |
+
if(isset($theChampSharingOptions['bp_activity'])){
|
271 |
+
$sharingBpActivity = true;
|
272 |
+
}
|
273 |
+
if(isset($theChampCounterOptions['bp_activity'])){
|
274 |
+
$counterBpActivity = true;
|
275 |
+
}
|
276 |
+
}
|
277 |
+
|
278 |
+
$post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
|
279 |
+
$post_types = array_diff( $post_types, array( 'post', 'page' ) );
|
280 |
+
|
281 |
+
if(isset($theChampCounterOptions['enable'])){
|
282 |
+
//counter interface
|
283 |
+
if(isset($theChampCounterOptions['hor_enable']) && !(isset($sharingMeta['counter']) && $sharingMeta['counter'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
284 |
+
$postId = $post -> ID;
|
285 |
+
if($counterBpActivity){
|
286 |
+
$counterPostUrl = bp_get_activity_thread_permalink();
|
287 |
+
}elseif(isset($theChampCounterOptions['horizontal_target_url'])){
|
288 |
+
if($theChampCounterOptions['horizontal_target_url'] == 'default'){
|
289 |
+
$counterPostUrl = get_permalink($post->ID);
|
290 |
+
if($counterPostUrl == ''){
|
291 |
+
$counterPostUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
292 |
+
}
|
293 |
+
}elseif($theChampCounterOptions['horizontal_target_url'] == 'home'){
|
294 |
+
$counterPostUrl = site_url();
|
295 |
+
$postId = 0;
|
296 |
+
}elseif($theChampCounterOptions['horizontal_target_url'] == 'custom'){
|
297 |
+
$counterPostUrl = isset($theChampCounterOptions['horizontal_target_url_custom']) ? trim($theChampCounterOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
298 |
+
$postId = 0;
|
299 |
+
}
|
300 |
+
}else{
|
301 |
+
$counterPostUrl = get_permalink($post->ID);
|
302 |
+
}
|
303 |
+
|
304 |
+
$counterUrl = $counterPostUrl;
|
305 |
+
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
306 |
+
$counterUrl = wp_get_shortlink();
|
307 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
308 |
+
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
309 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, $postId);
|
310 |
+
if($shortUrl){
|
311 |
+
$counterUrl = $shortUrl;
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'horizontal', $counterUrl);
|
316 |
+
$sharingContainerStyle = '';
|
317 |
+
$sharingTitleStyle = 'style="font-weight:bold"';
|
318 |
+
if(isset($theChampCounterOptions['hor_counter_alignment'])){
|
319 |
+
if($theChampCounterOptions['hor_counter_alignment'] == 'right'){
|
320 |
+
$sharingContainerStyle = 'style="float: right"';
|
321 |
+
}elseif($theChampCounterOptions['hor_counter_alignment'] == 'center'){
|
322 |
+
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
323 |
+
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
324 |
+
}
|
325 |
+
}
|
326 |
+
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_counter_container the_champ_horizontal_counter'><div ". $sharingTitleStyle .">".ucfirst($theChampCounterOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
327 |
+
if($counterBpActivity){
|
328 |
+
echo $horizontalDiv;
|
329 |
+
}
|
330 |
+
// show horizontal counter
|
331 |
+
if((isset( $theChampCounterOptions['home']) && is_front_page()) || (isset( $theChampCounterOptions['category']) && is_category()) || (isset( $theChampCounterOptions['archive']) && is_archive()) || ( isset( $theChampCounterOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampCounterOptions['bb_forum'] ) && (isset( $theChampCounterOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampCounterOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampCounterOptions['bb_topic'] ) && (isset( $theChampCounterOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampCounterOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) )) || (isset( $theChampCounterOptions['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item') || (isset( $theChampCounterOptions['woocom_product'] ) && current_filter() == 'woocommerce_share') || (isset( $theChampCounterOptions['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou') || (current_filter() == 'bp_before_group_header' && isset($theChampCounterOptions['bp_group'])) ) {
|
332 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum','woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header') ) ){
|
333 |
+
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
334 |
+
}else{
|
335 |
+
if(isset($theChampCounterOptions['top'] ) && isset($theChampCounterOptions['bottom'])){
|
336 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
337 |
+
}else{
|
338 |
+
if(isset($theChampCounterOptions['top'])){
|
339 |
+
$content = $horizontalDiv.$content;
|
340 |
+
}elseif(isset($theChampCounterOptions['bottom'])){
|
341 |
+
$content = $content.$horizontalDiv;
|
342 |
+
}
|
343 |
+
}
|
344 |
+
}
|
345 |
+
} elseif( count( $post_types ) ) {
|
346 |
+
foreach ( $post_types as $post_type ) {
|
347 |
+
if( isset( $theChampCounterOptions[$post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
348 |
+
if(isset($theChampCounterOptions['top'] ) && isset($theChampCounterOptions['bottom'])){
|
349 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
350 |
+
}else{
|
351 |
+
if(isset($theChampCounterOptions['top'])){
|
352 |
+
$content = $horizontalDiv.$content;
|
353 |
+
}elseif(isset($theChampCounterOptions['bottom'])){
|
354 |
+
$content = $content.$horizontalDiv;
|
355 |
+
}
|
356 |
+
}
|
357 |
+
}
|
358 |
+
}
|
359 |
+
}
|
360 |
+
}
|
361 |
+
if(isset($theChampCounterOptions['vertical_enable']) && !(isset($sharingMeta['vertical_counter']) && $sharingMeta['vertical_counter'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
362 |
+
$postId = $post -> ID;
|
363 |
+
if(isset($theChampCounterOptions['vertical_target_url'])){
|
364 |
+
if($theChampCounterOptions['vertical_target_url'] == 'default'){
|
365 |
+
$counterPostUrl = get_permalink($post->ID);
|
366 |
+
if($counterPostUrl == ''){
|
367 |
+
$counterPostUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
368 |
+
}
|
369 |
+
}elseif($theChampCounterOptions['vertical_target_url'] == 'home'){
|
370 |
+
$counterPostUrl = site_url();
|
371 |
+
$postId = 0;
|
372 |
+
}elseif($theChampCounterOptions['vertical_target_url'] == 'custom'){
|
373 |
+
$counterPostUrl = isset($theChampCounterOptions['vertical_target_url_custom']) ? trim($theChampCounterOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
374 |
+
$postId = 0;
|
375 |
+
}
|
376 |
+
}else{
|
377 |
+
$counterPostUrl = get_permalink($post->ID);
|
378 |
+
}
|
379 |
+
|
380 |
+
$counterUrl = $counterPostUrl;
|
381 |
+
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
382 |
+
$counterUrl = wp_get_shortlink();
|
383 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
384 |
+
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
385 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, $postId);
|
386 |
+
if($shortUrl){
|
387 |
+
$counterUrl = $shortUrl;
|
388 |
+
}
|
389 |
+
}
|
390 |
+
|
391 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
392 |
+
$offset = (isset($theChampCounterOptions['alignment']) && $theChampCounterOptions['alignment'] != '' && isset($theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset']) ? $theChampCounterOptions['alignment'].': '. ( $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] == '' ? 0 : $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] ) .'px;' : '').(isset($theChampCounterOptions['top_offset']) ? 'top: '. ( $theChampCounterOptions['top_offset'] == '' ? 0 : $theChampCounterOptions['top_offset'] ) .'px;' : '');
|
393 |
+
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter" . ( isset( $theChampCounterOptions['hide_mobile_likeb'] ) ? ' the_champ_hide_sharing' : '' ) . "' style='". $offset . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
394 |
+
// show vertical counter
|
395 |
+
if((isset( $theChampCounterOptions['vertical_home']) && is_front_page()) || (isset( $theChampCounterOptions['vertical_category']) && is_category()) || (isset( $theChampCounterOptions['vertical_archive']) && is_archive()) || ( isset( $theChampCounterOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampCounterOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic'))) || (current_filter() == 'bp_before_group_header' && isset($theChampCounterOptions['vertical_bp_group'])) ){
|
396 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header') ) ){
|
397 |
+
echo $verticalDiv;
|
398 |
+
}else{
|
399 |
+
if(is_front_page()){
|
400 |
+
global $theChampVerticalCounterHomeCount, $theChampVerticalCounterExcerptCount;
|
401 |
+
if(current_filter() == 'the_content'){
|
402 |
+
$var = 'theChampVerticalCounterHomeCount';
|
403 |
+
}elseif(current_filter() == 'get_the_excerpt'){
|
404 |
+
$var = 'theChampVerticalCounterExcerptCount';
|
405 |
+
}
|
406 |
+
if($$var == 0){
|
407 |
+
if(isset($theChampCounterOptions['vertical_target_url']) && $theChampCounterOptions['vertical_target_url'] == 'default'){
|
408 |
+
$counterPostUrl = site_url();
|
409 |
+
$counterUrl = $counterPostUrl;
|
410 |
+
if(isset($theChampCounterOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
411 |
+
$counterUrl = wp_get_shortlink();
|
412 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
413 |
+
}elseif(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
414 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl, 0);
|
415 |
+
if($shortUrl){
|
416 |
+
$counterUrl = $shortUrl;
|
417 |
+
}
|
418 |
+
}
|
419 |
+
|
420 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
421 |
+
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter" . ( isset( $theChampCounterOptions['hide_mobile_likeb'] ) ? ' the_champ_hide_sharing' : '' ) . "' style='". $offset . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
422 |
+
}
|
423 |
+
$content = $content.$verticalDiv;
|
424 |
+
$$var++;
|
425 |
+
}
|
426 |
+
}else{
|
427 |
+
$content = $content.$verticalDiv;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
} elseif( count( $post_types ) ) {
|
431 |
+
foreach ( $post_types as $post_type ) {
|
432 |
+
if( isset( $theChampCounterOptions['vertical_' . $post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
433 |
+
$content = $content . $verticalDiv;
|
434 |
+
}
|
435 |
+
}
|
436 |
+
}
|
437 |
+
}
|
438 |
+
}
|
439 |
+
|
440 |
+
if(isset($theChampSharingOptions['enable'])){
|
441 |
+
// sharing interface
|
442 |
+
if(isset($theChampSharingOptions['hor_enable']) && !(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
443 |
+
$postId = $post -> ID;
|
444 |
+
if($sharingBpActivity){
|
445 |
+
$postUrl = bp_get_activity_thread_permalink();
|
446 |
+
$postId = 0;
|
447 |
+
}elseif(isset($theChampSharingOptions['horizontal_target_url'])){
|
448 |
+
if($theChampSharingOptions['horizontal_target_url'] == 'default'){
|
449 |
+
$postUrl = get_permalink($post->ID);
|
450 |
+
if($postUrl == ''){
|
451 |
+
$postUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
452 |
+
}
|
453 |
+
}elseif($theChampSharingOptions['horizontal_target_url'] == 'home'){
|
454 |
+
$postUrl = site_url();
|
455 |
+
$postId = 0;
|
456 |
+
}elseif($theChampSharingOptions['horizontal_target_url'] == 'custom'){
|
457 |
+
$postUrl = isset($theChampSharingOptions['horizontal_target_url_custom']) ? trim($theChampSharingOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
458 |
+
$postId = 0;
|
459 |
+
}
|
460 |
+
}else{
|
461 |
+
$postUrl = get_permalink($post->ID);
|
462 |
+
}
|
463 |
+
|
464 |
+
$sharingUrl = $postUrl;
|
465 |
+
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
466 |
+
$sharingUrl = wp_get_shortlink();
|
467 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
468 |
+
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
469 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, $postId);
|
470 |
+
if($shortUrl){
|
471 |
+
$sharingUrl = $shortUrl;
|
472 |
+
}
|
473 |
+
}
|
474 |
+
|
475 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'horizontal', isset($theChampSharingOptions['horizontal_counts']), isset($theChampSharingOptions['horizontal_total_shares']));
|
476 |
+
$sharingContainerStyle = '';
|
477 |
+
$sharingTitleStyle = 'style="font-weight:bold"';
|
478 |
+
if(isset($theChampSharingOptions['hor_sharing_alignment'])){
|
479 |
+
if($theChampSharingOptions['hor_sharing_alignment'] == 'right'){
|
480 |
+
$sharingContainerStyle = 'style="float: right"';
|
481 |
+
}elseif($theChampSharingOptions['hor_sharing_alignment'] == 'center'){
|
482 |
+
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
483 |
+
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
484 |
+
}
|
485 |
+
}
|
486 |
+
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".$postUrl."'><div ". $sharingTitleStyle ." >".ucfirst($theChampSharingOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
487 |
+
if($sharingBpActivity){
|
488 |
+
echo $horizontalDiv;
|
489 |
+
}
|
490 |
+
// show horizontal sharing
|
491 |
+
if((isset( $theChampSharingOptions['home']) && is_front_page()) || (isset( $theChampSharingOptions['category']) && is_category()) || (isset( $theChampSharingOptions['archive']) && is_archive()) || ( isset( $theChampSharingOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampSharingOptions['bb_forum'] ) && (isset( $theChampSharingOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampSharingOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampSharingOptions['bb_topic'] ) && (isset( $theChampSharingOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampSharingOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) )) || (isset( $theChampSharingOptions['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item') || (isset( $theChampSharingOptions['woocom_product'] ) && current_filter() == 'woocommerce_share') || (isset( $theChampSharingOptions['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou') || (current_filter() == 'bp_before_group_header' && isset($theChampSharingOptions['bp_group'])) ) {
|
492 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum', 'woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header') ) ){
|
493 |
+
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
494 |
+
}else{
|
495 |
+
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
496 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
497 |
+
}else{
|
498 |
+
if(isset($theChampSharingOptions['top'])){
|
499 |
+
$content = $horizontalDiv.$content;
|
500 |
+
}elseif(isset($theChampSharingOptions['bottom'])){
|
501 |
+
$content = $content.$horizontalDiv;
|
502 |
+
}
|
503 |
+
}
|
504 |
+
}
|
505 |
+
} elseif( count( $post_types ) ) {
|
506 |
+
foreach ( $post_types as $post_type ) {
|
507 |
+
if( isset( $theChampSharingOptions[$post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
508 |
+
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
509 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
510 |
+
}else{
|
511 |
+
if(isset($theChampSharingOptions['top'])){
|
512 |
+
$content = $horizontalDiv.$content;
|
513 |
+
}elseif(isset($theChampSharingOptions['bottom'])){
|
514 |
+
$content = $content.$horizontalDiv;
|
515 |
+
}
|
516 |
+
}
|
517 |
+
}
|
518 |
+
}
|
519 |
+
}
|
520 |
+
}
|
521 |
+
if(isset($theChampSharingOptions['vertical_enable']) && !(isset($sharingMeta['vertical_sharing']) && $sharingMeta['vertical_sharing'] == 1 && (!is_front_page() || (is_front_page() && 'page' == get_option('show_on_front'))) )){
|
522 |
+
$postId = $post -> ID;
|
523 |
+
if(isset($theChampSharingOptions['vertical_target_url'])){
|
524 |
+
if($theChampSharingOptions['vertical_target_url'] == 'default'){
|
525 |
+
$postUrl = get_permalink($post->ID);
|
526 |
+
if($postUrl == ''){
|
527 |
+
$postUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
528 |
+
}
|
529 |
+
}elseif($theChampSharingOptions['vertical_target_url'] == 'home'){
|
530 |
+
$postUrl = site_url();
|
531 |
+
$postId = 0;
|
532 |
+
}elseif($theChampSharingOptions['vertical_target_url'] == 'custom'){
|
533 |
+
$postUrl = isset($theChampSharingOptions['vertical_target_url_custom']) ? trim($theChampSharingOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
534 |
+
$postId = 0;
|
535 |
+
}
|
536 |
+
}else{
|
537 |
+
$postUrl = get_permalink($post->ID);
|
538 |
+
}
|
539 |
+
|
540 |
+
$sharingUrl = $postUrl;
|
541 |
+
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
542 |
+
$sharingUrl = wp_get_shortlink();
|
543 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
544 |
+
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
545 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, $postId);
|
546 |
+
if($shortUrl){
|
547 |
+
$sharingUrl = $shortUrl;
|
548 |
+
}
|
549 |
+
}
|
550 |
+
|
551 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']), isset($theChampSharingOptions['vertical_total_shares']));
|
552 |
+
$offset = (isset($theChampSharingOptions['alignment']) && $theChampSharingOptions['alignment'] != '' && isset($theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset']) && $theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'] != '' ? $theChampSharingOptions['alignment'].': '.$theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'].'px;' : '').(isset($theChampSharingOptions['top_offset']) && $theChampSharingOptions['top_offset'] != '' ? 'top: '.$theChampSharingOptions['top_offset'].'px;' : '');
|
553 |
+
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . "' style='width:" . ($theChampSharingOptions['vertical_sharing_size'] + 4) . "px;" . $offset . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
554 |
+
// show vertical sharing
|
555 |
+
if((isset( $theChampSharingOptions['vertical_home']) && is_front_page()) || (isset( $theChampSharingOptions['vertical_category']) && is_category()) || (isset( $theChampSharingOptions['vertical_archive']) && is_archive()) || ( isset( $theChampSharingOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampSharingOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic'))) || (current_filter() == 'bp_before_group_header' && isset($theChampSharingOptions['vertical_bp_group']))) {
|
556 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header') ) ){
|
557 |
+
echo $verticalDiv;
|
558 |
+
}else{
|
559 |
+
if(is_front_page()){
|
560 |
+
global $theChampVerticalHomeCount, $theChampVerticalExcerptCount;
|
561 |
+
if(current_filter() == 'the_content'){
|
562 |
+
$var = 'theChampVerticalHomeCount';
|
563 |
+
}elseif(current_filter() == 'get_the_excerpt'){
|
564 |
+
$var = 'theChampVerticalExcerptCount';
|
565 |
+
}
|
566 |
+
if($$var == 0){
|
567 |
+
if(isset($theChampSharingOptions['vertical_target_url']) && $theChampSharingOptions['vertical_target_url'] == 'default'){
|
568 |
+
$postUrl = site_url();
|
569 |
+
$sharingUrl = $postUrl;
|
570 |
+
if(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){
|
571 |
+
$sharingUrl = wp_get_shortlink();
|
572 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
573 |
+
}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
574 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl, 0);
|
575 |
+
if($shortUrl){
|
576 |
+
$sharingUrl = $shortUrl;
|
577 |
+
}
|
578 |
+
}
|
579 |
+
|
580 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']), isset($theChampSharingOptions['vertical_total_shares']));
|
581 |
+
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . "' style='width:" . ($theChampSharingOptions['vertical_sharing_size'] + 4) . "px;" . $offset . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
582 |
+
}
|
583 |
+
$content = $content.$verticalDiv;
|
584 |
+
$$var++;
|
585 |
+
}
|
586 |
+
}else{
|
587 |
+
$content = $content.$verticalDiv;
|
588 |
+
}
|
589 |
+
}
|
590 |
+
} elseif( count( $post_types ) ) {
|
591 |
+
foreach ( $post_types as $post_type ) {
|
592 |
+
if( isset( $theChampSharingOptions['vertical_' . $post_type] ) && ( is_single() || is_page() ) && isset($post -> post_type) && $post -> post_type == $post_type ) {
|
593 |
+
$content = $content . $verticalDiv;
|
594 |
+
}
|
595 |
+
}
|
596 |
+
}
|
597 |
+
}
|
598 |
+
}
|
599 |
+
return $content;
|
600 |
+
}
|
601 |
+
add_filter('the_content', 'the_champ_render_sharing');
|
602 |
+
add_filter('get_the_excerpt', 'the_champ_render_sharing');
|
603 |
+
if(isset($theChampSharingOptions['bp_activity']) || isset($theChampCounterOptions['bp_activity'])){
|
604 |
+
add_action('bp_activity_entry_meta', 'the_champ_render_sharing', 999);
|
605 |
+
}
|
606 |
+
if(isset($theChampSharingOptions['bp_group']) || isset($theChampSharingOptions['vertical_bp_group']) || isset($theChampCounterOptions['bp_group']) || isset($theChampCounterOptions['vertical_bp_group'])){
|
607 |
+
add_action('bp_before_group_header', 'the_champ_render_sharing');
|
608 |
+
}
|
609 |
+
add_filter('bbp_get_reply_content', 'the_champ_render_sharing');
|
610 |
+
add_filter( 'bbp_template_before_single_forum', 'the_champ_render_sharing' );
|
611 |
+
add_filter( 'bbp_template_before_single_topic', 'the_champ_render_sharing' );
|
612 |
+
add_filter( 'bbp_template_before_lead_topic', 'the_champ_render_sharing' );
|
613 |
+
add_filter( 'bbp_template_after_single_forum', 'the_champ_render_sharing' );
|
614 |
+
add_filter( 'bbp_template_after_single_topic', 'the_champ_render_sharing' );
|
615 |
+
add_filter( 'bbp_template_after_lead_topic', 'the_champ_render_sharing' );
|
616 |
+
// Sharing at WooCommerce pages
|
617 |
+
if(isset($theChampSharingOptions['woocom_shop']) || isset($theChampCounterOptions['woocom_shop'])){
|
618 |
+
add_action('woocommerce_after_shop_loop_item', 'the_champ_render_sharing');
|
619 |
+
}
|
620 |
+
if(isset($theChampSharingOptions['woocom_product']) || isset($theChampCounterOptions['woocom_product'])){
|
621 |
+
add_action('woocommerce_share', 'the_champ_render_sharing');
|
622 |
+
}
|
623 |
+
if(isset($theChampSharingOptions['woocom_thankyou']) || isset($theChampCounterOptions['woocom_thankyou'])){
|
624 |
+
add_action('woocommerce_thankyou', 'the_champ_render_sharing');
|
625 |
+
}
|
626 |
+
|
627 |
+
/**
|
628 |
+
* Get sharing count for providers
|
629 |
+
*/
|
630 |
+
function the_champ_sharing_count(){
|
631 |
+
if(isset($_GET['urls']) && count($_GET['urls']) > 0){
|
632 |
+
$targetUrls = array_unique($_GET['urls']);
|
633 |
+
foreach($targetUrls as $k => $v){
|
634 |
+
$targetUrls[$k] = esc_attr($v);
|
635 |
+
}
|
636 |
+
}else{
|
637 |
+
the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
|
638 |
+
}
|
639 |
+
global $theChampSharingOptions;
|
640 |
+
$horizontalSharingNetworks = isset($theChampSharingOptions['providers']) ? $theChampSharingOptions['providers'] : array();
|
641 |
+
$verticalSharingNetworks = isset($theChampSharingOptions['vertical_providers']) ? $theChampSharingOptions['vertical_providers'] : array();
|
642 |
+
$sharingNetworks = array_unique(array_merge($horizontalSharingNetworks, $verticalSharingNetworks));
|
643 |
+
if(count($sharingNetworks) == 0){
|
644 |
+
the_champ_ajax_response(array('status' => 0, 'message' => __('Providers not selected')));
|
645 |
+
}
|
646 |
+
$responseData = array();
|
647 |
+
foreach($targetUrls as $targetUrl){
|
648 |
+
foreach($sharingNetworks as $provider){
|
649 |
+
switch($provider){
|
650 |
+
case 'facebook':
|
651 |
+
$url = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' . $targetUrl . '&format=json&callback=';
|
652 |
+
break;
|
653 |
+
case 'twitter':
|
654 |
+
$url = 'http://urls.api.twitter.com/1/urls/count.json?url=' . $targetUrl;
|
655 |
+
break;
|
656 |
+
case 'linkedin':
|
657 |
+
$url = 'http://www.linkedin.com/countserv/count/share?url='. $targetUrl .'&format=json';
|
658 |
+
break;
|
659 |
+
case 'reddit':
|
660 |
+
$url = 'http://www.reddit.com/api/info.json?url='. $targetUrl;
|
661 |
+
break;
|
662 |
+
case 'delicious':
|
663 |
+
$url = 'http://feeds.delicious.com/v2/json/urlinfo/data?url='. $targetUrl;
|
664 |
+
break;
|
665 |
+
case 'pinterest':
|
666 |
+
$url = 'http://api.pinterest.com/v1/urls/count.json?callback=theChamp&url='. $targetUrl;
|
667 |
+
break;
|
668 |
+
case 'buffer':
|
669 |
+
$url = 'https://api.bufferapp.com/1/links/shares.json?url='. $targetUrl;
|
670 |
+
break;
|
671 |
+
case 'stumbleupon':
|
672 |
+
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url='. $targetUrl;
|
673 |
+
break;
|
674 |
+
case 'google':
|
675 |
+
$url = 'http://share.yandex.ru/gpp.xml?url='. $targetUrl;
|
676 |
+
break;
|
677 |
+
case 'vkontakte':
|
678 |
+
$url = 'https://vk.com/share.php?act=count&url='. $targetUrl;
|
679 |
+
break;
|
680 |
+
default:
|
681 |
+
$url = '';
|
682 |
+
}
|
683 |
+
if($url == '') { continue; }
|
684 |
+
$response = wp_remote_get( $url, array( 'timeout' => 15 ) );
|
685 |
+
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
686 |
+
$body = wp_remote_retrieve_body( $response );
|
687 |
+
if($provider == 'pinterest'){
|
688 |
+
$body = str_replace(array('theChamp(', ')'), '', $body);
|
689 |
+
}
|
690 |
+
if(!in_array($provider, array('google', 'vkontakte'))){
|
691 |
+
$body = json_decode($body);
|
692 |
+
}
|
693 |
+
switch($provider){
|
694 |
+
case 'facebook':
|
695 |
+
if(!empty($body[0] -> total_count)){
|
696 |
+
$responseData[$targetUrl]['facebook'] = $body[0] -> total_count;
|
697 |
+
}else{
|
698 |
+
$responseData[$targetUrl]['facebook'] = 0;
|
699 |
+
}
|
700 |
+
break;
|
701 |
+
case 'twitter':
|
702 |
+
if(!empty($body -> count)){
|
703 |
+
$responseData[$targetUrl]['twitter'] = $body -> count;
|
704 |
+
}else{
|
705 |
+
$responseData[$targetUrl]['twitter'] = 0;
|
706 |
+
}
|
707 |
+
break;
|
708 |
+
case 'linkedin':
|
709 |
+
if(!empty($body -> count)){
|
710 |
+
$responseData[$targetUrl]['linkedin'] = $body -> count;
|
711 |
+
}else{
|
712 |
+
$responseData[$targetUrl]['linkedin'] = 0;
|
713 |
+
}
|
714 |
+
break;
|
715 |
+
case 'reddit':
|
716 |
+
$responseData[$targetUrl]['reddit'] = 0;
|
717 |
+
if(!empty($body -> data -> children)){
|
718 |
+
$children = $body -> data -> children;
|
719 |
+
if(!empty($children[0] -> data -> score)){
|
720 |
+
$responseData[$targetUrl]['reddit'] = $children[0] -> data -> score;
|
721 |
+
}
|
722 |
+
}
|
723 |
+
break;
|
724 |
+
case 'delicious':
|
725 |
+
if(!empty($body[0] -> total_posts)){
|
726 |
+
$responseData[$targetUrl]['delicious'] = $body[0] -> total_posts;
|
727 |
+
}else{
|
728 |
+
$responseData[$targetUrl]['delicious'] = 0;
|
729 |
+
}
|
730 |
+
break;
|
731 |
+
case 'pinterest':
|
732 |
+
if(!empty($body -> count)){
|
733 |
+
$responseData[$targetUrl]['pinterest'] = $body -> count;
|
734 |
+
}else{
|
735 |
+
$responseData[$targetUrl]['pinterest'] = 0;
|
736 |
+
}
|
737 |
+
break;
|
738 |
+
case 'buffer':
|
739 |
+
if(!empty($body -> shares)){
|
740 |
+
$responseData[$targetUrl]['buffer'] = $body -> shares;
|
741 |
+
}else{
|
742 |
+
$responseData[$targetUrl]['buffer'] = 0;
|
743 |
+
}
|
744 |
+
break;
|
745 |
+
case 'stumbleupon':
|
746 |
+
if(!empty($body -> result) && isset( $body -> result -> views )){
|
747 |
+
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
748 |
+
}else{
|
749 |
+
$responseData[$targetUrl]['stumbleupon'] = 0;
|
750 |
+
}
|
751 |
+
break;
|
752 |
+
case 'google':
|
753 |
+
if(!empty($body)){
|
754 |
+
$responseData[$targetUrl]['google'] = $body;
|
755 |
+
}else{
|
756 |
+
$responseData[$targetUrl]['google'] = 0;
|
757 |
+
}
|
758 |
+
break;
|
759 |
+
case 'vkontakte':
|
760 |
+
if(!empty($body)){
|
761 |
+
$responseData[$targetUrl]['vkontakte'] = $body;
|
762 |
+
}else{
|
763 |
+
$responseData[$targetUrl]['vkontakte'] = 0;
|
764 |
+
}
|
765 |
+
break;
|
766 |
+
}
|
767 |
+
}
|
768 |
+
}
|
769 |
+
}
|
770 |
+
the_champ_ajax_response(array('status' => 1, 'message' => $responseData));
|
771 |
+
}
|
772 |
+
|
773 |
+
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
774 |
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
js/front/social_login/vkontakte.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function theChampInitializeVKLogin(){VK.Auth.login(function(
|
1 |
+
function theChampInitializeVKLogin(){VK.Auth.login(function(t){t.session.mid&&VK.Api.call("getProfiles",{uids:t.session.mid,fields:"uid, first_name, last_name, nickname, photo, photo_big"},function(t){t.response[0].uid&&theChampCallAjax(function(){theChampAjaxUserAuth(t.response[0],"vkontakte")})})})}window.vkAsyncInit=function(){VK.init({apiId:theChampVkKey}),theChampDisplayLoginIcon(document,["theChampVkontakteButton","theChampVkontakteLogin"])},setTimeout(function(){var t=document.getElementsByTagName("head")[0],e=document.createElement("script");e.type="text/javascript",e.src="//vk.com/js/api/openapi.js",e.async=!0,t.appendChild(e)},0);
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Super Socializer ===
|
2 |
Contributors: Heateor, the_champ, Hungarian Translator: László Tavaszi http://kerekmese.hu, Serbo-Croatian Translator: Andrijana Nikolic http://webhostinggeeks.com/, Italian Translator: Maurizio https://freedomsgate.org, Spanish translator: Andrew Kurtis http://webhostinghub.com, German Translator: Maximilian Kops http://maxkops.de, Arabic Translator: http://www.ArabsSM.com, Russian Translator: Nicholas Lagunov http://tobehip.com.ua
|
3 |
-
Donate link: https://www.heateor.com/
|
4 |
Tags: the champ, champ, social login, social sharing, social commenting, social comments, social plugin, buddypress, bbpress, social share, comments, share post, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, social sign-in, signin, sign up, signup, social connect, facebook login, twitter login, google login, google+ login, linkedin login, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, social network
|
5 |
Requires at least: 2.5.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 6.6.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
@@ -198,6 +198,10 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
198 |
8. **Social Commenting**: Disqus Commenting selected
|
199 |
|
200 |
== Changelog ==
|
|
|
|
|
|
|
|
|
201 |
= 6.6.3 =
|
202 |
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
203 |
|
@@ -706,4 +710,8 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
706 |
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
707 |
|
708 |
= 6.6.3 =
|
709 |
-
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
|
|
|
|
|
|
|
1 |
=== Super Socializer ===
|
2 |
Contributors: Heateor, the_champ, Hungarian Translator: László Tavaszi http://kerekmese.hu, Serbo-Croatian Translator: Andrijana Nikolic http://webhostinggeeks.com/, Italian Translator: Maurizio https://freedomsgate.org, Spanish translator: Andrew Kurtis http://webhostinghub.com, German Translator: Maximilian Kops http://maxkops.de, Arabic Translator: http://www.ArabsSM.com, Russian Translator: Nicholas Lagunov http://tobehip.com.ua
|
3 |
+
Donate link: https://www.heateor.com/donate?action=Super+Socializer
|
4 |
Tags: the champ, champ, social login, social sharing, social commenting, social comments, social plugin, buddypress, bbpress, social share, comments, share post, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, social sign-in, signin, sign up, signup, social connect, facebook login, twitter login, google login, google+ login, linkedin login, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, social network
|
5 |
Requires at least: 2.5.0
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 6.6.4
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
198 |
8. **Social Commenting**: Disqus Commenting selected
|
199 |
|
200 |
== Changelog ==
|
201 |
+
= 6.6.4 =
|
202 |
+
* [Bugfix] Text was appearing in encoded format in Whatsapp sharing
|
203 |
+
* [Improvement] <div id="vk_api_transport"></div> was being added in <head> section on enabling Vkontakte login
|
204 |
+
|
205 |
= 6.6.3 =
|
206 |
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
207 |
|
710 |
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
711 |
|
712 |
= 6.6.3 =
|
713 |
+
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
714 |
+
|
715 |
+
= 6.6.4 =
|
716 |
+
* [Bugfix] Text was appearing in encoded format in Whatsapp sharing
|
717 |
+
* [Improvement] <div id="vk_api_transport"></div> was being added in <head> section on enabling Vkontakte login
|
super_socializer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
-
Version: 6.6.
|
7 |
Author: Team Heateor
|
8 |
Author URI: http://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
@@ -11,7 +11,7 @@ Domain Path: /languages
|
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
-
define('THE_CHAMP_SS_VERSION', '6.6.
|
15 |
|
16 |
$theChampLoginOptions = get_option('the_champ_login');
|
17 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
@@ -453,7 +453,6 @@ function the_champ_frontend_scripts(){
|
|
453 |
// Vkontakte scripts
|
454 |
if(the_champ_social_login_provider_enabled('vkontakte') && !is_user_logged_in()){
|
455 |
?>
|
456 |
-
<div id="vk_api_transport"></div>
|
457 |
<script> var theChampVkKey = '<?php echo (isset($theChampLoginOptions["vk_key"]) && $theChampLoginOptions["vk_key"] != "") ? $theChampLoginOptions["vk_key"] : 0 ?>' </script>
|
458 |
<?php
|
459 |
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION, $inFooter);
|
@@ -482,39 +481,39 @@ function the_champ_frontend_scripts(){
|
|
482 |
global $post;
|
483 |
if($post){
|
484 |
$postMeta = get_post_meta($post -> ID, '_the_champ_meta', true);
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
$
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
}
|
494 |
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
|
|
504 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
506 |
-
$labels = array();
|
507 |
-
$labels['wordpress'] = $theChampFacebookOptions['label_wordpress_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_wordpress_comments'], ENT_QUOTES) : 'Default Comments';
|
508 |
-
$commentsCount = wp_count_comments($post->ID);
|
509 |
-
$labels['wordpress'] .= ' ('. ($commentsCount && isset($commentsCount -> approved) ? $commentsCount -> approved : '') .')';
|
510 |
-
$labels['fb'] = $theChampFacebookOptions['label_facebook_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_facebook_comments'], ENT_QUOTES) : 'Facebook Comments';
|
511 |
-
$labels['fb'] .= ' (<fb:comments-count href='. $commentUrl .'></fb:comments-count>)';
|
512 |
-
$labels['googleplus'] = $theChampFacebookOptions['label_googleplus_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_googleplus_comments'], ENT_QUOTES) : 'GooglePlus Comments';
|
513 |
-
$labels['disqus'] = $theChampFacebookOptions['label_disqus_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_disqus_comments'], ENT_QUOTES) : 'Disqus Comments';
|
514 |
-
?>
|
515 |
-
<script>var theChampFBCommentUrl = '<?php echo $commentUrl ?>'; var theChampFBCommentColor = '<?php echo (isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] != '') ? $theChampFacebookOptions["comment_color"] : ''; ?>'; var theChampFBCommentNumPosts = '<?php echo (isset($theChampFacebookOptions['comment_numposts']) && $theChampFacebookOptions['comment_numposts'] != '') ? $theChampFacebookOptions["comment_numposts"] : ''; ?>'; var theChampFBCommentWidth = '<?php echo (isset($theChampFacebookOptions['comment_width']) && $theChampFacebookOptions['comment_width'] != '') ? $theChampFacebookOptions["comment_width"] : '100%'; ?>'; var theChampFBCommentOrderby = '<?php echo (isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] != '') ? $theChampFacebookOptions["comment_orderby"] : ''; ?>'; var theChampCommentingTabs = "<?php echo isset($theChampFacebookOptions['commenting_order']) ? $theChampFacebookOptions['commenting_order'] : ''; ?>", theChampGpCommentsUrl = '<?php echo isset($theChampFacebookOptions['gpcomments_url']) && $theChampFacebookOptions['gpcomments_url'] != '' ? $theChampFacebookOptions['gpcomments_url'] : $commentUrl; ?>', theChampDisqusShortname = '<?php echo isset($theChampFacebookOptions['dq_shortname']) ? $theChampFacebookOptions['dq_shortname'] : ''; ?>', theChampScEnabledTabs = '<?php echo implode(',', $enabledTabs) ?>', theChampScLabel = '<?php echo $theChampFacebookOptions['commenting_label'] != '' ? htmlspecialchars($theChampFacebookOptions['commenting_label'], ENT_QUOTES) : __('Leave a reply', 'Super-Socializer'); ?>', theChampScTabLabels = <?php echo json_encode($labels) ?>, theChampGpCommentsWidth = <?php echo isset($theChampFacebookOptions['gpcomments_width']) && $theChampFacebookOptions['gpcomments_width'] != '' ? $theChampFacebookOptions['gpcomments_width'] : 0; ?>, theChampCommentingId = '<?php echo isset($theChampFacebookOptions['commenting_id']) && $theChampFacebookOptions['commenting_id'] != '' ? $theChampFacebookOptions['commenting_id'] : 'respond' ?>'</script>
|
516 |
-
<?php
|
517 |
-
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION, $inFooter);
|
518 |
}
|
519 |
}
|
520 |
// sharing script
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
+
Version: 6.6.4
|
7 |
Author: Team Heateor
|
8 |
Author URI: http://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
+
define('THE_CHAMP_SS_VERSION', '6.6.4');
|
15 |
|
16 |
$theChampLoginOptions = get_option('the_champ_login');
|
17 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
453 |
// Vkontakte scripts
|
454 |
if(the_champ_social_login_provider_enabled('vkontakte') && !is_user_logged_in()){
|
455 |
?>
|
|
|
456 |
<script> var theChampVkKey = '<?php echo (isset($theChampLoginOptions["vk_key"]) && $theChampLoginOptions["vk_key"] != "") ? $theChampLoginOptions["vk_key"] : 0 ?>' </script>
|
457 |
<?php
|
458 |
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION, $inFooter);
|
481 |
global $post;
|
482 |
if($post){
|
483 |
$postMeta = get_post_meta($post -> ID, '_the_champ_meta', true);
|
484 |
+
if(isset($theChampFacebookOptions['enable_' . $post->post_type]) && !(isset($postMeta) && isset($postMeta['fb_comments']) && $postMeta['fb_comments'] == 1)){
|
485 |
+
if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
|
486 |
+
$commentUrl = $theChampFacebookOptions['urlToComment'];
|
487 |
+
}elseif(isset($post -> ID) && $post -> ID){
|
488 |
+
$commentUrl = get_permalink($post -> ID);
|
489 |
+
}else{
|
490 |
+
$commentUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]));
|
491 |
+
}
|
|
|
492 |
|
493 |
+
$commentingTabsOrder = ($theChampFacebookOptions['commenting_order'] != '' ? $theChampFacebookOptions['commenting_order'] : 'wordpress,facebook,googleplus,disqus');
|
494 |
+
$commentingTabsOrder = explode(',', str_replace('facebook', 'fb', $commentingTabsOrder));
|
495 |
+
$enabledTabs = array();
|
496 |
+
foreach($commentingTabsOrder as $tab){
|
497 |
+
$tab = trim($tab);
|
498 |
+
if($tab == 'wordpress'){
|
499 |
+
$enabledTabs[] = 'wordpress';
|
500 |
+
}elseif(isset($theChampFacebookOptions['enable_'. $tab .'comments'])){
|
501 |
+
$enabledTabs[] = $tab;
|
502 |
+
}
|
503 |
}
|
504 |
+
$labels = array();
|
505 |
+
$labels['wordpress'] = $theChampFacebookOptions['label_wordpress_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_wordpress_comments'], ENT_QUOTES) : 'Default Comments';
|
506 |
+
$commentsCount = wp_count_comments($post->ID);
|
507 |
+
$labels['wordpress'] .= ' ('. ($commentsCount && isset($commentsCount -> approved) ? $commentsCount -> approved : '') .')';
|
508 |
+
$labels['fb'] = $theChampFacebookOptions['label_facebook_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_facebook_comments'], ENT_QUOTES) : 'Facebook Comments';
|
509 |
+
$labels['fb'] .= ' (<fb:comments-count href='. $commentUrl .'></fb:comments-count>)';
|
510 |
+
$labels['googleplus'] = $theChampFacebookOptions['label_googleplus_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_googleplus_comments'], ENT_QUOTES) : 'GooglePlus Comments';
|
511 |
+
$labels['disqus'] = $theChampFacebookOptions['label_disqus_comments'] != '' ? htmlspecialchars($theChampFacebookOptions['label_disqus_comments'], ENT_QUOTES) : 'Disqus Comments';
|
512 |
+
?>
|
513 |
+
<script>var theChampFBCommentUrl = '<?php echo $commentUrl ?>'; var theChampFBCommentColor = '<?php echo (isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] != '') ? $theChampFacebookOptions["comment_color"] : ''; ?>'; var theChampFBCommentNumPosts = '<?php echo (isset($theChampFacebookOptions['comment_numposts']) && $theChampFacebookOptions['comment_numposts'] != '') ? $theChampFacebookOptions["comment_numposts"] : ''; ?>'; var theChampFBCommentWidth = '<?php echo (isset($theChampFacebookOptions['comment_width']) && $theChampFacebookOptions['comment_width'] != '') ? $theChampFacebookOptions["comment_width"] : '100%'; ?>'; var theChampFBCommentOrderby = '<?php echo (isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] != '') ? $theChampFacebookOptions["comment_orderby"] : ''; ?>'; var theChampCommentingTabs = "<?php echo isset($theChampFacebookOptions['commenting_order']) ? $theChampFacebookOptions['commenting_order'] : ''; ?>", theChampGpCommentsUrl = '<?php echo isset($theChampFacebookOptions['gpcomments_url']) && $theChampFacebookOptions['gpcomments_url'] != '' ? $theChampFacebookOptions['gpcomments_url'] : $commentUrl; ?>', theChampDisqusShortname = '<?php echo isset($theChampFacebookOptions['dq_shortname']) ? $theChampFacebookOptions['dq_shortname'] : ''; ?>', theChampScEnabledTabs = '<?php echo implode(',', $enabledTabs) ?>', theChampScLabel = '<?php echo $theChampFacebookOptions['commenting_label'] != '' ? htmlspecialchars($theChampFacebookOptions['commenting_label'], ENT_QUOTES) : __('Leave a reply', 'Super-Socializer'); ?>', theChampScTabLabels = <?php echo json_encode($labels) ?>, theChampGpCommentsWidth = <?php echo isset($theChampFacebookOptions['gpcomments_width']) && $theChampFacebookOptions['gpcomments_width'] != '' ? $theChampFacebookOptions['gpcomments_width'] : 0; ?>, theChampCommentingId = '<?php echo isset($theChampFacebookOptions['commenting_id']) && $theChampFacebookOptions['commenting_id'] != '' ? $theChampFacebookOptions['commenting_id'] : 'respond' ?>'</script>
|
514 |
+
<?php
|
515 |
+
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION, $inFooter);
|
516 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
}
|
518 |
}
|
519 |
// sharing script
|