WordPress Social Sharing Plugin – Social Warfare - Version 2.3.3

Version Description

(27 SEP 2017) =

  • Added "OpenShareCount.com" as an alternative source for Twitter share counts.
  • Moved some functions and classes from the Pro addon into core so that they can be used by all addons.
  • Updated the style of the image hover Pin button to be more consistent with the rest of the buttons.
  • Fixed the UTM tracking parameters from a bug that would turn them off if they were turned on for the pin button.
  • Fixed some typos in the readme.txt.
  • Moved all registration functions to use the WordPress HTTP API instead of cURL.
  • Setup the update checker to check for updates through Easy Digital Downloads (our store) rather than through GitHub.
  • Changed the registration functions to be hookable allowing it to track multiple registration (like addons) rather than only one single registration.
  • Added a hook to allow for additional URL's to be checked for share recovery functionality.
Download this release

Release Info

Developer WarfarePlugins
Plugin Icon 128x128 WordPress Social Sharing Plugin – Social Warfare
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

README.md DELETED
@@ -1,55 +0,0 @@
1
- # Warfare Plugins / Social Warfare Repository and Issue Tracker
2
- This is a public repository for the Social Warfare WordPress plugin created primarily for the purpose of publishing and maintaining a public list of bugs, known issues, and feature requests with the community at large. Please use the "Issues" link above to track or add information to existing issues or to submit new issues altogether.
3
-
4
- ***
5
-
6
- ## Guidelines & Standards for Creating & Updating Code on This Project
7
-
8
- Coding Standards are an important factor for achieving a high code quality. A common visual style, naming conventions and other technical settings allow us to produce a homogenous code which is easy to read and maintain.
9
-
10
- While this project has used various coding standards over time, this guide should provide the framework for all new code additions and to updates made to existing code.
11
-
12
- **WordPress Coding Standards:** All WordPress coding standards should be followed. Anything not specifically defined here should defer to WordPress's recommended coding standards found here: [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards).
13
-
14
- **Variables and Class Names:** All PHP and Javascript variables, functions and classes, and CSS classes and ID's should follow the following naming standards. All names will use the Snake Case nomenclature and be preceded with the swp_ prefix (e.g. swp_my_variable_name).
15
-
16
- **Docblocking:** Each file should begin with a docblock, as well as each function and class should be preceded with a docblock to explain it's purpose and functionality. There is no such thing as too much documentation on this project. The purpose is that any developer or non-developer should be able to easily browser each file and know exactly what is happening in that file.
17
-
18
- ***
19
-
20
- ## Guidelines for Submitting Issues to this GitHub Issue Tracker
21
- Before submitting an issue to the issue tracker, please be sure of a few things. By following these guidelines, you maximize the possibility of our development team being able to find a solution to the issue in a quick and thorough manner.
22
-
23
- ### Prerequisites: Do this BEFORE submitting an issue
24
-
25
- #### 1. Check the Documentation
26
- First check the [support documentation](https://warfareplugins.com/support/) on the Warfare Plugins website to ensure that a solution to your issue has not already been addressed. Once you've determined that there is no useful information for your particular issue, you may proceed to step 2.
27
-
28
- #### 2. Submit a Support Ticket First
29
- Once you have completed step 1, you need to submit a ticket using the [contact form on the Warfare Plugins website](https://warfareplugins.com/). Once submitted, most tickets are responded to on the same or next business day so please allow until the end of the next business day for a response.
30
-
31
- Many tickets being posted here are issues that simply require adjusting a single setting to accomodate themes or plugins in certain ways. The support team is able to respond to these much, much more quickly than here in the developer's workspace. Since this is the case, any issues submitted without first going through the support team will be deleted. Otherwise it is a waste of both your time and ours.
32
-
33
- #### 3. Create an Issue on GitHub
34
- Only once you have completed the above steps should you submit an issue to GitHub. GitHub is the workspace of the development team. In the rare instances where the support team is unable to solve a particular issue, it will be brought here to be tracked and solved by the development team. GitHub is public so that not only the support team, but also all users can view and track the progress of issues as well as commenting and participating in the conversation regarding each issue.
35
-
36
- ### Required Information: Provide this information WHILE submitting an issue
37
- Once you've gone through support and you're ready to submit a GitHub issue, please **copy and paste the following information into your GitHub issue and fill out the blanks**:
38
-
39
- #### Description of the Issue
40
-
41
- A. Describe the nature of the issue:
42
-
43
- B. How can this issue be replicated?:
44
-
45
- C. Is this issue able to be viewed on your site right now? If so, where?
46
-
47
- #### Additional Information
48
-
49
- A. What version of the plugin are you using?
50
-
51
- B. What version of WordPress are you using?
52
-
53
- C. What caching plugin(s) are you using?
54
-
55
- D. What version of PHP are you using?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/style.css CHANGED
@@ -1474,16 +1474,23 @@ div.sw-pinit a.sw-pinit-button,
1474
  div.sw-pinit a.sw-pinit-button:visited {
1475
  background: #cd2029;
1476
  border: 1px solid #aa1b29;
 
 
1477
  -webkit-border-radius: 4px;
1478
- border-radius: 4px;
 
 
1479
  color: #fff;
 
1480
  font-size: 20px;
1481
- height: 50px;
1482
- line-height: 45px;
 
1483
  opacity: 0;
1484
  padding: 0 30px;
1485
  position: absolute;
1486
  text-decoration: none;
 
1487
  -webkit-transition: opacity 0.5s;
1488
  transition: opacity 0.5s;
1489
  z-index: 200;
@@ -1499,9 +1506,9 @@ div.sw-pinit a.sw-pinit-button::before {
1499
  content: "b";
1500
  float: left;
1501
  font-family: sw-icon-font;
1502
- font-size: 24px;
1503
- font-weight: normal;
1504
- line-height: 50px;
1505
  margin-left: -5px;
1506
  margin-right: 10px;
1507
  }
1474
  div.sw-pinit a.sw-pinit-button:visited {
1475
  background: #cd2029;
1476
  border: 1px solid #aa1b29;
1477
+ border: 0;
1478
+ border-bottom: none;
1479
  -webkit-border-radius: 4px;
1480
+ border-radius: 3px;
1481
+ -webkit-box-shadow: none;
1482
+ box-shadow: none;
1483
  color: #fff;
1484
+ font-family: Lato,sans-serif;
1485
  font-size: 20px;
1486
+ font-size: 15px;
1487
+ height: 32px;
1488
+ line-height: 32px;
1489
  opacity: 0;
1490
  padding: 0 30px;
1491
  position: absolute;
1492
  text-decoration: none;
1493
+ text-decoration: none;
1494
  -webkit-transition: opacity 0.5s;
1495
  transition: opacity 0.5s;
1496
  z-index: 200;
1506
  content: "b";
1507
  float: left;
1508
  font-family: sw-icon-font;
1509
+ font-size: 20px;
1510
+ font-weight: 400;
1511
+ line-height: 36px;
1512
  margin-left: -5px;
1513
  margin-right: 10px;
1514
  }
css/style.min.css CHANGED
@@ -1 +1 @@
1
- .nc_socialPanel{clear:both;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:34px;line-height:1;margin-bottom:20px!important;margin-top:20px!important;overflow:hidden;padding:0;-webkit-align-items:stretch;align-items:stretch;-webkit-box-align:stretch;-moz-box-align:stretch;-webkit-box-pack:justify;-moz-box-pack:justify;direction:ltr;-ms-flex-align:stretch;-ms-flex-line-pack:center;-ms-flex-pack:justify;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-between;justify-content:space-between}.nc_socialPanel:not(.nc_floater):not(.nc_socialPanelSide){width:100%!important}.nc_wrapper .nc_socialPanel{margin-bottom:10px!important;margin-top:10px!important}div.nc_socialPanel .nc_tweetContainer{-webkit-border-radius:2px;border-radius:2px;cursor:pointer;float:left;font-family:Lato;height:32px;margin:0 5px 3px;min-width:34px;overflow:hidden;text-align:center;-webkit-transition:all .1s linear;transition:all .1s linear;border-size:1px}div.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nc_socialPanel .nc_tweetContainer a.nc_tweet,.nc_socialPanel .totes .swp_count{display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-family:Lato,sans-serif;font-size:18px!important;font-weight:700;height:30px;text-decoration:none;text-decoration:none!important;text-transform:none;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:horizontal;-moz-box-orient:horizontal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:nth-child(1){margin-left:0}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:nth-last-child(1){margin-right:0}.nc_socialPanel a .swp_count:not(.swp_hide){display:inline-block;line-height:32px;margin:0;padding:0 5px;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nc_socialPanel .totes .swp_count,span.swp_share{line-height:30px}.nc_socialPanel a .swp_count.swp_hide{margin:0 auto}.nc_socialPanel span:before{content:initial!important}.nc_socialPanel span.swp_count{font-size:14px}.nc_socialPanel span.iconFiller{font-size:18px;margin:0 auto}.nc_socialPanel.notMobile .nc_tweetContainer:nth-child(1){margin-left:0}.nc_socialPanel:not(.nc_socialPanelSide){-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.nc_socialPanel:not(.nc_socialPanelSide) div.totes.totesalt:nth-child(1){margin-left:0;margin-right:15px;padding-left:0}.nc_socialPanel:not(.nc_socialPanelSide) div.totes.totesalt:nth-last-child(1){margin-right:0;padding-right:0}a.swp_CTT{cursor:pointer}span.swp_share{display:block;float:right;float:left;font-size:14px;font-weight:400;height:30px;margin:0 0 0 6px;max-width:none!important;vertical-align:middle}.nc_socialPanelSide span.swp_share{margin:0}.nc_socialPanel .sw{float:left;height:30px;line-height:32px;margin:0 5px;text-shadow:none!important;width:20px}.iconFiller{display:block;float:left;height:30px;overflow:hidden;-webkit-transition:width .1s linear;transition:width .1s linear}.nc_socialPanel .iconFiller{width:30px}span.spaceManWilly{display:block;width:120px}.nc_socialPanel .totes{background:#c4c4c4;border:1px solid #e08a0f;-webkit-border-radius:2px;border-radius:2px;color:#fff;cursor:default;display:block;font-size:19px;padding:0 10px;-webkit-box-flex:0!important;-moz-box-flex:0!important;-webkit-flex:none!important;-ms-flex:none!important;flex:none!important}.nc_socialPanel div.totes.totesalt,.nc_socialPanel:hover div.totes.totesalt:not(:nth-child(1)){background:0 0!important;border:none;color:#474b4d;margin-left:0!important}div.nc_socialPanel:hover div.totes.totesalt:not(:nth-child(1)){background:0 0;color:#474b4d;margin-left:10px}.nc_socialPanel .totes.totesalt .swp_label{color:#474b4d;font-size:10px;letter-spacing:0;min-width:40px;vertical-align:middle}.nc_socialPanel .totes .swp_label{font-size:10px;vertical-align:middle}.nc_socialPanel .totes.totesalt .swp_count{color:#474b4d;font-size:24px}.nc_socialPanel.swp_customFull:hover div.totes,.nc_socialPanel.swp_fade .totes,.nc_socialPanel.swp_fullColor .totes,.nc_socialPanel:hover .totes{background:#e08a0f}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer.totes.totesalt:before{content:"o";display:inline-block;font-family:sw-icon-font;margin-top:7px;vertical-align:top}.nc_socialPanel:not(.nc_socialPanelSide) .totes.totesalt .swp_count{display:inline-block;line-height:0;margin-left:8px;margin-top:12px;min-width:45px;position:relative;vertical-align:middle}span.swp_label{display:block;font-size:9px!important;margin-top:13px;position:absolute;text-align:center!important;text-transform:uppercase}.nc_socialPanelSide span.swp_label{margin-top:0}.nc_socialPanel.swp_leaf .nc_tweetContainer{-webkit-border-radius:15px 0;border-radius:15px 0;border-width:1px}.nc_socialPanel.swp_pill .nc_tweetContainer{-webkit-border-radius:50px;border-radius:50px;border-width:1px}.nc_socialPanel.swp_shift .nc_tweetContainer:not(.totes){border-width:1px;-moz-transform:skew(-25deg);-o-transform:skew(-25deg);-webkit-transform:skew(-25deg)}.nc_socialPanel.swp_shift .nc_tweetContainer a{-moz-transform:skew(25deg);-o-transform:skew(25deg);-webkit-transform:skew(25deg)}.swp_connected .nc_tweetContainer,.swp_connected .nc_tweetContainer:hover,.swp_connected:hover .nc_tweetContainer{-webkit-border-radius:0!important;border-radius:0!important;border-width:1px;margin:0!important}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .googlePlus:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .googlePlus:hover{border:1px solid #df4b37}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .twitter,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .twitter:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .twitter:hover{border:1px solid #429cd6}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_fb:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_fb:hover{border:1px solid #3a589e}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .nc_pinterest:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .nc_pinterest:hover{border:1px solid #cd2029}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .linkedIn:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .linkedIn:hover{border:1px solid #0d77b7}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_tumblr:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_tumblr:hover{border:1px solid #39475d}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_stumbleupon:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_stumbleupon:hover{border:1px solid #ef5025}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_yummly:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_yummly:hover{border:1px solid #e26426}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_reddit:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_reddit:hover{border:1px solid #f04b23}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_email:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_email:hover{border:1px solid #6bcce9}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_whatsapp:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_whatsapp:hover{border:1px solid #71c169}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_pocket:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_pocket:hover{border:1px solid #ef4056}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_buffer:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_buffer:hover{border:1px solid #323b43}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_hacker_news:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_hacker_news:hover{border:1px solid #d85623}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_flipboard:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_flipboard:hover{border:1px solid #bf2626}.nc_socialPanel.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_o_fullColor:hover .googlePlus,html body .nc_socialPanel.swp_i_fullColor .googlePlus:hover{background:#df4b37;border:1px solid #c44133}.nc_socialPanel.swp_d_fullColor .twitter,body .nc_socialPanel.swp_o_fullColor:hover .twitter,html body .nc_socialPanel.swp_i_fullColor .twitter:hover{background:#429cd6;border:1px solid #3c87b2}.nc_socialPanel.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_o_fullColor:hover .swp_fb,html body .nc_socialPanel.swp_i_fullColor .swp_fb:hover{background:#3a589e;border:1px solid #2e4675}.nc_socialPanel.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_o_fullColor:hover .nc_pinterest,html body .nc_socialPanel.swp_i_fullColor .nc_pinterest:hover{background:#cd2029;border:1px solid #aa1b29}.nc_socialPanel.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_o_fullColor:hover .linkedIn,html body .nc_socialPanel.swp_i_fullColor .linkedIn:hover{background:#0d77b7;border:1px solid #0c6591}.nc_socialPanel.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_o_fullColor:hover .swp_tumblr,html body .nc_socialPanel.swp_i_fullColor .swp_tumblr:hover{background:#39475d;border:1px solid #27313f}.nc_socialPanel.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_o_fullColor:hover .swp_stumbleupon,html body .nc_socialPanel.swp_i_fullColor .swp_stumbleupon:hover{background:#ef5025;border:1px solid #d34427}.nc_socialPanel.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_o_fullColor:hover .swp_yummly,html body .nc_socialPanel.swp_i_fullColor .swp_yummly:hover{background:#e26426;border:1px solid #b65027}.nc_socialPanel.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_o_fullColor:hover .swp_reddit,html body .nc_socialPanel.swp_i_fullColor .swp_reddit:hover{background:#f04b23;border:1px solid #d33f27}.nc_socialPanel.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_o_fullColor:hover .swp_email,html body .nc_socialPanel.swp_i_fullColor .swp_email:hover{background:#6bcce9;border:1px solid #61bace}.nc_socialPanel.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_o_fullColor:hover .swp_whatsapp,html body .nc_socialPanel.swp_i_fullColor .swp_whatsapp:hover{background:#71c169;border:1px solid #28b04b}.nc_socialPanel.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_o_fullColor:hover .swp_pocket,html body .nc_socialPanel.swp_i_fullColor .swp_pocket:hover{background:#ef4056;border:1px solid #ce3d55}.nc_socialPanel.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_o_fullColor:hover .swp_buffer,html body .nc_socialPanel.swp_i_fullColor .swp_buffer:hover{background:#323b43;border:1px solid #000}.nc_socialPanel.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_o_fullColor:hover .swp_hacker_news,html body .nc_socialPanel.swp_i_fullColor .swp_hacker_news:hover{background:#f16522;border:1px solid #d85623}.nc_socialPanel.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_o_fullColor:hover .swp_flipboard,html body .nc_socialPanel.swp_i_fullColor .swp_flipboard:hover{background:#e02828;border:1px solid #bf2626}.nc_socialPanel.swp_threeDee.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .googlePlus,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .googlePlus:hover{border-bottom:3px solid #c44133}.nc_socialPanel.swp_threeDee.swp_d_fullColor .twitter,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .twitter,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .twitter:hover{border-bottom:3px solid #5595bc}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_fb,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_fb:hover{border-bottom:3px solid #2e4675}.nc_socialPanel.swp_threeDee.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .nc_pinterest,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .nc_pinterest:hover{border-bottom:3px solid #aa1b29}.nc_socialPanel.swp_threeDee.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .linkedIn,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .linkedIn:hover{border-bottom:3px solid #0c6591}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_tumblr,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_tumblr:hover{border-bottom:3px solid #27313f}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_stumbleupon,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_stumbleupon:hover{border-bottom:3px solid #d34427}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_yummly,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_yummly:hover{border-bottom:3px solid #b65027}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_reddit,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_reddit:hover{border-bottom:3px solid #d33f27}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_email,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_email:hover{border-bottom:3px solid #61bace}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_whatsapp,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_whatsapp:hover{border-bottom:3px solid #28b04b}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_pocket,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_pocket:hover{border-bottom:3px solid #ce3d55}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_buffer,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_buffer:hover{border-bottom:3px solid #000}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_hacker_news,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_hacker_news:hover{border-bottom:3px solid #d85623}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_flipboard,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_flipboard:hover{border-bottom:3px solid #bf2626}.nc_socialPanel.swp_d_lightGray .nc_tweetContainer,body .nc_socialPanel.swp_o_lightGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_lightGray .nc_tweetContainer:hover{background-color:#ccc;border:1px solid #ccc}.nc_socialPanel.swp_threeDee.swp_d_lightGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_lightGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_lightGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #999}.nc_socialPanel.swp_d_mediumGray .nc_tweetContainer,body .nc_socialPanel.swp_o_mediumGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_mediumGray .nc_tweetContainer:hover{background-color:#999;border:1px solid #999}.nc_socialPanel.swp_threeDee.swp_d_mediumGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_mediumGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_mediumGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #444}.nc_socialPanel.swp_d_darkGray .nc_tweetContainer,body .nc_socialPanel.swp_o_darkGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_darkGray .nc_tweetContainer:hover{background-color:#444;border:1px solid #444}.nc_socialPanel.swp_threeDee.swp_d_darkGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_darkGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_darkGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #222}.nc_socialPanel.swp_d_lgOutlines a,body .nc_socialPanel.swp_o_lgOutlines:hover a,html body .nc_socialPanel.swp_i_lgOutlines a:hover{color:#ccc}.nc_socialPanel.swp_d_lgOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_lgOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_lgOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #ccc}.nc_socialPanel.swp_d_mdOutlines a,body .nc_socialPanel.swp_o_mdOutlines:hover a,html body .nc_socialPanel.swp_i_mdOutlines a:hover{color:#999}.nc_socialPanel.swp_d_mdOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_mdOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_mdOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #999}.nc_socialPanel.swp_d_dgOutlines a,body .nc_socialPanel.swp_o_dgOutlines:hover a,html body .nc_socialPanel.swp_i_dgOutlines a:hover{color:#444}.nc_socialPanel.swp_d_dgOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_dgOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_dgOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #444}.nc_socialPanel.swp_d_colorOutlines .googlePlus a,body .nc_socialPanel.swp_o_colorOutlines:hover .googlePlus a,html body .nc_socialPanel.swp_i_colorOutlines .googlePlus a:hover{color:#df4b37}.nc_socialPanel.swp_d_colorOutlines .swp_fb a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_fb a,html body .nc_socialPanel.swp_i_colorOutlines .swp_fb a:hover{color:#3a589e}.nc_socialPanel.swp_d_colorOutlines .nc_pinterest a,body .nc_socialPanel.swp_o_colorOutlines:hover .nc_pinterest a,html body .nc_socialPanel.swp_i_colorOutlines .nc_pinterest a:hover{color:#cd2029}.nc_socialPanel.swp_d_colorOutlines .linkedIn a,body .nc_socialPanel.swp_o_colorOutlines:hover .linkedIn a,html body .nc_socialPanel.swp_i_colorOutlines .linkedIn a:hover{color:#0d77b7}.nc_socialPanel.swp_d_colorOutlines .swp_tumblr a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_tumblr a,html body .nc_socialPanel.swp_i_colorOutlines .swp_tumblr a:hover{color:#39475d}.nc_socialPanel.swp_d_colorOutlines .swp_stumbleupon a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_stumbleupon a,html body .nc_socialPanel.swp_i_colorOutlines .swp_stumbleupon a:hover{color:#ef5025}.nc_socialPanel.swp_d_colorOutlines .swp_yummly a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_yummly a,html body .nc_socialPanel.swp_i_colorOutlines .swp_yummly a:hover{color:#e26426}.nc_socialPanel.swp_d_colorOutlines .swp_whatsapp a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_whatsapp a,html body .nc_socialPanel.swp_i_colorOutlines .swp_whatsapp a:hover{color:#71c169}.nc_socialPanel.swp_d_colorOutlines .swp_pocket a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_pocket a,html body .nc_socialPanel.swp_i_colorOutlines .swp_pocket a:hover{color:#ef4056}.nc_socialPanel.swp_d_colorOutlines .swp_reddit a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_reddit a,html body .nc_socialPanel.swp_i_colorOutlines .swp_reddit a:hover{color:#f04b23}.nc_socialPanel.swp_d_colorOutlines .swp_email a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_email a,html body .nc_socialPanel.swp_i_colorOutlines .swp_email a:hover{color:#6bcce9}.nc_socialPanel.swp_d_colorOutlines .swp_buffer a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_buffer a,html body .nc_socialPanel.swp_i_colorOutlines .swp_buffer a:hover{color:#323b43}.nc_socialPanel.swp_d_colorOutlines .swp_hacker_news a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_hacker_news a,html body .nc_socialPanel.swp_i_colorOutlines .swp_hacker_news a:hover{color:#f16522}.nc_socialPanel.swp_d_colorOutlines .swp_flipboard a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_flipboard a,html body .nc_socialPanel.swp_i_colorOutlines .swp_flipboard a:hover{color:#e02828}.nc_socialPanel.swp_d_colorOutlines .googlePlus,body .nc_socialPanel.swp_o_colorOutlines:hover .googlePlus,html body .nc_socialPanel.swp_i_colorOutlines .googlePlus:hover{background:0 0;border:1px solid #df4b37}.nc_socialPanel.swp_d_colorOutlines .twitter,body .nc_socialPanel.swp_o_colorOutlines:hover .twitter,html body .nc_socialPanel.swp_i_colorOutlines .twitter:hover{background:0 0;border:1px solid #429cd6}.nc_socialPanel.swp_d_colorOutlines .swp_fb,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_fb,html body .nc_socialPanel.swp_i_colorOutlines .swp_fb:hover{background:0 0;border:1px solid #3a589e}.nc_socialPanel.swp_d_colorOutlines .nc_pinterest,body .nc_socialPanel.swp_o_colorOutlines:hover .nc_pinterest,html body .nc_socialPanel.swp_i_colorOutlines .nc_pinterest:hover{background:0 0;border:1px solid #cd2029}.nc_socialPanel.swp_d_colorOutlines .linkedIn,body .nc_socialPanel.swp_o_colorOutlines:hover .linkedIn,html body .nc_socialPanel.swp_i_colorOutlines .linkedIn:hover{background:0 0;border:1px solid #0d77b7}.nc_socialPanel.swp_d_colorOutlines .swp_tumblr,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_tumblr,html body .nc_socialPanel.swp_i_colorOutlines .swp_tumblr:hover{background:0 0;border:1px solid #39475d}.nc_socialPanel.swp_d_colorOutlines .swp_stumbleupon,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_stumbleupon,html body .nc_socialPanel.swp_i_colorOutlines .swp_stumbleupon:hover{background:0 0;border:1px solid #ef5025}.nc_socialPanel.swp_d_colorOutlines .swp_yummly,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_yummly,html body .nc_socialPanel.swp_i_colorOutlines .swp_yummly:hover{background:0 0;border:1px solid #e26426}.nc_socialPanel.swp_d_colorOutlines .swp_whatsapp,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_whatsapp,html body .nc_socialPanel.swp_i_colorOutlines .swp_whatsapp:hover{background:0 0;border:1px solid #71c169}.nc_socialPanel.swp_d_colorOutlines .swp_reddit,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_reddit,html body .nc_socialPanel.swp_i_colorOutlines .swp_reddit:hover{background:0 0;border:1px solid #f04b23}.nc_socialPanel.swp_d_colorOutlines .swp_email,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_email,html body .nc_socialPanel.swp_i_colorOutlines .swp_email:hover{background:0 0;border:1px solid #6bcce9}.nc_socialPanel.swp_d_colorOutlines .swp_pocket,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_pocket,html body .nc_socialPanel.swp_i_colorOutlines .swp_pocket:hover{background:0 0;border:1px solid #ef4056}.nc_socialPanel.swp_d_colorOutlines .swp_buffer,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_buffer,html body .nc_socialPanel.swp_i_colorOutlines .swp_buffer:hover{background:0 0;border:1px solid #323b43}.nc_socialPanel.swp_d_colorOutlines .swp_hacker_news,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_hacker_news,html body .nc_socialPanel.swp_i_colorOutlines .swp_hacker_news:hover{background:0 0;border:1px solid #f16522}.nc_socialPanel.swp_d_colorOutlines .swp_flipboard,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_flipboard,html body .nc_socialPanel.swp_i_colorOutlines .swp_flipboard:hover{background:0 0;border:1px solid #bf2626}.nc_socialPanelSide{flex-direction:column;height:auto;overflow:visible;top:200px;-webkit-transition:all .2s linear;transition:all .2s linear;width:100px!important;z-index:9999999;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column}.nc_socialPanelSide.slide{position:fixed;left:-100px;-webkit-transition:all .2s linear;transition:all .2s linear}.nc_socialPanelSide.fade{display:none;position:fixed;left:5px;-webkit-transition:all .2s linear;transition:all .2s linear}.nc_socialPanelSide .nc_tweetContainer{background:#dd4b38;-webkit-border-radius:3px;border-radius:3px;clear:both;display:block;font-family:Lato,sans-serif;height:32px;margin:3px 0!important;overflow:hidden;padding:0;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:90px}.nc_socialPanelSide .nc_tweetContainer .iconFiller{display:inline-block;height:40px;margin:0 6px;padding:0;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:middle;width:21px}.nc_socialPanelSide .nc_tweetContainer .swp_count{display:inline-block;font-size:14px;height:32px;line-height:35px;margin:0;overflow:hidden;padding:0;text-align:right;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:0}.nc_socialPanelSide .nc_tweetContainer a{cursor:pointer;display:block;font-weight:500;height:36px;margin:0;padding:0;text-decoration:none;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top}.nc_socialPanelSide .nc_tweetContainer .sw,.nc_socialPanelSide .nc_tweetContainer .swp_share{float:left;line-height:34px}.nc_socialPanelSide.swp_default .nc_tweetContainer .sw{line-height:32px}.nc_socialPanelSide.swp_default .nc_tweetContainer .swp_share{line-height:30px}.nc_socialPanelSide .nc_tweetContainer .swp_share{font-size:13px}.nc_socialPanelSide .nc_tweetContainer:hover,.nc_socialPanelSide .nc_tweetContainer:hover .iconFiller,.nc_socialPanelSide .nc_tweetContainer:hover .swp_count{-webkit-transition:all .1s linear;transition:all .1s linear}.nc_socialPanelSide.swp_boxed{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.nc_socialPanelSide.swp_boxed .nc_tweetContainer{margin-bottom:5px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer,.nc_socialPanelSide.swp_boxed .nc_tweetContainer a{height:75px;position:relative;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer i.sw{font-size:27px;height:40px;margin:0;padding-top:10px;text-align:center;width:100%}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_share{height:35px;opacity:0;position:absolute;bottom:0;left:0;text-align:center;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_count{height:35px;margin:0;padding:0;position:absolute;bottom:0;left:0;text-align:center;-webkit-transition:padding .1s linear;transition:padding .1s linear;width:100%}.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.swp_hide .iconFiller,.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.swp_hide .spaceManWilly,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_count.swp_hide{height:75px;opacity:1}.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.iconFiller{height:40px;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover span.swp_count:not(.swp_hide){opacity:0}.nc_socialPanelSide.swp_boxed .totes{padding:0;width:75px!important}.nc_socialPanelSide .nc_tweetContainer:not(.totes){line-height:34px}.nc_socialPanelSide:not(.swp_boxed) .nc_tweetContainer:not(.totes) .iconFiller{margin-left:2px;width:30px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_count{padding:0 8px;width:48px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_count.swp_hide{padding:0;width:100%}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_hide .iconFiller{display:block;float:none;margin:0 auto}.nc_socialPanelSide:not(.swp_boxed) .nc_tweetContainer:not(.totes):hover{width:150px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .spaceManWilly,.nc_socialPanelSide .nc_tweetContainer:not(.totes):hover .iconFiller{width:90px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) .spaceManWilly,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover .iconFiller{width:100%}.nc_socialPanelSide .nc_tweetContainer.totes{background:rgba(0,0,0,0);border:0!important;font-weight:800;height:45px;margin:0;padding:0;text-align:center;width:90px}.nc_socialPanelSide .nc_tweetContainer.totes .swp_count{color:#444;display:block;font-family:Lato,sans-serif;height:28px;text-align:center;width:100%}.nc_socialPanelSide .nc_tweetContainer.totes .swp_label{color:#444;display:block;font-family:Lato,sans-serif;font-size:50%;position:relative;text-align:center;width:100%}.nc_wrapper{background:#fff;position:fixed;-webkit-transition:top .5s bottom .5s;transition:top .5s bottom .5s;width:100%;z-index:99999}.nc_wrapper.floatBottom{bottom:0;left:0}.nc_wrapper.floatTop{top:0;left:0}.nc_floater{margin:10px 0;position:relative;left:304px;width:740px}.nc_socialPanelSide.hideCounts a{text-align:center}.nc_socialPanelSide.hideCounts .iconFiller{float:none;text-align:left}.sw{display:inline-block;font-family:sw-icon-font!important;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;text-rendering:auto;-ms-transform:translate(0,0);-webkit-transform:translate(0,0);transform:translate(0,0)}.sw:before{display:block!important}.wp-editor-container .sw:before{font-size:18px;line-height:22px}.wp-editor-container .sw-social-warfare:before{color:#ee464f}.mce-container .sw-social-warfare{color:#ee464f;font-size:20px;margin-right:15px;vertical-align:middle}.sw-google-plus:before{content:"h"}.sw-pinterest:before{content:"b"}.sw-twitter:before{content:"s"}.sw-facebook:before{content:"j"}.sw-linkedin:before{content:"f"}.sw-tumblr:before{content:"r"}.sw-stumbleupon:before{content:"q"}.sw-reddit:before{content:"a"}.sw-email:before{content:"k"}.sw-yummly:before{content:"x"}.sw-whatsapp:before{content:"y"}.sw-pocket:before{content:"B"}.sw-buffer:before{content:"z"}.sw-hacker_news:before{content:"D"}.sw-flipboard:before{content:"C"}.sw-social-warfare:before{content:"p"}.sw-click-to-tweet:after,.sw-tweet-clear:after{content:".";height:0;clear:both;visibility:hidden;display:block}.swp_CTT{text-decoration:none!important}.sw-tweet-clear{zoom:1}.sw-click-to-tweet{display:block;margin:15px 0;padding:15px 30px;position:relative}.sw-click-to-tweet:after{line-height:0}.sw-click-to-tweet .sw-ctt-text{margin:0 0 10px;padding:0;position:relative;word-wrap:break-word}a .sw-click-to-tweet .sw-ctt-text{display:block;font-size:24px;font-weight:500;line-height:140%;margin:0;padding:0;position:relative;text-decoration:none;text-transform:none}.sw-click-to-tweet .sw-ctt-btn{display:block;float:right;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;line-height:100%;margin:10px 0 0;padding:3px 5px 3px 3px;position:relative;text-decoration:none;text-transform:uppercase}.sw-click-to-tweet i.sw-twitter{float:right;font-size:21px;margin-left:15px;margin-top:2px;text-transform:none}a.swp_CTT.style1 .sw-click-to-tweet{background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px}a.swp_CTT.style2 .sw-click-to-tweet{background-color:#fff;border:4px double #ddd;-webkit-border-radius:0;border-radius:0}a.style2 .sw-click-to-tweet .sw-ctt-text{color:#666;font-style:italic;text-decoration:none}a.swp_CTT.style3:hover .sw-click-to-tweet{border-left:10px solid #3c87b2;padding-right:20px;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style3 .sw-click-to-tweet{background-color:#429cd6;border:none;border-left:10px solid #429cd6;-webkit-border-radius:0;border-radius:0;padding-right:20px;-webkit-transition:all .25s linear;transition:all .25s linear}a.style3 .sw-click-to-tweet .sw-ctt-text{color:#fff;font-style:italic;text-decoration:none}a.swp_CTT.style4:hover .sw-click-to-tweet{border-left:10px solid #3c87b2;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style4 .sw-click-to-tweet{background-color:#333;border-left:10px solid #c33;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style5:hover .sw-click-to-tweet{background-color:#d34250;border-left:10px solid #30394f;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style5 .sw-click-to-tweet{background-color:#30394f;border-left:10px solid #d34250;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style6:hover .sw-click-to-tweet{background-color:#ced3dc;border-left:10px solid #d34250;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style6 .sw-click-to-tweet{background-color:#eee;border-left:10px solid #d34250;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.style6 .sw-click-to-tweet i.sw-twitter{color:#30394f}.swp_pop_thumb{-webkit-border-radius:3px;border-radius:3px;float:left;height:100px;margin:5px 25px 5px 0;width:100px}.swp_popular_post{clear:both}.swp_clearfix:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.swp_popular_post a.swp_popularity{border:none;display:block;line-height:1.5;margin:20px 0}span.swp_pop_count{display:block;font-size:70%}.swp_widget_box{-webkit-border-radius:3px;border-radius:3px}div.sw-pinit{display:table!important;line-height:0;position:relative!important}.nc_socialPanel.mobile .iconFiller~.swp_count,.sw-content-locator,div.nc_socialPanel .nc_tweetContainer.swp_whatsapp:not(.mobile){display:none}div.sw-pinit a.sw-pinit-button,div.sw-pinit a.sw-pinit-button:visited{background:#cd2029;border:1px solid #aa1b29;-webkit-border-radius:4px;border-radius:4px;color:#fff;font-size:20px;height:50px;line-height:45px;opacity:0;padding:0 30px;position:absolute;text-decoration:none;-webkit-transition:opacity .5s;transition:opacity .5s;z-index:200}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) .swp_hide span.swp_share,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover span.swp_share:not(.swp_hide),div.sw-pinit:focus a.sw-pinit-button,div.sw-pinit:hover a.sw-pinit-button{opacity:1}div.sw-pinit a.sw-pinit-button::before{color:#fff;content:"b";float:left;font-family:sw-icon-font;font-size:24px;font-weight:400;line-height:50px;margin-left:-5px;margin-right:10px}div.sw-pinit a.sw-pinit-button:hover::before{content:"F"}div.sw-pinit a.sw-pinit-button::focus,div.sw-pinit a.sw-pinit-button::hover{background:#aa1b29;color:#fff;text-decoration:none}div.sw-pinit .sw-pinit-left{left:30px}div.sw-pinit .sw-pinit-center{margin-left:-60px;left:50%}div.sw-pinit .sw-pinit-right{right:30px}div.sw-pinit .sw-pinit-top{top:30px}div.sw-pinit .sw-pinit-middle{margin-top:-25px;top:50%}div.sw-pinit .sw-pinit-bottom{bottom:30px}.mobile .nc_tweetContainer:nth-last-child(2),.nc_socialPanel.notMobile .nc_tweetContainer:nth-last-child(1),.nc_tweetContainer.totes:nth-last-child(1){margin-right:0}.nc_socialPanel.swp_d_darkGray a,.nc_socialPanel.swp_d_fullColor a,.nc_socialPanel.swp_d_lightGray a,.nc_socialPanel.swp_d_mediumGray a,body .nc_socialPanel.swp_o_darkGray:hover a,body .nc_socialPanel.swp_o_fullColor:hover a,body .nc_socialPanel.swp_o_lightGray:hover a,body .nc_socialPanel.swp_o_mediumGray:hover a,html body .nc_socialPanel.swp_i_darkGray a:hover,html body .nc_socialPanel.swp_i_fullColor .nc_tweetContainer:hover a,html body .nc_socialPanel.swp_i_lightGray .nc_tweetContainer:hover a,html body .nc_socialPanel.swp_i_mediumGray a:hover{color:#fff}.nc_socialPanel.swp_d_colorOutlines .twitter a,.wp-editor-container .sw-twitter:before,a.style1 .sw-click-to-tweet i.sw-twitter,a.style2 .sw-click-to-tweet i.sw-twitter,body .nc_socialPanel.swp_o_colorOutlines:hover .twitter a,html body .nc_socialPanel.swp_i_colorOutlines .twitter a:hover{color:#429cd6}a.style1 .sw-click-to-tweet .sw-ctt-btn,a.style1 .sw-click-to-tweet .sw-ctt-text{color:#999;text-decoration:none}a.style1:hover .sw-click-to-tweet .sw-ctt-btn,a.style1:hover .sw-click-to-tweet .sw-ctt-text,a.style2 .sw-click-to-tweet .sw-ctt-btn,a.style2:hover .sw-click-to-tweet .sw-ctt-btn,a.style2:hover .sw-click-to-tweet .sw-ctt-text{color:#666;text-decoration:none}a.style3 .sw-click-to-tweet .sw-ctt-btn,a.style3 .sw-click-to-tweet i.sw-twitter,a.style3:hover .sw-click-to-tweet .sw-ctt-btn,a.style3:hover .sw-click-to-tweet .sw-ctt-text,a.style4 .sw-click-to-tweet .sw-ctt-btn,a.style4 .sw-click-to-tweet .sw-ctt-text,a.style4:hover .sw-click-to-tweet .sw-ctt-btn,a.style4:hover .sw-click-to-tweet .sw-ctt-text,a.style5 .sw-click-to-tweet .sw-ctt-btn,a.style5 .sw-click-to-tweet .sw-ctt-text,a.style5:hover .sw-click-to-tweet .sw-ctt-btn,a.style5:hover .sw-click-to-tweet .sw-ctt-text{color:#fff;text-decoration:none}a.style4 .sw-click-to-tweet i.sw-twitter,a.style5 .sw-click-to-tweet i.sw-twitter{color:#fff}a.style6 .sw-click-to-tweet .sw-ctt-btn,a.style6 .sw-click-to-tweet .sw-ctt-text{color:#30394f;text-decoration:none}a.style6:hover .sw-click-to-tweet .sw-ctt-btn,a.style6:hover .sw-click-to-tweet .sw-ctt-text,a.style6:hover .sw-click-to-tweet i.sw-twitter{color:#2a2d34;text-decoration:none}.scale-70{-ms-transform:scale(.7);-webkit-transform:scale(.7);transform:scale(.7)}.nc_socialPanel:not(.nc_floater).scale-70.scale-fullWidth{width:142.8571428571429%!important}.scale-80{-ms-transform:scale(.8);-webkit-transform:scale(.8);transform:scale(.8)}.nc_socialPanel:not(.nc_floater).scale-80.scale-fullWidth{width:125%!important}.scale-90{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.nc_socialPanel:not(.nc_floater).scale-90.scale-fullWidth{width:111.111111111111%!important}.scale-110{-ms-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1)}.nc_socialPanel:not(.nc_floater).scale-110.scale-fullWidth{width:90.90909090909091%!important}.scale-120{-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.nc_socialPanel:not(.nc_floater).scale-120.scale-fullWidth{width:83.33333333333333%!important}.scale-130{-ms-transform:scale(1.3);-webkit-transform:scale(1.3);transform:scale(1.3)}.nc_socialPanel:not(.nc_floater).scale-130.scale-fullWidth{width:76.92307692307692%!important}.scale-140{-ms-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}.nc_socialPanel:not(.nc_floater).scale-140.scale-fullWidth{width:71.42857142857143%!important}.nc_floater.scale-center,.nc_floater.scale-right,.scale-fullWidth,.scale-left{-ms-transform-origin:left;-webkit-transform-origin:left;transform-origin:left}.scale-right{-ms-transform-origin:right;-webkit-transform-origin:right;transform-origin:right}.scale-center{-ms-transform-origin:center;-webkit-transform-origin:center;transform-origin:center}div.nc_socialPanel .nc_tweetContainer.swp_emphasize{-webkit-box-flex:2;-moz-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2}.sw-pinit.aligncenter{margin:0 auto}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){div.sw-pinit{display:inline-block!important;max-width:100%}}.swp_hidden_pin_image{height:0;opacity:0;position:absolute;top:0;width:0}
1
+ .nc_socialPanel{clear:both;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:34px;line-height:1;margin-bottom:20px!important;margin-top:20px!important;overflow:hidden;padding:0;-webkit-align-items:stretch;align-items:stretch;-webkit-box-align:stretch;-moz-box-align:stretch;-webkit-box-pack:justify;-moz-box-pack:justify;direction:ltr;-ms-flex-align:stretch;-ms-flex-line-pack:center;-ms-flex-pack:justify;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-between;justify-content:space-between}.nc_socialPanel:not(.nc_floater):not(.nc_socialPanelSide){width:100%!important}.nc_wrapper .nc_socialPanel{margin-bottom:10px!important;margin-top:10px!important}div.nc_socialPanel .nc_tweetContainer{-webkit-border-radius:2px;border-radius:2px;cursor:pointer;float:left;font-family:Lato;height:32px;margin:0 5px 3px;min-width:34px;overflow:hidden;text-align:center;-webkit-transition:all .1s linear;transition:all .1s linear;border-size:1px}div.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nc_socialPanel .nc_tweetContainer a.nc_tweet,.nc_socialPanel .totes .swp_count{display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-family:Lato,sans-serif;font-size:18px!important;font-weight:700;height:30px;text-decoration:none;text-decoration:none!important;text-transform:none;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:horizontal;-moz-box-orient:horizontal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:nth-child(1){margin-left:0}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:nth-last-child(1){margin-right:0}.nc_socialPanel a .swp_count:not(.swp_hide){display:inline-block;line-height:32px;margin:0;padding:0 5px;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nc_socialPanel .totes .swp_count,span.swp_share{line-height:30px}.nc_socialPanel a .swp_count.swp_hide{margin:0 auto}.nc_socialPanel span:before{content:initial!important}.nc_socialPanel span.swp_count{font-size:14px}.nc_socialPanel span.iconFiller{font-size:18px;margin:0 auto}.nc_socialPanel.notMobile .nc_tweetContainer:nth-child(1){margin-left:0}.nc_socialPanel:not(.nc_socialPanelSide){-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.nc_socialPanel:not(.nc_socialPanelSide) div.totes.totesalt:nth-child(1){margin-left:0;margin-right:15px;padding-left:0}.nc_socialPanel:not(.nc_socialPanelSide) div.totes.totesalt:nth-last-child(1){margin-right:0;padding-right:0}a.swp_CTT{cursor:pointer}span.swp_share{display:block;float:right;float:left;font-size:14px;font-weight:400;height:30px;margin:0 0 0 6px;max-width:none!important;vertical-align:middle}.nc_socialPanelSide span.swp_share{margin:0}.nc_socialPanel .sw{float:left;height:30px;line-height:32px;margin:0 5px;text-shadow:none!important;width:20px}.iconFiller{display:block;float:left;height:30px;overflow:hidden;-webkit-transition:width .1s linear;transition:width .1s linear}.nc_socialPanel .iconFiller{width:30px}span.spaceManWilly{display:block;width:120px}.nc_socialPanel .totes{background:#c4c4c4;border:1px solid #e08a0f;-webkit-border-radius:2px;border-radius:2px;color:#fff;cursor:default;display:block;font-size:19px;padding:0 10px;-webkit-box-flex:0!important;-moz-box-flex:0!important;-webkit-flex:none!important;-ms-flex:none!important;flex:none!important}.nc_socialPanel div.totes.totesalt,.nc_socialPanel:hover div.totes.totesalt:not(:nth-child(1)){background:0 0!important;border:none;color:#474b4d;margin-left:0!important}div.nc_socialPanel:hover div.totes.totesalt:not(:nth-child(1)){background:0 0;color:#474b4d;margin-left:10px}.nc_socialPanel .totes.totesalt .swp_label{color:#474b4d;font-size:10px;letter-spacing:0;min-width:40px;vertical-align:middle}.nc_socialPanel .totes .swp_label{font-size:10px;vertical-align:middle}.nc_socialPanel .totes.totesalt .swp_count{color:#474b4d;font-size:24px}.nc_socialPanel.swp_customFull:hover div.totes,.nc_socialPanel.swp_fade .totes,.nc_socialPanel.swp_fullColor .totes,.nc_socialPanel:hover .totes{background:#e08a0f}.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer.totes.totesalt:before{content:"o";display:inline-block;font-family:sw-icon-font;margin-top:7px;vertical-align:top}.nc_socialPanel:not(.nc_socialPanelSide) .totes.totesalt .swp_count{display:inline-block;line-height:0;margin-left:8px;margin-top:12px;min-width:45px;position:relative;vertical-align:middle}span.swp_label{display:block;font-size:9px!important;margin-top:13px;position:absolute;text-align:center!important;text-transform:uppercase}.nc_socialPanelSide span.swp_label{margin-top:0}.nc_socialPanel.swp_leaf .nc_tweetContainer{-webkit-border-radius:15px 0;border-radius:15px 0;border-width:1px}.nc_socialPanel.swp_pill .nc_tweetContainer{-webkit-border-radius:50px;border-radius:50px;border-width:1px}.nc_socialPanel.swp_shift .nc_tweetContainer:not(.totes){border-width:1px;-moz-transform:skew(-25deg);-o-transform:skew(-25deg);-webkit-transform:skew(-25deg)}.nc_socialPanel.swp_shift .nc_tweetContainer a{-moz-transform:skew(25deg);-o-transform:skew(25deg);-webkit-transform:skew(25deg)}.swp_connected .nc_tweetContainer,.swp_connected .nc_tweetContainer:hover,.swp_connected:hover .nc_tweetContainer{-webkit-border-radius:0!important;border-radius:0!important;border-width:1px;margin:0!important}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .googlePlus:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .googlePlus:hover{border:1px solid #df4b37}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .twitter,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .twitter:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .twitter:hover{border:1px solid #429cd6}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_fb:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_fb:hover{border:1px solid #3a589e}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .nc_pinterest:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .nc_pinterest:hover{border:1px solid #cd2029}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .linkedIn:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .linkedIn:hover{border:1px solid #0d77b7}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_tumblr:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_tumblr:hover{border:1px solid #39475d}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_stumbleupon:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_stumbleupon:hover{border:1px solid #ef5025}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_yummly:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_yummly:hover{border:1px solid #e26426}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_reddit:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_reddit:hover{border:1px solid #f04b23}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_email:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_email:hover{border:1px solid #6bcce9}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_whatsapp:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_whatsapp:hover{border:1px solid #71c169}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_pocket:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_pocket:hover{border:1px solid #ef4056}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_buffer:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_buffer:hover{border:1px solid #323b43}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_hacker_news:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_hacker_news:hover{border:1px solid #d85623}.nc_socialPanel.swp_flatFresh.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_flatFresh.swp_o_fullColor:hover .swp_flipboard:not(:hover),html body .nc_socialPanel.swp_flatFresh.swp_i_fullColor .swp_flipboard:hover{border:1px solid #bf2626}.nc_socialPanel.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_o_fullColor:hover .googlePlus,html body .nc_socialPanel.swp_i_fullColor .googlePlus:hover{background:#df4b37;border:1px solid #c44133}.nc_socialPanel.swp_d_fullColor .twitter,body .nc_socialPanel.swp_o_fullColor:hover .twitter,html body .nc_socialPanel.swp_i_fullColor .twitter:hover{background:#429cd6;border:1px solid #3c87b2}.nc_socialPanel.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_o_fullColor:hover .swp_fb,html body .nc_socialPanel.swp_i_fullColor .swp_fb:hover{background:#3a589e;border:1px solid #2e4675}.nc_socialPanel.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_o_fullColor:hover .nc_pinterest,html body .nc_socialPanel.swp_i_fullColor .nc_pinterest:hover{background:#cd2029;border:1px solid #aa1b29}.nc_socialPanel.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_o_fullColor:hover .linkedIn,html body .nc_socialPanel.swp_i_fullColor .linkedIn:hover{background:#0d77b7;border:1px solid #0c6591}.nc_socialPanel.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_o_fullColor:hover .swp_tumblr,html body .nc_socialPanel.swp_i_fullColor .swp_tumblr:hover{background:#39475d;border:1px solid #27313f}.nc_socialPanel.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_o_fullColor:hover .swp_stumbleupon,html body .nc_socialPanel.swp_i_fullColor .swp_stumbleupon:hover{background:#ef5025;border:1px solid #d34427}.nc_socialPanel.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_o_fullColor:hover .swp_yummly,html body .nc_socialPanel.swp_i_fullColor .swp_yummly:hover{background:#e26426;border:1px solid #b65027}.nc_socialPanel.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_o_fullColor:hover .swp_reddit,html body .nc_socialPanel.swp_i_fullColor .swp_reddit:hover{background:#f04b23;border:1px solid #d33f27}.nc_socialPanel.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_o_fullColor:hover .swp_email,html body .nc_socialPanel.swp_i_fullColor .swp_email:hover{background:#6bcce9;border:1px solid #61bace}.nc_socialPanel.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_o_fullColor:hover .swp_whatsapp,html body .nc_socialPanel.swp_i_fullColor .swp_whatsapp:hover{background:#71c169;border:1px solid #28b04b}.nc_socialPanel.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_o_fullColor:hover .swp_pocket,html body .nc_socialPanel.swp_i_fullColor .swp_pocket:hover{background:#ef4056;border:1px solid #ce3d55}.nc_socialPanel.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_o_fullColor:hover .swp_buffer,html body .nc_socialPanel.swp_i_fullColor .swp_buffer:hover{background:#323b43;border:1px solid #000}.nc_socialPanel.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_o_fullColor:hover .swp_hacker_news,html body .nc_socialPanel.swp_i_fullColor .swp_hacker_news:hover{background:#f16522;border:1px solid #d85623}.nc_socialPanel.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_o_fullColor:hover .swp_flipboard,html body .nc_socialPanel.swp_i_fullColor .swp_flipboard:hover{background:#e02828;border:1px solid #bf2626}.nc_socialPanel.swp_threeDee.swp_d_fullColor .googlePlus,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .googlePlus,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .googlePlus:hover{border-bottom:3px solid #c44133}.nc_socialPanel.swp_threeDee.swp_d_fullColor .twitter,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .twitter,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .twitter:hover{border-bottom:3px solid #5595bc}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_fb,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_fb,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_fb:hover{border-bottom:3px solid #2e4675}.nc_socialPanel.swp_threeDee.swp_d_fullColor .nc_pinterest,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .nc_pinterest,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .nc_pinterest:hover{border-bottom:3px solid #aa1b29}.nc_socialPanel.swp_threeDee.swp_d_fullColor .linkedIn,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .linkedIn,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .linkedIn:hover{border-bottom:3px solid #0c6591}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_tumblr,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_tumblr,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_tumblr:hover{border-bottom:3px solid #27313f}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_stumbleupon,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_stumbleupon,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_stumbleupon:hover{border-bottom:3px solid #d34427}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_yummly,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_yummly,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_yummly:hover{border-bottom:3px solid #b65027}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_reddit,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_reddit,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_reddit:hover{border-bottom:3px solid #d33f27}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_email,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_email,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_email:hover{border-bottom:3px solid #61bace}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_whatsapp,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_whatsapp,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_whatsapp:hover{border-bottom:3px solid #28b04b}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_pocket,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_pocket,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_pocket:hover{border-bottom:3px solid #ce3d55}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_buffer,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_buffer,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_buffer:hover{border-bottom:3px solid #000}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_hacker_news,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_hacker_news,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_hacker_news:hover{border-bottom:3px solid #d85623}.nc_socialPanel.swp_threeDee.swp_d_fullColor .swp_flipboard,body .nc_socialPanel.swp_threeDee.swp_o_fullColor:hover .swp_flipboard,html body .nc_socialPanel.swp_threeDee.swp_i_fullColor .swp_flipboard:hover{border-bottom:3px solid #bf2626}.nc_socialPanel.swp_d_lightGray .nc_tweetContainer,body .nc_socialPanel.swp_o_lightGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_lightGray .nc_tweetContainer:hover{background-color:#ccc;border:1px solid #ccc}.nc_socialPanel.swp_threeDee.swp_d_lightGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_lightGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_lightGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #999}.nc_socialPanel.swp_d_mediumGray .nc_tweetContainer,body .nc_socialPanel.swp_o_mediumGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_mediumGray .nc_tweetContainer:hover{background-color:#999;border:1px solid #999}.nc_socialPanel.swp_threeDee.swp_d_mediumGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_mediumGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_mediumGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #444}.nc_socialPanel.swp_d_darkGray .nc_tweetContainer,body .nc_socialPanel.swp_o_darkGray:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_darkGray .nc_tweetContainer:hover{background-color:#444;border:1px solid #444}.nc_socialPanel.swp_threeDee.swp_d_darkGray .nc_tweetContainer:not(.totesalt),body .nc_socialPanel.swp_threeDee.swp_o_darkGray:hover .nc_tweetContainer:not(.totesalt),html body .nc_socialPanel.swp_threeDee.swp_i_darkGray .nc_tweetContainer:not(.totesalt):hover{border-bottom:3px solid #222}.nc_socialPanel.swp_d_lgOutlines a,body .nc_socialPanel.swp_o_lgOutlines:hover a,html body .nc_socialPanel.swp_i_lgOutlines a:hover{color:#ccc}.nc_socialPanel.swp_d_lgOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_lgOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_lgOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #ccc}.nc_socialPanel.swp_d_mdOutlines a,body .nc_socialPanel.swp_o_mdOutlines:hover a,html body .nc_socialPanel.swp_i_mdOutlines a:hover{color:#999}.nc_socialPanel.swp_d_mdOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_mdOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_mdOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #999}.nc_socialPanel.swp_d_dgOutlines a,body .nc_socialPanel.swp_o_dgOutlines:hover a,html body .nc_socialPanel.swp_i_dgOutlines a:hover{color:#444}.nc_socialPanel.swp_d_dgOutlines .nc_tweetContainer,body .nc_socialPanel.swp_o_dgOutlines:hover .nc_tweetContainer,html body .nc_socialPanel.swp_i_dgOutlines .nc_tweetContainer:hover{background:0 0;border:1px solid #444}.nc_socialPanel.swp_d_colorOutlines .googlePlus a,body .nc_socialPanel.swp_o_colorOutlines:hover .googlePlus a,html body .nc_socialPanel.swp_i_colorOutlines .googlePlus a:hover{color:#df4b37}.nc_socialPanel.swp_d_colorOutlines .swp_fb a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_fb a,html body .nc_socialPanel.swp_i_colorOutlines .swp_fb a:hover{color:#3a589e}.nc_socialPanel.swp_d_colorOutlines .nc_pinterest a,body .nc_socialPanel.swp_o_colorOutlines:hover .nc_pinterest a,html body .nc_socialPanel.swp_i_colorOutlines .nc_pinterest a:hover{color:#cd2029}.nc_socialPanel.swp_d_colorOutlines .linkedIn a,body .nc_socialPanel.swp_o_colorOutlines:hover .linkedIn a,html body .nc_socialPanel.swp_i_colorOutlines .linkedIn a:hover{color:#0d77b7}.nc_socialPanel.swp_d_colorOutlines .swp_tumblr a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_tumblr a,html body .nc_socialPanel.swp_i_colorOutlines .swp_tumblr a:hover{color:#39475d}.nc_socialPanel.swp_d_colorOutlines .swp_stumbleupon a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_stumbleupon a,html body .nc_socialPanel.swp_i_colorOutlines .swp_stumbleupon a:hover{color:#ef5025}.nc_socialPanel.swp_d_colorOutlines .swp_yummly a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_yummly a,html body .nc_socialPanel.swp_i_colorOutlines .swp_yummly a:hover{color:#e26426}.nc_socialPanel.swp_d_colorOutlines .swp_whatsapp a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_whatsapp a,html body .nc_socialPanel.swp_i_colorOutlines .swp_whatsapp a:hover{color:#71c169}.nc_socialPanel.swp_d_colorOutlines .swp_pocket a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_pocket a,html body .nc_socialPanel.swp_i_colorOutlines .swp_pocket a:hover{color:#ef4056}.nc_socialPanel.swp_d_colorOutlines .swp_reddit a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_reddit a,html body .nc_socialPanel.swp_i_colorOutlines .swp_reddit a:hover{color:#f04b23}.nc_socialPanel.swp_d_colorOutlines .swp_email a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_email a,html body .nc_socialPanel.swp_i_colorOutlines .swp_email a:hover{color:#6bcce9}.nc_socialPanel.swp_d_colorOutlines .swp_buffer a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_buffer a,html body .nc_socialPanel.swp_i_colorOutlines .swp_buffer a:hover{color:#323b43}.nc_socialPanel.swp_d_colorOutlines .swp_hacker_news a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_hacker_news a,html body .nc_socialPanel.swp_i_colorOutlines .swp_hacker_news a:hover{color:#f16522}.nc_socialPanel.swp_d_colorOutlines .swp_flipboard a,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_flipboard a,html body .nc_socialPanel.swp_i_colorOutlines .swp_flipboard a:hover{color:#e02828}.nc_socialPanel.swp_d_colorOutlines .googlePlus,body .nc_socialPanel.swp_o_colorOutlines:hover .googlePlus,html body .nc_socialPanel.swp_i_colorOutlines .googlePlus:hover{background:0 0;border:1px solid #df4b37}.nc_socialPanel.swp_d_colorOutlines .twitter,body .nc_socialPanel.swp_o_colorOutlines:hover .twitter,html body .nc_socialPanel.swp_i_colorOutlines .twitter:hover{background:0 0;border:1px solid #429cd6}.nc_socialPanel.swp_d_colorOutlines .swp_fb,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_fb,html body .nc_socialPanel.swp_i_colorOutlines .swp_fb:hover{background:0 0;border:1px solid #3a589e}.nc_socialPanel.swp_d_colorOutlines .nc_pinterest,body .nc_socialPanel.swp_o_colorOutlines:hover .nc_pinterest,html body .nc_socialPanel.swp_i_colorOutlines .nc_pinterest:hover{background:0 0;border:1px solid #cd2029}.nc_socialPanel.swp_d_colorOutlines .linkedIn,body .nc_socialPanel.swp_o_colorOutlines:hover .linkedIn,html body .nc_socialPanel.swp_i_colorOutlines .linkedIn:hover{background:0 0;border:1px solid #0d77b7}.nc_socialPanel.swp_d_colorOutlines .swp_tumblr,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_tumblr,html body .nc_socialPanel.swp_i_colorOutlines .swp_tumblr:hover{background:0 0;border:1px solid #39475d}.nc_socialPanel.swp_d_colorOutlines .swp_stumbleupon,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_stumbleupon,html body .nc_socialPanel.swp_i_colorOutlines .swp_stumbleupon:hover{background:0 0;border:1px solid #ef5025}.nc_socialPanel.swp_d_colorOutlines .swp_yummly,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_yummly,html body .nc_socialPanel.swp_i_colorOutlines .swp_yummly:hover{background:0 0;border:1px solid #e26426}.nc_socialPanel.swp_d_colorOutlines .swp_whatsapp,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_whatsapp,html body .nc_socialPanel.swp_i_colorOutlines .swp_whatsapp:hover{background:0 0;border:1px solid #71c169}.nc_socialPanel.swp_d_colorOutlines .swp_reddit,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_reddit,html body .nc_socialPanel.swp_i_colorOutlines .swp_reddit:hover{background:0 0;border:1px solid #f04b23}.nc_socialPanel.swp_d_colorOutlines .swp_email,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_email,html body .nc_socialPanel.swp_i_colorOutlines .swp_email:hover{background:0 0;border:1px solid #6bcce9}.nc_socialPanel.swp_d_colorOutlines .swp_pocket,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_pocket,html body .nc_socialPanel.swp_i_colorOutlines .swp_pocket:hover{background:0 0;border:1px solid #ef4056}.nc_socialPanel.swp_d_colorOutlines .swp_buffer,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_buffer,html body .nc_socialPanel.swp_i_colorOutlines .swp_buffer:hover{background:0 0;border:1px solid #323b43}.nc_socialPanel.swp_d_colorOutlines .swp_hacker_news,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_hacker_news,html body .nc_socialPanel.swp_i_colorOutlines .swp_hacker_news:hover{background:0 0;border:1px solid #f16522}.nc_socialPanel.swp_d_colorOutlines .swp_flipboard,body .nc_socialPanel.swp_o_colorOutlines:hover .swp_flipboard,html body .nc_socialPanel.swp_i_colorOutlines .swp_flipboard:hover{background:0 0;border:1px solid #bf2626}.nc_socialPanelSide{flex-direction:column;height:auto;overflow:visible;top:200px;-webkit-transition:all .2s linear;transition:all .2s linear;width:100px!important;z-index:9999999;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column}.nc_socialPanelSide.slide{position:fixed;left:-100px;-webkit-transition:all .2s linear;transition:all .2s linear}.nc_socialPanelSide.fade{display:none;position:fixed;left:5px;-webkit-transition:all .2s linear;transition:all .2s linear}.nc_socialPanelSide .nc_tweetContainer{background:#dd4b38;-webkit-border-radius:3px;border-radius:3px;clear:both;display:block;font-family:Lato,sans-serif;height:32px;margin:3px 0!important;overflow:hidden;padding:0;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:90px}.nc_socialPanelSide .nc_tweetContainer .iconFiller{display:inline-block;height:40px;margin:0 6px;padding:0;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:middle;width:21px}.nc_socialPanelSide .nc_tweetContainer .swp_count{display:inline-block;font-size:14px;height:32px;line-height:35px;margin:0;overflow:hidden;padding:0;text-align:right;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:0}.nc_socialPanelSide .nc_tweetContainer a{cursor:pointer;display:block;font-weight:500;height:36px;margin:0;padding:0;text-decoration:none;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top}.nc_socialPanelSide .nc_tweetContainer .sw,.nc_socialPanelSide .nc_tweetContainer .swp_share{float:left;line-height:34px}.nc_socialPanelSide.swp_default .nc_tweetContainer .sw{line-height:32px}.nc_socialPanelSide.swp_default .nc_tweetContainer .swp_share{line-height:30px}.nc_socialPanelSide .nc_tweetContainer .swp_share{font-size:13px}.nc_socialPanelSide .nc_tweetContainer:hover,.nc_socialPanelSide .nc_tweetContainer:hover .iconFiller,.nc_socialPanelSide .nc_tweetContainer:hover .swp_count{-webkit-transition:all .1s linear;transition:all .1s linear}.nc_socialPanelSide.swp_boxed{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.nc_socialPanelSide.swp_boxed .nc_tweetContainer{margin-bottom:5px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer,.nc_socialPanelSide.swp_boxed .nc_tweetContainer a{height:75px;position:relative;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer i.sw{font-size:27px;height:40px;margin:0;padding-top:10px;text-align:center;width:100%}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_share{height:35px;opacity:0;position:absolute;bottom:0;left:0;text-align:center;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_count{height:35px;margin:0;padding:0;position:absolute;bottom:0;left:0;text-align:center;-webkit-transition:padding .1s linear;transition:padding .1s linear;width:100%}.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.swp_hide .iconFiller,.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.swp_hide .spaceManWilly,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) span.swp_count.swp_hide{height:75px;opacity:1}.nc_socialPanelSide.swp_boxed .nc_tweetContainer span.iconFiller{height:40px;width:75px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover span.swp_count:not(.swp_hide){opacity:0}.nc_socialPanelSide.swp_boxed .totes{padding:0;width:75px!important}.nc_socialPanelSide .nc_tweetContainer:not(.totes){line-height:34px}.nc_socialPanelSide:not(.swp_boxed) .nc_tweetContainer:not(.totes) .iconFiller{margin-left:2px;width:30px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_count{padding:0 8px;width:48px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_count.swp_hide{padding:0;width:100%}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .swp_hide .iconFiller{display:block;float:none;margin:0 auto}.nc_socialPanelSide:not(.swp_boxed) .nc_tweetContainer:not(.totes):hover{width:150px}.nc_socialPanelSide .nc_tweetContainer:not(.totes) .spaceManWilly,.nc_socialPanelSide .nc_tweetContainer:not(.totes):hover .iconFiller{width:90px}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) .spaceManWilly,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover .iconFiller{width:100%}.nc_socialPanelSide .nc_tweetContainer.totes{background:rgba(0,0,0,0);border:0!important;font-weight:800;height:45px;margin:0;padding:0;text-align:center;width:90px}.nc_socialPanelSide .nc_tweetContainer.totes .swp_count{color:#444;display:block;font-family:Lato,sans-serif;height:28px;text-align:center;width:100%}.nc_socialPanelSide .nc_tweetContainer.totes .swp_label{color:#444;display:block;font-family:Lato,sans-serif;font-size:50%;position:relative;text-align:center;width:100%}.nc_wrapper{background:#fff;position:fixed;-webkit-transition:top .5s bottom .5s;transition:top .5s bottom .5s;width:100%;z-index:99999}.nc_wrapper.floatBottom{bottom:0;left:0}.nc_wrapper.floatTop{top:0;left:0}.nc_floater{margin:10px 0;position:relative;left:304px;width:740px}.nc_socialPanelSide.hideCounts a{text-align:center}.nc_socialPanelSide.hideCounts .iconFiller{float:none;text-align:left}.sw{display:inline-block;font-family:sw-icon-font!important;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;text-rendering:auto;-ms-transform:translate(0,0);-webkit-transform:translate(0,0);transform:translate(0,0)}.sw:before{display:block!important}.wp-editor-container .sw:before{font-size:18px;line-height:22px}.wp-editor-container .sw-social-warfare:before{color:#ee464f}.mce-container .sw-social-warfare{color:#ee464f;font-size:20px;margin-right:15px;vertical-align:middle}.sw-google-plus:before{content:"h"}.sw-pinterest:before{content:"b"}.sw-twitter:before{content:"s"}.sw-facebook:before{content:"j"}.sw-linkedin:before{content:"f"}.sw-tumblr:before{content:"r"}.sw-stumbleupon:before{content:"q"}.sw-reddit:before{content:"a"}.sw-email:before{content:"k"}.sw-yummly:before{content:"x"}.sw-whatsapp:before{content:"y"}.sw-pocket:before{content:"B"}.sw-buffer:before{content:"z"}.sw-hacker_news:before{content:"D"}.sw-flipboard:before{content:"C"}.sw-social-warfare:before{content:"p"}.sw-click-to-tweet:after,.sw-tweet-clear:after{content:".";height:0;clear:both;visibility:hidden;display:block}.swp_CTT{text-decoration:none!important}.sw-tweet-clear{zoom:1}.sw-click-to-tweet{display:block;margin:15px 0;padding:15px 30px;position:relative}.sw-click-to-tweet:after{line-height:0}.sw-click-to-tweet .sw-ctt-text{margin:0 0 10px;padding:0;position:relative;word-wrap:break-word}a .sw-click-to-tweet .sw-ctt-text{display:block;font-size:24px;font-weight:500;line-height:140%;margin:0;padding:0;position:relative;text-decoration:none;text-transform:none}.sw-click-to-tweet .sw-ctt-btn{display:block;float:right;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;line-height:100%;margin:10px 0 0;padding:3px 5px 3px 3px;position:relative;text-decoration:none;text-transform:uppercase}.sw-click-to-tweet i.sw-twitter{float:right;font-size:21px;margin-left:15px;margin-top:2px;text-transform:none}a.swp_CTT.style1 .sw-click-to-tweet{background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px}a.swp_CTT.style2 .sw-click-to-tweet{background-color:#fff;border:4px double #ddd;-webkit-border-radius:0;border-radius:0}a.style2 .sw-click-to-tweet .sw-ctt-text{color:#666;font-style:italic;text-decoration:none}a.swp_CTT.style3:hover .sw-click-to-tweet{border-left:10px solid #3c87b2;padding-right:20px;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style3 .sw-click-to-tweet{background-color:#429cd6;border:none;border-left:10px solid #429cd6;-webkit-border-radius:0;border-radius:0;padding-right:20px;-webkit-transition:all .25s linear;transition:all .25s linear}a.style3 .sw-click-to-tweet .sw-ctt-text{color:#fff;font-style:italic;text-decoration:none}a.swp_CTT.style4:hover .sw-click-to-tweet{border-left:10px solid #3c87b2;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style4 .sw-click-to-tweet{background-color:#333;border-left:10px solid #c33;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style5:hover .sw-click-to-tweet{background-color:#d34250;border-left:10px solid #30394f;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style5 .sw-click-to-tweet{background-color:#30394f;border-left:10px solid #d34250;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style6:hover .sw-click-to-tweet{background-color:#ced3dc;border-left:10px solid #d34250;-webkit-transition:all .25s linear;transition:all .25s linear}a.swp_CTT.style6 .sw-click-to-tweet{background-color:#eee;border-left:10px solid #d34250;-webkit-border-radius:0;border-radius:0;-webkit-transition:all .25s linear;transition:all .25s linear}a.style6 .sw-click-to-tweet i.sw-twitter{color:#30394f}.swp_pop_thumb{-webkit-border-radius:3px;border-radius:3px;float:left;height:100px;margin:5px 25px 5px 0;width:100px}.swp_popular_post{clear:both}.swp_clearfix:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.swp_popular_post a.swp_popularity{border:none;display:block;line-height:1.5;margin:20px 0}span.swp_pop_count{display:block;font-size:70%}.swp_widget_box{-webkit-border-radius:3px;border-radius:3px}div.sw-pinit{display:table!important;line-height:0;position:relative!important}.nc_socialPanel.mobile .iconFiller~.swp_count,.sw-content-locator,div.nc_socialPanel .nc_tweetContainer.swp_whatsapp:not(.mobile){display:none}div.sw-pinit a.sw-pinit-button,div.sw-pinit a.sw-pinit-button:visited{background:#cd2029;border:1px solid #aa1b29;border:0;border-bottom:none;-webkit-border-radius:4px;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:#fff;font-family:Lato,sans-serif;font-size:20px;font-size:15px;height:32px;line-height:32px;opacity:0;padding:0 30px;position:absolute;text-decoration:none;-webkit-transition:opacity .5s;transition:opacity .5s;z-index:200}.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes) .swp_hide span.swp_share,.nc_socialPanelSide.swp_boxed .nc_tweetContainer:not(.totes):hover span.swp_share:not(.swp_hide),div.sw-pinit:focus a.sw-pinit-button,div.sw-pinit:hover a.sw-pinit-button{opacity:1}div.sw-pinit a.sw-pinit-button::before{color:#fff;content:"b";float:left;font-family:sw-icon-font;font-size:20px;font-weight:400;line-height:36px;margin-left:-5px;margin-right:10px}div.sw-pinit a.sw-pinit-button:hover::before{content:"F"}div.sw-pinit a.sw-pinit-button::focus,div.sw-pinit a.sw-pinit-button::hover{background:#aa1b29;color:#fff;text-decoration:none}div.sw-pinit .sw-pinit-left{left:30px}div.sw-pinit .sw-pinit-center{margin-left:-60px;left:50%}div.sw-pinit .sw-pinit-right{right:30px}div.sw-pinit .sw-pinit-top{top:30px}div.sw-pinit .sw-pinit-middle{margin-top:-25px;top:50%}div.sw-pinit .sw-pinit-bottom{bottom:30px}.mobile .nc_tweetContainer:nth-last-child(2),.nc_socialPanel.notMobile .nc_tweetContainer:nth-last-child(1),.nc_tweetContainer.totes:nth-last-child(1){margin-right:0}.nc_socialPanel.swp_d_darkGray a,.nc_socialPanel.swp_d_fullColor a,.nc_socialPanel.swp_d_lightGray a,.nc_socialPanel.swp_d_mediumGray a,body .nc_socialPanel.swp_o_darkGray:hover a,body .nc_socialPanel.swp_o_fullColor:hover a,body .nc_socialPanel.swp_o_lightGray:hover a,body .nc_socialPanel.swp_o_mediumGray:hover a,html body .nc_socialPanel.swp_i_darkGray a:hover,html body .nc_socialPanel.swp_i_fullColor .nc_tweetContainer:hover a,html body .nc_socialPanel.swp_i_lightGray .nc_tweetContainer:hover a,html body .nc_socialPanel.swp_i_mediumGray a:hover{color:#fff}.nc_socialPanel.swp_d_colorOutlines .twitter a,.wp-editor-container .sw-twitter:before,a.style1 .sw-click-to-tweet i.sw-twitter,a.style2 .sw-click-to-tweet i.sw-twitter,body .nc_socialPanel.swp_o_colorOutlines:hover .twitter a,html body .nc_socialPanel.swp_i_colorOutlines .twitter a:hover{color:#429cd6}a.style1 .sw-click-to-tweet .sw-ctt-btn,a.style1 .sw-click-to-tweet .sw-ctt-text{color:#999;text-decoration:none}a.style1:hover .sw-click-to-tweet .sw-ctt-btn,a.style1:hover .sw-click-to-tweet .sw-ctt-text,a.style2 .sw-click-to-tweet .sw-ctt-btn,a.style2:hover .sw-click-to-tweet .sw-ctt-btn,a.style2:hover .sw-click-to-tweet .sw-ctt-text{color:#666;text-decoration:none}a.style3 .sw-click-to-tweet .sw-ctt-btn,a.style3 .sw-click-to-tweet i.sw-twitter,a.style3:hover .sw-click-to-tweet .sw-ctt-btn,a.style3:hover .sw-click-to-tweet .sw-ctt-text,a.style4 .sw-click-to-tweet .sw-ctt-btn,a.style4 .sw-click-to-tweet .sw-ctt-text,a.style4:hover .sw-click-to-tweet .sw-ctt-btn,a.style4:hover .sw-click-to-tweet .sw-ctt-text,a.style5 .sw-click-to-tweet .sw-ctt-btn,a.style5 .sw-click-to-tweet .sw-ctt-text,a.style5:hover .sw-click-to-tweet .sw-ctt-btn,a.style5:hover .sw-click-to-tweet .sw-ctt-text{color:#fff;text-decoration:none}a.style4 .sw-click-to-tweet i.sw-twitter,a.style5 .sw-click-to-tweet i.sw-twitter{color:#fff}a.style6 .sw-click-to-tweet .sw-ctt-btn,a.style6 .sw-click-to-tweet .sw-ctt-text{color:#30394f;text-decoration:none}a.style6:hover .sw-click-to-tweet .sw-ctt-btn,a.style6:hover .sw-click-to-tweet .sw-ctt-text,a.style6:hover .sw-click-to-tweet i.sw-twitter{color:#2a2d34;text-decoration:none}.scale-70{-ms-transform:scale(.7);-webkit-transform:scale(.7);transform:scale(.7)}.nc_socialPanel:not(.nc_floater).scale-70.scale-fullWidth{width:142.8571428571429%!important}.scale-80{-ms-transform:scale(.8);-webkit-transform:scale(.8);transform:scale(.8)}.nc_socialPanel:not(.nc_floater).scale-80.scale-fullWidth{width:125%!important}.scale-90{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.nc_socialPanel:not(.nc_floater).scale-90.scale-fullWidth{width:111.111111111111%!important}.scale-110{-ms-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1)}.nc_socialPanel:not(.nc_floater).scale-110.scale-fullWidth{width:90.90909090909091%!important}.scale-120{-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.nc_socialPanel:not(.nc_floater).scale-120.scale-fullWidth{width:83.33333333333333%!important}.scale-130{-ms-transform:scale(1.3);-webkit-transform:scale(1.3);transform:scale(1.3)}.nc_socialPanel:not(.nc_floater).scale-130.scale-fullWidth{width:76.92307692307692%!important}.scale-140{-ms-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}.nc_socialPanel:not(.nc_floater).scale-140.scale-fullWidth{width:71.42857142857143%!important}.nc_floater.scale-center,.nc_floater.scale-right,.scale-fullWidth,.scale-left{-ms-transform-origin:left;-webkit-transform-origin:left;transform-origin:left}.scale-right{-ms-transform-origin:right;-webkit-transform-origin:right;transform-origin:right}.scale-center{-ms-transform-origin:center;-webkit-transform-origin:center;transform-origin:center}div.nc_socialPanel .nc_tweetContainer.swp_emphasize{-webkit-box-flex:2;-moz-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2}.sw-pinit.aligncenter{margin:0 auto}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){div.sw-pinit{display:inline-block!important;max-width:100%}}.swp_hidden_pin_image{height:0;opacity:0;position:absolute;top:0;width:0}
functions/admin/options-fetch.php CHANGED
@@ -28,6 +28,10 @@ $swp_user_options = swp_get_user_options( is_admin() );
28
  function swp_get_user_options( $admin = false ) {
29
  $options = get_option( 'socialWarfareOptions', array() );
30
 
 
 
 
 
31
  $defaults = array(
32
  'locationSite' => 'below',
33
  'locationHome' => 'none',
28
  function swp_get_user_options( $admin = false ) {
29
  $options = get_option( 'socialWarfareOptions', array() );
30
 
31
+ if(isset($options['activate_tweet_counts']) && true == $options['activate_tweet_counts'] && !isset($options['tweet_count_source']) ) {
32
+ $options['tweet_count_source'] = 'newsharecounts';
33
+ }
34
+
35
  $defaults = array(
36
  'locationSite' => 'below',
37
  'locationHome' => 'none',
functions/admin/options-page.php CHANGED
@@ -89,6 +89,10 @@ function swp_plugin_options() {
89
  function swp_build_options_page() {
90
  global $swp_user_options;
91
 
 
 
 
 
92
  // Create all of the options in one giant array.
93
  $swp_options_page = array(
94
  // A List of Options Page Tabs and Their Titles.
@@ -645,8 +649,8 @@ function swp_build_options_page() {
645
  /**
646
  * Plugin Registration Module
647
  */
648
- if ( defined('SWPP_PLUGIN_DIR') && 'plugin_registration' === $option['type'] ) :
649
- require_once SWPP_PLUGIN_DIR . '/functions/admin/options-registration.php';
650
  endif;
651
 
652
  /**
@@ -676,11 +680,11 @@ function swp_build_options_page() {
676
  echo '<h2>' . __( 'Tweet Count Registration' , 'social-warfare' ) . '</h2>';
677
 
678
  // Open the IS NOT Activated container
679
- echo '<div class="sw-grid sw-col-940 swp_tweets_not_activated" dep="twitter_shares" dep_val="[false]">';
680
 
681
  // The Warning Notice & Instructions
682
- echo '<p class="sw-subtitle sw-registration-text">' . __( 'In order to allow Social Warfare to track tweet counts, we\'ve partnered with NewShareCounts.com. Follow the steps below to register with NewShareCounts and allow us to track your Twitter shares.' , 'social-warfare' ) . '</p>';
683
- echo '<p class="sw-subtitle sw-registration-text sw-italic">Step 1: <a style="float:none;" class="button sw-navy-button" href="http://newsharecounts.com" target="_blank">' . __( 'Click here to visit NewShareCounts.com' , 'social-warfare' ) . '</a><br />' . __( 'Step 2: At NewShareCounts.com, Enter your domain and click the "Sign In With Twitter" button.' , 'social-warfare' ) . '<img class="sw-tweet-count-demo" src="' . SWP_PLUGIN_URL . '/images/admin-options-page/new_share_counts.png" /><br />' . __( 'Step 3: Flip the switch below to "ON" and then save changes.' , 'social-warfare' ) . '</p>';
684
 
685
  // Close the IS NOT ACTIVATED container
686
  echo '</div>';
89
  function swp_build_options_page() {
90
  global $swp_user_options;
91
 
92
+ if(isset($swp_user_options['activate_tweet_counts']) && true == $swp_user_options['activate_tweet_counts'] && !isset($swp_user_options['tweet_count_source']) ) {
93
+ $swp_user_options['tweet_count_source'] = 'newsharecounts';
94
+ }
95
+
96
  // Create all of the options in one giant array.
97
  $swp_options_page = array(
98
  // A List of Options Page Tabs and Their Titles.
649
  /**
650
  * Plugin Registration Module
651
  */
652
+ if ( defined('SWP_PLUGIN_DIR') && 'plugin_registration' === $option['type'] ) :
653
+ require_once SWP_PLUGIN_DIR . '/functions/admin/options-registration.php';
654
  endif;
655
 
656
  /**
680
  echo '<h2>' . __( 'Tweet Count Registration' , 'social-warfare' ) . '</h2>';
681
 
682
  // Open the IS NOT Activated container
683
+ echo '<div class="sw-grid sw-col-940 swp_tweets_not_activated">';
684
 
685
  // The Warning Notice & Instructions
686
+ echo '<p class="sw-subtitle sw-registration-text">' . __( 'In order to allow Social Warfare to track tweet counts, we\'ve partnered with a couple of third-party share counting tools. Follow the steps below to register with one of these platforms and allow us to track your Twitter shares.' , 'social-warfare' ) . '</p>';
687
+ echo '<p class="sw-subtitle sw-registration-text sw-italic">Step 1: <a style="float:none;" class="button sw-navy-button" href="https://opensharecount.com" target="_blank">' . __( 'Click here to visit OpenShareCount.com (Recommended)' , 'social-warfare' ) . '</a>&nbsp;<a style="float:none;" class="button sw-navy-button" href="http://newsharecounts.com" target="_blank">' . __( 'Click here to visit NewShareCounts.com' , 'social-warfare' ) . '</a><br />' . __( 'Step 2: Follow the prompts on their website to create an account and add your domain to be tracked for share counts.' , 'social-warfare' ) . '<br />' . __( 'Step 3: Flip the switch below to "ON", select which tracking service the plugin should use, then save your changes.' , 'social-warfare' ) . '</p>';
688
 
689
  // Close the IS NOT ACTIVATED container
690
  echo '</div>';
functions/admin/options-registration.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Functions for loading the admin options page.
4
+ *
5
+ * @package SocialWarfare\Admin\Functions
6
+ * @copyright Copyright (c) 2016, Warfare Plugins, LLC
7
+ * @license GPL-3.0+
8
+ * @since 1.0.0
9
+ */
10
+
11
+ $premium_code = '';
12
+ $email = '';
13
+
14
+ // Fetch the registration keys from pro and all other addons
15
+ $array = array();
16
+ $registrations = apply_filters('swp_registrations' , $array);
17
+
18
+ foreach($registrations as $registration):
19
+ if ( ! empty( $swp_user_options[$registration['key'].'_license_key'] ) ) {
20
+ $license_key = $swp_user_options[$registration['key'].'_license_key'];
21
+ $registered = 1;
22
+ } else {
23
+ $license_key = '';
24
+ $registered = 0;
25
+ }
26
+ ?>
27
+
28
+ <div class="registration-wrapper <?php echo $registration['key'] ?>" registration="<?php echo $registered; ?>">
29
+
30
+ <h2><?php esc_html_e( $registration['plugin_name'].' Registration' , 'social-warfare' ); ?></h2>
31
+
32
+ <div class="sw-grid sw-col-940 swp_is_not_registered">
33
+
34
+ <div class="sw-red-notice">
35
+ <?php _e( 'This copy of '.$registration['plugin_name'].' is NOT registered. <a target="_blank" href="https://warfareplugins.com">Click here</a> to purchase a license or add your account info below.' , 'social-warfare' ); ?>
36
+ </div>
37
+
38
+ <p class="sw-subtitle sw-registration-text">
39
+ <?php esc_html_e( 'Enter your registration key for '.$registration['plugin_name'] .' and then click Register Plugin.' , 'social-warfare' ); ?>
40
+ </p>
41
+
42
+ <div class="sw-grid sw-col-300">
43
+ <p class="sw-input-label">
44
+ <?php esc_html_e( $registration['plugin_name'].' License Key' , 'social-warfare' ); ?>
45
+ </p>
46
+ </div>
47
+
48
+ <div class="sw-grid sw-col-300">
49
+ <input name="<?php echo $registration['key'] ?>_license_key" type="text" class="sw-admin-input" placeholder="License Key" value="<?php echo $license_key; ?>" />
50
+ </div>
51
+
52
+ <div class="sw-grid sw-col-300 sw-fit register_button_grid">
53
+ <a href="#" class="register-plugin button sw-navy-button" swp-addon="<?php echo $registration['key']; ?>" swp-item-id="<?php echo $registration["product_id"]; ?>">
54
+ <?php esc_html_e( 'Register Plugin' , 'social-warfare' ); ?>
55
+ </a>
56
+ </div>
57
+
58
+ <div class="sw-clearfix"></div>
59
+ </div>
60
+
61
+ <div class="sw-grid sw-col-940 swp_is_registered">
62
+
63
+ <div class="sw-green-notice">
64
+ <?php esc_html_e( 'This copy of '.$registration['plugin_name'].' is registered. Wah-hoo!', 'social-warfare' ); ?>
65
+ </div>
66
+
67
+ <p class="sw-subtitle sw-registration-text">
68
+ <?php esc_html_e( 'To unregister your license click the button below to free it up for use on another domain.' , 'social-warfare' ); ?>
69
+ </p>
70
+
71
+ <div class="sw-grid sw-col-300">
72
+ <p class="sw-authenticate-label">
73
+ <?php esc_html_e( 'Deactivate Registration' , 'social-warfare' ); ?>
74
+ </p>
75
+ </div>
76
+
77
+ <div class="sw-grid sw-col-300">
78
+ <a href="#" class="unregister-plugin button sw-navy-button" swp-addon="<?php echo $registration['key']; ?>" swp-item-id="<?php echo $registration["product_id"]; ?>">
79
+ <?php esc_html_e( 'Unregister Plugin' , 'social-warfare' ); ?>
80
+ </a>
81
+ </div>
82
+ <div class="sw-grid sw-col-300 sw-fit"></div>
83
+
84
+ </div>
85
+
86
+ </div>
87
+ <?php endforeach; ?>
functions/admin/registration.php ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Functions for getting and setting the plugin's registration status.
4
+ *
5
+ * @package SocialWarfare\Functions
6
+ * @copyright Copyright (c) 2017, Warfare Plugins, LLC
7
+ * @license GPL-3.0+
8
+ * @since 1.0.0
9
+ */
10
+
11
+ /**
12
+ * A function to be used to make cURL requests
13
+ * @param string $url The URL to be fetched
14
+ * @return string The response from the server
15
+ *
16
+ */
17
+ function swpp_file_get_contents_curl( $url ) {
18
+ $ch = curl_init();
19
+ curl_setopt( $ch, CURLOPT_URL, $url );
20
+ curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] );
21
+ curl_setopt( $ch, CURLOPT_FAILONERROR, 0 );
22
+ curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 0 );
23
+ curl_setopt( $ch, CURLOPT_RETURNTRANSFER,1 );
24
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
25
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
26
+ curl_setopt( $ch, CURLOPT_TIMEOUT, 5 );
27
+ curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
28
+ curl_setopt( $ch, CURLOPT_NOSIGNAL, 1 );
29
+ curl_setopt( $ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
30
+ $cont = @curl_exec( $ch );
31
+ $curl_errno = curl_errno( $ch );
32
+ curl_close( $ch );
33
+ if ( $curl_errno > 0 ) {
34
+ return false;
35
+ }
36
+ return $cont;
37
+ }
38
+
39
+ /**
40
+ * Check to see if the plugin has been registered once per page load.
41
+ *
42
+ * @since 2.1.0
43
+ * @param string $domain The current site's domain.
44
+ * @param string $context The context where the key will be used.
45
+ * @return string A registration key based on the site's domain.
46
+ */
47
+ function swp_get_registration_key( $domain, $context = 'api' ) {
48
+ $key = md5( $domain );
49
+
50
+ if ( 'db' === $context ) {
51
+ $key = md5( $key );
52
+ }
53
+
54
+ return $key;
55
+ }
56
+
57
+ /**
58
+ * Check to see if an addon has been registered once per page load.
59
+ * Once per week, we'll ping our server to ask if the license key is still valid.
60
+ *
61
+ * @since 2.3.3 - Created the function to work for all addons, not just the pro addon
62
+ * @param string The unique key for the addon
63
+ * @return bool True if the plugin is registered, false otherwise.
64
+ */
65
+ function is_swp_addon_registered($key) {
66
+
67
+ // Get the plugin options from the database
68
+ $options = get_option( 'socialWarfareOptions' );
69
+ $is_registered = false;
70
+
71
+ // Get the timestamps setup for comparison to see if a week has passed since our last check
72
+ $current_time = time();
73
+ if(!isset($options[$key.'_license_key_timestamp'])):
74
+ $timestamp = 0;
75
+ else:
76
+ $timestamp = $options[$key.'_license_key_timestamp'];
77
+ endif;
78
+ $time_to_recheck = $timestamp + 604800;
79
+
80
+ // If they have a key and a week hasn't passed since the last check, just return true...the plugin is registered.
81
+ if( !empty($options[$key.'_license_key']) && $current_time < $time_to_recheck ) {
82
+
83
+ $is_registered = true;
84
+
85
+ // If a week has indeed passed since the last check, ping our API to check the validity of the license key
86
+ } elseif( !empty($options[$key.'_license_key']) ){
87
+
88
+ // Setup the API parameters
89
+ $license = $options[$key.'_license_key'];
90
+ $site_url = swp_get_site_url();
91
+ $store_url = 'https://warfareplugins.com';
92
+ $registration_array = array();
93
+ $registration_array = apply_filters( 'swp_registrations' , $registration_array );
94
+ $item_id = $registration_array[$key]['product_id'];
95
+
96
+
97
+ $api_params = array(
98
+ 'edd_action' => 'check_license',
99
+ 'item_id' => $item_id,
100
+ 'license' => $license,
101
+ 'url' => $site_url,
102
+ );
103
+
104
+ $response = wp_remote_retrieve_body( wp_remote_post( $store_url , array('body' => $api_params, 'timeout' => 10 ) ) );
105
+
106
+ if( false != $response ) {
107
+
108
+ // Parse the response into an object
109
+ $license_data = json_decode( $response );
110
+
111
+ // If the license was invalid
112
+ if( isset($license_data->license) && 'invalid' == $license_data->license) {
113
+ $is_registered = false;
114
+ $options[$key.'_license_key'] = '';
115
+ $options[$key.'_license_key_timestamp'] = $current_time;
116
+ update_option( 'socialWarfareOptions' , $options );
117
+
118
+ // If the property is some other status, just go with it.
119
+ } else {
120
+ $options[$key.'_license_key_timestamp'] = $current_time;
121
+ update_option( 'socialWarfareOptions' , $options );
122
+ $is_registered = true;
123
+ }
124
+
125
+ // If we recieved no response from the server, we'll just check again next week
126
+ } else {
127
+ $options[$key.'_license_key_timestamp'] = $current_time;
128
+ update_option( 'socialWarfareOptions' , $options );
129
+ $is_registered = true;
130
+ }
131
+ }
132
+
133
+ // Return the registration value true/false
134
+ return $is_registered;
135
+ }
136
+
137
+ /**
138
+ * Check to see if the plugin has been registered once per page load.
139
+ * Once per week, we'll ping our server to ask if the license key is still valid.
140
+ *
141
+ * @since unknown
142
+ * @since 2.3.3 Forward the request to the is_swp_addon_registered() function.
143
+ * @return bool True if the plugin is registered, false otherwise.
144
+ */
145
+ function is_swp_registered($timeline = false) {
146
+
147
+ return is_swp_addon_registered('pro');
148
+
149
+ }
150
+
151
+ /**
152
+ * Attempt to register the plugin.
153
+ *
154
+ * @since 2.1.0
155
+ * @since 2.3.0 Hooked registration into the new EDD Software Licensing API
156
+ * @param none
157
+ * @return JSON Encoded Array (Echoed) - The Response from the EDD API
158
+ *
159
+ */
160
+ add_action( 'wp_ajax_swp_register_plugin', 'swp_register_plugin' );
161
+ function swp_register_plugin() {
162
+
163
+ // Check to ensure that license key was passed into the function
164
+ if(!empty($_POST['license_key'])) {
165
+
166
+ // Grab the license key so we can use it below
167
+ $name_key = $_POST['name_key'];
168
+ $license = $_POST['license_key'];
169
+ $item_id = $_POST['item_id'];
170
+ $site_url = swp_get_site_url();
171
+ $store_url = 'https://warfareplugins.com';
172
+
173
+ $api_params = array(
174
+ 'edd_action' => 'activate_license',
175
+ 'item_id' => $item_id,
176
+ 'license' => $license,
177
+ 'url' => $site_url
178
+ );
179
+
180
+ $response = wp_remote_retrieve_body( wp_remote_post( $store_url, array( 'body' => $api_params, 'timeout' => 10 ) ) );
181
+
182
+ // $url ='https://warfareplugins.com/?edd_action=activate_license&item_id='.$item_id.'&license='.$license.'&url='.swp_get_site_url();
183
+ // $response = swpp_file_get_contents_curl( $url );
184
+
185
+ if(false != $response){
186
+
187
+ // Parse the response into an object
188
+ $license_data = json_decode( $response );
189
+
190
+ // If the license is valid store it in the database
191
+ if( isset($license_data->license) && 'valid' == $license_data->license ) {
192
+
193
+ $current_time = time();
194
+ $options = get_option( 'socialWarfareOptions' );
195
+ $options[$name_key.'_license_key'] = $license;
196
+ $options[$name_key.'_license_key_timestamp'] = $current_time;
197
+ update_option( 'socialWarfareOptions' , $options );
198
+
199
+ echo json_encode($license_data);
200
+ wp_die();
201
+
202
+ // If the license is not valid
203
+ } elseif( isset($license_data->license) && 'invalid' == $license_data->license ) {
204
+ echo json_encode($license_data);
205
+ wp_die();
206
+
207
+ // If some other status was returned
208
+ } else {
209
+ $license_data['success'] = false;
210
+ $license_data['data'] = 'Invaid response from the registration server.';
211
+ echo json_encode($license_data);
212
+ wp_die();
213
+ }
214
+
215
+ // If we didn't get a response from the registration server
216
+ } else {
217
+ $license_data['success'] = false;
218
+ $license_data['data'] = 'Failed to connect to registration server.';
219
+ echo json_encode($license_data);
220
+ wp_die();
221
+ }
222
+ } else {
223
+ $license_data['success'] = false;
224
+ $license_data['data'] = 'Admin Ajax did not receive valid POST data.';
225
+ echo json_encode($license_data);
226
+ wp_die();
227
+ }
228
+
229
+ wp_die();
230
+
231
+ }
232
+
233
+ /**
234
+ * Attempt to unregister the plugin.
235
+ *
236
+ * @since 2.1.0
237
+ * @since 2.3.0 Hooked into the EDD Software Licensing API
238
+ * @param none
239
+ * @return JSON Encoded Array (Echoed) - The Response from the EDD API
240
+ */
241
+ add_action( 'wp_ajax_swp_unregister_plugin', 'swp_unregister_plugin' );
242
+ function swp_unregister_plugin() {
243
+
244
+ // Setup the variables needed for processing
245
+ $options = get_option( 'socialWarfareOptions' );
246
+ $name_key = $_POST['name_key'];
247
+ $item_id = $_POST['item_id'];
248
+ $site_url = swp_get_site_url();
249
+ $store_url = 'https://warfareplugins.com';
250
+
251
+ // Check to see if the license key is even in the options
252
+ if(empty($options[$name_key.'_license_key'])) {
253
+ $response['success'] = true;
254
+ echo json_encode($response);
255
+ } else {
256
+
257
+ // Grab the license key so we can use it below
258
+ $license = $options[$name_key.'_license_key'];
259
+
260
+ // Setup the API request parameters
261
+ $api_params = array(
262
+ 'edd_action' => 'deactivate_license',
263
+ 'item_id' => $item_id,
264
+ 'license' => $license,
265
+ 'url' => $site_url,
266
+ );
267
+
268
+ $response = wp_remote_retrieve_body( wp_remote_post( $store_url, array( 'body' => $api_params, 'timeout' => 10 ) ) );
269
+
270
+ // Parse the response into an object
271
+ $license_data = json_decode( $response );
272
+
273
+ // If the deactivation was valid update the database
274
+ if( isset($license_data->license) && $license_data->license == 'valid' ) {
275
+
276
+ $options = get_option( 'socialWarfareOptions' );
277
+ $options[$name_key.'_license_key'] = '';
278
+ update_option( 'socialWarfareOptions' , $options );
279
+ echo json_encode($license_data);
280
+ wp_die();
281
+
282
+ // If the API request didn't work, just deactivate locally anyways
283
+ } else {
284
+
285
+ $options = get_option( 'socialWarfareOptions' );
286
+ $options[$name_key.'_license_key'] = '';
287
+ update_option( 'socialWarfareOptions' , $options );
288
+ echo json_encode($license_data);
289
+ wp_die();
290
+ }
291
+ }
292
+
293
+ wp_die();
294
+ }
295
+
296
+ add_action( 'wp_ajax_swp_ajax_passthrough', 'swp_ajax_passthrough' );
297
+ /**
298
+ * Pass ajax responses to a remote HTTP request.
299
+ *
300
+ * @since 2.0.0
301
+ * @return void
302
+ */
303
+ function swp_ajax_passthrough() {
304
+ if ( ! check_ajax_referer( 'swp_plugin_registration', 'security', false ) ) {
305
+ wp_send_json_error( esc_html__( 'Security failed.', 'social-warfare' ) );
306
+ die;
307
+ }
308
+
309
+ $data = wp_unslash( $_POST ); // Input var okay.
310
+
311
+ if ( ! isset( $data['activity'], $data['email'] ) ) {
312
+ wp_send_json_error( esc_html__( 'Required fields missing.', 'social-warfare' ) );
313
+ die;
314
+ }
315
+
316
+ if ( 'register' === $data['activity'] ) {
317
+ $response = swp_register_plugin( $data['email'], swp_get_site_url() );
318
+
319
+ if ( ! $response ) {
320
+ wp_send_json_error( esc_html__( 'Plugin could not be registered.', 'social-warfare' ) );
321
+ die;
322
+ }
323
+
324
+ $response['message'] = esc_html__( 'Plugin successfully registered!', 'social-warfare' );
325
+ }
326
+
327
+ if ( 'unregister' === $data['activity'] && isset( $data['key'] ) ) {
328
+ $response = swp_unregister_plugin( $data['email'], $data['key'] );
329
+
330
+ if ( ! $response ) {
331
+ wp_send_json_error( esc_html__( 'Plugin could not be unregistered.', 'social-warfare' ) );
332
+ die;
333
+ }
334
+
335
+ $response['message'] = esc_html__( 'Plugin successfully unregistered!', 'social-warfare' );
336
+ }
337
+
338
+ wp_send_json_success( $response );
339
+
340
+ die;
341
+ }
functions/frontend-output/buttons-standard.php CHANGED
@@ -61,6 +61,11 @@ function socialWarfare( $content = false, $where = 'default', $echo = true ) {
61
  function social_warfare_buttons( $array = array() ) {
62
  global $swp_user_options;
63
 
 
 
 
 
 
64
  // Setup the default Array parameters
65
  if ( ! isset( $array['where'] ) ) { $array['where'] = 'default'; }
66
  if ( ! isset( $array['echo'] ) ) { $array['echo'] = true; }
61
  function social_warfare_buttons( $array = array() ) {
62
  global $swp_user_options;
63
 
64
+ // Make sure that $array really is an array
65
+ if(!is_array($array)){
66
+ $array = array();
67
+ }
68
+
69
  // Setup the default Array parameters
70
  if ( ! isset( $array['where'] ) ) { $array['where'] = 'default'; }
71
  if ( ! isset( $array['echo'] ) ) { $array['echo'] = true; }
functions/frontend-output/shortcodes.php CHANGED
@@ -11,9 +11,13 @@ function socialWarfareShortcode( $atts ) {
11
  }
12
  function social_warfareShortcode( $array ) {
13
 
14
- if ( ! isset( $array['where'] ) ) { $array['where'] = 'after'; }
15
- if ( ! isset( $array['echo'] ) ) { $array['echo'] = false; }
16
- if ( ! isset( $array['content'] ) ) { $array['content'] = false; }
 
 
 
 
17
 
18
  $array['shortcode'] = true;
19
  $array['devs'] = true;
11
  }
12
  function social_warfareShortcode( $array ) {
13
 
14
+ if(!is_array($array)){
15
+ $array = array();
16
+ }
17
+
18
+ if ( !isset( $array['where'] ) ) { $array['where'] = 'after'; }
19
+ if ( !isset( $array['echo'] ) ) { $array['echo'] = false; }
20
+ if ( !isset( $array['content'] ) ) { $array['content'] = false; }
21
 
22
  $array['shortcode'] = true;
23
  $array['devs'] = true;
functions/social-networks/facebook.php CHANGED
@@ -72,9 +72,21 @@ function swp_facebook_request_link( $url ) {
72
  */
73
  function swp_format_facebook_response( $response ) {
74
  $formatted_response = json_decode( $response , true);
75
- $likes = $formatted_response['og_object']['likes']['summary']['total_count'];
76
- $comments = $formatted_response['share']['comment_count'];
77
- $shares = $formatted_response['share']['share_count'];
 
 
 
 
 
 
 
 
 
 
 
 
78
  $total = $likes + $comments + $shares;
79
  return $total;
80
  }
72
  */
73
  function swp_format_facebook_response( $response ) {
74
  $formatted_response = json_decode( $response , true);
75
+
76
+ if( !empty( $formatted_response['og_object'] ) ) {
77
+ $likes = $formatted_response['og_object']['likes']['summary']['total_count'];
78
+ } else {
79
+ $likes = 0;
80
+ }
81
+
82
+ if( !empty( $formatted_response['share'] ) ){
83
+ $comments = $formatted_response['share']['comment_count'];
84
+ $shares = $formatted_response['share']['share_count'];
85
+ } else {
86
+ $comments = 0;
87
+ $shares = 0;
88
+ }
89
+
90
  $total = $likes + $comments + $shares;
91
  return $total;
92
  }
functions/social-networks/twitter.php CHANGED
@@ -65,7 +65,11 @@ function swp_twitter_request_link( $url ) {
65
  if ( $swp_user_options['twitter_shares'] ) :
66
 
67
  // Return the correct Twitter JSON endpoint URL
68
- $request_url = 'http://public.newsharecounts.com/count.json?url=' . $url;
 
 
 
 
69
 
70
  // Debugging
71
  if ( _swp_is_debug( 'twitter' ) ) {
65
  if ( $swp_user_options['twitter_shares'] ) :
66
 
67
  // Return the correct Twitter JSON endpoint URL
68
+ if('opensharecount' == $swp_user_options['tweet_count_source']){
69
+ $request_url = 'https://opensharecount.com/count.json?url='. $url;
70
+ } else {
71
+ $request_url = 'http://public.newsharecounts.com/count.json?url=' . $url;
72
+ }
73
 
74
  // Debugging
75
  if ( _swp_is_debug( 'twitter' ) ) {
functions/utilities/share-count-function.php CHANGED
@@ -64,17 +64,25 @@ function get_social_warfare_shares( $postID ) {
64
  $alternateURL = swp_get_alt_permalink( $postID );
65
  $alternateURL = apply_filters( 'swp_recovery_filter',$alternateURL );
66
 
 
 
 
67
  // Debug the Alternate URL being checked
68
  if ( _swp_is_debug( 'recovery' ) ) {
69
  echo $alternateURL;
 
70
  }
71
 
72
  foreach ( $networks as $network ) :
73
 
74
  $old_share_links[ $network ] = call_user_func( 'swp_' . $network . '_request_link',$alternateURL );
75
 
76
- endforeach;
77
- endif;
 
 
 
 
78
 
79
  if ( $freshCache == true ) :
80
  if ( get_post_meta( $postID,'_totes',true ) ) :
@@ -88,6 +96,9 @@ function get_social_warfare_shares( $postID ) {
88
  $raw_shares_array = swp_fetch_shares_via_curl_multi( $share_links );
89
  if ( $options['recover_shares'] == true ) :
90
  $old_raw_shares_array = swp_fetch_shares_via_curl_multi( $old_share_links );
 
 
 
91
  endif;
92
 
93
  foreach ( $networks as $network ) :
@@ -100,11 +111,18 @@ function get_social_warfare_shares( $postID ) {
100
  $shares[ $network ] = call_user_func( 'swp_format_' . $network . '_response',$raw_shares_array[ $network ] );
101
  if ( $options['recover_shares'] == true ) :
102
  $recovered_shares[ $network ] = call_user_func( 'swp_format_' . $network . '_response',$old_raw_shares_array[ $network ] );
 
 
 
 
103
  if ( $shares[ $network ] != $recovered_shares[ $network ] ) :
104
  $shares[ $network ] = $shares[ $network ] + $recovered_shares[ $network ];
105
  endif;
 
 
 
106
  endif;
107
- if ( $shares[ $network ] <= $old_shares[ $network ] && (!isset($options['force_new_shares']) || false === $options['force_new_shares']) ) :
108
  $shares[ $network ] = $old_shares[ $network ];
109
  elseif($shares[$network] > 0) :
110
  delete_post_meta( $postID,'_' . $network . '_shares' );
64
  $alternateURL = swp_get_alt_permalink( $postID );
65
  $alternateURL = apply_filters( 'swp_recovery_filter',$alternateURL );
66
 
67
+ $altURLs = '';
68
+ $altURLs = apply_filters('swp_additional_url_to_check' , $altURLs );
69
+
70
  // Debug the Alternate URL being checked
71
  if ( _swp_is_debug( 'recovery' ) ) {
72
  echo $alternateURL;
73
+ echo $altURLs;
74
  }
75
 
76
  foreach ( $networks as $network ) :
77
 
78
  $old_share_links[ $network ] = call_user_func( 'swp_' . $network . '_request_link',$alternateURL );
79
 
80
+ if(!empty($altURLs)):
81
+ $altURLs_share_links[$network] = call_user_func( 'swp_' . $network . '_request_link' , $altURLs );
82
+ endif;
83
+
84
+ endforeach;
85
+ endif;
86
 
87
  if ( $freshCache == true ) :
88
  if ( get_post_meta( $postID,'_totes',true ) ) :
96
  $raw_shares_array = swp_fetch_shares_via_curl_multi( $share_links );
97
  if ( $options['recover_shares'] == true ) :
98
  $old_raw_shares_array = swp_fetch_shares_via_curl_multi( $old_share_links );
99
+ if(!empty($altURLs)):
100
+ $altURLs_raw_shares_array = swp_fetch_shares_via_curl_multi( $altURLs_share_links );
101
+ endif;
102
  endif;
103
 
104
  foreach ( $networks as $network ) :
111
  $shares[ $network ] = call_user_func( 'swp_format_' . $network . '_response',$raw_shares_array[ $network ] );
112
  if ( $options['recover_shares'] == true ) :
113
  $recovered_shares[ $network ] = call_user_func( 'swp_format_' . $network . '_response',$old_raw_shares_array[ $network ] );
114
+ if(!empty($altURLs)):
115
+ $altURLs_recovered_shares[ $network ] = call_user_func( 'swp_format_' . $network . '_response',$altURLs_raw_shares_array[ $network ] );
116
+ endif;
117
+
118
  if ( $shares[ $network ] != $recovered_shares[ $network ] ) :
119
  $shares[ $network ] = $shares[ $network ] + $recovered_shares[ $network ];
120
  endif;
121
+ if(!empty($altURLs)):
122
+ $shares[$network] = $shares[$network] + $altURLs_recovered_shares[$network];
123
+ endif;
124
  endif;
125
+ if ( $shares[ $network ] <= $old_shares[ $network ] && false === _swp_is_debug('force_new_shares') ) :
126
  $shares[ $network ] = $old_shares[ $network ];
127
  elseif($shares[$network] > 0) :
128
  delete_post_meta( $postID,'_' . $network . '_shares' );
functions/utilities/update-checker.php ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Exit if accessed directly
4
+ if ( ! defined( 'ABSPATH' ) ) exit;
5
+
6
+ /**
7
+ * Allows plugins to use their own update API.
8
+ *
9
+ * @author Easy Digital Downloads
10
+ * @version 1.6.14
11
+ */
12
+ class SW_EDD_SL_Plugin_Updater {
13
+
14
+ private $api_url = '';
15
+ private $api_data = array();
16
+ private $name = '';
17
+ private $slug = '';
18
+ private $version = '';
19
+ private $wp_override = false;
20
+ private $cache_key = '';
21
+
22
+ /**
23
+ * Class constructor.
24
+ *
25
+ * @uses plugin_basename()
26
+ * @uses hook()
27
+ *
28
+ * @param string $_api_url The URL pointing to the custom API endpoint.
29
+ * @param string $_plugin_file Path to the plugin file.
30
+ * @param array $_api_data Optional data to send with API calls.
31
+ */
32
+ public function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
33
+
34
+ global $edd_plugin_data;
35
+
36
+ $this->api_url = trailingslashit( $_api_url );
37
+ $this->api_data = $_api_data;
38
+ $this->name = plugin_basename( $_plugin_file );
39
+ $this->slug = basename( $_plugin_file, '.php' );
40
+ $this->version = $_api_data['version'];
41
+ $this->wp_override = isset( $_api_data['wp_override'] ) ? (bool) $_api_data['wp_override'] : false;
42
+ $this->beta = ! empty( $this->api_data['beta'] ) ? true : false;
43
+ $this->cache_key = md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
44
+
45
+ $edd_plugin_data[ $this->slug ] = $this->api_data;
46
+
47
+ // Set up hooks.
48
+ $this->init();
49
+
50
+ }
51
+
52
+ /**
53
+ * Set up WordPress filters to hook into WP's update process.
54
+ *
55
+ * @uses add_filter()
56
+ *
57
+ * @return void
58
+ */
59
+ public function init() {
60
+
61
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
62
+ add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
63
+ remove_action( 'after_plugin_row_' . $this->name, 'wp_plugin_update_row', 10 );
64
+ add_action( 'after_plugin_row_' . $this->name, array( $this, 'show_update_notification' ), 10, 2 );
65
+ add_action( 'admin_init', array( $this, 'show_changelog' ) );
66
+
67
+ }
68
+
69
+ /**
70
+ * Check for Updates at the defined API endpoint and modify the update array.
71
+ *
72
+ * This function dives into the update API just when WordPress creates its update array,
73
+ * then adds a custom API call and injects the custom plugin data retrieved from the API.
74
+ * It is reassembled from parts of the native WordPress plugin update code.
75
+ * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
76
+ *
77
+ * @uses api_request()
78
+ *
79
+ * @param array $_transient_data Update array build by WordPress.
80
+ * @return array Modified update array with custom plugin data.
81
+ */
82
+ public function check_update( $_transient_data ) {
83
+
84
+ global $pagenow;
85
+
86
+ if ( ! is_object( $_transient_data ) ) {
87
+ $_transient_data = new stdClass;
88
+ }
89
+
90
+ if ( 'plugins.php' == $pagenow && is_multisite() ) {
91
+ return $_transient_data;
92
+ }
93
+
94
+ if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
95
+ return $_transient_data;
96
+ }
97
+
98
+ $version_info = $this->get_cached_version_info();
99
+
100
+ if ( false === $version_info ) {
101
+ $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
102
+
103
+ $this->set_version_info_cache( $version_info );
104
+
105
+ }
106
+
107
+ if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
108
+
109
+ if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
110
+
111
+ $_transient_data->response[ $this->name ] = $version_info;
112
+
113
+ }
114
+
115
+ $_transient_data->last_checked = current_time( 'timestamp' );
116
+ $_transient_data->checked[ $this->name ] = $this->version;
117
+
118
+ }
119
+
120
+ return $_transient_data;
121
+ }
122
+
123
+ /**
124
+ * show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!
125
+ *
126
+ * @param string $file
127
+ * @param array $plugin
128
+ */
129
+ public function show_update_notification( $file, $plugin ) {
130
+
131
+ if ( is_network_admin() ) {
132
+ return;
133
+ }
134
+
135
+ if( ! current_user_can( 'update_plugins' ) ) {
136
+ return;
137
+ }
138
+
139
+ if( ! is_multisite() ) {
140
+ return;
141
+ }
142
+
143
+ if ( $this->name != $file ) {
144
+ return;
145
+ }
146
+
147
+ // Remove our filter on the site transient
148
+ remove_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ), 10 );
149
+
150
+ $update_cache = get_site_transient( 'update_plugins' );
151
+
152
+ $update_cache = is_object( $update_cache ) ? $update_cache : new stdClass();
153
+
154
+ if ( empty( $update_cache->response ) || empty( $update_cache->response[ $this->name ] ) ) {
155
+
156
+ $version_info = $this->get_cached_version_info();
157
+
158
+ if ( false === $version_info ) {
159
+ $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
160
+
161
+ $this->set_version_info_cache( $version_info );
162
+ }
163
+
164
+ if ( ! is_object( $version_info ) ) {
165
+ return;
166
+ }
167
+
168
+ if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
169
+
170
+ $update_cache->response[ $this->name ] = $version_info;
171
+
172
+ }
173
+
174
+ $update_cache->last_checked = current_time( 'timestamp' );
175
+ $update_cache->checked[ $this->name ] = $this->version;
176
+
177
+ set_site_transient( 'update_plugins', $update_cache );
178
+
179
+ } else {
180
+
181
+ $version_info = $update_cache->response[ $this->name ];
182
+
183
+ }
184
+
185
+ // Restore our filter
186
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
187
+
188
+ if ( ! empty( $update_cache->response[ $this->name ] ) && version_compare( $this->version, $version_info->new_version, '<' ) ) {
189
+
190
+ // build a plugin list row, with update notification
191
+ $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
192
+ # <tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
193
+ echo '<tr class="plugin-update-tr" id="' . $this->slug . '-update" data-slug="' . $this->slug . '" data-plugin="' . $this->slug . '/' . $file . '">';
194
+ echo '<td colspan="3" class="plugin-update colspanchange">';
195
+ echo '<div class="update-message notice inline notice-warning notice-alt">';
196
+
197
+ $changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
198
+
199
+ if ( empty( $version_info->download_link ) ) {
200
+ printf(
201
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'easy-digital-downloads' ),
202
+ esc_html( $version_info->name ),
203
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
204
+ esc_html( $version_info->new_version ),
205
+ '</a>'
206
+ );
207
+ } else {
208
+ printf(
209
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'easy-digital-downloads' ),
210
+ esc_html( $version_info->name ),
211
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
212
+ esc_html( $version_info->new_version ),
213
+ '</a>',
214
+ '<a href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) ) .'">',
215
+ '</a>'
216
+ );
217
+ }
218
+
219
+ do_action( "in_plugin_update_message-{$file}", $plugin, $version_info );
220
+
221
+ echo '</div></td></tr>';
222
+ }
223
+ }
224
+
225
+ /**
226
+ * Updates information on the "View version x.x details" page with custom data.
227
+ *
228
+ * @uses api_request()
229
+ *
230
+ * @param mixed $_data
231
+ * @param string $_action
232
+ * @param object $_args
233
+ * @return object $_data
234
+ */
235
+ public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
236
+
237
+ if ( $_action != 'plugin_information' ) {
238
+
239
+ return $_data;
240
+
241
+ }
242
+
243
+ if ( ! isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) {
244
+
245
+ return $_data;
246
+
247
+ }
248
+
249
+ $to_send = array(
250
+ 'slug' => $this->slug,
251
+ 'is_ssl' => is_ssl(),
252
+ 'fields' => array(
253
+ 'banners' => array(),
254
+ 'reviews' => false
255
+ )
256
+ );
257
+
258
+ $cache_key = 'edd_api_request_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
259
+
260
+ // Get the transient where we store the api request for this plugin for 24 hours
261
+ $edd_api_request_transient = $this->get_cached_version_info( $cache_key );
262
+
263
+ //If we have no transient-saved value, run the API, set a fresh transient with the API value, and return that value too right now.
264
+ if ( empty( $edd_api_request_transient ) ) {
265
+
266
+ $api_response = $this->api_request( 'plugin_information', $to_send );
267
+
268
+ // Expires in 3 hours
269
+ $this->set_version_info_cache( $api_response, $cache_key );
270
+
271
+ if ( false !== $api_response ) {
272
+ $_data = $api_response;
273
+ }
274
+
275
+ } else {
276
+ $_data = $edd_api_request_transient;
277
+ }
278
+
279
+ // Convert sections into an associative array, since we're getting an object, but Core expects an array.
280
+ if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
281
+ $new_sections = array();
282
+ foreach ( $_data->sections as $key => $value ) {
283
+ $new_sections[ $key ] = $value;
284
+ }
285
+
286
+ $_data->sections = $new_sections;
287
+ }
288
+
289
+ // Convert banners into an associative array, since we're getting an object, but Core expects an array.
290
+ if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
291
+ $new_banners = array();
292
+ foreach ( $_data->banners as $key => $value ) {
293
+ $new_banners[ $key ] = $value;
294
+ }
295
+
296
+ $_data->banners = $new_banners;
297
+ }
298
+
299
+ return $_data;
300
+ }
301
+
302
+ /**
303
+ * Disable SSL verification in order to prevent download update failures
304
+ *
305
+ * @param array $args
306
+ * @param string $url
307
+ * @return object $array
308
+ */
309
+ public function http_request_args( $args, $url ) {
310
+
311
+ $verify_ssl = $this->verify_ssl();
312
+ if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
313
+ $args['sslverify'] = $verify_ssl;
314
+ }
315
+ return $args;
316
+
317
+ }
318
+
319
+ /**
320
+ * Calls the API and, if successfull, returns the object delivered by the API.
321
+ *
322
+ * @uses get_bloginfo()
323
+ * @uses wp_remote_post()
324
+ * @uses is_wp_error()
325
+ *
326
+ * @param string $_action The requested action.
327
+ * @param array $_data Parameters for the API action.
328
+ * @return false|object
329
+ */
330
+ private function api_request( $_action, $_data ) {
331
+
332
+ global $wp_version;
333
+
334
+ $data = array_merge( $this->api_data, $_data );
335
+
336
+ if ( $data['slug'] != $this->slug ) {
337
+ return;
338
+ }
339
+
340
+ if( $this->api_url == trailingslashit (home_url() ) ) {
341
+ return false; // Don't allow a plugin to ping itself
342
+ }
343
+
344
+ $api_params = array(
345
+ 'edd_action' => 'get_version',
346
+ 'license' => ! empty( $data['license'] ) ? $data['license'] : '',
347
+ 'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
348
+ 'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
349
+ 'version' => isset( $data['version'] ) ? $data['version'] : false,
350
+ 'slug' => $data['slug'],
351
+ 'author' => $data['author'],
352
+ 'url' => home_url(),
353
+ 'beta' => ! empty( $data['beta'] ),
354
+ );
355
+
356
+ $verify_ssl = $this->verify_ssl();
357
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
358
+
359
+ if ( ! is_wp_error( $request ) ) {
360
+ $request = json_decode( wp_remote_retrieve_body( $request ) );
361
+ }
362
+
363
+ if ( $request && isset( $request->sections ) ) {
364
+ $request->sections = maybe_unserialize( $request->sections );
365
+ } else {
366
+ $request = false;
367
+ }
368
+
369
+ if ( $request && isset( $request->banners ) ) {
370
+ $request->banners = maybe_unserialize( $request->banners );
371
+ }
372
+
373
+ if( ! empty( $request->sections ) ) {
374
+ foreach( $request->sections as $key => $section ) {
375
+ $request->$key = (array) $section;
376
+ }
377
+ }
378
+
379
+ return $request;
380
+ }
381
+
382
+ public function show_changelog() {
383
+
384
+ global $edd_plugin_data;
385
+
386
+ if( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' != $_REQUEST['edd_sl_action'] ) {
387
+ return;
388
+ }
389
+
390
+ if( empty( $_REQUEST['plugin'] ) ) {
391
+ return;
392
+ }
393
+
394
+ if( empty( $_REQUEST['slug'] ) ) {
395
+ return;
396
+ }
397
+
398
+ if( ! current_user_can( 'update_plugins' ) ) {
399
+ wp_die( __( 'You do not have permission to install plugin updates', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
400
+ }
401
+
402
+ $data = $edd_plugin_data[ $_REQUEST['slug'] ];
403
+ $beta = ! empty( $data['beta'] ) ? true : false;
404
+ $cache_key = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
405
+ $version_info = $this->get_cached_version_info( $cache_key );
406
+
407
+ if( false === $version_info ) {
408
+
409
+ $api_params = array(
410
+ 'edd_action' => 'get_version',
411
+ 'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
412
+ 'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
413
+ 'slug' => $_REQUEST['slug'],
414
+ 'author' => $data['author'],
415
+ 'url' => home_url(),
416
+ 'beta' => ! empty( $data['beta'] )
417
+ );
418
+
419
+ $verify_ssl = $this->verify_ssl();
420
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
421
+
422
+ if ( ! is_wp_error( $request ) ) {
423
+ $version_info = json_decode( wp_remote_retrieve_body( $request ) );
424
+ }
425
+
426
+
427
+ if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
428
+ $version_info->sections = maybe_unserialize( $version_info->sections );
429
+ } else {
430
+ $version_info = false;
431
+ }
432
+
433
+ if( ! empty( $version_info ) ) {
434
+ foreach( $version_info->sections as $key => $section ) {
435
+ $version_info->$key = (array) $section;
436
+ }
437
+ }
438
+
439
+ $this->set_version_info_cache( $version_info, $cache_key );
440
+
441
+ }
442
+
443
+ if( ! empty( $version_info ) && isset( $version_info->sections['changelog'] ) ) {
444
+ echo '<div style="background:#fff;padding:10px;">' . $version_info->sections['changelog'] . '</div>';
445
+ }
446
+
447
+ exit;
448
+ }
449
+
450
+ public function get_cached_version_info( $cache_key = '' ) {
451
+
452
+ if( empty( $cache_key ) ) {
453
+ $cache_key = $this->cache_key;
454
+ }
455
+
456
+ $cache = get_option( $cache_key );
457
+
458
+ if( empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) {
459
+ return false; // Cache is expired
460
+ }
461
+
462
+ return json_decode( $cache['value'] );
463
+
464
+ }
465
+
466
+ public function set_version_info_cache( $value = '', $cache_key = '' ) {
467
+
468
+ if( empty( $cache_key ) ) {
469
+ $cache_key = $this->cache_key;
470
+ }
471
+
472
+ $data = array(
473
+ 'timeout' => strtotime( '+3 hours', current_time( 'timestamp' ) ),
474
+ 'value' => json_encode( $value )
475
+ );
476
+
477
+ update_option( $cache_key, $data, 'no' );
478
+
479
+ }
480
+
481
+ /**
482
+ * Returns if the SSL of the store should be verified.
483
+ *
484
+ * @since 1.6.13
485
+ * @return bool
486
+ */
487
+ private function verify_ssl() {
488
+ return (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true, $this );
489
+ }
490
+
491
+ }
functions/utilities/url_processing.php CHANGED
@@ -314,7 +314,7 @@ function swp_process_url( $url, $network, $postID ) {
314
  $array['postID'] = $postID;
315
 
316
  // Run the anaylitcs hook filters
317
- if( !isset( $swp_user_options['utm_on_pins']) || (false === $swp_user_options['utm_on_pins'] && $network !== 'pinterest') ):
318
  $array = apply_filters( 'swp_analytics' , $array );
319
  endif;
320
 
314
  $array['postID'] = $postID;
315
 
316
  // Run the anaylitcs hook filters
317
+ if( ( $network === 'pinterest' && isset( $swp_user_options['utm_on_pins']) && true === $swp_user_options['utm_on_pins']) || $network !== 'pinterest' ):
318
  $array = apply_filters( 'swp_analytics' , $array );
319
  endif;
320
 
functions/utilities/utility.php CHANGED
@@ -356,3 +356,34 @@ function swp_remove_screen_options( $display_boolean, $wp_screen_object ){
356
  return $display_boolean;
357
  }
358
  add_filter( 'screen_options_show_screen', 'swp_remove_screen_options', 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  return $display_boolean;
357
  }
358
  add_filter( 'screen_options_show_screen', 'swp_remove_screen_options', 10, 2 );
359
+
360
+
361
+ function swp_get_license_key($key) {
362
+
363
+ if(is_swp_addon_registered($key)):
364
+
365
+ $options = get_option( 'socialWarfareOptions' );
366
+ $license = $options[$key.'_license_key'];
367
+ return $license;
368
+
369
+ else:
370
+
371
+ return false;
372
+
373
+ endif;
374
+ }
375
+
376
+ /**
377
+ * A function to return the URL of the website or network
378
+ *
379
+ * @since 2.3.3 | 25 SEP 2017 | Created
380
+ * @return String The URL of the site
381
+ *
382
+ */
383
+ function swp_get_site_url() {
384
+ if( true == is_multisite() ) {
385
+ return network_site_url();
386
+ } else {
387
+ return get_site_url();
388
+ }
389
+ }
js/admin-options-page.js CHANGED
@@ -519,22 +519,26 @@
519
  $cttOptions.trigger( 'change' );
520
  }
521
 
522
- function toggleRegistration( status ) {
523
- $( '.registration-wrapper' ).attr( 'registration', status );
524
- $( '.sw-admin-wrapper' ).attr( 'sw-registered', status );
525
- $( '.sw-top-menu' ).attr( 'sw-registered', status );
 
 
526
  }
527
 
528
  /*******************************************************
529
  Register the Plugin
530
  *******************************************************/
531
- function registerPlugin() {
532
  var registered = false;
533
  var data = {
534
  action: 'swp_register_plugin',
535
  security: swpAdminOptionsData.registerNonce,
536
  activity: 'register',
537
- pro_license_key: $( 'input[name="pro_license_key"]' ).val()
 
 
538
  };
539
 
540
  loadingScreen();
@@ -543,14 +547,14 @@
543
 
544
  $.post( ajaxurl, data, function( response ) {
545
  // If the response was a failure...
546
-
547
  response = JSON.parse(response);
548
 
549
  console.log(response);
550
  if ( !response.success ) {
551
  alert( 'Failure: ' + response.data );
552
  } else {
553
- toggleRegistration( '1' );
554
  registered = true;
555
  }
556
 
@@ -563,28 +567,30 @@
563
  /*******************************************************
564
  Unregister the Plugin
565
  *******************************************************/
566
- function unregisterPlugin() {
567
  var unregistered = false;
568
  var ajaxData = {
569
  action: 'swp_unregister_plugin',
570
  security: swpAdminOptionsData.registerNonce,
571
- activity: 'unregister'
 
 
572
  };
573
-
574
  loadingScreen();
575
 
576
  // Ping the home server to create a registration log
577
  $.post( ajaxurl, ajaxData, function( response ) {
578
  // If the response was a failure...
579
  //
580
- response = JSON.parse(response);
581
  console.log(response);
 
582
  if ( !response.success ) {
583
  alert( 'Failure: ' + response.data );
584
  } else {
585
  // If the response was a success
586
- $( 'input[name="pro_license_key"]' ).val( '' );
587
- toggleRegistration( '0' );
588
  unregistered = true;
589
  }
590
 
@@ -596,13 +602,19 @@
596
  }
597
 
598
  function handleRegistration() {
599
- $( '#register-plugin' ).on( 'click', function() {
600
- registerPlugin();
 
 
 
601
  return false;
602
  });
603
 
604
- $( '#unregister-plugin' ).on( 'click', function() {
605
- unregisterPlugin();
 
 
 
606
  return false;
607
  });
608
  }
519
  $cttOptions.trigger( 'change' );
520
  }
521
 
522
+ function toggleRegistration( status , key ) {
523
+ $( '.registration-wrapper.'+key ).attr( 'registration', status );
524
+ if('pro' == key) {
525
+ $( '.sw-admin-wrapper' ).attr( 'sw-registered', status );
526
+ $( '.sw-top-menu' ).attr( 'sw-registered', status );
527
+ }
528
  }
529
 
530
  /*******************************************************
531
  Register the Plugin
532
  *******************************************************/
533
+ function registerPlugin(key,item_id) {
534
  var registered = false;
535
  var data = {
536
  action: 'swp_register_plugin',
537
  security: swpAdminOptionsData.registerNonce,
538
  activity: 'register',
539
+ name_key: key,
540
+ item_id: item_id,
541
+ license_key: $( 'input[name="'+key+'_license_key"]' ).val()
542
  };
543
 
544
  loadingScreen();
547
 
548
  $.post( ajaxurl, data, function( response ) {
549
  // If the response was a failure...
550
+ console.log(response);
551
  response = JSON.parse(response);
552
 
553
  console.log(response);
554
  if ( !response.success ) {
555
  alert( 'Failure: ' + response.data );
556
  } else {
557
+ toggleRegistration( '1' , key);
558
  registered = true;
559
  }
560
 
567
  /*******************************************************
568
  Unregister the Plugin
569
  *******************************************************/
570
+ function unregisterPlugin(key,item_id) {
571
  var unregistered = false;
572
  var ajaxData = {
573
  action: 'swp_unregister_plugin',
574
  security: swpAdminOptionsData.registerNonce,
575
+ activity: 'unregister',
576
+ name_key: key,
577
+ item_id: item_id,
578
  };
579
+ console.log(ajaxData);
580
  loadingScreen();
581
 
582
  // Ping the home server to create a registration log
583
  $.post( ajaxurl, ajaxData, function( response ) {
584
  // If the response was a failure...
585
  //
 
586
  console.log(response);
587
+ response = JSON.parse(response);
588
  if ( !response.success ) {
589
  alert( 'Failure: ' + response.data );
590
  } else {
591
  // If the response was a success
592
+ $( 'input[name="'+key+'_license_key"]' ).val( '' );
593
+ toggleRegistration( '0' , key );
594
  unregistered = true;
595
  }
596
 
602
  }
603
 
604
  function handleRegistration() {
605
+ $( '.register-plugin' ).on( 'click', function() {
606
+ var key = $(this).attr('swp-addon');
607
+ var item_id = $(this).attr('swp-item-id');
608
+ console.log(key);
609
+ registerPlugin(key,item_id);
610
  return false;
611
  });
612
 
613
+ $( '.unregister-plugin' ).on( 'click', function() {
614
+ var key = $(this).attr('swp-addon');
615
+ var item_id = $(this).attr('swp-item-id');
616
+ console.log(key);
617
+ unregisterPlugin(key,item_id);
618
  return false;
619
  });
620
  }
js/admin-options-page.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,b,c){"use strict";function d(b){var c,d;document.body.createTextRange?(c=document.body.createTextRange(),c.moveToElementText(b),c.select()):a.getSelection&&(d=a.getSelection(),c=document.createRange(),c.selectNodeContents(b),d.removeAllRanges(),d.addRange(c))}function e(){var a={};return b("form.sw-admin-settings-form input, form.sw-admin-settings-form select").each(function(){var c,d=b(this),e=d.attr("name");c="checkbox"===d.attr("type")?d.prop("checked"):d.val(),a[e]=c}),a.newOrderOfIcons={},b(".sw-active i").each(function(){var c=b(this).data("network");a.newOrderOfIcons[c]=c}),a}function f(){b("div[dep]").each(function(){var a,c=b(this).attr("dep"),d=b.parseJSON(b(this).attr("dep_val"));a="checkbox"==b('[name="'+c+'"]').attr("type")?b('[name="'+c+'"]').prop("checked"):b('[name="'+c+'"]').val(),b.inArray(a,d)!==-1&&b('[name="'+c+'"]').parent(".sw-grid").is(":visible")?b(this).show():b(this).hide()}),0!=h("floatStyleSource")||"customColor"!=g("sideDColorSet")&&"ccOutlines"!=g("sideDColorSet")&&"customColor"!=g("sideIColorSet")&&"ccOutlines"!=g("sideIColorSet")&&"customColor"!=g("sideOColorSet")&&"ccOutlines"!=g("sideOColorSet")?b(".sideCustomColor_wrapper").slideUp():b(".sideCustomColor_wrapper").slideDown()}function g(a){return b('select[name="'+a+'"]').val()}function h(a){return b('[name="'+a+'"]').prop("checked")}function i(){var a=b(".sw-top-menu").offset(),c=b(".sw-top-menu").width();b(".sw-top-menu").css({position:"fixed",left:a.left,top:a.top,width:c}),b(".sw-admin-wrapper").css("padding-top","75px")}function j(){b(".sw-tab-selector").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,b("html, body").animate({scrollTop:0},0);var c=b(this).attr("data-link");b(".sw-admin-tab").hide(),b("#"+c).show(),b(".sw-header-menu li").removeClass("sw-active-tab"),b(this).parents("li").addClass("sw-active-tab"),"swp_styles"===c&&socialWarfarePlugin.activateHoverStates(),f()})}function k(){b(".sw-checkbox-toggle").on("click",function(){var a=b(this).attr("status"),c=b(this).attr("field");"on"===a?(b(this).attr("status","off"),b(c).prop("checked",!1)):(b(this).attr("status","on"),b(c).prop("checked",!0)),m(),f()})}function l(){b("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){f(),socialWarfarePlugin.newOptions=e(),m()}),socialWarfarePlugin.defaultOptions=e()}function m(){socialWarfarePlugin.newOptions=e(),JSON.stringify(socialWarfarePlugin.newOptions)!==JSON.stringify(socialWarfarePlugin.defaultOptions)?b(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button"):b(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}function n(){b(".sw-save-settings").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,o();var c=e();console.log(c);var d={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:c};b.post(ajaxurl,d,function(a){p(),console.log(b.parseJSON(a)),socialWarfarePlugin.defaultOptions=e(),m()})})}function o(){b("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function p(){b(".sw-loading-message").html("Success!").removeClass("sw-loading-message").addClass("sw-loading-complete"),b(".sw-loading-bg").delay(1e3).fadeOut(1e3),setTimeout(function(){b(".sw-loading-bg").remove()},2e3)}function q(){var a=(b('select[name="visualTheme"]').val(),b('select[name="dColorSet"]').val()),c=b('select[name="iColorSet"]').val(),d=b('select[name="oColorSet"]').val();b("style.swp_customColorStuff").remove();var e=b('input[name="customColor"]').val(),f="";"customColor"!=a&&"customColor"!=c&&"customColor"!=d||(f=".nc_socialPanel.swp_d_customColor a, html body .nc_socialPanel.swp_i_customColor .nc_tweetContainer:hover a, body .nc_socialPanel.swp_o_customColor:hover a {color:white} .nc_socialPanel.swp_d_customColor .nc_tweetContainer, html body .nc_socialPanel.swp_i_customColor .nc_tweetContainer:hover, body .nc_socialPanel.swp_o_customColor:hover .nc_tweetContainer {background-color:"+e+";border:1px solid "+e+";}"),"ccOutlines"!=a&&"ccOutlines"!=c&&"ccOutlines"!=d||(f=f+" .nc_socialPanel.swp_d_ccOutlines a, html body .nc_socialPanel.swp_i_ccOutlines .nc_tweetContainer:hover a, body .nc_socialPanel.swp_o_ccOutlines:hover a { color:"+e+"; } .nc_socialPanel.swp_d_ccOutlines .nc_tweetContainer, html body .nc_socialPanel.swp_i_ccOutlines .nc_tweetContainer:hover, body .nc_socialPanel.swp_o_ccOutlines:hover .nc_tweetContainer { background:transparent; border:1px solid "+e+"; }"),b("head").append('<style type="text/css" class="swp_customColorStuff">'+f+"</style>")}function r(){var a=b('select[name="visualTheme"]').val(),c=b('select[name="dColorSet"]').val(),d=b('select[name="iColorSet"]').val(),e=b('select[name="oColorSet"]').val(),f="swp_"+a+" swp_d_"+c+" swp_i_"+d+" swp_o_"+e;"undefined"==typeof socialWarfarePlugin.lastClass&&(console.log("boom"),socialWarfarePlugin.lastClass="swp_flatFresh swp_d_fullColor swp_i_fullColor swp_o_fullColor");var f="swp_"+a+" swp_d_"+c+" swp_i_"+d+" swp_o_"+e;b(".nc_socialPanel").removeClass(socialWarfarePlugin.lastClass).addClass(f),socialWarfarePlugin.lastClass=f;"customColor"==c||"ccOutlines"==c||"customColor"==d||"ccOutlines"==d||"customColor"==e||"ccOutlines"==e?(b(".customColor_wrapper").slideDown(),q()):b(".customColor_wrapper").slideUp()}function s(){var a={flatFresh:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},leaf:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},pill:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},threeDee:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray"},connected:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},shift:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"}};if(0!==b('select[name="visualTheme"]').length){var c=b('select[name="visualTheme"]').val(),d=b('select[name="dColorSet"]').val(),e=b('select[name="iColorSet"]').val(),f=b('select[name="oColorSet"]').val();b('select[name="dColorSet"] option, select[name="iColorSet"] option, select[name="oColorSet"] option').remove(),b.each(a[c],function(a,c){a===d?b('select[name="dColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="dColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===e?b('select[name="iColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="iColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===f?b('select[name="oColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="oColorSet"]').append('<option value="'+a+'">'+c+"</option>"),"customColor"==d||"ccOutlines"==d||"customColor"==e||"ccOutlines"==e||"customColor"==f||"ccOutlines"==f?(b(".customColor_wrapper").slideDown(),q()):b(".customColor_wrapper").slideUp()}),b('select[name="dColorSet"], select[name="iColorSet"], select[name="oColorSet"]').on("change",r),b('select[name="visualTheme"]').on("change",function(){var c=b('select[name="visualTheme"]').val(),d=b('select[name="dColorSet"]').val(),e=b('select[name="iColorSet"]').val(),f=b('select[name="oColorSet"]').val(),g=0,h=a[c],i=h.hasOwnProperty(d),j=h.hasOwnProperty(e),k=h.hasOwnProperty(f);b('select[name="dColorSet"] option, select[name="iColorSet"] option, select[name="oColorSet"] option').remove(),b.each(a[c],function(a,c){a===d||0==i&&0==g?b('select[name="dColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="dColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===e||0==j&&0==g?b('select[name="iColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="iColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===f||0==k&&0==g?b('select[name="oColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="oColorSet"]').append('<option value="'+a+'">'+c+"</option>"),++g}),"undefined"==typeof socialWarfarePlugin.lastClass&&(console.log("boom"),socialWarfarePlugin.lastClass="swp_flatFresh swp_d_fullColor swp_i_fullColor swp_o_fullColor");var l="swp_"+c+" swp_d_"+d+" swp_i_"+e+" swp_o_"+f;b(".nc_socialPanel").removeClass(socialWarfarePlugin.lastClass).addClass(l),socialWarfarePlugin.lastClass=l})}}function t(){b('select[name="buttonSize"],select[name="buttonFloat"]').on("change",function(){b(".nc_socialPanel").css({width:"100%"});var a,c=b(".nc_socialPanel").width(),d=b('select[name="buttonSize"]').val(),e=b('select[name="buttonFloat"]').val();"fullWidth"==e&&1!=d||d>=1?(a=c/d,b(".nc_socialPanel").css("cssText","width:"+a+"px!important;"),b(".nc_socialPanel").css({transform:"scale("+d+")","transform-origin":"left"})):"fullWidth"!=e&&d<1&&(a=c/d,b(".nc_socialPanel").css({transform:"scale("+d+")","transform-origin":e})),socialWarfarePlugin.activateHoverStates()})}function u(){var a=b('select[name="cttTheme"]');a.on("change",function(){var a=b('select[name="cttTheme"]').val();b(".swp_CTT").attr("class","swp_CTT").addClass(a)}),a.trigger("change")}function v(a){b(".registration-wrapper").attr("registration",a),b(".sw-admin-wrapper").attr("sw-registered",a),b(".sw-top-menu").attr("sw-registered",a)}function w(){var a=!1,c={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",pro_license_key:b('input[name="pro_license_key"]').val()};return o(),console.log(c),b.post(ajaxurl,c,function(b){b=JSON.parse(b),console.log(b),b.success?(v("1"),a=!0):alert("Failure: "+b.data),p()}),a}function x(){var a=!1,c={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister"};return o(),b.post(ajaxurl,c,function(c){c=JSON.parse(c),console.log(c),c.success?(b('input[name="pro_license_key"]').val(""),v("0"),a=!0):alert("Failure: "+c.data),p()}),a}function y(){b("#register-plugin").on("click",function(){return w(),!1}),b("#unregister-plugin").on("click",function(){return x(),!1})}function z(){b(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){m()}}),b(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){m()}})}function A(){b(".sw-system-status").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,b(".system-status-wrapper").slideToggle(),d(b(".system-status-container").get(0))})}function B(){b(".sw-premium-blocker").tooltip({items:".sw-premium-blocker",content:"<i></i>Unlock this feature by registering your license.",position:{my:"center top",at:"center top"},tooltipClass:"sw-admin-hover-notice",open:function(a,c){if("undefined"==typeof a.originalEvent)return!1;var d=b(c.tooltip).attr("id");b("div.ui-tooltip").not("#"+d).remove()},close:function(a,c){c.tooltip.hover(function(){b(this).stop(!0).fadeTo(400,1)},function(){b(this).fadeOut("400",function(){b(this).remove()})})}})}function C(){var a;b(".swp_upload_image_button").click(function(c){c.preventDefault();var d=b(this).attr("for");return a?void a.open():(a=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:!1}),a.on("select",function(){var c=a.state().get("selection").first().toJSON();b('input[name="'+d+'"').val(c.url)}),void a.open())})}b(document).ready(function(){n(),l(),i(),j(),k(),s(),f(),u(),t(),y(),z(),A(),B(),C()})}(this,jQuery);
1
+ !function(a,b,c){"use strict";function d(b){var c,d;document.body.createTextRange?(c=document.body.createTextRange(),c.moveToElementText(b),c.select()):a.getSelection&&(d=a.getSelection(),c=document.createRange(),c.selectNodeContents(b),d.removeAllRanges(),d.addRange(c))}function e(){var a={};return b("form.sw-admin-settings-form input, form.sw-admin-settings-form select").each(function(){var c,d=b(this),e=d.attr("name");c="checkbox"===d.attr("type")?d.prop("checked"):d.val(),a[e]=c}),a.newOrderOfIcons={},b(".sw-active i").each(function(){var c=b(this).data("network");a.newOrderOfIcons[c]=c}),a}function f(){b("div[dep]").each(function(){var a,c=b(this).attr("dep"),d=b.parseJSON(b(this).attr("dep_val"));a="checkbox"==b('[name="'+c+'"]').attr("type")?b('[name="'+c+'"]').prop("checked"):b('[name="'+c+'"]').val(),-1!==b.inArray(a,d)&&b('[name="'+c+'"]').parent(".sw-grid").is(":visible")?b(this).show():b(this).hide()}),0!=h("floatStyleSource")||"customColor"!=g("sideDColorSet")&&"ccOutlines"!=g("sideDColorSet")&&"customColor"!=g("sideIColorSet")&&"ccOutlines"!=g("sideIColorSet")&&"customColor"!=g("sideOColorSet")&&"ccOutlines"!=g("sideOColorSet")?b(".sideCustomColor_wrapper").slideUp():b(".sideCustomColor_wrapper").slideDown()}function g(a){return b('select[name="'+a+'"]').val()}function h(a){return b('[name="'+a+'"]').prop("checked")}function i(){var a=b(".sw-top-menu").offset(),c=b(".sw-top-menu").width();b(".sw-top-menu").css({position:"fixed",left:a.left,top:a.top,width:c}),b(".sw-admin-wrapper").css("padding-top","75px")}function j(){b(".sw-tab-selector").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,b("html, body").animate({scrollTop:0},0);var c=b(this).attr("data-link");b(".sw-admin-tab").hide(),b("#"+c).show(),b(".sw-header-menu li").removeClass("sw-active-tab"),b(this).parents("li").addClass("sw-active-tab"),"swp_styles"===c&&socialWarfarePlugin.activateHoverStates(),f()})}function k(){b(".sw-checkbox-toggle").on("click",function(){var a=b(this).attr("status"),c=b(this).attr("field");"on"===a?(b(this).attr("status","off"),b(c).prop("checked",!1)):(b(this).attr("status","on"),b(c).prop("checked",!0)),m(),f()})}function l(){b("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){f(),socialWarfarePlugin.newOptions=e(),m()}),socialWarfarePlugin.defaultOptions=e()}function m(){socialWarfarePlugin.newOptions=e(),JSON.stringify(socialWarfarePlugin.newOptions)!==JSON.stringify(socialWarfarePlugin.defaultOptions)?b(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button"):b(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}function n(){b(".sw-save-settings").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,o();var c=e();console.log(c);var d={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:c};b.post(ajaxurl,d,function(a){p(),console.log(b.parseJSON(a)),socialWarfarePlugin.defaultOptions=e(),m()})})}function o(){b("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function p(){b(".sw-loading-message").html("Success!").removeClass("sw-loading-message").addClass("sw-loading-complete"),b(".sw-loading-bg").delay(1e3).fadeOut(1e3),setTimeout(function(){b(".sw-loading-bg").remove()},2e3)}function q(){var a=(b('select[name="visualTheme"]').val(),b('select[name="dColorSet"]').val()),c=b('select[name="iColorSet"]').val(),d=b('select[name="oColorSet"]').val();b("style.swp_customColorStuff").remove();var e=b('input[name="customColor"]').val(),f="";"customColor"!=a&&"customColor"!=c&&"customColor"!=d||(f=".nc_socialPanel.swp_d_customColor a, html body .nc_socialPanel.swp_i_customColor .nc_tweetContainer:hover a, body .nc_socialPanel.swp_o_customColor:hover a {color:white} .nc_socialPanel.swp_d_customColor .nc_tweetContainer, html body .nc_socialPanel.swp_i_customColor .nc_tweetContainer:hover, body .nc_socialPanel.swp_o_customColor:hover .nc_tweetContainer {background-color:"+e+";border:1px solid "+e+";}"),"ccOutlines"!=a&&"ccOutlines"!=c&&"ccOutlines"!=d||(f=f+" .nc_socialPanel.swp_d_ccOutlines a, html body .nc_socialPanel.swp_i_ccOutlines .nc_tweetContainer:hover a, body .nc_socialPanel.swp_o_ccOutlines:hover a { color:"+e+"; } .nc_socialPanel.swp_d_ccOutlines .nc_tweetContainer, html body .nc_socialPanel.swp_i_ccOutlines .nc_tweetContainer:hover, body .nc_socialPanel.swp_o_ccOutlines:hover .nc_tweetContainer { background:transparent; border:1px solid "+e+"; }"),b("head").append('<style type="text/css" class="swp_customColorStuff">'+f+"</style>")}function r(){var a=b('select[name="visualTheme"]').val(),c=b('select[name="dColorSet"]').val(),d=b('select[name="iColorSet"]').val(),e=b('select[name="oColorSet"]').val(),f="swp_"+a+" swp_d_"+c+" swp_i_"+d+" swp_o_"+e;void 0===socialWarfarePlugin.lastClass&&(console.log("boom"),socialWarfarePlugin.lastClass="swp_flatFresh swp_d_fullColor swp_i_fullColor swp_o_fullColor");var f="swp_"+a+" swp_d_"+c+" swp_i_"+d+" swp_o_"+e;b(".nc_socialPanel").removeClass(socialWarfarePlugin.lastClass).addClass(f),socialWarfarePlugin.lastClass=f;"customColor"==c||"ccOutlines"==c||"customColor"==d||"ccOutlines"==d||"customColor"==e||"ccOutlines"==e?(b(".customColor_wrapper").slideDown(),q()):b(".customColor_wrapper").slideUp()}function s(){var a={flatFresh:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},leaf:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},pill:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},threeDee:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray"},connected:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"},shift:{fullColor:"Full Color",lightGray:"Light Gray",mediumGray:"Medium Gray",darkGray:"Dark Gray",lgOutlines:"Light Gray Outlines",mdOutlines:"Medium Gray Outlines",dgOutlines:"Dark Gray Outlines",colorOutlines:"Color Outlines",customColor:"Custom Color",ccOutlines:"Custom Color Outlines"}};if(0!==b('select[name="visualTheme"]').length){var c=b('select[name="visualTheme"]').val(),d=b('select[name="dColorSet"]').val(),e=b('select[name="iColorSet"]').val(),f=b('select[name="oColorSet"]').val();b('select[name="dColorSet"] option, select[name="iColorSet"] option, select[name="oColorSet"] option').remove(),b.each(a[c],function(a,c){a===d?b('select[name="dColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="dColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===e?b('select[name="iColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="iColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===f?b('select[name="oColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="oColorSet"]').append('<option value="'+a+'">'+c+"</option>"),"customColor"==d||"ccOutlines"==d||"customColor"==e||"ccOutlines"==e||"customColor"==f||"ccOutlines"==f?(b(".customColor_wrapper").slideDown(),q()):b(".customColor_wrapper").slideUp()}),b('select[name="dColorSet"], select[name="iColorSet"], select[name="oColorSet"]').on("change",r),b('select[name="visualTheme"]').on("change",function(){var c=b('select[name="visualTheme"]').val(),d=b('select[name="dColorSet"]').val(),e=b('select[name="iColorSet"]').val(),f=b('select[name="oColorSet"]').val(),g=0,h=a[c],i=h.hasOwnProperty(d),j=h.hasOwnProperty(e),k=h.hasOwnProperty(f);b('select[name="dColorSet"] option, select[name="iColorSet"] option, select[name="oColorSet"] option').remove(),b.each(a[c],function(a,c){a===d||0==i&&0==g?b('select[name="dColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="dColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===e||0==j&&0==g?b('select[name="iColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="iColorSet"]').append('<option value="'+a+'">'+c+"</option>"),a===f||0==k&&0==g?b('select[name="oColorSet"]').append('<option value="'+a+'" selected>'+c+"</option>"):b('select[name="oColorSet"]').append('<option value="'+a+'">'+c+"</option>"),++g}),void 0===socialWarfarePlugin.lastClass&&(console.log("boom"),socialWarfarePlugin.lastClass="swp_flatFresh swp_d_fullColor swp_i_fullColor swp_o_fullColor");var l="swp_"+c+" swp_d_"+d+" swp_i_"+e+" swp_o_"+f;b(".nc_socialPanel").removeClass(socialWarfarePlugin.lastClass).addClass(l),socialWarfarePlugin.lastClass=l})}}function t(){b('select[name="buttonSize"],select[name="buttonFloat"]').on("change",function(){b(".nc_socialPanel").css({width:"100%"});var a,c=b(".nc_socialPanel").width(),d=b('select[name="buttonSize"]').val(),e=b('select[name="buttonFloat"]').val();"fullWidth"==e&&1!=d||d>=1?(a=c/d,b(".nc_socialPanel").css("cssText","width:"+a+"px!important;"),b(".nc_socialPanel").css({transform:"scale("+d+")","transform-origin":"left"})):"fullWidth"!=e&&d<1&&(a=c/d,b(".nc_socialPanel").css({transform:"scale("+d+")","transform-origin":e})),socialWarfarePlugin.activateHoverStates()})}function u(){var a=b('select[name="cttTheme"]');a.on("change",function(){var a=b('select[name="cttTheme"]').val();b(".swp_CTT").attr("class","swp_CTT").addClass(a)}),a.trigger("change")}function v(a,c){b(".registration-wrapper."+c).attr("registration",a),"pro"==c&&(b(".sw-admin-wrapper").attr("sw-registered",a),b(".sw-top-menu").attr("sw-registered",a))}function w(a,c){var d=!1,e={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",name_key:a,item_id:c,license_key:b('input[name="'+a+'_license_key"]').val()};return o(),console.log(e),b.post(ajaxurl,e,function(b){console.log(b),b=JSON.parse(b),console.log(b),b.success?(v("1",a),d=!0):alert("Failure: "+b.data),p()}),d}function x(a,c){var d=!1,e={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister",name_key:a,item_id:c};return console.log(e),o(),b.post(ajaxurl,e,function(c){console.log(c),c=JSON.parse(c),c.success?(b('input[name="'+a+'_license_key"]').val(""),v("0",a),d=!0):alert("Failure: "+c.data),p()}),d}function y(){b(".register-plugin").on("click",function(){var a=b(this).attr("swp-addon"),c=b(this).attr("swp-item-id");return console.log(a),w(a,c),!1}),b(".unregister-plugin").on("click",function(){var a=b(this).attr("swp-addon"),c=b(this).attr("swp-item-id");return console.log(a),x(a,c),!1})}function z(){b(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){m()}}),b(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){m()}})}function A(){b(".sw-system-status").on("click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,b(".system-status-wrapper").slideToggle(),d(b(".system-status-container").get(0))})}function B(){b(".sw-premium-blocker").tooltip({items:".sw-premium-blocker",content:"<i></i>Unlock this feature by registering your license.",position:{my:"center top",at:"center top"},tooltipClass:"sw-admin-hover-notice",open:function(a,c){if(void 0===a.originalEvent)return!1;var d=b(c.tooltip).attr("id");b("div.ui-tooltip").not("#"+d).remove()},close:function(a,c){c.tooltip.hover(function(){b(this).stop(!0).fadeTo(400,1)},function(){b(this).fadeOut("400",function(){b(this).remove()})})}})}function C(){var a;b(".swp_upload_image_button").click(function(c){c.preventDefault();var d=b(this).attr("for");if(a)return void a.open();a=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:!1}),a.on("select",function(){var c=a.state().get("selection").first().toJSON();b('input[name="'+d+'"').val(c.url)}),a.open()})}b(document).ready(function(){n(),l(),i(),j(),k(),s(),f(),u(),t(),y(),z(),A(),B(),C()})}(this,jQuery);
js/admin.min.js CHANGED
@@ -1 +1 @@
1
- var socialWarfareAdmin=socialWarfareAdmin||{};!function(a,b,c){"use strict";function d(){var a=b("#socialWarfare textarea#nc_ogTitle").val(),c=60-a.length;a.length>0&&c>=0?b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):a.length>0&&c<0?b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_ogTitleWrapper .counterNumber").html(c)}function e(){var a=b("#socialWarfare textarea#nc_ogDescription").val(),c=160-a.length;a.length>0&&c>=0?b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):a.length>0&&c<0?b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_ogDescriptionWrapper .counterNumber").html(c)}function f(){var a,c=b("#socialWarfare textarea#nc_customTweet").val(),d=b("#socialWarfare .twitterIDWrapper label").html();c.indexOf("http")>-1||c.indexOf("https")>-1?(a=0,b(".tweetLinkSection").css({"text-decoration":"line-through"})):(a=23,b(".tweetLinkSection").css({"text-decoration":"none"}));var e;e="undefined"==typeof d?140-socialWarfareAdmin.linkLength(c)-a:140-socialWarfareAdmin.linkLength(c)-d.length-a-6,c.length>0&&e>=0?b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):c.length>0&&e<0?b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_customTweetWrapper .counterNumber").html(e)}socialWarfareAdmin.linkLength=function(a){for(var b="",c=0;c<23;c++)b+="o";return a.replace(/(http:\/\/[\S]*)/g,b).length},b(document).ready(function(){if(b("#socialWarfare.postbox").length){b("#socialWarfare #nc_ogTitle").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">60</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),b("#socialWarfare #nc_ogDescription").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">150</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),b("#socialWarfare #nc_customTweet").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">118</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),d(),b("#socialWarfare textarea#nc_ogTitle").on("input",function(){d()}),e(),b("#socialWarfare textarea#nc_ogDescription").on("input",function(){e()}),f(),b("#socialWarfare textarea#nc_customTweet").on("input",function(){f()});setInterval(function(){var a,c,d=b(".nc_ogImageWrapper ul.swpmb-media-list"),e=b(".nc_pinterestImageWrapper ul.swpmb-media-list");d.length&&d.is(":empty")?(a=d.width(),c=a*(9/16),d.css({height:c+"px"})):(c=d.find("img").height(),d.css({height:c+"px"}));var f,g;e.length&&e.is(":empty")?(f=e.width(),g=1.5*f,e.css({height:g+"px"})):(g=e.find("img").height(),e.css({height:g+"px"}))},1e3)}if(b(".swp_popular_post_options .showCount select").on("change",function(){var a=b(this).val();(a=!0)?b(".swp_popular_post_options .countLabel").slideDown("slow"):b(".swp_popular_post_options .countLabel").slideUp("slow")}),b(".swp_popular_post_options .thumbnails select").on("change",function(){var a=b(this).val();(a=!0)?b(".swp_popular_post_options .thumb_size").slideDown("slow"):b(".swp_popular_post_options .thumb_size").slideUp("slow")}),b(".swp_popular_post_options .style select").on("change",function(){var a=b(this).val();(a="custom")?b(".swp_popular_post_options .custom_bg, .swp_popular_post_options .custom_link").slideDown("slow"):b(".swp_popular_post_options .custom_bg, .swp_popular_post_options .custom_link").slideUp("slow")}),b(".postbox#socialWarfare").length){var a=b("#socialWarfare .registrationWrapper input").attr("id");"false"==a&&(b(".postbox#socialWarfare").css({position:"relative",opacity:"0.3"}).append('<div class="sw-premium-blocker"></div>'),b("#socialWarfare .sw-premium-blocker").tooltip({items:"#socialWarfare .sw-premium-blocker",content:"<i></i>Unlock these features by registering your license.",position:{my:"center top",at:"center top"},tooltipClass:"sw-admin-hover-notice",open:function(a,c){if("undefined"==typeof a.originalEvent)return!1;var d=b(c.tooltip).attr("id");b("div.ui-tooltip").not("#"+d).remove()},close:function(a,c){c.tooltip.hover(function(){b(this).stop(!0).fadeTo(400,1)},function(){b(this).fadeOut("400",function(){b(this).remove()})})}}))}})}(this,jQuery);
1
+ var socialWarfareAdmin=socialWarfareAdmin||{};!function(a,b,c){"use strict";function d(){var a=b("#socialWarfare textarea#nc_ogTitle").val(),c=60-a.length;a.length>0&&c>=0?b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):a.length>0&&c<0?b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_ogTitleWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_ogTitleWrapper .counterNumber").html(c)}function e(){var a=b("#socialWarfare textarea#nc_ogDescription").val(),c=160-a.length;a.length>0&&c>=0?b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):a.length>0&&c<0?b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_ogDescriptionWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_ogDescriptionWrapper .counterNumber").html(c)}function f(){var a,c=b("#socialWarfare textarea#nc_customTweet").val(),d=b("#socialWarfare .twitterIDWrapper label").html();c.indexOf("http")>-1||c.indexOf("https")>-1?(a=0,b(".tweetLinkSection").css({"text-decoration":"line-through"})):(a=23,b(".tweetLinkSection").css({"text-decoration":"none"}));var e;e=void 0===d?140-socialWarfareAdmin.linkLength(c)-a:140-socialWarfareAdmin.linkLength(c)-d.length-a-6,c.length>0&&e>=0?b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):c.length>0&&e<0?b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):b("#socialWarfare .nc_customTweetWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),b("#socialWarfare .nc_customTweetWrapper .counterNumber").html(e)}socialWarfareAdmin.linkLength=function(a){for(var b="",c=0;c<23;c++)b+="o";return a.replace(/(http:\/\/[\S]*)/g,b).length},b(document).ready(function(){if(b("#socialWarfare.postbox").length){b("#socialWarfare #nc_ogTitle").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">60</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),b("#socialWarfare #nc_ogDescription").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">150</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),b("#socialWarfare #nc_customTweet").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">118</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),d(),b("#socialWarfare textarea#nc_ogTitle").on("input",function(){d()}),e(),b("#socialWarfare textarea#nc_ogDescription").on("input",function(){e()}),f(),b("#socialWarfare textarea#nc_customTweet").on("input",function(){f()});setInterval(function(){var a,c,d=b(".nc_ogImageWrapper ul.swpmb-media-list"),e=b(".nc_pinterestImageWrapper ul.swpmb-media-list");d.length&&d.is(":empty")?(a=d.width(),c=a*(9/16),d.css({height:c+"px"})):(c=d.find("img").height(),d.css({height:c+"px"}));var f,g;e.length&&e.is(":empty")?(f=e.width(),g=1.5*f,e.css({height:g+"px"})):(g=e.find("img").height(),e.css({height:g+"px"}))},1e3)}if(b(".swp_popular_post_options .showCount select").on("change",function(){b(this).val();b(".swp_popular_post_options .countLabel").slideDown("slow")}),b(".swp_popular_post_options .thumbnails select").on("change",function(){b(this).val();b(".swp_popular_post_options .thumb_size").slideDown("slow")}),b(".swp_popular_post_options .style select").on("change",function(){b(this).val();b(".swp_popular_post_options .custom_bg, .swp_popular_post_options .custom_link").slideDown("slow")}),b(".postbox#socialWarfare").length){"false"==b("#socialWarfare .registrationWrapper input").attr("id")&&(b(".postbox#socialWarfare").css({position:"relative",opacity:"0.3"}).append('<div class="sw-premium-blocker"></div>'),b("#socialWarfare .sw-premium-blocker").tooltip({items:"#socialWarfare .sw-premium-blocker",content:"<i></i>Unlock these features by registering your license.",position:{my:"center top",at:"center top"},tooltipClass:"sw-admin-hover-notice",open:function(a,c){if(void 0===a.originalEvent)return!1;var d=b(c.tooltip).attr("id");b("div.ui-tooltip").not("#"+d).remove()},close:function(a,c){c.tooltip.hover(function(){b(this).stop(!0).fadeTo(400,1)},function(){b(this).fadeOut("400",function(){b(this).remove()})})}}))}})}(0,jQuery);
js/script.js CHANGED
@@ -177,14 +177,19 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
177
  */
178
  swp.activateHoverStates = function() {
179
  swp_trigger_events('pre_activate_buttons');
180
- $('.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover)').on('mouseenter',function(){
181
- swpRestoreSizes();
182
- var term_width = $(this).find('.swp_share').outerWidth();
183
- var icon_width = $(this).find('i.sw').outerWidth();
184
- var container_width = $(this).width();
185
- var percentage_change = 1 + ((term_width + 35) / container_width);
186
- $(this).find('.iconFiller').width(term_width + icon_width + 25 + 'px');
187
- $(this).css({flex:percentage_change + ' 1 0%'});
 
 
 
 
 
188
  });
189
  $('.nc_socialPanel:not(.nc_socialPanelSide)').on('mouseleave',function() {
190
  swpRestoreSizes();
177
  */
178
  swp.activateHoverStates = function() {
179
  swp_trigger_events('pre_activate_buttons');
180
+ $('.nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer').on('mouseenter',function(){
181
+ if($(this).hasClass('swp_nohover')){
182
+
183
+ } else {
184
+ console.log('fired');
185
+ swpRestoreSizes();
186
+ var term_width = $(this).find('.swp_share').outerWidth();
187
+ var icon_width = $(this).find('i.sw').outerWidth();
188
+ var container_width = $(this).width();
189
+ var percentage_change = 1 + ((term_width + 35) / container_width);
190
+ $(this).find('.iconFiller').width(term_width + icon_width + 25 + 'px');
191
+ $(this).css({flex:percentage_change + ' 1 0%'});
192
+ }
193
  });
194
  $('.nc_socialPanel:not(.nc_socialPanelSide)').on('mouseleave',function() {
195
  swpRestoreSizes();
js/script.min.js CHANGED
@@ -1 +1 @@
1
- var socialWarfarePlugin=socialWarfarePlugin||{};!function(a,b){var c,d=a.socialWarfarePlugin;d.throttle=c=function(a,c,e,f){function g(){function d(){i=+new Date,e.apply(j,l)}function g(){h=b}var j=this,k=+new Date-i,l=arguments;f&&!h&&d(),h&&clearTimeout(h),f===b&&k>a?d():c!==!0&&(h=setTimeout(f?g:d,f===b?a-k:a))}var h,i=0;return"boolean"!=typeof c&&(f=e,e=c,c=b),d.guid&&(g.guid=e.guid=e.guid||d.guid++),g},d.debounce=function(a,d,e){return e===b?c(a,d,!1):c(a,e,d!==!1)}}(this),function(a,b,c){"use strict";function d(a){return parseInt(a,10)}function e(c){var d=b.Event(c);b(a).trigger(d)}function f(){b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller").removeAttr("style"),b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover)").removeAttr("style")}function g(){b(".nc_wrapper").length&&b(".nc_wrapper").remove();var a=b(".nc_socialPanel").not('[data-float="float_ignore"]').first(),c=(b(".nc_socialPanel").index(a),a.attr("data-float")),d=a.attr("data-align");if(c){var e=b(".nc_socialPanel").attr("data-floatColor");b('<div class="nc_wrapper" style="background-color:'+e+'"></div>').appendTo("body");var f=a.attr("data-float");a.clone().appendTo(".nc_wrapper"),b(".nc_wrapper").hide().addClass("floatLeft"==f?"floatBottom":f);var g=a.outerWidth(!0),h=a.offset();b(".nc_socialPanel").last().addClass("nc_floater").css({width:g,left:"center"==d?0:h.left}),b(".nc_socialPanel .swp_count").css({transition:"padding .1s linear"}),b(".nc_socialPanel").eq(0).addClass("swp_one"),b(".nc_socialPanel").eq(2).addClass("swp_two"),b(".nc_socialPanel").eq(1).addClass("swp_three")}}function h(){var c=b(".nc_socialPanel"),d=c.not('[data-float="float_ignore"]').eq(0).attr("data-float"),f=b(a),g=f.height(),h=b(".nc_wrapper"),i=b(".nc_socialPanelSide").filter(":not(.mobile)"),j=(b(".nc_socialPanel").attr("data-position"),i.attr("data-screen-width")),k=c.eq(0).offset(),l=f.scrollTop();b(a).scrollTop();"undefined"==typeof a.swpOffsets&&(a.swpOffsets={});var m=!1;if("floatLeft"==d){var n=b(".nc_socialPanelSide").attr("data-mobileFloat");b(".nc_socialPanel").not(".nc_socialPanelSide").length?(b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_floater").each(function(){var a=b(this).offset(),c=b(this).height();a.top+c>l&&a.top<l+g&&(m=!0)}),k.left<100||b(a).width()<j?(m=!0,"bottom"==n&&(d="floatBottom")):m||(m=!1)):b(a).width()>j?m=!1:(m=!0,"bottom"==n&&(d="floatBottom"));var o=i.attr("data-transition");"slide"==o?1==m?i.css({left:"-100px"},200):i.css({left:"5px"}):"fade"==o&&(1==m?i.fadeOut(200):i.fadeIn(200))}if("floatBottom"==d||"floatTop"==d)if(m=!1,b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_floater").each(function(){var a=b(this).offset(),c=b(this).height();a.top+c>l&&a.top<l+g&&(m=!0)}),m)h.hide(),"floatBottom"==d?b("body").animate({"padding-bottom":a.bodyPaddingBottom+"px"},0):"floatTop"==d&&b("body").animate({"padding-top":a.bodyPaddingTop+"px"},0);else{var p,q;h.show(),e("floating_bar_revealed"),"floatBottom"==d?(p=a.bodyPaddingBottom+50,b("body").animate({"padding-bottom":p+"px"},0)):"floatTop"==d&&(q=b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_wrapper .nc_socialPanel").first().offset(),q.top>l+g&&(p=a.bodyPaddingTop+50,b("body").animate({"padding-top":p+"px"},0)))}}function i(){0!==b(".nc_socialPanel").length&&(g(),l.activateHoverStates(),k(),b(a).scrollTop(),b(a).scroll(l.throttle(50,function(){h()})),b(a).trigger("scroll"),b(".nc_socialPanel").css({opacity:1}))}function j(){var c={wrap:'<div class="sw-pinit" />',pageURL:document.URL},d=b.extend(c,d);b(".swp-content-locator").parent().find("img").each(function(){var c=b(this);if(!(c.outerHeight()<swpPinIt.minHeight||c.outerWidth()<swpPinIt.minWidth)){var e=!1;if("undefined"!=typeof swpPinIt.image_source?e=swpPinIt.image_source:c.data("media")?e=c.data("media"):b(this).attr("data-lazy-src")?e=b(this).attr("data-lazy-src"):c[0].src&&(e=c[0].src),!1!==e&&!c.hasClass("no_pin")){var f="";"undefined"!=typeof swpPinIt.image_description?f=swpPinIt.image_description:c.attr("title")?f=c.attr("title"):c.attr("alt")&&(f=c.attr("alt"));var g="http://pinterest.com/pin/create/bookmarklet/?media="+encodeURI(e)+"&url="+encodeURI(d.pageURL)+"&is_video=false&description="+encodeURIComponent(f),h=c.attr("class"),i=c.attr("style");c.removeClass().attr("style","").wrap(d.wrap),c.after('<a href="'+g+'" class="sw-pinit-button sw-pinit-'+swpPinIt.vLocation+" sw-pinit-"+swpPinIt.hLocation+'">Save</a>'),c.parent(".sw-pinit").addClass(h).attr("style",i),b(".sw-pinit .sw-pinit-button").on("click",function(){if(a.open(b(this).attr("href"),"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"),"function"==typeof ga&&!0===swpClickTracking){var c="pin_image";console.log(c+" Button Clicked"),ga("send","event","social_media","swp_"+c+"_share")}return!1})}}})}function k(){b(".nc_tweet, a.swp_CTT").off("click"),b(".nc_tweet, a.swp_CTT").on("click",function(c){if(b(this).hasClass("noPop"))return!1;if(console.log(b(this)),b(this).attr("data-link")){c.preventDefault?c.preventDefault():c.returnValue=!1;var d=b(this).attr("data-link");console.log(d);var e,f,g;if(d=d.replace("’","'"),b(this).hasClass("pinterest")||b(this).hasClass("buffer_link")||b(this).hasClass("flipboard")?(e=550,f=775):(e=270,f=500),g=a.open(d,"_blank","height="+e+",width="+f),"function"==typeof ga&&!0===swpClickTracking){if(b(this).hasClass("nc_tweet"))var h=b(this).parents(".nc_tweetContainer").attr("data-network");else if(b(this).hasClass("swp_CTT"))var h="ctt";console.log(h+" Button Clicked"),ga("send","event","social_media","swp_"+h+"_share")}return!1}})}var l=a.socialWarfarePlugin,m={};socialWarfarePlugin.fetchShares=function(){b.when(b.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_url),swp_post_recovery_url?b.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_recovery_url):"").then(function(a,c){if("undefined"!=typeof a[0].share){console.log(a);var e=d(a[0].share.share_count),f=d(a[0].share.comment_count);if("undefined"!=typeof a[0].og_object)var g=d(a[0].og_object.likes.summary.total_count);else var g=0;var h=e+f+g;if(swp_post_recovery_url){if(console.log(c),"undefined"!=typeof c[0].share)var i=d(c[0].share.share_count),j=d(c[0].share.comment_count);else var i=0,j=0;if("undefined"!=typeof c[0].og_object)var k=d(c[0].og_object.likes.summary.total_count);else var k=0;var l=i+j+k;h!==l&&(h+=l)}m={action:"swp_facebook_shares_update",post_id:swp_post_id,activity:h},b.post(swp_admin_ajax,m,function(a){console.log("Facebook Shares Response: "+h)})}})},l.activateHoverStates=function(){e("pre_activate_buttons"),b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover)").on("mouseenter",function(){f();var a=b(this).find(".swp_share").outerWidth(),c=b(this).find("i.sw").outerWidth(),d=b(this).width(),e=1+(a+35)/d;b(this).find(".iconFiller").width(a+c+25+"px"),b(this).css({flex:e+" 1 0%"})}),b(".nc_socialPanel:not(.nc_socialPanelSide)").on("mouseleave",function(){f()})},b(a).on("load",function(){"undefined"!=typeof swpPinIt&&swpPinIt.enabled&&j()}),b(document).ready(function(){k(),i(),a.bodyPaddingTop=d(b("body").css("padding-top").replace("px","")),a.bodyPaddingBottom=d(b("body").css("padding-bottom").replace("px",""));var c=!1;if(b(".nc_socialPanel").hover(function(){c=!0},function(){c=!1}),b(a).resize(l.debounce(250,function(){b(".nc_socialPanel").length&&!1!==c||(a.swpAdjust=1,i())})),b(document.body).on("post-load",function(){i()}),0!==b(".nc_socialPanelSide").length){var e=b(".nc_socialPanelSide").height(),f=b(a).height(),g=d(f/2-e/2);setTimeout(function(){b(".nc_socialPanelSide").animate({top:g},0)},105)}swp_isMobile.phone&&b(".swp_whatsapp").addClass("mobile"),1===b(".swp-content-locator").parent().children().length&&b(".swp-content-locator").parent().hide()})}(this,jQuery),function(a){var b=/iPhone/i,c=/iPod/i,d=/iPad/i,e=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,f=/Android/i,g=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,i=/Windows Phone/i,j=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,k=/BlackBerry/i,l=/BB10/i,m=/Opera Mini/i,n=/(CriOS|Chrome)(?=.*\bMobile\b)/i,o=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,p=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),q=function(a,b){return a.test(b)},r=function(a){var r=a||navigator.userAgent,s=r.split("[FBAN");if("undefined"!=typeof s[1]&&(r=s[0]),s=r.split("Twitter"),"undefined"!=typeof s[1]&&(r=s[0]),this.apple={phone:q(b,r),ipod:q(c,r),tablet:!q(b,r)&&q(d,r),device:q(b,r)||q(c,r)||q(d,r)},this.amazon={phone:q(g,r),tablet:!q(g,r)&&q(h,r),device:q(g,r)||q(h,r)},this.android={phone:q(g,r)||q(e,r),tablet:!q(g,r)&&!q(e,r)&&(q(h,r)||q(f,r)),device:q(g,r)||q(h,r)||q(e,r)||q(f,r)},this.windows={phone:q(i,r),tablet:q(j,r),device:q(i,r)||q(j,r)},this.other={blackberry:q(k,r),blackberry10:q(l,r),opera:q(m,r),firefox:q(o,r),chrome:q(n,r),device:q(k,r)||q(l,r)||q(m,r)||q(o,r)||q(n,r)},this.seven_inch=q(p,r),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},s=function(){var a=new r;return a.Class=r,a};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=r:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=s():"function"==typeof define&&define.amd?define("swp_isMobile",[],a.swp_isMobile=s()):a.swp_isMobile=s()}(this);
1
+ var socialWarfarePlugin=socialWarfarePlugin||{};!function(a,b){var c,d=a.socialWarfarePlugin;d.throttle=c=function(a,c,e,f){function g(){function d(){i=+new Date,e.apply(j,l)}function g(){h=b}var j=this,k=+new Date-i,l=arguments;f&&!h&&d(),h&&clearTimeout(h),f===b&&k>a?d():!0!==c&&(h=setTimeout(f?g:d,f===b?a-k:a))}var h,i=0;return"boolean"!=typeof c&&(f=e,e=c,c=b),d.guid&&(g.guid=e.guid=e.guid||d.guid++),g},d.debounce=function(a,d,e){return e===b?c(a,d,!1):c(a,e,!1!==d)}}(this),function(a,b,c){"use strict";function d(a){return parseInt(a,10)}function e(c){var d=b.Event(c);b(a).trigger(d)}function f(){b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller").removeAttr("style"),b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer:not(.swp_nohover)").removeAttr("style")}function g(){b(".nc_wrapper").length&&b(".nc_wrapper").remove();var a=b(".nc_socialPanel").not('[data-float="float_ignore"]').first(),c=(b(".nc_socialPanel").index(a),a.attr("data-float")),d=a.attr("data-align");if(c){var e=b(".nc_socialPanel").attr("data-floatColor");b('<div class="nc_wrapper" style="background-color:'+e+'"></div>').appendTo("body");var f=a.attr("data-float");a.clone().appendTo(".nc_wrapper"),b(".nc_wrapper").hide().addClass("floatLeft"==f?"floatBottom":f);var g=a.outerWidth(!0),h=a.offset();b(".nc_socialPanel").last().addClass("nc_floater").css({width:g,left:"center"==d?0:h.left}),b(".nc_socialPanel .swp_count").css({transition:"padding .1s linear"}),b(".nc_socialPanel").eq(0).addClass("swp_one"),b(".nc_socialPanel").eq(2).addClass("swp_two"),b(".nc_socialPanel").eq(1).addClass("swp_three")}}function h(){var c=b(".nc_socialPanel"),d=c.not('[data-float="float_ignore"]').eq(0).attr("data-float"),f=b(a),g=f.height(),h=b(".nc_wrapper"),i=b(".nc_socialPanelSide").filter(":not(.mobile)"),j=(b(".nc_socialPanel").attr("data-position"),i.attr("data-screen-width")),k=c.eq(0).offset(),l=f.scrollTop();b(a).scrollTop();void 0===a.swpOffsets&&(a.swpOffsets={});var m=!1;if("floatLeft"==d){var n=b(".nc_socialPanelSide").attr("data-mobileFloat");b(".nc_socialPanel").not(".nc_socialPanelSide").length?(b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_floater").each(function(){var a=b(this).offset(),c=b(this).height();a.top+c>l&&a.top<l+g&&(m=!0)}),k.left<100||b(a).width()<j?(m=!0,"bottom"==n&&(d="floatBottom")):m||(m=!1)):b(a).width()>j?m=!1:(m=!0,"bottom"==n&&(d="floatBottom"));var o=i.attr("data-transition");"slide"==o?1==m?i.css({left:"-100px"},200):i.css({left:"5px"}):"fade"==o&&(1==m?i.fadeOut(200):i.fadeIn(200))}if("floatBottom"==d||"floatTop"==d)if(m=!1,b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_floater").each(function(){var a=b(this).offset(),c=b(this).height();a.top+c>l&&a.top<l+g&&(m=!0)}),m)h.hide(),"floatBottom"==d?b("body").animate({"padding-bottom":a.bodyPaddingBottom+"px"},0):"floatTop"==d&&b("body").animate({"padding-top":a.bodyPaddingTop+"px"},0);else{var p,q;h.show(),e("floating_bar_revealed"),"floatBottom"==d?(p=a.bodyPaddingBottom+50,b("body").animate({"padding-bottom":p+"px"},0)):"floatTop"==d&&(q=b(".nc_socialPanel").not(".nc_socialPanelSide, .nc_wrapper .nc_socialPanel").first().offset(),q.top>l+g&&(p=a.bodyPaddingTop+50,b("body").animate({"padding-top":p+"px"},0)))}}function i(){0!==b(".nc_socialPanel").length&&(g(),l.activateHoverStates(),k(),b(a).scrollTop(),b(a).scroll(l.throttle(50,function(){h()})),b(a).trigger("scroll"),b(".nc_socialPanel").css({opacity:1}))}function j(){var c={wrap:'<div class="sw-pinit" />',pageURL:document.URL},d=b.extend(c,d);b(".swp-content-locator").parent().find("img").each(function(){var c=b(this);if(!(c.outerHeight()<swpPinIt.minHeight||c.outerWidth()<swpPinIt.minWidth)){var e=!1;if(void 0!==swpPinIt.image_source?e=swpPinIt.image_source:c.data("media")?e=c.data("media"):b(this).attr("data-lazy-src")?e=b(this).attr("data-lazy-src"):c[0].src&&(e=c[0].src),!1!==e&&!c.hasClass("no_pin")){var f="";void 0!==swpPinIt.image_description?f=swpPinIt.image_description:c.attr("title")?f=c.attr("title"):c.attr("alt")&&(f=c.attr("alt"));var g="http://pinterest.com/pin/create/bookmarklet/?media="+encodeURI(e)+"&url="+encodeURI(d.pageURL)+"&is_video=false&description="+encodeURIComponent(f),h=c.attr("class"),i=c.attr("style");c.removeClass().attr("style","").wrap(d.wrap),c.after('<a href="'+g+'" class="sw-pinit-button sw-pinit-'+swpPinIt.vLocation+" sw-pinit-"+swpPinIt.hLocation+'">Save</a>'),c.parent(".sw-pinit").addClass(h).attr("style",i),b(".sw-pinit .sw-pinit-button").on("click",function(){if(a.open(b(this).attr("href"),"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"),"function"==typeof ga&&!0===swpClickTracking){console.log("pin_image Button Clicked"),ga("send","event","social_media","swp_pin_image_share")}return!1})}}})}function k(){b(".nc_tweet, a.swp_CTT").off("click"),b(".nc_tweet, a.swp_CTT").on("click",function(c){if(b(this).hasClass("noPop"))return!1;if(console.log(b(this)),b(this).attr("data-link")){c.preventDefault?c.preventDefault():c.returnValue=!1;var d=b(this).attr("data-link");console.log(d);var e,f;if(d=d.replace("’","'"),b(this).hasClass("pinterest")||b(this).hasClass("buffer_link")||b(this).hasClass("flipboard")?(e=550,f=775):(e=270,f=500),a.open(d,"_blank","height="+e+",width="+f),"function"==typeof ga&&!0===swpClickTracking){if(b(this).hasClass("nc_tweet"))var g=b(this).parents(".nc_tweetContainer").attr("data-network");else if(b(this).hasClass("swp_CTT"))var g="ctt";console.log(g+" Button Clicked"),ga("send","event","social_media","swp_"+g+"_share")}return!1}})}var l=a.socialWarfarePlugin,m={};socialWarfarePlugin.fetchShares=function(){b.when(b.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_url),swp_post_recovery_url?b.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_recovery_url):"").then(function(a,c){if(void 0!==a[0].share){console.log(a);var e=d(a[0].share.share_count),f=d(a[0].share.comment_count);if(void 0!==a[0].og_object)var g=d(a[0].og_object.likes.summary.total_count);else var g=0;var h=e+f+g;if(swp_post_recovery_url){if(console.log(c),void 0!==c[0].share)var i=d(c[0].share.share_count),j=d(c[0].share.comment_count);else var i=0,j=0;if(void 0!==c[0].og_object)var k=d(c[0].og_object.likes.summary.total_count);else var k=0;var l=i+j+k;h!==l&&(h+=l)}m={action:"swp_facebook_shares_update",post_id:swp_post_id,activity:h},b.post(swp_admin_ajax,m,function(a){console.log("Facebook Shares Response: "+h)})}})},l.activateHoverStates=function(){e("pre_activate_buttons"),b(".nc_socialPanel:not(.nc_socialPanelSide) .nc_tweetContainer").on("mouseenter",function(){if(b(this).hasClass("swp_nohover"));else{console.log("fired"),f();var a=b(this).find(".swp_share").outerWidth(),c=b(this).find("i.sw").outerWidth(),d=b(this).width(),e=1+(a+35)/d;b(this).find(".iconFiller").width(a+c+25+"px"),b(this).css({flex:e+" 1 0%"})}}),b(".nc_socialPanel:not(.nc_socialPanelSide)").on("mouseleave",function(){f()})},b(a).on("load",function(){"undefined"!=typeof swpPinIt&&swpPinIt.enabled&&j()}),b(document).ready(function(){k(),i(),a.bodyPaddingTop=d(b("body").css("padding-top").replace("px","")),a.bodyPaddingBottom=d(b("body").css("padding-bottom").replace("px",""));var c=!1;if(b(".nc_socialPanel").hover(function(){c=!0},function(){c=!1}),b(a).resize(l.debounce(250,function(){b(".nc_socialPanel").length&&!1!==c||(a.swpAdjust=1,i())})),b(document.body).on("post-load",function(){i()}),0!==b(".nc_socialPanelSide").length){var e=b(".nc_socialPanelSide").height(),f=b(a).height(),g=d(f/2-e/2);setTimeout(function(){b(".nc_socialPanelSide").animate({top:g},0)},105)}swp_isMobile.phone&&b(".swp_whatsapp").addClass("mobile"),1===b(".swp-content-locator").parent().children().length&&b(".swp-content-locator").parent().hide()})}(this,jQuery),function(a){var b=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,c=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,d=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,e=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),f=function(a,b){return a.test(b)},g=function(a){var g=a||navigator.userAgent,h=g.split("[FBAN");if(void 0!==h[1]&&(g=h[0]),h=g.split("Twitter"),void 0!==h[1]&&(g=h[0]),this.apple={phone:f(/iPhone/i,g),ipod:f(/iPod/i,g),tablet:!f(/iPhone/i,g)&&f(/iPad/i,g),device:f(/iPhone/i,g)||f(/iPod/i,g)||f(/iPad/i,g)},this.amazon={phone:f(c,g),tablet:!f(c,g)&&f(d,g),device:f(c,g)||f(d,g)},this.android={phone:f(c,g)||f(b,g),tablet:!f(c,g)&&!f(b,g)&&(f(d,g)||f(/Android/i,g)),device:f(c,g)||f(d,g)||f(b,g)||f(/Android/i,g)},this.windows={phone:f(/Windows Phone/i,g),tablet:f(/(?=.*\bWindows\b)(?=.*\bARM\b)/i,g),device:f(/Windows Phone/i,g)||f(/(?=.*\bWindows\b)(?=.*\bARM\b)/i,g)},this.other={blackberry:f(/BlackBerry/i,g),blackberry10:f(/BB10/i,g),opera:f(/Opera Mini/i,g),firefox:f(/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,g),chrome:f(/(CriOS|Chrome)(?=.*\bMobile\b)/i,g),device:f(/BlackBerry/i,g)||f(/BB10/i,g)||f(/Opera Mini/i,g)||f(/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,g)||f(/(CriOS|Chrome)(?=.*\bMobile\b)/i,g)},this.seven_inch=f(e,g),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},h=function(){var a=new g;return a.Class=g,a};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=g:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=h():"function"==typeof define&&define.amd?define("swp_isMobile",[],a.swp_isMobile=h()):a.swp_isMobile=h()}(this);
languages/social-warfare.pot CHANGED
@@ -1,445 +1,445 @@
1
- # Copyright (C) 2017 Warfare Plugins
2
- # This file is distributed under the same license as the Social Warfare package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Social Warfare 2.2.3\n"
6
- "Report-Msgid-Bugs-To: https://warfareplugins.com/\n"
7
- "POT-Creation-Date: 2017-03-31 20:37:06+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=utf-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: Warfare Plugins (https://warfareplugins.com)\n"
13
- "Language-Team: Warfare Plugins (https://warfareplugins.com)\n"
14
- "X-Generator: grunt-wp-i18n 0.5.4\n"
15
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Poedit-Language: English\n"
18
- "X-Poedit-Country: UNITED STATES\n"
19
- "X-Poedit-SourceCharset: utf-8\n"
20
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_ "
21
- "noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1"
22
- ",2;\n"
23
- "X-Textdomain-Support: yes\n"
24
-
25
- #: functions/admin/misc.php:21
26
- msgid "Settings"
27
- msgstr ""
28
-
29
- #: functions/admin/options-page.php:246
30
- msgid "Active"
31
- msgstr ""
32
-
33
- #: functions/admin/options-page.php:279
34
- msgid "Inactive"
35
- msgstr ""
36
-
37
- #: functions/admin/options-page.php:341 functions/admin/options-page.php:353
38
- #: functions/admin/options-page.php:381 functions/admin/options-page.php:399
39
- #: functions/admin/options-page.php:685
40
- msgid "ON"
41
- msgstr ""
42
-
43
- #: functions/admin/options-page.php:341 functions/admin/options-page.php:353
44
- #: functions/admin/options-page.php:381 functions/admin/options-page.php:399
45
- #: functions/admin/options-page.php:685
46
- msgid "OFF"
47
- msgstr ""
48
-
49
- #: functions/admin/options-page.php:629
50
- msgid "Connected"
51
- msgstr ""
52
-
53
- #: functions/admin/options-page.php:631
54
- msgid "Authenticated"
55
- msgstr ""
56
-
57
- #: functions/admin/options-page.php:670
58
- msgid "Tweet Count Registration"
59
- msgstr ""
60
-
61
- #: functions/admin/options-page.php:676
62
- msgid ""
63
- "In order to allow Social Warfare to track tweet counts, we've partnered "
64
- "with NewShareCounts.com. Follow the steps below to register with "
65
- "NewShareCounts and allow us to track your Twitter shares."
66
- msgstr ""
67
-
68
- #: functions/admin/options-page.php:677
69
- msgid "Click here to visit NewShareCounts.com"
70
- msgstr ""
71
-
72
- #: functions/admin/options-page.php:677
73
- msgid ""
74
- "Step 2: At NewShareCounts.com, Enter your domain and click the \"Sign In "
75
- "With Twitter\" button."
76
- msgstr ""
77
-
78
- #: functions/admin/options-page.php:677
79
- msgid "Step 3: Flip the switch below to \"ON\" and then save changes."
80
- msgstr ""
81
-
82
- #: functions/admin/options-page.php:779
83
- msgid ""
84
- "Need help? Check out our <a href=\"https://warfareplugins.com/support/\" "
85
- "target=\"_blank\">Knowledgebase."
86
- msgstr ""
87
-
88
- #: functions/admin/options-page.php:780
89
- msgid ""
90
- "Opening a support ticket? Copy your System Status by clicking the button "
91
- "below."
92
- msgstr ""
93
-
94
- #: functions/admin/options-page.php:781
95
- msgid "Get System Status"
96
- msgstr ""
97
-
98
- #: functions/admin/options-page.php:786
99
- msgid "Press Ctrl+C to Copy this information."
100
- msgstr ""
101
-
102
- #: functions/admin/options-page.php:808
103
- msgid "Security failed."
104
- msgstr ""
105
-
106
- #: functions/admin/options-page.php:815
107
- msgid "No settings to save."
108
- msgstr ""
109
-
110
- #: functions/buttons-floating.php:72 functions/buttons-standard.php:229
111
- #: functions/buttons-standard.php:261 functions/buttons-standard.php:265
112
- msgid "Shares"
113
- msgstr ""
114
-
115
- #: functions/click-to-tweet/clickToTweet.php:117
116
- msgid "Click To Tweet"
117
- msgstr ""
118
-
119
- #: functions/options-array.php:28
120
- msgid "Display"
121
- msgstr ""
122
-
123
- #: functions/options-array.php:34
124
- msgid "Social Networks"
125
- msgstr ""
126
-
127
- #: functions/options-array.php:38
128
- msgid "Drag & Drop to activate and order your share buttons."
129
- msgstr ""
130
-
131
- #: functions/options-array.php:61
132
- msgid "Share Counts"
133
- msgstr ""
134
-
135
- #: functions/options-array.php:65
136
- msgid "Use the toggles below to determine how to display your social proof."
137
- msgstr ""
138
-
139
- #: functions/options-array.php:70
140
- msgid "Button Counts"
141
- msgstr ""
142
-
143
- #: functions/options-array.php:77 functions/options-array.php:166
144
- msgid "Total Counts"
145
- msgstr ""
146
-
147
- #: functions/options-array.php:86
148
- msgid "Position Share Buttons"
149
- msgstr ""
150
-
151
- #: functions/options-array.php:90
152
- msgid ""
153
- "The options below will allow you to customize the positioning of share "
154
- "buttons for each post type."
155
- msgstr ""
156
-
157
- #: functions/options-array.php:95
158
- msgid "Post Type"
159
- msgstr ""
160
-
161
- #: functions/options-array.php:96
162
- msgid "Static Buttons"
163
- msgstr ""
164
-
165
- #: functions/options-array.php:97
166
- msgid "Floating Buttons (If Activated)"
167
- msgstr ""
168
-
169
- #: functions/options-array.php:103
170
- msgid "Above the Content"
171
- msgstr ""
172
-
173
- #: functions/options-array.php:104
174
- msgid "Below the Content"
175
- msgstr ""
176
-
177
- #: functions/options-array.php:105
178
- msgid "Both Above and Below the Content"
179
- msgstr ""
180
-
181
- #: functions/options-array.php:106
182
- msgid "None/Manual Placement"
183
- msgstr ""
184
-
185
- #: functions/options-array.php:123
186
- msgid "On"
187
- msgstr ""
188
-
189
- #: functions/options-array.php:124
190
- msgid "Off"
191
- msgstr ""
192
-
193
- #: functions/options-array.php:134
194
- msgid "Home Page"
195
- msgstr ""
196
-
197
- #: functions/options-array.php:142
198
- msgid "Archive & Categories"
199
- msgstr ""
200
-
201
- #: functions/options-array.php:160
202
- msgid "Styles"
203
- msgstr ""
204
-
205
- #: functions/options-array.php:170
206
- msgid "Customize how the \"Total Shares\" section of your share buttons look."
207
- msgstr ""
208
-
209
- #: functions/options-array.php:174
210
- msgid "Decimal Places"
211
- msgstr ""
212
-
213
- #: functions/options-array.php:177
214
- msgid "Zero"
215
- msgstr ""
216
-
217
- #: functions/options-array.php:178
218
- msgid "One"
219
- msgstr ""
220
-
221
- #: functions/options-array.php:179
222
- msgid "Two"
223
- msgstr ""
224
-
225
- #: functions/options-array.php:186
226
- msgid "Decimal Separator"
227
- msgstr ""
228
-
229
- #: functions/options-array.php:188
230
- msgid "Period"
231
- msgstr ""
232
-
233
- #: functions/options-array.php:189
234
- msgid "Comma"
235
- msgstr ""
236
-
237
- #: functions/options-array.php:196
238
- msgid "Alignment"
239
- msgstr ""
240
-
241
- #: functions/options-array.php:198
242
- msgid "Right"
243
- msgstr ""
244
-
245
- #: functions/options-array.php:199
246
- msgid "Left"
247
- msgstr ""
248
-
249
- #: functions/options-array.php:208
250
- msgid "Floating Share Buttons"
251
- msgstr ""
252
-
253
- #: functions/options-array.php:209
254
- msgid "If you would like to activate floating share buttons, turn this on."
255
- msgstr ""
256
-
257
- #: functions/options-array.php:215
258
- msgid "Float Position"
259
- msgstr ""
260
-
261
- #: functions/options-array.php:217
262
- msgid "Top of the Page"
263
- msgstr ""
264
-
265
- #: functions/options-array.php:218
266
- msgid "Bottom of the Page"
267
- msgstr ""
268
-
269
- #: functions/options-array.php:219
270
- msgid "On the left side of the page"
271
- msgstr ""
272
-
273
- #: functions/options-array.php:228
274
- msgid "Minimum Screen Width"
275
- msgstr ""
276
-
277
- #: functions/options-array.php:236
278
- msgid "Transition"
279
- msgstr ""
280
-
281
- #: functions/options-array.php:238
282
- msgid "Slide In / Slide Out"
283
- msgstr ""
284
-
285
- #: functions/options-array.php:239
286
- msgid "Fade In / Fade Out"
287
- msgstr ""
288
-
289
- #: functions/options-array.php:248
290
- msgid "Background Color"
291
- msgstr ""
292
-
293
- #: functions/options-array.php:271
294
- msgid "Social Identity"
295
- msgstr ""
296
-
297
- #: functions/options-array.php:276
298
- msgid "Sitewide Identity"
299
- msgstr ""
300
-
301
- #: functions/options-array.php:280
302
- msgid ""
303
- "If you would like to set sitewide defaults for your social identity, add "
304
- "them below."
305
- msgstr ""
306
-
307
- #: functions/options-array.php:285 functions/profile-fields.php:21
308
- msgid "Twitter Username"
309
- msgstr ""
310
-
311
- #: functions/options-array.php:290
312
- msgid "Pinterest Username"
313
- msgstr ""
314
-
315
- #: functions/options-array.php:295
316
- msgid "Facebook Page URL"
317
- msgstr ""
318
-
319
- #: functions/options-array.php:300
320
- msgid "Facebook App ID"
321
- msgstr ""
322
-
323
- #: functions/options-array.php:322
324
- msgid "Advanced"
325
- msgstr ""
326
-
327
- #: functions/options-array.php:327
328
- msgid "Frame Buster"
329
- msgstr ""
330
-
331
- #: functions/options-array.php:328
332
- msgid "If you want to stop content pirates from framing your content, turn this on."
333
- msgstr ""
334
-
335
- #: functions/options-array.php:335
336
- msgid "Caching Method"
337
- msgstr ""
338
-
339
- #: functions/options-array.php:339
340
- msgid ""
341
- "If you have advanced knowledge of caching configurations, you may want to "
342
- "choose your own below."
343
- msgstr ""
344
-
345
- #: functions/options-array.php:344
346
- msgid "Cache Rebuild Method"
347
- msgstr ""
348
-
349
- #: functions/options-array.php:346
350
- msgid "Advanced Cache Triggering"
351
- msgstr ""
352
-
353
- #: functions/options-array.php:347
354
- msgid "Legacy Cache Rebuilding during Page Loads"
355
- msgstr ""
356
-
357
- #: functions/options-array.php:355
358
- msgid "Full Content vs. Excerpts"
359
- msgstr ""
360
-
361
- #: functions/options-array.php:359
362
- msgid ""
363
- "If your theme does not use excerpts, but instead displays the full post "
364
- "content on archive, category, and home pages, activate this toggle to allow "
365
- "the buttons to appear in those areas."
366
- msgstr ""
367
-
368
- #: functions/options-array.php:364
369
- msgid "Full Content?"
370
- msgstr ""
371
-
372
- #: functions/profile-fields.php:24
373
- msgid "Please enter your Twitter username."
374
- msgstr ""
375
-
376
- #: functions/profile-fields.php:28
377
- msgid "Facebook Author URL"
378
- msgstr ""
379
-
380
- #: functions/profile-fields.php:31
381
- msgid "Please enter the URL of your Facebok profile."
382
- msgstr ""
383
-
384
- #: functions/scripts.php:105
385
- msgid "Characters Remaining"
386
- msgstr ""
387
-
388
- #: functions/social-networks/facebook.php:116
389
- #: functions/social-networks/facebook.php:120
390
- #: functions/social-networks/linkedIn.php:92
391
- #: functions/social-networks/linkedIn.php:96
392
- msgid "Share"
393
- msgstr ""
394
-
395
- #: functions/social-networks/googlePlus.php:91
396
- #: functions/social-networks/googlePlus.php:95
397
- msgid "+1"
398
- msgstr ""
399
-
400
- #: functions/social-networks/pinterest.php:135
401
- #: functions/social-networks/pinterest.php:139
402
- msgid "Pin"
403
- msgstr ""
404
-
405
- #: functions/social-networks/stumbleupon.php:100
406
- #: functions/social-networks/stumbleupon.php:104
407
- msgid "Stumble"
408
- msgstr ""
409
-
410
- #: functions/social-networks/twitter.php:163
411
- #: functions/social-networks/twitter.php:167
412
- msgid "Tweet"
413
- msgstr ""
414
-
415
- #: functions/utility.php:357
416
- msgid ""
417
- "<b>Important:</b> We’ve made <a "
418
- "href=\"https://warfareplugins.com/social-warfare-2-2/\" "
419
- "target=\"_blank\">some changes</a> to how your Social Warfare premium "
420
- "license is applied. In order to continue getting all the Pro features you "
421
- "love, please <a "
422
- "href=\"https://warfareplugins.com/updates/social-warfare-pro/social-warfare-"
423
- "pro.zip\">download the Social Warfare - Pro</a> plugin. Once installed, all "
424
- "of your premium features will be immediately restored."
425
- msgstr ""
426
-
427
- #. Plugin Name of the plugin/theme
428
- msgid "Social Warfare"
429
- msgstr ""
430
-
431
- #. Author URI of the plugin/theme
432
- msgid "http://warfareplugins.com"
433
- msgstr ""
434
-
435
- #. Description of the plugin/theme
436
- msgid ""
437
- "A plugin to maximize social shares and drive more traffic using the fastest "
438
- "and most intelligent share buttons on the market, calls to action via "
439
- "in-post click-to-tweets, popular posts widgets based on share popularity, "
440
- "link-shortening, Google Analytics and much, much more!"
441
- msgstr ""
442
-
443
- #. Author of the plugin/theme
444
- msgid "Warfare Plugins"
445
  msgstr ""
1
+ # Copyright (C) 2017 Warfare Plugins
2
+ # This file is distributed under the same license as the Social Warfare package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Social Warfare 2.2.3\n"
6
+ "Report-Msgid-Bugs-To: https://warfareplugins.com/\n"
7
+ "POT-Creation-Date: 2017-03-31 20:37:06+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: Warfare Plugins (https://warfareplugins.com)\n"
13
+ "Language-Team: Warfare Plugins (https://warfareplugins.com)\n"
14
+ "X-Generator: grunt-wp-i18n 0.5.4\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-Language: English\n"
18
+ "X-Poedit-Country: UNITED STATES\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_ "
21
+ "noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1"
22
+ ",2;\n"
23
+ "X-Textdomain-Support: yes\n"
24
+
25
+ #: functions/admin/misc.php:21
26
+ msgid "Settings"
27
+ msgstr ""
28
+
29
+ #: functions/admin/options-page.php:246
30
+ msgid "Active"
31
+ msgstr ""
32
+
33
+ #: functions/admin/options-page.php:279
34
+ msgid "Inactive"
35
+ msgstr ""
36
+
37
+ #: functions/admin/options-page.php:341 functions/admin/options-page.php:353
38
+ #: functions/admin/options-page.php:381 functions/admin/options-page.php:399
39
+ #: functions/admin/options-page.php:685
40
+ msgid "ON"
41
+ msgstr ""
42
+
43
+ #: functions/admin/options-page.php:341 functions/admin/options-page.php:353
44
+ #: functions/admin/options-page.php:381 functions/admin/options-page.php:399
45
+ #: functions/admin/options-page.php:685
46
+ msgid "OFF"
47
+ msgstr ""
48
+
49
+ #: functions/admin/options-page.php:629
50
+ msgid "Connected"
51
+ msgstr ""
52
+
53
+ #: functions/admin/options-page.php:631
54
+ msgid "Authenticated"
55
+ msgstr ""
56
+
57
+ #: functions/admin/options-page.php:670
58
+ msgid "Tweet Count Registration"
59
+ msgstr ""
60
+
61
+ #: functions/admin/options-page.php:676
62
+ msgid ""
63
+ "In order to allow Social Warfare to track tweet counts, we've partnered "
64
+ "with NewShareCounts.com. Follow the steps below to register with "
65
+ "NewShareCounts and allow us to track your Twitter shares."
66
+ msgstr ""
67
+
68
+ #: functions/admin/options-page.php:677
69
+ msgid "Click here to visit NewShareCounts.com"
70
+ msgstr ""
71
+
72
+ #: functions/admin/options-page.php:677
73
+ msgid ""
74
+ "Step 2: At NewShareCounts.com, Enter your domain and click the \"Sign In "
75
+ "With Twitter\" button."
76
+ msgstr ""
77
+
78
+ #: functions/admin/options-page.php:677
79
+ msgid "Step 3: Flip the switch below to \"ON\" and then save changes."
80
+ msgstr ""
81
+
82
+ #: functions/admin/options-page.php:779
83
+ msgid ""
84
+ "Need help? Check out our <a href=\"https://warfareplugins.com/support/\" "
85
+ "target=\"_blank\">Knowledgebase."
86
+ msgstr ""
87
+
88
+ #: functions/admin/options-page.php:780
89
+ msgid ""
90
+ "Opening a support ticket? Copy your System Status by clicking the button "
91
+ "below."
92
+ msgstr ""
93
+
94
+ #: functions/admin/options-page.php:781
95
+ msgid "Get System Status"
96
+ msgstr ""
97
+
98
+ #: functions/admin/options-page.php:786
99
+ msgid "Press Ctrl+C to Copy this information."
100
+ msgstr ""
101
+
102
+ #: functions/admin/options-page.php:808
103
+ msgid "Security failed."
104
+ msgstr ""
105
+
106
+ #: functions/admin/options-page.php:815
107
+ msgid "No settings to save."
108
+ msgstr ""
109
+
110
+ #: functions/buttons-floating.php:72 functions/buttons-standard.php:229
111
+ #: functions/buttons-standard.php:261 functions/buttons-standard.php:265
112
+ msgid "Shares"
113
+ msgstr ""
114
+
115
+ #: functions/click-to-tweet/clickToTweet.php:117
116
+ msgid "Click To Tweet"
117
+ msgstr ""
118
+
119
+ #: functions/options-array.php:28
120
+ msgid "Display"
121
+ msgstr ""
122
+
123
+ #: functions/options-array.php:34
124
+ msgid "Social Networks"
125
+ msgstr ""
126
+
127
+ #: functions/options-array.php:38
128
+ msgid "Drag & Drop to activate and order your share buttons."
129
+ msgstr ""
130
+
131
+ #: functions/options-array.php:61
132
+ msgid "Share Counts"
133
+ msgstr ""
134
+
135
+ #: functions/options-array.php:65
136
+ msgid "Use the toggles below to determine how to display your social proof."
137
+ msgstr ""
138
+
139
+ #: functions/options-array.php:70
140
+ msgid "Button Counts"
141
+ msgstr ""
142
+
143
+ #: functions/options-array.php:77 functions/options-array.php:166
144
+ msgid "Total Counts"
145
+ msgstr ""
146
+
147
+ #: functions/options-array.php:86
148
+ msgid "Position Share Buttons"
149
+ msgstr ""
150
+
151
+ #: functions/options-array.php:90
152
+ msgid ""
153
+ "The options below will allow you to customize the positioning of share "
154
+ "buttons for each post type."
155
+ msgstr ""
156
+
157
+ #: functions/options-array.php:95
158
+ msgid "Post Type"
159
+ msgstr ""
160
+
161
+ #: functions/options-array.php:96
162
+ msgid "Static Buttons"
163
+ msgstr ""
164
+
165
+ #: functions/options-array.php:97
166
+ msgid "Floating Buttons (If Activated)"
167
+ msgstr ""
168
+
169
+ #: functions/options-array.php:103
170
+ msgid "Above the Content"
171
+ msgstr ""
172
+
173
+ #: functions/options-array.php:104
174
+ msgid "Below the Content"
175
+ msgstr ""
176
+
177
+ #: functions/options-array.php:105
178
+ msgid "Both Above and Below the Content"
179
+ msgstr ""
180
+
181
+ #: functions/options-array.php:106
182
+ msgid "None/Manual Placement"
183
+ msgstr ""
184
+
185
+ #: functions/options-array.php:123
186
+ msgid "On"
187
+ msgstr ""
188
+
189
+ #: functions/options-array.php:124
190
+ msgid "Off"
191
+ msgstr ""
192
+
193
+ #: functions/options-array.php:134
194
+ msgid "Home Page"
195
+ msgstr ""
196
+
197
+ #: functions/options-array.php:142
198
+ msgid "Archive & Categories"
199
+ msgstr ""
200
+
201
+ #: functions/options-array.php:160
202
+ msgid "Styles"
203
+ msgstr ""
204
+
205
+ #: functions/options-array.php:170
206
+ msgid "Customize how the \"Total Shares\" section of your share buttons look."
207
+ msgstr ""
208
+
209
+ #: functions/options-array.php:174
210
+ msgid "Decimal Places"
211
+ msgstr ""
212
+
213
+ #: functions/options-array.php:177
214
+ msgid "Zero"
215
+ msgstr ""
216
+
217
+ #: functions/options-array.php:178
218
+ msgid "One"
219
+ msgstr ""
220
+
221
+ #: functions/options-array.php:179
222
+ msgid "Two"
223
+ msgstr ""
224
+
225
+ #: functions/options-array.php:186
226
+ msgid "Decimal Separator"
227
+ msgstr ""
228
+
229
+ #: functions/options-array.php:188
230
+ msgid "Period"
231
+ msgstr ""
232
+
233
+ #: functions/options-array.php:189
234
+ msgid "Comma"
235
+ msgstr ""
236
+
237
+ #: functions/options-array.php:196
238
+ msgid "Alignment"
239
+ msgstr ""
240
+
241
+ #: functions/options-array.php:198
242
+ msgid "Right"
243
+ msgstr ""
244
+
245
+ #: functions/options-array.php:199
246
+ msgid "Left"
247
+ msgstr ""
248
+
249
+ #: functions/options-array.php:208
250
+ msgid "Floating Share Buttons"
251
+ msgstr ""
252
+
253
+ #: functions/options-array.php:209
254
+ msgid "If you would like to activate floating share buttons, turn this on."
255
+ msgstr ""
256
+
257
+ #: functions/options-array.php:215
258
+ msgid "Float Position"
259
+ msgstr ""
260
+
261
+ #: functions/options-array.php:217
262
+ msgid "Top of the Page"
263
+ msgstr ""
264
+
265
+ #: functions/options-array.php:218
266
+ msgid "Bottom of the Page"
267
+ msgstr ""
268
+
269
+ #: functions/options-array.php:219
270
+ msgid "On the left side of the page"
271
+ msgstr ""
272
+
273
+ #: functions/options-array.php:228
274
+ msgid "Minimum Screen Width"
275
+ msgstr ""
276
+
277
+ #: functions/options-array.php:236
278
+ msgid "Transition"
279
+ msgstr ""
280
+
281
+ #: functions/options-array.php:238
282
+ msgid "Slide In / Slide Out"
283
+ msgstr ""
284
+
285
+ #: functions/options-array.php:239
286
+ msgid "Fade In / Fade Out"
287
+ msgstr ""
288
+
289
+ #: functions/options-array.php:248
290
+ msgid "Background Color"
291
+ msgstr ""
292
+
293
+ #: functions/options-array.php:271
294
+ msgid "Social Identity"
295
+ msgstr ""
296
+
297
+ #: functions/options-array.php:276
298
+ msgid "Sitewide Identity"
299
+ msgstr ""
300
+
301
+ #: functions/options-array.php:280
302
+ msgid ""
303
+ "If you would like to set sitewide defaults for your social identity, add "
304
+ "them below."
305
+ msgstr ""
306
+
307
+ #: functions/options-array.php:285 functions/profile-fields.php:21
308
+ msgid "Twitter Username"
309
+ msgstr ""
310
+
311
+ #: functions/options-array.php:290
312
+ msgid "Pinterest Username"
313
+ msgstr ""
314
+
315
+ #: functions/options-array.php:295
316
+ msgid "Facebook Page URL"
317
+ msgstr ""
318
+
319
+ #: functions/options-array.php:300
320
+ msgid "Facebook App ID"
321
+ msgstr ""
322
+
323
+ #: functions/options-array.php:322
324
+ msgid "Advanced"
325
+ msgstr ""
326
+
327
+ #: functions/options-array.php:327
328
+ msgid "Frame Buster"
329
+ msgstr ""
330
+
331
+ #: functions/options-array.php:328
332
+ msgid "If you want to stop content pirates from framing your content, turn this on."
333
+ msgstr ""
334
+
335
+ #: functions/options-array.php:335
336
+ msgid "Caching Method"
337
+ msgstr ""
338
+
339
+ #: functions/options-array.php:339
340
+ msgid ""
341
+ "If you have advanced knowledge of caching configurations, you may want to "
342
+ "choose your own below."
343
+ msgstr ""
344
+
345
+ #: functions/options-array.php:344
346
+ msgid "Cache Rebuild Method"
347
+ msgstr ""
348
+
349
+ #: functions/options-array.php:346
350
+ msgid "Advanced Cache Triggering"
351
+ msgstr ""
352
+
353
+ #: functions/options-array.php:347
354
+ msgid "Legacy Cache Rebuilding during Page Loads"
355
+ msgstr ""
356
+
357
+ #: functions/options-array.php:355
358
+ msgid "Full Content vs. Excerpts"
359
+ msgstr ""
360
+
361
+ #: functions/options-array.php:359
362
+ msgid ""
363
+ "If your theme does not use excerpts, but instead displays the full post "
364
+ "content on archive, category, and home pages, activate this toggle to allow "
365
+ "the buttons to appear in those areas."
366
+ msgstr ""
367
+
368
+ #: functions/options-array.php:364
369
+ msgid "Full Content?"
370
+ msgstr ""
371
+
372
+ #: functions/profile-fields.php:24
373
+ msgid "Please enter your Twitter username."
374
+ msgstr ""
375
+
376
+ #: functions/profile-fields.php:28
377
+ msgid "Facebook Author URL"
378
+ msgstr ""
379
+
380
+ #: functions/profile-fields.php:31
381
+ msgid "Please enter the URL of your Facebok profile."
382
+ msgstr ""
383
+
384
+ #: functions/scripts.php:105
385
+ msgid "Characters Remaining"
386
+ msgstr ""
387
+
388
+ #: functions/social-networks/facebook.php:116
389
+ #: functions/social-networks/facebook.php:120
390
+ #: functions/social-networks/linkedIn.php:92
391
+ #: functions/social-networks/linkedIn.php:96
392
+ msgid "Share"
393
+ msgstr ""
394
+
395
+ #: functions/social-networks/googlePlus.php:91
396
+ #: functions/social-networks/googlePlus.php:95
397
+ msgid "+1"
398
+ msgstr ""
399
+
400
+ #: functions/social-networks/pinterest.php:135
401
+ #: functions/social-networks/pinterest.php:139
402
+ msgid "Pin"
403
+ msgstr ""
404
+
405
+ #: functions/social-networks/stumbleupon.php:100
406
+ #: functions/social-networks/stumbleupon.php:104
407
+ msgid "Stumble"
408
+ msgstr ""
409
+
410
+ #: functions/social-networks/twitter.php:163
411
+ #: functions/social-networks/twitter.php:167
412
+ msgid "Tweet"
413
+ msgstr ""
414
+
415
+ #: functions/utility.php:357
416
+ msgid ""
417
+ "<b>Important:</b> We’ve made <a "
418
+ "href=\"https://warfareplugins.com/social-warfare-2-2/\" "
419
+ "target=\"_blank\">some changes</a> to how your Social Warfare premium "
420
+ "license is applied. In order to continue getting all the Pro features you "
421
+ "love, please <a "
422
+ "href=\"https://warfareplugins.com/updates/social-warfare-pro/social-warfare-"
423
+ "pro.zip\">download the Social Warfare - Pro</a> plugin. Once installed, all "
424
+ "of your premium features will be immediately restored."
425
+ msgstr ""
426
+
427
+ #. Plugin Name of the plugin/theme
428
+ msgid "Social Warfare"
429
+ msgstr ""
430
+
431
+ #. Author URI of the plugin/theme
432
+ msgid "http://warfareplugins.com"
433
+ msgstr ""
434
+
435
+ #. Description of the plugin/theme
436
+ msgid ""
437
+ "A plugin to maximize social shares and drive more traffic using the fastest "
438
+ "and most intelligent share buttons on the market, calls to action via "
439
+ "in-post click-to-tweets, popular posts widgets based on share popularity, "
440
+ "link-shortening, Google Analytics and much, much more!"
441
+ msgstr ""
442
+
443
+ #. Author of the plugin/theme
444
+ msgid "Warfare Plugins"
445
  msgstr ""
languages/social_warfare_Czech.mo ADDED
Binary file
readme.txt CHANGED
@@ -3,14 +3,14 @@ Contributors: holas84, dustinwstout, webinator, warfareplugins, nutsandboltsmedi
3
  Tags: sharing buttons, social media share, floating share buttons, facebook share, google plus share, linkedin share, pin it, pinterest save, stumbleupon button, tweet button, twitter share, click to tweet
4
  Requires at least: 3.5.1
5
  Tested up to: 4.8
6
- Stable tag: 2.3.2
7
  License: GNU General Public License v2.0 or later
8
 
9
  The most beautiful, lightning fast social media sharing buttons built to boost shares and drive more traffic without slowing down your site.
10
 
11
  == Description ==
12
 
13
- Get more social media shares which can lead to more website traffic with the best sharing plugin for WordPress! Built by a group of social media marketing experts and world class developers who are obsessed with performance. Learn more at <a href="http://https://warfareplugins.com/?utm_medium=repository&utm_campaign=description&utm_source=wordpress_org&utm_content=repo_description" rel="friend" target="_blank">Warfare Plugins</a>.
14
 
15
  = WordPress Sharing Plugin =
16
  Most social sharing plugins for WordPress slow down your site, are not attractive, and don't work the way you would hope. Social Warfare is both lightning fast and beautiful.
@@ -193,6 +193,18 @@ We have a growing archive of <a href="https://warfareplugins.com/support/" rel="
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  = 2.3.2 (25 AUG 2017) =
197
 
198
  * Updated the verbiage on the readme.txt
3
  Tags: sharing buttons, social media share, floating share buttons, facebook share, google plus share, linkedin share, pin it, pinterest save, stumbleupon button, tweet button, twitter share, click to tweet
4
  Requires at least: 3.5.1
5
  Tested up to: 4.8
6
+ Stable tag: 2.3.3
7
  License: GNU General Public License v2.0 or later
8
 
9
  The most beautiful, lightning fast social media sharing buttons built to boost shares and drive more traffic without slowing down your site.
10
 
11
  == Description ==
12
 
13
+ Get more social media shares which can lead to more website traffic with the best sharing plugin for WordPress! Built by a group of social media marketing experts and world class developers who are obsessed with performance. Learn more at <a href="https://warfareplugins.com/?utm_medium=repository&utm_campaign=description&utm_source=wordpress_org&utm_content=repo_description" rel="friend" target="_blank">Warfare Plugins</a>.
14
 
15
  = WordPress Sharing Plugin =
16
  Most social sharing plugins for WordPress slow down your site, are not attractive, and don't work the way you would hope. Social Warfare is both lightning fast and beautiful.
193
 
194
  == Changelog ==
195
 
196
+ = 2.3.3 (27 SEP 2017) =
197
+
198
+ * Added "OpenShareCount.com" as an alternative source for Twitter share counts.
199
+ * Moved some functions and classes from the Pro addon into core so that they can be used by all addons.
200
+ * Updated the style of the image hover Pin button to be more consistent with the rest of the buttons.
201
+ * Fixed the UTM tracking parameters from a bug that would turn them off if they were turned on for the pin button.
202
+ * Fixed some typos in the readme.txt.
203
+ * Moved all registration functions to use the WordPress HTTP API instead of cURL.
204
+ * Setup the update checker to check for updates through Easy Digital Downloads (our store) rather than through GitHub.
205
+ * Changed the registration functions to be hookable allowing it to track multiple registration (like addons) rather than only one single registration.
206
+ * Added a hook to allow for additional URL's to be checked for share recovery functionality.
207
+
208
  = 2.3.2 (25 AUG 2017) =
209
 
210
  * Updated the verbiage on the readme.txt
social-warfare.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Warfare
4
  * Plugin URI: http://warfareplugins.com
5
  * Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more!
6
- * Version: 2.3.2
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
@@ -15,10 +15,11 @@ defined( 'WPINC' ) || die;
15
  * Define plugin constants for use throughout the plugin (Version and Directories)
16
  *
17
  */
18
- define( 'SWP_VERSION' , '2.3.2' );
19
  define( 'SWP_PLUGIN_FILE', __FILE__ );
20
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
21
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
 
22
 
23
  /**
24
  * Include the plugin's network files.
@@ -30,6 +31,9 @@ require_once SWP_PLUGIN_DIR . '/functions/social-networks/facebook.php';
30
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/linkedIn.php';
31
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/pinterest.php';
32
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/stumbleupon.php';
 
 
 
33
 
34
  /**
35
  * Include the plugin's necessary functions files.
@@ -40,7 +44,6 @@ function swp_initiate_plugin() {
40
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
41
  require_once SWP_PLUGIN_DIR . '/functions/utilities/languages.php';
42
  require_once SWP_PLUGIN_DIR . '/functions/utilities/url_processing.php';
43
- require_once SWP_PLUGIN_DIR . '/functions/utilities/utility.php';
44
  require_once SWP_PLUGIN_DIR . '/functions/admin/options-fetch.php';
45
  require_once SWP_PLUGIN_DIR . '/functions/admin/options-array.php';
46
  require_once SWP_PLUGIN_DIR . '/functions/utilities/curl_functions.php';
3
  * Plugin Name: Social Warfare
4
  * Plugin URI: http://warfareplugins.com
5
  * Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more!
6
+ * Version: 2.3.3
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
15
  * Define plugin constants for use throughout the plugin (Version and Directories)
16
  *
17
  */
18
+ define( 'SWP_VERSION' , '2.3.3' );
19
  define( 'SWP_PLUGIN_FILE', __FILE__ );
20
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
21
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
22
+ define( 'SWP_STORE_URL', 'https://warfareplugins.com' );
23
 
24
  /**
25
  * Include the plugin's network files.
31
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/linkedIn.php';
32
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/pinterest.php';
33
  require_once SWP_PLUGIN_DIR . '/functions/social-networks/stumbleupon.php';
34
+ require_once SWP_PLUGIN_DIR . '/functions/utilities/update-checker.php';
35
+ require_once SWP_PLUGIN_DIR . '/functions/utilities/utility.php';
36
+ require_once SWP_PLUGIN_DIR . '/functions/admin/registration.php';
37
 
38
  /**
39
  * Include the plugin's necessary functions files.
44
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
45
  require_once SWP_PLUGIN_DIR . '/functions/utilities/languages.php';
46
  require_once SWP_PLUGIN_DIR . '/functions/utilities/url_processing.php';
 
47
  require_once SWP_PLUGIN_DIR . '/functions/admin/options-fetch.php';
48
  require_once SWP_PLUGIN_DIR . '/functions/admin/options-array.php';
49
  require_once SWP_PLUGIN_DIR . '/functions/utilities/curl_functions.php';