WordPress Social Sharing Plugin – Social Warfare - Version 3.0.8

Version Description

(24 MAY 2018) = * Fixed 'Undefined Index' notices. * Fixed 'File not found' errors. * Custom Color and Custom Color Outlines are fully functional. * Floating bar on mobile is back to normal. * Fixed global/post-specific setting incompatibilities. * Total shares is responsive to the settings, shortcode, and function. * Right floating buttons are properly positioned. * Fixed conflict with buttons showing on Archive/Category post types. * The shortcode and social_warfare() function behave as expected. * Yummly and StumbleUpon buttons are back. * Created default settings for float position, location, and size. * Improved the migration mechanism.

Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.8

README.md DELETED
@@ -1,71 +0,0 @@
1
- # 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 (see the guidelines below prior to adding a new issue).
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
13
- 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).
14
-
15
- ### Variables and Class Names
16
- All PHP and Javascript variables, functions and classes, and CSS classes and ID's should follow the following naming standards.
17
-
18
- **PHP:** All names in PHP will use the Snake Case nomenclature. Independent function names will be preceded with the swp_ vendor prefix (e.g. swp_my_function_name). Methods and properties within classes do not require this prefix.
19
-
20
- Classes will be snake cased as well, but will also have the first letter of each word capitalized. Class names will also use the singular and never plural (e.g. My_Thing, not My_Things). The first letter will be capitalized on variables containing an instance of a class as well (e.g. $Class = new SWP_Class() ).
21
-
22
- Line breaks in PHP will be used generously to make the code more easily readable. Two blank lines will be used after a function or method and before the beginning of the docblock for the next function or method. One blank line will appear at the end (but within) each standard dockblock. One blank line will appear immediately before any forward-slashed comments.
23
-
24
- **Javascript:** In Javascript, we will use the camelCase nomenclature.
25
-
26
- **CSS:** CSS selectors will use the snake_case nomenclature just as in our PHP code.
27
-
28
- ### Conditionals and Loops
29
- No inline/same-line conditionals or loops will be used, nor will we continue to use brace syntax. Rather we will use the colin/endif syntax.
30
-
31
- ### Docblocking
32
- 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 even a non-developer should be able to easily browse each file and know exactly what is happening in that file.
33
-
34
- ***
35
-
36
- ## Guidelines for Submitting Issues to this GitHub Issue Tracker
37
- 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.
38
-
39
- ### Prerequisites: Do this BEFORE submitting an issue
40
-
41
- #### 1. Check the Documentation
42
- 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.
43
-
44
- #### 2. Submit a Support Ticket First
45
- 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.
46
-
47
- 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.
48
-
49
- #### 3. Create an Issue on GitHub
50
- 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.
51
-
52
- ### Required Information: Provide this information WHILE submitting an issue
53
- 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**:
54
-
55
- #### Description of the Issue
56
-
57
- A. Describe the nature of the issue:
58
-
59
- B. How can this issue be replicated?:
60
-
61
- C. Is this issue able to be viewed on your site right now? If so, where?
62
-
63
- #### Additional Information
64
-
65
- A. What version of the plugin are you using?
66
-
67
- B. What version of WordPress are you using?
68
-
69
- C. What caching plugin(s) are you using?
70
-
71
- D. What version of PHP are you using?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/admin-options-page.css CHANGED
@@ -843,3 +843,46 @@ p.sw-subtitle.sw-registration-text {
843
  height: 120px;
844
  width: 97%
845
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
843
  height: 120px;
844
  width: 97%
845
  }
846
+
847
+ #color-notice {
848
+ position: fixed;
849
+ bottom: 15px;
850
+ margin: 0 auto;
851
+ left: 25%;
852
+ right: 25%;
853
+ background: rgba( 255, 225, 255, .37 );
854
+ background-color: #ced3dc;
855
+ color: #30394f;
856
+ padding: 20px;
857
+ border-radius: 4px;
858
+ text-align: left;
859
+ width: 650px;
860
+
861
+ }
862
+
863
+ #color-notice p {
864
+ font-size: 16px;
865
+ padding: 0px;
866
+ margin: 0px;
867
+ }
868
+
869
+ #color-notice .color-dismiss {
870
+ float: right;
871
+ color: #ffffff;
872
+ font-weight: 600;
873
+ }
874
+
875
+ #color-notice .color-dismiss:before {
876
+ content: 'x';
877
+ background: #30394f;
878
+ border-radius: 50%;
879
+ width: 26px;
880
+ display: block;
881
+ text-align: center;
882
+ height: 26px;
883
+ line-height: 22px;
884
+ font-size: 22px;
885
+ cursor: pointer;
886
+ padding: 0;
887
+ opacity: .4;
888
+ }
css/admin-options-page.min.css CHANGED
@@ -1 +1 @@
1
- .sw-grid,.sw-grid-right{margin-bottom:2.127659574468%;padding-top:0}.sw-red-notice a,.swp_support_link{font-weight:700;text-decoration:none}.sw-grid{float:left}.sw-grid-right{float:right}.sw-col-140,.sw-col-220,.sw-col-300,.sw-col-380,.sw-col-460,.sw-col-540,.sw-col-60,.sw-col-620,.sw-col-700,.sw-col-780,.sw-col-860{margin-right:2.127659574468%}.sw-col-60{width:6.382978723404%}.sw-col-140{width:14.893617021277%}.sw-col-220{width:23.404255319149%}.sw-col-300{width:31.914893617021%}.sw-col-380{width:40.425531914894%}.sw-col-460{width:48.936170212766%}.sw-col-540{width:57.446808510638%}.sw-col-620{width:65.957446808511%}.sw-col-700{width:74.468085106383%}.sw-col-780{width:82.978723404255%}.sw-col-860{width:91.489361702128%}.sw-col-940{width:100%}.sw-fit,.sw-option-container :last-child{margin-left:0!important;margin-right:0!important}.sw-clearfix:after,.sw-clearfix:before{content:' ';display:table}.sw-clearfix:after{clear:both}.sw-clearfix{clear:both;width:100%}img{-ms-interpolation-mode:bicubic;border:0;height:auto;max-width:100%;vertical-align:middle}.sw-admin-divider{width:100%;height:1px;border-bottom:1px solid #CED3DC;margin:20px 0 40px}.sw-header-menu li,.sw-top-menu[sw-registered="0"] .sw-header-logo,.sw-top-menu[sw-registered="1"] .sw-header-logo-pro{height:75px;float:left}.sw-hidden{display:none!important}.swp_support_link{border:1px solid #ccc;font-size:18px;line-height:20px;-webkit-border-radius:50%;border-radius:50%;width:20px;display:block;float:right;text-align:center;color:#ccc;margin-right:20px;margin-top:4px;padding:2px}.swp_support_link:hover{color:#6BCCE9;border-color:#6BCCE9}.swp_support_link.swp_four_fourths{margin-left:20px;margin-top:13px}#screen-meta-links .screen-meta-toggle{display:none!important}#wpcontent,#wpwrap{background:#fff;padding-left:0}.sw-top-menu{border-bottom:1px solid #CED3DC;float:none;background:#fff;z-index:5;margin:0}.sw-top-menu[sw-registered="0"] .sw-header-logo-pro,.sw-top-menu[sw-registered="1"] .sw-header-logo{display:none}.sw-header-menu{height:75px;margin:0}.sw-header-menu li{margin:0 15px;font-size:16px;display:table}.sw-header-menu li a:focus,.sw-header-menu li:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}.sw-header-menu li span{padding:0 5px 5px}.sw-header-menu li.sw-active-tab span,.sw-header-menu li:hover span{border-bottom:4px solid #30394f}.sw-header-menu li a{color:#30394f;text-decoration:none;display:table-cell;vertical-align:middle}.sw-top-menu .sw-grid{margin-bottom:0}.sw-admin-wrapper,.sw-header-wrapper{clear:both;margin:20px auto;padding:0 40px 20px;position:relative}.sw-header-wrapper{margin:0}.sw-tabs-container .sw-admin-tab{display:none}.sw-tabs-container .sw-admin-tab:nth-child(1){display:block}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status=on] .sw-checkbox-on,.sw-checkbox-toggle[status=on] .sw-checkbox-off,.sw-checkbox-toggle[status=off] .sw-checkbox-on,.system-status-wrapper{display:none}.sw-admin-tab h2{font-size:26px;line-height:1.2;margin:0}.sw-admin-tab h2.sw-h-label{line-height:56px}p.sw-subtitle{font-size:16px;line-height:1.2;margin:10px 0 30px}p.sw-authenticate-label,p.sw-checkbox-label,p.sw-input-label,p.sw-select-label{font-size:16px;font-weight:700;padding-left:10%}.sw-select-label.sw-no-padding{padding-left:0}p.sw-short{margin:1em 0 0}p.sw-subtext-label{margin-top:-10px}.sw-admin-sidebar img{margin:5px 0 10px}.system-status-container{width:90%;height:250px;overflow:hidden;border:1px solid #CED3DC;padding:5%}h3.sw-buttons-toggle{width:100px;float:left;clear:left;margin:15px 0 30px;padding-left:10%}.sw-checkbox-toggle{width:150px;height:46px;background-color:#30394f;float:right;margin:5px 0;cursor:pointer;-webkit-border-radius:4px;border-radius:4px;overflow:hidden;position:relative}.sw-checkbox-off,.sw-checkbox-on{color:#fff;font-size:15px;text-align:center;line-height:46px;position:absolute;top:0;width:50%;height:100%}.sw-checkbox-toggle[status=on] .sw-checkbox-on{left:0;background-color:#71C069}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status=on] .sw-checkbox-off{right:0;background-color:#ee464f;display:block}.sw-checkbox-toggle[status=off] .sw-checkbox-off{right:0;background-color:#ee464f}input.sw-admin-input{padding:15px;border:1px solid #ced3cd;-webkit-border-radius:4px;border-radius:4px;float:right;-webkit-box-shadow:none;box-shadow:none;margin:2px 0 1px;width:100%}.sw-grid select{width:100%;-webkit-box-shadow:none;box-shadow:none;border:1px solid #ced3cd;height:51px;padding:15px;margin:2px 1px 3px 0;-webkit-border-radius:4px;border-radius:4px}a.button.sw-blue-button,a.button.sw-green-button,a.button.sw-navy-button,a.button.sw-red-button{padding:15px 30px;height:auto;line-height:1;-webkit-border-radius:4px;border-radius:4px;float:right;margin:15px 0}a.button.sw-navy-button,a.button.sw-navy-button:focus{background:#30394f;color:#fff;border-color:#2a2d34;-webkit-box-shadow:none;box-shadow:none}a.button.sw-blue-button:hover,a.button.sw-navy-button:hover{background:#2a2d34;border-color:#2a2d34;color:#fff;-webkit-box-shadow:none;box-shadow:none}a.button.sw-blue-button,a.button.sw-blue-button:focus{background:#6bcce9;border-color:#6bcce9;color:#fff;-webkit-box-shadow:none;box-shadow:none}a.button.sw-green-button,a.button.sw-green-button:focus{background:#71C069;color:#fff;border-color:#71C069;-webkit-box-shadow:none;box-shadow:none}a.button.sw-red-button,a.button.sw-red-button:focus,a.button.sw-red-button:hover{background:#ee464f;color:#fff;border-color:#ee464f;-webkit-box-shadow:none;box-shadow:none}.sw-admin-tab a.button{margin:5px 0 15px}.sw-save-settings{width:100%;text-align:center}.sw-green-notice,.sw-red-notice{color:#fff;padding:15px;-webkit-border-radius:2px;border-radius:2px;margin:15px 0}.sw-loading-message,.sw-red-notice{background:#ee464f}.sw-green-notice,.sw-loading-complete{background:#71C069}.sw-loading-bg{width:100%;position:fixed;top:0;left:0;height:100%;background:rgba(0,0,0,.8);z-index:999999999999}.sw-green-notice:before,.sw-loading-complete:before,.sw-loading-message:before{font-family:Dashicons;font-size:26px;margin:0 15px 0 0;vertical-align:middle}.sw-red-notice:before{font-family:sw-icon-font;font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:'E'}.sw-red-notice a{color:#fff;border-bottom:2px solid #fff}.sw-red-notice a:hover{color:#30394f;border-bottom:2px solid #30394f}.sw-loading-message:before{content:"\f158"}.sw-green-notice:before,.sw-loading-complete:before{content:"\f147"}.sw-admin-tab .two-thirds-advanced h2.sw-h-label{line-height:1.2;margin-bottom:15px}.sw-italic{font-style:italic}.sw-admin-hover-notice i:before,.sw-s{font-family:sw-icon-font;font-style:normal}p.sw-subtitle.sw-registration-text{padding:20px 0 0;font-size:120%;line-height:175%}.registration-wrapper[registration="0"] .swp_is_registered,.registration-wrapper[registration="1"] .swp_is_not_registered,.tweet-count-wrapper[registration=true] .swp_tweets_not_activated{display:none}.sw-tweet-count-demo{margin:20px 0}.sw-loading-complete,.sw-loading-message{position:fixed;top:50%;left:50%;-webkit-border-radius:3px;border-radius:3px;padding:25px;text-align:center;font-size:20px;color:#fff;width:240px;margin-top:-46px;margin-left:-120px}.sw-grid textarea{width:100%;height:120px}.sw-active,.sw-inactive{margin:0 0 5px;min-width:50px;min-height:40px;border:1px dashed #ced3dc;padding:0;-webkit-border-radius:4px;border-radius:4px;width:auto;height:auto;display:inline-block;max-width:520px}.sw-s{color:#fff;padding:5px 30px 4px;margin:7px 5px;-webkit-border-radius:2px;border-radius:2px;display:inline-block;font-size:15px;line-height:15px;cursor:pointer}.sw-twitter-icon:before{content:'s'}.sw-s.sw-twitter-icon{background-color:#429cd6;border-color:#3c87b2}.sw-google_plus-icon:before{content:'h'}.sw-s.sw-google_plus-icon{background-color:#df4b37;border-color:#c44133}.sw-facebook-icon:before{content:'j'}.sw-s.sw-facebook-icon{background-color:#3a589e;border-color:#2e4675}.sw-pinterest-icon:before{content:'b'}.sw-s.sw-pinterest-icon{background-color:#cd2029;border-color:#aa1b29}.sw-linkedin-icon:before{content:'f'}.sw-s.sw-linkedin-icon{background-color:#0d77b7;border-color:#0c6591}.sw-tumblr-icon:before{content:'r'}.sw-s.sw-tumblr-icon{background-color:#39475d;border-color:#27313f}.sw-stumbleupon-icon:before{content:'q'}.sw-s.sw-stumbleupon-icon{background-color:#ef5025;border-color:#d34427}.sw-reddit-icon:before{content:'a'}.sw-s.sw-reddit-icon{background-color:#f04b23;border-color:#d33f27}.sw-yummly-icon:before{content:'x'}.sw-s.sw-yummly-icon{background-color:#e26426;border-color:#b65027}.sw-whatsapp-icon:before{content:'y'}.sw-s.sw-whatsapp-icon{background-color:#71c169;border-color:#28b04b}.sw-pocket-icon:before{content:'B'}.sw-s.sw-pocket-icon{background-color:#ef4056;border-color:#ce3d55}.sw-buffer-icon:before{content:'z'}.sw-s.sw-buffer-icon{background-color:#323b43;border-color:#59626a}.sw-email-icon:before{content:'k'}.sw-s.sw-email-icon{background-color:#6bcce9;border-color:#6bcce9}.sw-hacker_news-icon:before{content:'D'}.sw-s.sw-hacker_news-icon{background-color:#f16522;border-color:#d85623}.sw-flipboard-icon:before{content:'C'}.sw-s.sw-flipboard-icon{background-color:#e02828;border-color:#bf2626}@media screen and (max-width:1350px){.sw-header-menu li{font-size:12px;margin:0 10px}}@media screen and (max-width:1080px){.sw-header-logo{display:none}}.sw-admin-wrapper[sw-registered="0"] [premium="1"]{display:none!important}.sw-admin-wrapper[sw-registered="0"] [premium="1"] .sw-premium-blocker,.sw-admin-wrapper[sw-registered="0"] i[premium-button="1"],.sw-admin-wrapper[sw-registered="1"] .sw-premium-buttons,.sw-admin-wrapper[swp-addons*=pro] [premium],.sw-admin-wrapper[swp-addons*=affiliatewp] [premium],.sw-admin-wrapper[swp-addons*=enhanced_shortcodes] [premium],.sw-admin-wrapper[swp-addons*=advanced_display] [premium]{display:none}.sw-admin-wrapper[sw-registered="0"] .sw-option-container{position:relative}.sw-admin-wrapper[sw-registered="0"] [premium="1"] .sw-premium-blocker:not(.no-icon):before{font-family:sw-icon-font;content:'E';font-size:24px;float:right;margin:20px 20px 0 0}.sw-admin-wrapper[swp-addons*=pro][swp-registrations*=pro] [premium],.sw-admin-wrapper[swp-addons*=affiliatewp][swp-registrations*=affiliatewp] [premium],.sw-admin-wrapper[swp-addons*=enhanced_shortcodes][swp-registrations*=enhanced_shortcodes] [premium],.sw-admin-wrapper[swp-addons*=advanced_display][swp-registrations*=advanced_display] [premium]{display:inherit}.swp_upload_image_field,.toplevel_page_social-warfare #is-dismissible,.toplevel_page_social-warfare #notice-error,.toplevel_page_social-warfare #notice-info,.toplevel_page_social-warfare #notice-success,.toplevel_page_social-warfare #notice-warning,.toplevel_page_social-warfare #update-nag,.toplevel_page_social-warfare .is-dismissible,.toplevel_page_social-warfare .notice-error,.toplevel_page_social-warfare .notice-info,.toplevel_page_social-warfare .notice-success,.toplevel_page_social-warfare .notice-warning,.toplevel_page_social-warfare .update-nag,div.error{display:none}.ui-tooltip.sw-admin-hover-notice{background:#ee464f;color:#fff;-webkit-border-radius:2px;border-radius:2px;margin:15px 0;border:0;-webkit-box-shadow:none;box-shadow:none;max-width:none;padding:20px}.sw-admin-hover-notice i:before{font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:'E';float:left}.sw-admin-image-preview{max-height:50px;float:right}.sw-grid-textarea{border:#ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);height:120px;width:97%}
1
+ .sw-grid,.sw-grid-right{margin-bottom:2.127659574468%;padding-top:0}.sw-red-notice a,.swp_support_link{font-weight:700;text-decoration:none}.sw-grid{float:left}.sw-grid-right{float:right}.sw-col-140,.sw-col-220,.sw-col-300,.sw-col-380,.sw-col-460,.sw-col-540,.sw-col-60,.sw-col-620,.sw-col-700,.sw-col-780,.sw-col-860{margin-right:2.127659574468%}.sw-col-60{width:6.382978723404%}.sw-col-140{width:14.893617021277%}.sw-col-220{width:23.404255319149%}.sw-col-300{width:31.914893617021%}.sw-col-380{width:40.425531914894%}.sw-col-460{width:48.936170212766%}.sw-col-540{width:57.446808510638%}.sw-col-620{width:65.957446808511%}.sw-col-700{width:74.468085106383%}.sw-col-780{width:82.978723404255%}.sw-col-860{width:91.489361702128%}.sw-col-940{width:100%}.sw-fit,.sw-option-container :last-child{margin-left:0!important;margin-right:0!important}.sw-clearfix:after,.sw-clearfix:before{content:' ';display:table}.sw-clearfix:after{clear:both}.sw-clearfix{clear:both;width:100%}img{-ms-interpolation-mode:bicubic;border:0;height:auto;max-width:100%;vertical-align:middle}.sw-admin-divider{width:100%;height:1px;border-bottom:1px solid #CED3DC;margin:20px 0 40px}.sw-header-menu li,.sw-top-menu[sw-registered="0"] .sw-header-logo,.sw-top-menu[sw-registered="1"] .sw-header-logo-pro{height:75px;float:left}.sw-hidden{display:none!important}.swp_support_link{border:1px solid #ccc;font-size:18px;line-height:20px;-webkit-border-radius:50%;border-radius:50%;width:20px;display:block;float:right;text-align:center;color:#ccc;margin-right:20px;margin-top:4px;padding:2px}.swp_support_link:hover{color:#6BCCE9;border-color:#6BCCE9}.swp_support_link.swp_four_fourths{margin-left:20px;margin-top:13px}#screen-meta-links .screen-meta-toggle{display:none!important}#wpcontent,#wpwrap{background:#fff;padding-left:0}.sw-top-menu{border-bottom:1px solid #CED3DC;float:none;background:#fff;z-index:5;margin:0}.sw-top-menu[sw-registered="0"] .sw-header-logo-pro,.sw-top-menu[sw-registered="1"] .sw-header-logo{display:none}.sw-header-menu{height:75px;margin:0}.sw-header-menu li{margin:0 15px;font-size:16px;display:table}.sw-header-menu li a:focus,.sw-header-menu li:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}.sw-header-menu li span{padding:0 5px 5px}.sw-header-menu li.sw-active-tab span,.sw-header-menu li:hover span{border-bottom:4px solid #30394f}.sw-header-menu li a{color:#30394f;text-decoration:none;display:table-cell;vertical-align:middle}.sw-top-menu .sw-grid{margin-bottom:0}.sw-admin-wrapper,.sw-header-wrapper{clear:both;margin:20px auto;padding:0 40px 20px;position:relative}.sw-header-wrapper{margin:0}.sw-tabs-container .sw-admin-tab{display:none}.sw-tabs-container .sw-admin-tab:nth-child(1){display:block}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status=on] .sw-checkbox-on,.sw-checkbox-toggle[status=on] .sw-checkbox-off,.sw-checkbox-toggle[status=off] .sw-checkbox-on,.system-status-wrapper{display:none}.sw-admin-tab h2{font-size:26px;line-height:1.2;margin:0}.sw-admin-tab h2.sw-h-label{line-height:56px}p.sw-subtitle{font-size:16px;line-height:1.2;margin:10px 0 30px}p.sw-authenticate-label,p.sw-checkbox-label,p.sw-input-label,p.sw-select-label{font-size:16px;font-weight:700;padding-left:10%}.sw-select-label.sw-no-padding{padding-left:0}p.sw-short{margin:1em 0 0}p.sw-subtext-label{margin-top:-10px}.sw-admin-sidebar img{margin:5px 0 10px}.system-status-container{width:90%;height:250px;overflow:hidden;border:1px solid #CED3DC;padding:5%}h3.sw-buttons-toggle{width:100px;float:left;clear:left;margin:15px 0 30px;padding-left:10%}.sw-checkbox-toggle{width:150px;height:46px;background-color:#30394f;float:right;margin:5px 0;cursor:pointer;-webkit-border-radius:4px;border-radius:4px;overflow:hidden;position:relative}.sw-checkbox-off,.sw-checkbox-on{color:#fff;font-size:15px;text-align:center;line-height:46px;position:absolute;top:0;width:50%;height:100%}.sw-checkbox-toggle[status=on] .sw-checkbox-on{left:0;background-color:#71C069}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status=on] .sw-checkbox-off{right:0;background-color:#ee464f;display:block}.sw-checkbox-toggle[status=off] .sw-checkbox-off{right:0;background-color:#ee464f}input.sw-admin-input{padding:15px;border:1px solid #ced3cd;-webkit-border-radius:4px;border-radius:4px;float:right;-webkit-box-shadow:none;box-shadow:none;margin:2px 0 1px;width:100%}.sw-grid select{width:100%;-webkit-box-shadow:none;box-shadow:none;border:1px solid #ced3cd;height:51px;padding:15px;margin:2px 1px 3px 0;-webkit-border-radius:4px;border-radius:4px}a.button.sw-blue-button,a.button.sw-green-button,a.button.sw-navy-button,a.button.sw-red-button{padding:15px 30px;height:auto;line-height:1;-webkit-border-radius:4px;border-radius:4px;float:right;margin:15px 0}a.button.sw-navy-button,a.button.sw-navy-button:focus{background:#30394f;color:#fff;border-color:#2a2d34;-webkit-box-shadow:none;box-shadow:none}a.button.sw-blue-button:hover,a.button.sw-navy-button:hover{background:#2a2d34;border-color:#2a2d34;color:#fff;-webkit-box-shadow:none;box-shadow:none}a.button.sw-blue-button,a.button.sw-blue-button:focus{background:#6bcce9;border-color:#6bcce9;color:#fff;-webkit-box-shadow:none;box-shadow:none}a.button.sw-green-button,a.button.sw-green-button:focus{background:#71C069;color:#fff;border-color:#71C069;-webkit-box-shadow:none;box-shadow:none}a.button.sw-red-button,a.button.sw-red-button:focus,a.button.sw-red-button:hover{background:#ee464f;color:#fff;border-color:#ee464f;-webkit-box-shadow:none;box-shadow:none}.sw-admin-tab a.button{margin:5px 0 15px}.sw-save-settings{width:100%;text-align:center}.sw-green-notice,.sw-red-notice{color:#fff;padding:15px;-webkit-border-radius:2px;border-radius:2px;margin:15px 0}.sw-loading-message,.sw-red-notice{background:#ee464f}.sw-green-notice,.sw-loading-complete{background:#71C069}.sw-loading-bg{width:100%;position:fixed;top:0;left:0;height:100%;background:rgba(0,0,0,.8);z-index:999999999999}.sw-green-notice:before,.sw-loading-complete:before,.sw-loading-message:before{font-family:Dashicons;font-size:26px;margin:0 15px 0 0;vertical-align:middle}.sw-red-notice:before{font-family:sw-icon-font;font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:'E'}.sw-red-notice a{color:#fff;border-bottom:2px solid #fff}.sw-red-notice a:hover{color:#30394f;border-bottom:2px solid #30394f}.sw-loading-message:before{content:"\f158"}.sw-green-notice:before,.sw-loading-complete:before{content:"\f147"}.sw-admin-tab .two-thirds-advanced h2.sw-h-label{line-height:1.2;margin-bottom:15px}.sw-italic{font-style:italic}.sw-admin-hover-notice i:before,.sw-s{font-family:sw-icon-font;font-style:normal}p.sw-subtitle.sw-registration-text{padding:20px 0 0;font-size:120%;line-height:175%}.registration-wrapper[registration="0"] .swp_is_registered,.registration-wrapper[registration="1"] .swp_is_not_registered,.tweet-count-wrapper[registration=true] .swp_tweets_not_activated{display:none}.sw-tweet-count-demo{margin:20px 0}.sw-loading-complete,.sw-loading-message{position:fixed;top:50%;left:50%;-webkit-border-radius:3px;border-radius:3px;padding:25px;text-align:center;font-size:20px;color:#fff;width:240px;margin-top:-46px;margin-left:-120px}.sw-grid textarea{width:100%;height:120px}.sw-active,.sw-inactive{margin:0 0 5px;min-width:50px;min-height:40px;border:1px dashed #ced3dc;padding:0;-webkit-border-radius:4px;border-radius:4px;width:auto;height:auto;display:inline-block;max-width:520px}.sw-s{color:#fff;padding:5px 30px 4px;margin:7px 5px;-webkit-border-radius:2px;border-radius:2px;display:inline-block;font-size:15px;line-height:15px;cursor:pointer}.sw-twitter-icon:before{content:'s'}.sw-s.sw-twitter-icon{background-color:#429cd6;border-color:#3c87b2}.sw-google_plus-icon:before{content:'h'}.sw-s.sw-google_plus-icon{background-color:#df4b37;border-color:#c44133}.sw-facebook-icon:before{content:'j'}.sw-s.sw-facebook-icon{background-color:#3a589e;border-color:#2e4675}.sw-pinterest-icon:before{content:'b'}.sw-s.sw-pinterest-icon{background-color:#cd2029;border-color:#aa1b29}.sw-linkedin-icon:before{content:'f'}.sw-s.sw-linkedin-icon{background-color:#0d77b7;border-color:#0c6591}.sw-tumblr-icon:before{content:'r'}.sw-s.sw-tumblr-icon{background-color:#39475d;border-color:#27313f}.sw-stumbleupon-icon:before{content:'q'}.sw-s.sw-stumbleupon-icon{background-color:#ef5025;border-color:#d34427}.sw-reddit-icon:before{content:'a'}.sw-s.sw-reddit-icon{background-color:#f04b23;border-color:#d33f27}.sw-yummly-icon:before{content:'x'}.sw-s.sw-yummly-icon{background-color:#e26426;border-color:#b65027}.sw-whatsapp-icon:before{content:'y'}.sw-s.sw-whatsapp-icon{background-color:#71c169;border-color:#28b04b}.sw-pocket-icon:before{content:'B'}.sw-s.sw-pocket-icon{background-color:#ef4056;border-color:#ce3d55}.sw-buffer-icon:before{content:'z'}.sw-s.sw-buffer-icon{background-color:#323b43;border-color:#59626a}.sw-email-icon:before{content:'k'}.sw-s.sw-email-icon{background-color:#6bcce9;border-color:#6bcce9}.sw-hacker_news-icon:before{content:'D'}.sw-s.sw-hacker_news-icon{background-color:#f16522;border-color:#d85623}.sw-flipboard-icon:before{content:'C'}.sw-s.sw-flipboard-icon{background-color:#e02828;border-color:#bf2626}@media screen and (max-width:1350px){.sw-header-menu li{font-size:12px;margin:0 10px}}@media screen and (max-width:1080px){.sw-header-logo{display:none}}.sw-admin-wrapper[sw-registered="0"] [premium="1"]{display:none!important}.sw-admin-wrapper[sw-registered="0"] [premium="1"] .sw-premium-blocker,.sw-admin-wrapper[sw-registered="0"] i[premium-button="1"],.sw-admin-wrapper[sw-registered="1"] .sw-premium-buttons,.sw-admin-wrapper[swp-addons*=pro] [premium],.sw-admin-wrapper[swp-addons*=affiliatewp] [premium],.sw-admin-wrapper[swp-addons*=enhanced_shortcodes] [premium],.sw-admin-wrapper[swp-addons*=advanced_display] [premium]{display:none}.sw-admin-wrapper[sw-registered="0"] .sw-option-container{position:relative}.sw-admin-wrapper[sw-registered="0"] [premium="1"] .sw-premium-blocker:not(.no-icon):before{font-family:sw-icon-font;content:'E';font-size:24px;float:right;margin:20px 20px 0 0}.sw-admin-wrapper[swp-addons*=pro][swp-registrations*=pro] [premium],.sw-admin-wrapper[swp-addons*=affiliatewp][swp-registrations*=affiliatewp] [premium],.sw-admin-wrapper[swp-addons*=enhanced_shortcodes][swp-registrations*=enhanced_shortcodes] [premium],.sw-admin-wrapper[swp-addons*=advanced_display][swp-registrations*=advanced_display] [premium]{display:inherit}.swp_upload_image_field,.toplevel_page_social-warfare #is-dismissible,.toplevel_page_social-warfare #notice-error,.toplevel_page_social-warfare #notice-info,.toplevel_page_social-warfare #notice-success,.toplevel_page_social-warfare #notice-warning,.toplevel_page_social-warfare #update-nag,.toplevel_page_social-warfare .is-dismissible,.toplevel_page_social-warfare .notice-error,.toplevel_page_social-warfare .notice-info,.toplevel_page_social-warfare .notice-success,.toplevel_page_social-warfare .notice-warning,.toplevel_page_social-warfare .update-nag,div.error{display:none}.ui-tooltip.sw-admin-hover-notice{background:#ee464f;color:#fff;-webkit-border-radius:2px;border-radius:2px;margin:15px 0;border:0;-webkit-box-shadow:none;box-shadow:none;max-width:none;padding:20px}.sw-admin-hover-notice i:before{font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:'E';float:left}.sw-admin-image-preview{max-height:50px;float:right}.sw-grid-textarea{border:#ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);height:120px;width:97%}#color-notice{position:fixed;bottom:15px;margin:0 auto;left:25%;right:25%;background:rgba(255,225,255,.37);background-color:#ced3dc;color:#30394f;padding:20px;border-radius:4px;text-align:left;width:650px}#color-notice p{font-size:16px;padding:0;margin:0}#color-notice .color-dismiss{float:right;color:#fff;font-weight:600}#color-notice .color-dismiss:before{content:'x';background:#30394f;border-radius:50%;width:26px;display:block;text-align:center;height:26px;line-height:22px;font-size:22px;cursor:pointer;padding:0;opacity:.4}
css/admin-options.min.css CHANGED
@@ -1,5 +1,5 @@
1
- border: rgb(221, 221, 221);
2
- box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
3
- height: 120px;
4
- width: 97%
5
  __ESCAPED_SOURCE_END_CLEAN_CSS__
1
+ border: rgb(221, 221, 221);
2
+ box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
3
+ height: 120px;
4
+ width: 97%
5
  __ESCAPED_SOURCE_END_CLEAN_CSS__
css/style.css CHANGED
@@ -201,8 +201,8 @@ span.spaceManWilly {
201
  }
202
 
203
  .swp_social_panel .total_shares {
204
- background: #c4c4c4;
205
- border: 1px solid #e08a0f;
206
  -webkit-border-radius: 2px;
207
  border-radius: 2px;
208
  color: white;
@@ -218,6 +218,11 @@ span.spaceManWilly {
218
  flex: none!important;
219
  }
220
 
 
 
 
 
 
221
  .swp_social_panel div.total_shares.total_sharesalt,
222
  .swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)) {
223
  background: transparent!important;
@@ -881,8 +886,8 @@ body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard {
881
  /*top: 200px;*/
882
  -webkit-transition: all 0.2s linear;
883
  transition: all 0.2s linear;
884
- width: 100px!important;
885
- z-index: 9999999;
886
  margin: 10px 5px !important;
887
  padding: 0;
888
 
@@ -901,10 +906,6 @@ body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard {
901
  transition: all 0.2s linear;
902
  }
903
 
904
- .swp_social_panelSide.fade {
905
- display: none;
906
- }
907
-
908
  .swp_social_panelSide.fade.swp_float_left {
909
  left: 5px;
910
  }
@@ -914,11 +915,14 @@ body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard {
914
  }
915
 
916
  .swp_social_panelSide[class*=swp_side] {
917
- height: 100vh;
918
  display: flex;
919
  position: fixed;
920
  padding: 30px 0;
921
- top: 0;
 
 
 
922
  }
923
 
924
  .swp_social_panelSide.swp_float_right {
@@ -926,15 +930,14 @@ body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard {
926
  }
927
 
928
  .swp_social_panelSide.swp_side_top {
929
- justify-content: flex-start;
930
  }
931
 
932
  .swp_social_panelSide.swp_side_bottom {
933
- justify-content: flex-end;
934
  }
935
 
936
  .swp_social_panelSide.swp_side_center {
937
- justify-content: center;
938
  }
939
 
940
  .swp_social_panelSide .nc_tweetContainer {
@@ -1031,8 +1034,8 @@ body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard {
1031
  height: 67.5px;
1032
  position: relative;
1033
  }
1034
- .swp_social_panelSide.swp_circles .nc_tweetContainer,
1035
- .swp_social_panelSide.swp_circles .nc_tweetContainer a {
1036
  border-radius:50%!important;
1037
  }
1038
 
@@ -1810,9 +1813,6 @@ div.swp_social_panel .nc_tweetContainer.swp_emphasize {
1810
  display: block !important;
1811
  }
1812
 
1813
- /*In FF, the "Shares" is cutoff */
1814
- @-moz-document url-prefix() { .swp_social_panel .total_shares .swp_label { margin-top: 8px; } }
1815
-
1816
  .swp-content-locator {
1817
  display: none !important;
1818
  margin: 0 !important;
201
  }
202
 
203
  .swp_social_panel .total_shares {
204
+ background: transparent !important;;
205
+ border: none !important;
206
  -webkit-border-radius: 2px;
207
  border-radius: 2px;
208
  color: white;
218
  flex: none!important;
219
  }
220
 
221
+ .swp_social_panel .total_sharesalt {
222
+ background: transparent !important;
223
+ border: none !important;
224
+ }
225
+
226
  .swp_social_panel div.total_shares.total_sharesalt,
227
  .swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)) {
228
  background: transparent!important;
886
  /*top: 200px;*/
887
  -webkit-transition: all 0.2s linear;
888
  transition: all 0.2s linear;
889
+
890
+ z-index: 9998;
891
  margin: 10px 5px !important;
892
  padding: 0;
893
 
906
  transition: all 0.2s linear;
907
  }
908
 
 
 
 
 
909
  .swp_social_panelSide.fade.swp_float_left {
910
  left: 5px;
911
  }
915
  }
916
 
917
  .swp_social_panelSide[class*=swp_side] {
918
+ height: auto;
919
  display: flex;
920
  position: fixed;
921
  padding: 30px 0;
922
+ }
923
+
924
+ .swp_social_panelSide.fade {
925
+ display: none;
926
  }
927
 
928
  .swp_social_panelSide.swp_float_right {
930
  }
931
 
932
  .swp_social_panelSide.swp_side_top {
933
+ top: 15px;
934
  }
935
 
936
  .swp_social_panelSide.swp_side_bottom {
937
+ bottom: 15px;
938
  }
939
 
940
  .swp_social_panelSide.swp_side_center {
 
941
  }
942
 
943
  .swp_social_panelSide .nc_tweetContainer {
1034
  height: 67.5px;
1035
  position: relative;
1036
  }
1037
+ .swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares),
1038
+ .swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) a {
1039
  border-radius:50%!important;
1040
  }
1041
 
1813
  display: block !important;
1814
  }
1815
 
 
 
 
1816
  .swp-content-locator {
1817
  display: none !important;
1818
  margin: 0 !important;
css/style.min.css CHANGED
@@ -1 +1 @@
1
- .swp_social_panel{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}.swp_social_panel:not(.nc_floater):not(.swp_social_panelSide){width:100%!important}.nc_wrapper .swp_social_panel{margin-bottom:10px!important;margin-top:10px!important}div.swp_social_panel .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}div.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.swp_social_panel .nc_tweetContainer a.nc_tweet,.swp_social_panel .total_shares .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}.swp_social_panel:not(.nc_floater):not(.swp_social_panelSide).swp_shift{padding:0 10px}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:nth-child(1){margin-left:0}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:nth-last-child(1){margin-right:0}.swp_social_panel 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}.swp_social_panel .total_shares .swp_count,span.swp_share{line-height:30px}.swp_social_panel a .swp_count.swp_hide{margin:0 auto}.swp_social_panel span:before{content:initial!important}.swp_social_panel span.swp_count{font-size:14px}.swp_social_panel span.iconFiller{font-size:18px;margin:0 auto}.swp_social_panel.notMobile .nc_tweetContainer:nth-child(1){margin-left:0}.swp_social_panel:not(.swp_social_panelSide){-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.swp_social_panel:not(.swp_social_panelSide) div.total_shares.total_sharesalt:nth-child(1){margin-left:0;margin-right:15px;padding-left:0}.swp_social_panel:not(.swp_social_panelSide) div.total_shares.total_sharesalt: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}.swp_social_panelSide span.swp_share{margin:0}.swp_social_panel .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}.swp_social_panel .iconFiller{width:30px}span.spaceManWilly{display:block;width:120px}.swp_social_panel .total_shares{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}.swp_social_panel div.total_shares.total_sharesalt,.swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)){background:0 0!important;border:none;color:#474b4d;margin-left:0!important}div.swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)){background:0 0;color:#474b4d;margin-left:10px}.swp_social_panel .total_shares.total_sharesalt .swp_label{color:#474b4d;font-size:10px;letter-spacing:0;min-width:40px;vertical-align:middle}.swp_social_panel .total_shares .swp_label{font-size:10px;vertical-align:middle}.swp_social_panel .total_shares.total_sharesalt .swp_count{color:#474b4d;font-size:24px}.swp_social_panel.swp_customFull:hover div.total_shares,.swp_social_panel.swp_fade .total_shares,.swp_social_panel.swp_full_color .total_shares,.swp_social_panel:hover .total_shares{background:#e08a0f}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer.total_shares.total_sharesalt:before{content:"o";display:inline-block;font-family:sw-icon-font;margin-top:7px;vertical-align:top}.swp_social_panel:not(.swp_social_panelSide) .total_shares.total_sharesalt .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}.swp_social_panelSide span.swp_label{margin-top:0}.swp_social_panel.swp_leaf .nc_tweetContainer{-webkit-border-radius:15px 0!important;border-radius:15px 0!important;border-width:1px}.swp_social_panel.swp_pill .nc_tweetContainer{-webkit-border-radius:50px;border-radius:50px;border-width:1px}.swp_social_panel.swp_shift .nc_tweetContainer:not(.total_shares){border-width:1px;-moz-transform:skew(-25deg);-o-transform:skew(-25deg);-webkit-transform:skew(-25deg)}.swp_social_panel.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}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_google_plus:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_google_plus:hover{border:1px solid #df4b37}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_twitter:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_twitter:hover{border:1px solid #429cd6}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_facebook:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_facebook:hover{border:1px solid #3a589e}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_pinterest:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_pinterest:hover{border:1px solid #cd2029}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_linkedin:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_linkedin:hover{border:1px solid #0d77b7}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_tumblr:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_tumblr:hover{border:1px solid #39475d}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_stumbleupon:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_stumbleupon:hover{border:1px solid #ef5025}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_yummly:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_yummly:hover{border:1px solid #e26426}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_reddit:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_reddit:hover{border:1px solid #f04b23}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_email,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_email:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_email:hover{border:1px solid #6bcce9}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_whatsapp:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_whatsapp:hover{border:1px solid #71c169}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_pocket:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_pocket:hover{border:1px solid #ef4056}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_buffer:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_buffer:hover{border:1px solid #323b43}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_hacker_news:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_hacker_news:hover{border:1px solid #d85623}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_flipboard:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_flipboard:hover{border:1px solid #bf2626}.swp_social_panel.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_other_full_color:hover .swp_google_plus,html body .swp_social_panel.swp_individual_full_color .swp_google_plus:hover{background:#df4b37;border:1px solid #c44133}.swp_social_panel.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_other_full_color:hover .swp_twitter,html body .swp_social_panel.swp_individual_full_color .swp_twitter:hover{background:#429cd6;border:1px solid #3c87b2}.swp_social_panel.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_other_full_color:hover .swp_facebook,html body .swp_social_panel.swp_individual_full_color .swp_facebook:hover{background:#3a589e;border:1px solid #2e4675}.swp_social_panel.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_other_full_color:hover .swp_pinterest,html body .swp_social_panel.swp_individual_full_color .swp_pinterest:hover{background:#cd2029;border:1px solid #aa1b29}.swp_social_panel.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_other_full_color:hover .swp_linkedin,html body .swp_social_panel.swp_individual_full_color .swp_linkedin:hover{background:#0d77b7;border:1px solid #0c6591}.swp_social_panel.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_other_full_color:hover .swp_tumblr,html body .swp_social_panel.swp_individual_full_color .swp_tumblr:hover{background:#39475d;border:1px solid #27313f}.swp_social_panel.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_other_full_color:hover .swp_stumbleupon,html body .swp_social_panel.swp_individual_full_color .swp_stumbleupon:hover{background:#ef5025;border:1px solid #d34427}.swp_social_panel.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_other_full_color:hover .swp_yummly,html body .swp_social_panel.swp_individual_full_color .swp_yummly:hover{background:#e26426;border:1px solid #b65027}.swp_social_panel.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_other_full_color:hover .swp_reddit,html body .swp_social_panel.swp_individual_full_color .swp_reddit:hover{background:#f04b23;border:1px solid #d33f27}.swp_social_panel.swp_default_full_color .swp_email,body .swp_social_panel.swp_other_full_color:hover .swp_email,html body .swp_social_panel.swp_individual_full_color .swp_email:hover{background:#6bcce9;border:1px solid #61bace}.swp_social_panel.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_other_full_color:hover .swp_whatsapp,html body .swp_social_panel.swp_individual_full_color .swp_whatsapp:hover{background:#71c169;border:1px solid #28b04b}.swp_social_panel.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_other_full_color:hover .swp_pocket,html body .swp_social_panel.swp_individual_full_color .swp_pocket:hover{background:#ef4056;border:1px solid #ce3d55}.swp_social_panel.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_other_full_color:hover .swp_buffer,html body .swp_social_panel.swp_individual_full_color .swp_buffer:hover{background:#323b43;border:1px solid #000}.swp_social_panel.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_other_full_color:hover .swp_hacker_news,html body .swp_social_panel.swp_individual_full_color .swp_hacker_news:hover{background:#f16522;border:1px solid #d85623}.swp_social_panel.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_other_full_color:hover .swp_flipboard,html body .swp_social_panel.swp_individual_full_color .swp_flipboard:hover{background:#e02828;border:1px solid #bf2626}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_google_plus,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_google_plus:hover{border-bottom:3px solid #c44133}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_twitter,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_twitter:hover{border-bottom:3px solid #5595bc}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_facebook,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_facebook:hover{border-bottom:3px solid #2e4675}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_pinterest,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_pinterest:hover{border-bottom:3px solid #aa1b29}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_linkedin,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_linkedin:hover{border-bottom:3px solid #0c6591}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_tumblr,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_tumblr:hover{border-bottom:3px solid #27313f}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_stumbleupon,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_stumbleupon:hover{border-bottom:3px solid #d34427}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_yummly,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_yummly:hover{border-bottom:3px solid #b65027}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_reddit,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_reddit:hover{border-bottom:3px solid #d33f27}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_email,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_email,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_email:hover{border-bottom:3px solid #61bace}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_whatsapp,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_whatsapp:hover{border-bottom:3px solid #28b04b}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_pocket,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_pocket:hover{border-bottom:3px solid #ce3d55}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_buffer,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_buffer:hover{border-bottom:3px solid #000}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_hacker_news,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_hacker_news:hover{border-bottom:3px solid #d85623}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_flipboard,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_flipboard:hover{border-bottom:3px solid #bf2626}.swp_social_panel.swp_default_light_gray .nc_tweetContainer,body .swp_social_panel.swp_other_light_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_light_gray .nc_tweetContainer:hover{background-color:#ccc;border:1px solid #ccc}.swp_social_panel.swp_three_dee.swp_default_light_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_light_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_light_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #999}.swp_social_panel.swp_default_medium_gray .nc_tweetContainer,body .swp_social_panel.swp_other_medium_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_medium_gray .nc_tweetContainer:hover{background-color:#999;border:1px solid #999}.swp_social_panel.swp_three_dee.swp_default_medium_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_medium_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_medium_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #444}.swp_social_panel.swp_default_dark_gray .nc_tweetContainer,body .swp_social_panel.swp_other_dark_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_dark_gray .nc_tweetContainer:hover{background-color:#444;border:1px solid #444}.swp_social_panel.swp_three_dee.swp_default_dark_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_dark_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_dark_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #222}.swp_social_panel.swp_default_light_gray_outlines a,body .swp_social_panel.swp_other_light_gray_outlines:hover a,html body .swp_social_panel.swp_individual_light_gray_outlines a:hover{color:#ccc}.swp_social_panel.swp_default_light_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_light_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_light_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #ccc}.swp_social_panel.swp_default_medium_gray_outlines a,body .swp_social_panel.swp_other_medium_gray_outlines:hover a,html body .swp_social_panel.swp_individual_medium_gray_outlines a:hover{color:#999}.swp_social_panel.swp_default_medium_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_medium_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_medium_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #999}.swp_social_panel.swp_default_dark_gray_outlines a,body .swp_social_panel.swp_other_dark_gray_outlines:hover a,html body .swp_social_panel.swp_individual_dark_gray_outlines a:hover{color:#444}.swp_social_panel.swp_default_dark_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_dark_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_dark_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #444}.swp_social_panel.swp_default_color_outlines .swp_google_plus a,body .swp_social_panel.swp_other_color_outlines:hover .swp_google_plus a,html body .swp_social_panel.swp_individual_color_outlines .swp_google_plus a:hover{color:#df4b37}.swp_social_panel.swp_default_color_outlines .swp_facebook a,body .swp_social_panel.swp_other_color_outlines:hover .swp_facebook a,html body .swp_social_panel.swp_individual_color_outlines .swp_facebook a:hover{color:#3a589e}.swp_social_panel.swp_default_color_outlines .swp_pinterest a,body .swp_social_panel.swp_other_color_outlines:hover .swp_pinterest a,html body .swp_social_panel.swp_individual_color_outlines .swp_pinterest a:hover{color:#cd2029}.swp_social_panel.swp_default_color_outlines .swp_linkedin a,body .swp_social_panel.swp_other_color_outlines:hover .swp_linkedin a,html body .swp_social_panel.swp_individual_color_outlines .swp_linkedin a:hover{color:#0d77b7}.swp_social_panel.swp_default_color_outlines .swp_tumblr a,body .swp_social_panel.swp_other_color_outlines:hover .swp_tumblr a,html body .swp_social_panel.swp_individual_color_outlines .swp_tumblr a:hover{color:#39475d}.swp_social_panel.swp_default_color_outlines .swp_stumbleupon a,body .swp_social_panel.swp_other_color_outlines:hover .swp_stumbleupon a,html body .swp_social_panel.swp_individual_color_outlines .swp_stumbleupon a:hover{color:#ef5025}.swp_social_panel.swp_default_color_outlines .swp_yummly a,body .swp_social_panel.swp_other_color_outlines:hover .swp_yummly a,html body .swp_social_panel.swp_individual_color_outlines .swp_yummly a:hover{color:#e26426}.swp_social_panel.swp_default_color_outlines .swp_whatsapp a,body .swp_social_panel.swp_other_color_outlines:hover .swp_whatsapp a,html body .swp_social_panel.swp_individual_color_outlines .swp_whatsapp a:hover{color:#71c169}.swp_social_panel.swp_default_color_outlines .swp_pocket a,body .swp_social_panel.swp_other_color_outlines:hover .swp_pocket a,html body .swp_social_panel.swp_individual_color_outlines .swp_pocket a:hover{color:#ef4056}.swp_social_panel.swp_default_color_outlines .swp_reddit a,body .swp_social_panel.swp_other_color_outlines:hover .swp_reddit a,html body .swp_social_panel.swp_individual_color_outlines .swp_reddit a:hover{color:#f04b23}.swp_social_panel.swp_default_color_outlines .swp_email a,body .swp_social_panel.swp_other_color_outlines:hover .swp_email a,html body .swp_social_panel.swp_individual_color_outlines .swp_email a:hover{color:#6bcce9}.swp_social_panel.swp_default_color_outlines .swp_buffer a,body .swp_social_panel.swp_other_color_outlines:hover .swp_buffer a,html body .swp_social_panel.swp_individual_color_outlines .swp_buffer a:hover{color:#323b43}.swp_social_panel.swp_default_color_outlines .swp_hacker_news a,body .swp_social_panel.swp_other_color_outlines:hover .swp_hacker_news a,html body .swp_social_panel.swp_individual_color_outlines .swp_hacker_news a:hover{color:#f16522}.swp_social_panel.swp_default_color_outlines .swp_flipboard a,body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard a,html body .swp_social_panel.swp_individual_color_outlines .swp_flipboard a:hover{color:#e02828}.swp_social_panel.swp_default_color_outlines .swp_google_plus,body .swp_social_panel.swp_other_color_outlines:hover .swp_google_plus,html body .swp_social_panel.swp_individual_color_outlines .swp_google_plus:hover{background:0 0;border:1px solid #df4b37}.swp_social_panel.swp_default_color_outlines .swp_twitter,body .swp_social_panel.swp_other_color_outlines:hover .swp_twitter,html body .swp_social_panel.swp_individual_color_outlines .swp_twitter:hover{background:0 0;border:1px solid #429cd6}.swp_social_panel.swp_default_color_outlines .swp_facebook,body .swp_social_panel.swp_other_color_outlines:hover .swp_facebook,html body .swp_social_panel.swp_individual_color_outlines .swp_facebook:hover{background:0 0;border:1px solid #3a589e}.swp_social_panel.swp_default_color_outlines .swp_pinterest,body .swp_social_panel.swp_other_color_outlines:hover .swp_pinterest,html body .swp_social_panel.swp_individual_color_outlines .swp_pinterest:hover{background:0 0;border:1px solid #cd2029}.swp_social_panel.swp_default_color_outlines .swp_linkedin,body .swp_social_panel.swp_other_color_outlines:hover .swp_linkedin,html body .swp_social_panel.swp_individual_color_outlines .swp_linkedin:hover{background:0 0;border:1px solid #0d77b7}.swp_social_panel.swp_default_color_outlines .swp_tumblr,body .swp_social_panel.swp_other_color_outlines:hover .swp_tumblr,html body .swp_social_panel.swp_individual_color_outlines .swp_tumblr:hover{background:0 0;border:1px solid #39475d}.swp_social_panel.swp_default_color_outlines .swp_stumbleupon,body .swp_social_panel.swp_other_color_outlines:hover .swp_stumbleupon,html body .swp_social_panel.swp_individual_color_outlines .swp_stumbleupon:hover{background:0 0;border:1px solid #ef5025}.swp_social_panel.swp_default_color_outlines .swp_yummly,body .swp_social_panel.swp_other_color_outlines:hover .swp_yummly,html body .swp_social_panel.swp_individual_color_outlines .swp_yummly:hover{background:0 0;border:1px solid #e26426}.swp_social_panel.swp_default_color_outlines .swp_whatsapp,body .swp_social_panel.swp_other_color_outlines:hover .swp_whatsapp,html body .swp_social_panel.swp_individual_color_outlines .swp_whatsapp:hover{background:0 0;border:1px solid #71c169}.swp_social_panel.swp_default_color_outlines .swp_reddit,body .swp_social_panel.swp_other_color_outlines:hover .swp_reddit,html body .swp_social_panel.swp_individual_color_outlines .swp_reddit:hover{background:0 0;border:1px solid #f04b23}.swp_social_panel.swp_default_color_outlines .swp_email,body .swp_social_panel.swp_other_color_outlines:hover .swp_email,html body .swp_social_panel.swp_individual_color_outlines .swp_email:hover{background:0 0;border:1px solid #6bcce9}.swp_social_panel.swp_default_color_outlines .swp_pocket,body .swp_social_panel.swp_other_color_outlines:hover .swp_pocket,html body .swp_social_panel.swp_individual_color_outlines .swp_pocket:hover{background:0 0;border:1px solid #ef4056}.swp_social_panel.swp_default_color_outlines .swp_buffer,body .swp_social_panel.swp_other_color_outlines:hover .swp_buffer,html body .swp_social_panel.swp_individual_color_outlines .swp_buffer:hover{background:0 0;border:1px solid #323b43}.swp_social_panel.swp_default_color_outlines .swp_hacker_news,body .swp_social_panel.swp_other_color_outlines:hover .swp_hacker_news,html body .swp_social_panel.swp_individual_color_outlines .swp_hacker_news:hover{background:0 0;border:1px solid #f16522}.swp_social_panel.swp_default_color_outlines .swp_flipboard,body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard,html body .swp_social_panel.swp_individual_color_outlines .swp_flipboard:hover{background:0 0;border:1px solid #bf2626}.swp_social_panelSide{flex-direction:column;height:auto;overflow:visible;-webkit-transition:all .2s linear;transition:all .2s linear;width:100px!important;z-index:9999999;margin:10px 5px!important;padding:0;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column}.swp_social_panelSide.fade,.swp_social_panelSide.slide{position:fixed;-webkit-transition:all .2s linear;transition:all .2s linear}.swp_social_panelSide.fade{display:none}.swp_social_panelSide.fade.swp_float_left{left:5px}.swp_social_panelSide.fade.swp_float_right{right:5px}.swp_social_panelSide[class*=swp_side]{height:100vh;display:flex;position:fixed;padding:30px 0;top:0}.swp_social_panelSide.swp_float_right{align-content:flex-end}.swp_social_panelSide.swp_side_top{justify-content:flex-start}.swp_social_panelSide.swp_side_bottom{justify-content:flex-end}.swp_social_panelSide.swp_side_center{justify-content:center}.swp_social_panelSide .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}.swp_social_panelSide .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}.swp_social_panelSide .nc_tweetContainer .swp_count{display:inline-block;font-size:14px;height:32px;line-height:16px;margin:0;overflow:hidden;padding:0;text-align:right;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:0}.swp_social_panelSide .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}.swp_social_panelSide .nc_tweetContainer .sw,.swp_social_panelSide .nc_tweetContainer .swp_share{float:left;line-height:34px}.swp_social_panelSide.swp_default .nc_tweetContainer .sw{line-height:32px}.swp_social_panelSide.swp_default .nc_tweetContainer .swp_share{line-height:30px}.swp_social_panelSide .nc_tweetContainer .swp_share{font-size:13px}.swp_social_panelSide .nc_tweetContainer:hover,.swp_social_panelSide .nc_tweetContainer:hover .iconFiller,.swp_social_panelSide .nc_tweetContainer:hover .swp_count{-webkit-transition:all .1s linear;transition:all .1s linear}.swp_social_panelSide.swp_boxed .nc_tweetContainer,.swp_social_panelSide.swp_circles .nc_tweetContainer{margin-bottom:5px;width:67.5px!important}.swp_social_panelSide.swp_boxed .nc_tweetContainer,.swp_social_panelSide.swp_boxed .nc_tweetContainer a,.swp_social_panelSide.swp_circles .nc_tweetContainer,.swp_social_panelSide.swp_circles .nc_tweetContainer a{width:67.5px;height:67.5px;position:relative}.swp_social_panelSide.swp_circles .nc_tweetContainer,.swp_social_panelSide.swp_circles .nc_tweetContainer a{border-radius:50%!important}.swp_social_panelSide.swp_boxed .nc_tweetContainer i.sw,.swp_social_panelSide.swp_circles .nc_tweetContainer i.sw{font-size:27px;height:40px;margin:0;padding-top:10px;text-align:center;width:100%}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_share,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) span.swp_share{height:35px;opacity:0;position:absolute;bottom:0;left:0;text-align:center;width:67.5px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_count,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) 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%}.swp_social_panelSide.swp_boxed .nc_tweetContainer span.swp_hide .iconFiller,.swp_social_panelSide.swp_boxed .nc_tweetContainer span.swp_hide .spaceManWilly,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_count.swp_hide,.swp_social_panelSide.swp_circles .nc_tweetContainer span.swp_hide .iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer span.swp_hide .spaceManWilly,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) span.swp_count.swp_hide{height:67.5px;opacity:1}.swp_social_panelSide.swp_boxed .nc_tweetContainer span.iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer span.iconFiller{height:40px;width:67.5px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover span.swp_count:not(.swp_hide),.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):hover span.swp_count:not(.swp_hide){opacity:0}.swp_social_panelSide.swp_boxed .total_shares,.swp_social_panelSide.swp_circles .total_shares{padding:0;width:67.5px!important}.swp_social_panelSide .nc_tweetContainer:not(.total_shares){line-height:34px}.swp_social_panelSide:not(.swp_boxed):not(.swp_circles) .nc_tweetContainer:not(.total_shares) .iconFiller{margin-left:2px;width:30px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count{padding:0 8px;width:48px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count.swp_hide{padding:0;width:100%}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count.swp_hide .iconFiller{display:block;float:none;margin:0 auto}.swp_social_panelSide:not(.swp_boxed):not(.swp_circles) .nc_tweetContainer:not(.total_shares):hover{width:150px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide .nc_tweetContainer[data-network]:not(.total_shares):hover .iconFiller{width:90px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover .iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):hover .iconFiller{width:100%}.swp_social_panelSide .nc_tweetContainer.total_shares{background:rgba(0,0,0,0);border:0!important;font-weight:800;height:45px;margin:0;padding:0;text-align:center;width:90px;order:-100}.swp_social_panelSide .nc_tweetContainer.total_shares .swp_count{color:#444;display:block;font-family:Lato,sans-serif;height:28px;text-align:center;width:100%}.swp_social_panelSide .nc_tweetContainer.total_shares .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.bottom{bottom:0;left:0}.nc_wrapper.top{top:0;left:0}.nc_floater{margin:10px 0;position:relative;left:304px;width:740px}.swp_social_panelSide.hideCounts a{text-align:center}.swp_social_panelSide.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;text-transform:none!important;-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}i.swp_google_plus_icon:before{content:"h"}i.swp_pinterest_icon:before{content:"b"}i.swp_twitter_icon:before{content:"s"}i.swp_facebook_icon:before{content:"j"}i.swp_linkedin_icon:before{content:"f"}i.swp_tumblr_icon:before{content:"r"}i.swp_stumbleupon_icon:before{content:"q"}i.swp_reddit_icon:before{content:"a"}i.swp_email_icon:before{content:"k"}i.swp_yummly_icon:before{content:"x"}i.swp_whatsapp_icon:before{content:"y"}i.swp_pocket_icon:before{content:"B"}i.swp_buffer_icon:before{content:"z"}i.swp_hacker_news_icon:before{content:"D"}i.swp_flipboard_icon: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.swp_twitter_icon{float:right;font-size:21px;margin-left:15px!important;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.swp_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}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 20px;position:absolute;text-decoration:none;-webkit-transition:opacity .5s;transition:opacity .5s;z-index:200}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) .swp_hide span.swp_share,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover span.swp_share:not(.swp_hide),.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) .swp_hide span.swp_share,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):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_tweetContainer.total_shares:nth-last-child(1),.swp_social_panel.notMobile .nc_tweetContainer:nth-last-child(1){margin-right:0}.swp_social_panel.swp_default_dark_gray a,.swp_social_panel.swp_default_full_color a,.swp_social_panel.swp_default_light_gray a,.swp_social_panel.swp_default_medium_gray a,body .swp_social_panel.swp_other_dark_gray:hover a,body .swp_social_panel.swp_other_full_color:hover a,body .swp_social_panel.swp_other_light_gray:hover a,body .swp_social_panel.swp_other_medium_gray:hover a,html body .swp_social_panel.swp_individual_dark_gray a:hover,html body .swp_social_panel.swp_individual_full_color .nc_tweetContainer:hover a,html body .swp_social_panel.swp_individual_light_gray .nc_tweetContainer:hover a,html body .swp_social_panel.swp_individual_medium_gray a:hover{color:#fff}.swp_social_panel.swp_default_color_outlines .swp_twitter a,.wp-editor-container .swp_twitter:before,a.style1 .sw-click-to-tweet i.swp_twitter,a.style2 .sw-click-to-tweet i.swp_twitter,body .swp_social_panel.swp_other_color_outlines:hover .swp_twitter a,html body .swp_social_panel.swp_individual_color_outlines .swp_twitter a:hover{color:#429cd6}.sw-content-locator,.swp_social_panel.mobile .iconFiller~.swp_count{display:none}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.swp_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.swp_twitter,a.style5 .sw-click-to-tweet i.swp_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.swp_twitter{color:#2a2d34;text-decoration:none}.scale-70{-ms-transform:scale(.7);-webkit-transform:scale(.7);transform:scale(.7)}.swp_social_panel:not(.nc_floater).scale-70.scale-full_width{width:142.8571428571429%!important}.scale-80{-ms-transform:scale(.8);-webkit-transform:scale(.8);transform:scale(.8)}.swp_social_panel:not(.nc_floater).scale-80.scale-full_width{width:125%!important}.scale-90{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.swp_social_panel:not(.nc_floater).scale-90.scale-full_width{width:111.111111111111%!important}.scale-110{-ms-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1)}.swp_social_panel:not(.nc_floater).scale-110.scale-full_width{width:90.90909090909091%!important}.scale-120{-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.swp_social_panel:not(.nc_floater).scale-120.scale-full_width{width:83.33333333333333%!important}.scale-130{-ms-transform:scale(1.3);-webkit-transform:scale(1.3);transform:scale(1.3)}.swp_social_panel:not(.nc_floater).scale-130.scale-full_width{width:76.92307692307692%!important}.scale-140{-ms-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}.swp_social_panel:not(.nc_floater).scale-140.scale-full_width{width:71.42857142857143%!important}.nc_floater.scale-center,.nc_floater.scale-right,.scale-full_width,.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.swp_social_panel .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}.fl-module-content .uabb-blog-posts .uabb-post-thumbnail .sw-pinit.lazyloaded{display:block!important}@-moz-document url-prefix(){.swp_social_panel .total_shares .swp_label{margin-top:8px}}.swp-content-locator{display:none!important;margin:0!important}.float-position-top-left{transform-origin:top left}.float-position-center-left{transform-origin:center left}.float-position-bottom-left{transform-origin:bottom left}.float-position-top-right{transform-origin:top right}.float-position-center-right{transform-origin:center right}.float-position-bottom-right{transform-origin:bottom right}div[class*=custom_color][class^=_wrapper]{display:none}
1
+ .swp_social_panel{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}.swp_social_panel:not(.nc_floater):not(.swp_social_panelSide){width:100%!important}.nc_wrapper .swp_social_panel{margin-bottom:10px!important;margin-top:10px!important}div.swp_social_panel .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}div.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.swp_social_panel .nc_tweetContainer a.nc_tweet,.swp_social_panel .total_shares .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}.swp_social_panel:not(.nc_floater):not(.swp_social_panelSide).swp_shift{padding:0 10px}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:nth-child(1){margin-left:0}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:nth-last-child(1){margin-right:0}.swp_social_panel 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}.swp_social_panel .total_shares .swp_count,span.swp_share{line-height:30px}.swp_social_panel a .swp_count.swp_hide{margin:0 auto}.swp_social_panel span:before{content:initial!important}.swp_social_panel span.swp_count{font-size:14px}.swp_social_panel span.iconFiller{font-size:18px;margin:0 auto}.swp_social_panel.notMobile .nc_tweetContainer:nth-child(1){margin-left:0}.swp_social_panel:not(.swp_social_panelSide){-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.swp_social_panel:not(.swp_social_panelSide) div.total_shares.total_sharesalt:nth-child(1){margin-left:0;margin-right:15px;padding-left:0}.swp_social_panel:not(.swp_social_panelSide) div.total_shares.total_sharesalt: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}.swp_social_panelSide span.swp_share{margin:0}.swp_social_panel .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}.swp_social_panel .iconFiller{width:30px}span.spaceManWilly{display:block;width:120px}.swp_social_panel .total_shares{background:0 0!important;border:none!important;-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}.swp_social_panel .total_sharesalt{background:0 0!important;border:none!important}.swp_social_panel div.total_shares.total_sharesalt,.swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)){background:0 0!important;border:none;color:#474b4d;margin-left:0!important}div.swp_social_panel:hover div.total_shares.total_sharesalt:not(:nth-child(1)){background:0 0;color:#474b4d;margin-left:10px}.swp_social_panel .total_shares.total_sharesalt .swp_label{color:#474b4d;font-size:10px;letter-spacing:0;min-width:40px;vertical-align:middle}.swp_social_panel .total_shares .swp_label{font-size:10px;vertical-align:middle}.swp_social_panel .total_shares.total_sharesalt .swp_count{color:#474b4d;font-size:24px}.swp_social_panel.swp_customFull:hover div.total_shares,.swp_social_panel.swp_fade .total_shares,.swp_social_panel.swp_full_color .total_shares,.swp_social_panel:hover .total_shares{background:#e08a0f}.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer.total_shares.total_sharesalt:before{content:"o";display:inline-block;font-family:sw-icon-font;margin-top:7px;vertical-align:top}.swp_social_panel:not(.swp_social_panelSide) .total_shares.total_sharesalt .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}.swp_social_panelSide span.swp_label{margin-top:0}.swp_social_panel.swp_leaf .nc_tweetContainer{-webkit-border-radius:15px 0!important;border-radius:15px 0!important;border-width:1px}.swp_social_panel.swp_pill .nc_tweetContainer{-webkit-border-radius:50px;border-radius:50px;border-width:1px}.swp_social_panel.swp_shift .nc_tweetContainer:not(.total_shares){border-width:1px;-moz-transform:skew(-25deg);-o-transform:skew(-25deg);-webkit-transform:skew(-25deg)}.swp_social_panel.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}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_google_plus:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_google_plus:hover{border:1px solid #df4b37}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_twitter:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_twitter:hover{border:1px solid #429cd6}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_facebook:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_facebook:hover{border:1px solid #3a589e}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_pinterest:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_pinterest:hover{border:1px solid #cd2029}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_linkedin:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_linkedin:hover{border:1px solid #0d77b7}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_tumblr:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_tumblr:hover{border:1px solid #39475d}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_stumbleupon:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_stumbleupon:hover{border:1px solid #ef5025}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_yummly:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_yummly:hover{border:1px solid #e26426}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_reddit:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_reddit:hover{border:1px solid #f04b23}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_email,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_email:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_email:hover{border:1px solid #6bcce9}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_whatsapp:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_whatsapp:hover{border:1px solid #71c169}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_pocket:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_pocket:hover{border:1px solid #ef4056}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_buffer:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_buffer:hover{border:1px solid #323b43}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_hacker_news:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_hacker_news:hover{border:1px solid #d85623}.swp_social_panel.swp_flat_fresh.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_flat_fresh.swp_other_full_color:hover .swp_flipboard:not(:hover),html body .swp_social_panel.swp_flat_fresh.swp_individual_full_color .swp_flipboard:hover{border:1px solid #bf2626}.swp_social_panel.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_other_full_color:hover .swp_google_plus,html body .swp_social_panel.swp_individual_full_color .swp_google_plus:hover{background:#df4b37;border:1px solid #c44133}.swp_social_panel.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_other_full_color:hover .swp_twitter,html body .swp_social_panel.swp_individual_full_color .swp_twitter:hover{background:#429cd6;border:1px solid #3c87b2}.swp_social_panel.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_other_full_color:hover .swp_facebook,html body .swp_social_panel.swp_individual_full_color .swp_facebook:hover{background:#3a589e;border:1px solid #2e4675}.swp_social_panel.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_other_full_color:hover .swp_pinterest,html body .swp_social_panel.swp_individual_full_color .swp_pinterest:hover{background:#cd2029;border:1px solid #aa1b29}.swp_social_panel.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_other_full_color:hover .swp_linkedin,html body .swp_social_panel.swp_individual_full_color .swp_linkedin:hover{background:#0d77b7;border:1px solid #0c6591}.swp_social_panel.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_other_full_color:hover .swp_tumblr,html body .swp_social_panel.swp_individual_full_color .swp_tumblr:hover{background:#39475d;border:1px solid #27313f}.swp_social_panel.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_other_full_color:hover .swp_stumbleupon,html body .swp_social_panel.swp_individual_full_color .swp_stumbleupon:hover{background:#ef5025;border:1px solid #d34427}.swp_social_panel.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_other_full_color:hover .swp_yummly,html body .swp_social_panel.swp_individual_full_color .swp_yummly:hover{background:#e26426;border:1px solid #b65027}.swp_social_panel.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_other_full_color:hover .swp_reddit,html body .swp_social_panel.swp_individual_full_color .swp_reddit:hover{background:#f04b23;border:1px solid #d33f27}.swp_social_panel.swp_default_full_color .swp_email,body .swp_social_panel.swp_other_full_color:hover .swp_email,html body .swp_social_panel.swp_individual_full_color .swp_email:hover{background:#6bcce9;border:1px solid #61bace}.swp_social_panel.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_other_full_color:hover .swp_whatsapp,html body .swp_social_panel.swp_individual_full_color .swp_whatsapp:hover{background:#71c169;border:1px solid #28b04b}.swp_social_panel.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_other_full_color:hover .swp_pocket,html body .swp_social_panel.swp_individual_full_color .swp_pocket:hover{background:#ef4056;border:1px solid #ce3d55}.swp_social_panel.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_other_full_color:hover .swp_buffer,html body .swp_social_panel.swp_individual_full_color .swp_buffer:hover{background:#323b43;border:1px solid #000}.swp_social_panel.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_other_full_color:hover .swp_hacker_news,html body .swp_social_panel.swp_individual_full_color .swp_hacker_news:hover{background:#f16522;border:1px solid #d85623}.swp_social_panel.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_other_full_color:hover .swp_flipboard,html body .swp_social_panel.swp_individual_full_color .swp_flipboard:hover{background:#e02828;border:1px solid #bf2626}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_google_plus,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_google_plus,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_google_plus:hover{border-bottom:3px solid #c44133}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_twitter,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_twitter,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_twitter:hover{border-bottom:3px solid #5595bc}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_facebook,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_facebook,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_facebook:hover{border-bottom:3px solid #2e4675}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_pinterest,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_pinterest,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_pinterest:hover{border-bottom:3px solid #aa1b29}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_linkedin,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_linkedin,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_linkedin:hover{border-bottom:3px solid #0c6591}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_tumblr,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_tumblr,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_tumblr:hover{border-bottom:3px solid #27313f}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_stumbleupon,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_stumbleupon,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_stumbleupon:hover{border-bottom:3px solid #d34427}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_yummly,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_yummly,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_yummly:hover{border-bottom:3px solid #b65027}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_reddit,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_reddit,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_reddit:hover{border-bottom:3px solid #d33f27}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_email,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_email,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_email:hover{border-bottom:3px solid #61bace}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_whatsapp,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_whatsapp,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_whatsapp:hover{border-bottom:3px solid #28b04b}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_pocket,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_pocket,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_pocket:hover{border-bottom:3px solid #ce3d55}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_buffer,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_buffer,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_buffer:hover{border-bottom:3px solid #000}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_hacker_news,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_hacker_news,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_hacker_news:hover{border-bottom:3px solid #d85623}.swp_social_panel.swp_three_dee.swp_default_full_color .swp_flipboard,body .swp_social_panel.swp_three_dee.swp_other_full_color:hover .swp_flipboard,html body .swp_social_panel.swp_three_dee.swp_individual_full_color .swp_flipboard:hover{border-bottom:3px solid #bf2626}.swp_social_panel.swp_default_light_gray .nc_tweetContainer,body .swp_social_panel.swp_other_light_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_light_gray .nc_tweetContainer:hover{background-color:#ccc;border:1px solid #ccc}.swp_social_panel.swp_three_dee.swp_default_light_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_light_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_light_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #999}.swp_social_panel.swp_default_medium_gray .nc_tweetContainer,body .swp_social_panel.swp_other_medium_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_medium_gray .nc_tweetContainer:hover{background-color:#999;border:1px solid #999}.swp_social_panel.swp_three_dee.swp_default_medium_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_medium_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_medium_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #444}.swp_social_panel.swp_default_dark_gray .nc_tweetContainer,body .swp_social_panel.swp_other_dark_gray:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_dark_gray .nc_tweetContainer:hover{background-color:#444;border:1px solid #444}.swp_social_panel.swp_three_dee.swp_default_dark_gray .nc_tweetContainer:not(.total_sharesalt),body .swp_social_panel.swp_three_dee.swp_other_dark_gray:hover .nc_tweetContainer:not(.total_sharesalt),html body .swp_social_panel.swp_three_dee.swp_individual_dark_gray .nc_tweetContainer:not(.total_sharesalt):hover{border-bottom:3px solid #222}.swp_social_panel.swp_default_light_gray_outlines a,body .swp_social_panel.swp_other_light_gray_outlines:hover a,html body .swp_social_panel.swp_individual_light_gray_outlines a:hover{color:#ccc}.swp_social_panel.swp_default_light_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_light_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_light_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #ccc}.swp_social_panel.swp_default_medium_gray_outlines a,body .swp_social_panel.swp_other_medium_gray_outlines:hover a,html body .swp_social_panel.swp_individual_medium_gray_outlines a:hover{color:#999}.swp_social_panel.swp_default_medium_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_medium_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_medium_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #999}.swp_social_panel.swp_default_dark_gray_outlines a,body .swp_social_panel.swp_other_dark_gray_outlines:hover a,html body .swp_social_panel.swp_individual_dark_gray_outlines a:hover{color:#444}.swp_social_panel.swp_default_dark_gray_outlines .nc_tweetContainer,body .swp_social_panel.swp_other_dark_gray_outlines:hover .nc_tweetContainer,html body .swp_social_panel.swp_individual_dark_gray_outlines .nc_tweetContainer:hover{background:0 0;border:1px solid #444}.swp_social_panel.swp_default_color_outlines .swp_google_plus a,body .swp_social_panel.swp_other_color_outlines:hover .swp_google_plus a,html body .swp_social_panel.swp_individual_color_outlines .swp_google_plus a:hover{color:#df4b37}.swp_social_panel.swp_default_color_outlines .swp_facebook a,body .swp_social_panel.swp_other_color_outlines:hover .swp_facebook a,html body .swp_social_panel.swp_individual_color_outlines .swp_facebook a:hover{color:#3a589e}.swp_social_panel.swp_default_color_outlines .swp_pinterest a,body .swp_social_panel.swp_other_color_outlines:hover .swp_pinterest a,html body .swp_social_panel.swp_individual_color_outlines .swp_pinterest a:hover{color:#cd2029}.swp_social_panel.swp_default_color_outlines .swp_linkedin a,body .swp_social_panel.swp_other_color_outlines:hover .swp_linkedin a,html body .swp_social_panel.swp_individual_color_outlines .swp_linkedin a:hover{color:#0d77b7}.swp_social_panel.swp_default_color_outlines .swp_tumblr a,body .swp_social_panel.swp_other_color_outlines:hover .swp_tumblr a,html body .swp_social_panel.swp_individual_color_outlines .swp_tumblr a:hover{color:#39475d}.swp_social_panel.swp_default_color_outlines .swp_stumbleupon a,body .swp_social_panel.swp_other_color_outlines:hover .swp_stumbleupon a,html body .swp_social_panel.swp_individual_color_outlines .swp_stumbleupon a:hover{color:#ef5025}.swp_social_panel.swp_default_color_outlines .swp_yummly a,body .swp_social_panel.swp_other_color_outlines:hover .swp_yummly a,html body .swp_social_panel.swp_individual_color_outlines .swp_yummly a:hover{color:#e26426}.swp_social_panel.swp_default_color_outlines .swp_whatsapp a,body .swp_social_panel.swp_other_color_outlines:hover .swp_whatsapp a,html body .swp_social_panel.swp_individual_color_outlines .swp_whatsapp a:hover{color:#71c169}.swp_social_panel.swp_default_color_outlines .swp_pocket a,body .swp_social_panel.swp_other_color_outlines:hover .swp_pocket a,html body .swp_social_panel.swp_individual_color_outlines .swp_pocket a:hover{color:#ef4056}.swp_social_panel.swp_default_color_outlines .swp_reddit a,body .swp_social_panel.swp_other_color_outlines:hover .swp_reddit a,html body .swp_social_panel.swp_individual_color_outlines .swp_reddit a:hover{color:#f04b23}.swp_social_panel.swp_default_color_outlines .swp_email a,body .swp_social_panel.swp_other_color_outlines:hover .swp_email a,html body .swp_social_panel.swp_individual_color_outlines .swp_email a:hover{color:#6bcce9}.swp_social_panel.swp_default_color_outlines .swp_buffer a,body .swp_social_panel.swp_other_color_outlines:hover .swp_buffer a,html body .swp_social_panel.swp_individual_color_outlines .swp_buffer a:hover{color:#323b43}.swp_social_panel.swp_default_color_outlines .swp_hacker_news a,body .swp_social_panel.swp_other_color_outlines:hover .swp_hacker_news a,html body .swp_social_panel.swp_individual_color_outlines .swp_hacker_news a:hover{color:#f16522}.swp_social_panel.swp_default_color_outlines .swp_flipboard a,body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard a,html body .swp_social_panel.swp_individual_color_outlines .swp_flipboard a:hover{color:#e02828}.swp_social_panel.swp_default_color_outlines .swp_google_plus,body .swp_social_panel.swp_other_color_outlines:hover .swp_google_plus,html body .swp_social_panel.swp_individual_color_outlines .swp_google_plus:hover{background:0 0;border:1px solid #df4b37}.swp_social_panel.swp_default_color_outlines .swp_twitter,body .swp_social_panel.swp_other_color_outlines:hover .swp_twitter,html body .swp_social_panel.swp_individual_color_outlines .swp_twitter:hover{background:0 0;border:1px solid #429cd6}.swp_social_panel.swp_default_color_outlines .swp_facebook,body .swp_social_panel.swp_other_color_outlines:hover .swp_facebook,html body .swp_social_panel.swp_individual_color_outlines .swp_facebook:hover{background:0 0;border:1px solid #3a589e}.swp_social_panel.swp_default_color_outlines .swp_pinterest,body .swp_social_panel.swp_other_color_outlines:hover .swp_pinterest,html body .swp_social_panel.swp_individual_color_outlines .swp_pinterest:hover{background:0 0;border:1px solid #cd2029}.swp_social_panel.swp_default_color_outlines .swp_linkedin,body .swp_social_panel.swp_other_color_outlines:hover .swp_linkedin,html body .swp_social_panel.swp_individual_color_outlines .swp_linkedin:hover{background:0 0;border:1px solid #0d77b7}.swp_social_panel.swp_default_color_outlines .swp_tumblr,body .swp_social_panel.swp_other_color_outlines:hover .swp_tumblr,html body .swp_social_panel.swp_individual_color_outlines .swp_tumblr:hover{background:0 0;border:1px solid #39475d}.swp_social_panel.swp_default_color_outlines .swp_stumbleupon,body .swp_social_panel.swp_other_color_outlines:hover .swp_stumbleupon,html body .swp_social_panel.swp_individual_color_outlines .swp_stumbleupon:hover{background:0 0;border:1px solid #ef5025}.swp_social_panel.swp_default_color_outlines .swp_yummly,body .swp_social_panel.swp_other_color_outlines:hover .swp_yummly,html body .swp_social_panel.swp_individual_color_outlines .swp_yummly:hover{background:0 0;border:1px solid #e26426}.swp_social_panel.swp_default_color_outlines .swp_whatsapp,body .swp_social_panel.swp_other_color_outlines:hover .swp_whatsapp,html body .swp_social_panel.swp_individual_color_outlines .swp_whatsapp:hover{background:0 0;border:1px solid #71c169}.swp_social_panel.swp_default_color_outlines .swp_reddit,body .swp_social_panel.swp_other_color_outlines:hover .swp_reddit,html body .swp_social_panel.swp_individual_color_outlines .swp_reddit:hover{background:0 0;border:1px solid #f04b23}.swp_social_panel.swp_default_color_outlines .swp_email,body .swp_social_panel.swp_other_color_outlines:hover .swp_email,html body .swp_social_panel.swp_individual_color_outlines .swp_email:hover{background:0 0;border:1px solid #6bcce9}.swp_social_panel.swp_default_color_outlines .swp_pocket,body .swp_social_panel.swp_other_color_outlines:hover .swp_pocket,html body .swp_social_panel.swp_individual_color_outlines .swp_pocket:hover{background:0 0;border:1px solid #ef4056}.swp_social_panel.swp_default_color_outlines .swp_buffer,body .swp_social_panel.swp_other_color_outlines:hover .swp_buffer,html body .swp_social_panel.swp_individual_color_outlines .swp_buffer:hover{background:0 0;border:1px solid #323b43}.swp_social_panel.swp_default_color_outlines .swp_hacker_news,body .swp_social_panel.swp_other_color_outlines:hover .swp_hacker_news,html body .swp_social_panel.swp_individual_color_outlines .swp_hacker_news:hover{background:0 0;border:1px solid #f16522}.swp_social_panel.swp_default_color_outlines .swp_flipboard,body .swp_social_panel.swp_other_color_outlines:hover .swp_flipboard,html body .swp_social_panel.swp_individual_color_outlines .swp_flipboard:hover{background:0 0;border:1px solid #bf2626}.swp_social_panelSide{flex-direction:column;height:auto;overflow:visible;-webkit-transition:all .2s linear;transition:all .2s linear;z-index:9998;margin:10px 5px!important;padding:0;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column}.swp_social_panelSide.fade,.swp_social_panelSide.slide{position:fixed;-webkit-transition:all .2s linear;transition:all .2s linear}.swp_social_panelSide.fade.swp_float_left{left:5px}.swp_social_panelSide.fade.swp_float_right{right:5px}.swp_social_panelSide[class*=swp_side]{height:auto;display:flex;position:fixed;padding:30px 0}.swp_social_panelSide.fade{display:none}.swp_social_panelSide.swp_float_right{align-content:flex-end}.swp_social_panelSide.swp_side_top{top:15px}.swp_social_panelSide.swp_side_bottom{bottom:15px}.swp_social_panelSide .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}.swp_social_panelSide .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}.swp_social_panelSide .nc_tweetContainer .swp_count{display:inline-block;font-size:14px;height:32px;line-height:16px;margin:0;overflow:hidden;padding:0;text-align:right;-webkit-transition:all .1s linear;transition:all .1s linear;vertical-align:top;width:0}.swp_social_panelSide .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}.swp_social_panelSide .nc_tweetContainer .sw,.swp_social_panelSide .nc_tweetContainer .swp_share{float:left;line-height:34px}.swp_social_panelSide.swp_default .nc_tweetContainer .sw{line-height:32px}.swp_social_panelSide.swp_default .nc_tweetContainer .swp_share{line-height:30px}.swp_social_panelSide .nc_tweetContainer .swp_share{font-size:13px}.swp_social_panelSide .nc_tweetContainer:hover,.swp_social_panelSide .nc_tweetContainer:hover .iconFiller,.swp_social_panelSide .nc_tweetContainer:hover .swp_count{-webkit-transition:all .1s linear;transition:all .1s linear}.swp_social_panelSide.swp_boxed .nc_tweetContainer,.swp_social_panelSide.swp_circles .nc_tweetContainer{margin-bottom:5px;width:67.5px!important}.swp_social_panelSide.swp_boxed .nc_tweetContainer,.swp_social_panelSide.swp_boxed .nc_tweetContainer a,.swp_social_panelSide.swp_circles .nc_tweetContainer,.swp_social_panelSide.swp_circles .nc_tweetContainer a{width:67.5px;height:67.5px;position:relative}.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares),.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) a{border-radius:50%!important}.swp_social_panelSide.swp_boxed .nc_tweetContainer i.sw,.swp_social_panelSide.swp_circles .nc_tweetContainer i.sw{font-size:27px;height:40px;margin:0;padding-top:10px;text-align:center;width:100%}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_share,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) span.swp_share{height:35px;opacity:0;position:absolute;bottom:0;left:0;text-align:center;width:67.5px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_count,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) 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%}.swp_social_panelSide.swp_boxed .nc_tweetContainer span.swp_hide .iconFiller,.swp_social_panelSide.swp_boxed .nc_tweetContainer span.swp_hide .spaceManWilly,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) span.swp_count.swp_hide,.swp_social_panelSide.swp_circles .nc_tweetContainer span.swp_hide .iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer span.swp_hide .spaceManWilly,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) span.swp_count.swp_hide{height:67.5px;opacity:1}.swp_social_panelSide.swp_boxed .nc_tweetContainer span.iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer span.iconFiller{height:40px;width:67.5px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover span.swp_count:not(.swp_hide),.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):hover span.swp_count:not(.swp_hide){opacity:0}.swp_social_panelSide.swp_boxed .total_shares,.swp_social_panelSide.swp_circles .total_shares{padding:0;width:67.5px!important}.swp_social_panelSide .nc_tweetContainer:not(.total_shares){line-height:34px}.swp_social_panelSide:not(.swp_boxed):not(.swp_circles) .nc_tweetContainer:not(.total_shares) .iconFiller{margin-left:2px;width:30px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count{padding:0 8px;width:48px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count.swp_hide{padding:0;width:100%}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .swp_count.swp_hide .iconFiller{display:block;float:none;margin:0 auto}.swp_social_panelSide:not(.swp_boxed):not(.swp_circles) .nc_tweetContainer:not(.total_shares):hover{width:150px}.swp_social_panelSide .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide .nc_tweetContainer[data-network]:not(.total_shares):hover .iconFiller{width:90px}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover .iconFiller,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) .spaceManWilly,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):hover .iconFiller{width:100%}.swp_social_panelSide .nc_tweetContainer.total_shares{background:rgba(0,0,0,0);border:0!important;font-weight:800;height:45px;margin:0;padding:0;text-align:center;width:90px;order:-100}.swp_social_panelSide .nc_tweetContainer.total_shares .swp_count{color:#444;display:block;font-family:Lato,sans-serif;height:28px;text-align:center;width:100%}.swp_social_panelSide .nc_tweetContainer.total_shares .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.bottom{bottom:0;left:0}.nc_wrapper.top{top:0;left:0}.nc_floater{margin:10px 0;position:relative;left:304px;width:740px}.swp_social_panelSide.hideCounts a{text-align:center}.swp_social_panelSide.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;text-transform:none!important;-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}i.swp_google_plus_icon:before{content:"h"}i.swp_pinterest_icon:before{content:"b"}i.swp_twitter_icon:before{content:"s"}i.swp_facebook_icon:before{content:"j"}i.swp_linkedin_icon:before{content:"f"}i.swp_tumblr_icon:before{content:"r"}i.swp_stumbleupon_icon:before{content:"q"}i.swp_reddit_icon:before{content:"a"}i.swp_email_icon:before{content:"k"}i.swp_yummly_icon:before{content:"x"}i.swp_whatsapp_icon:before{content:"y"}i.swp_pocket_icon:before{content:"B"}i.swp_buffer_icon:before{content:"z"}i.swp_hacker_news_icon:before{content:"D"}i.swp_flipboard_icon: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.swp_twitter_icon{float:right;font-size:21px;margin-left:15px!important;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.swp_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}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 20px;position:absolute;text-decoration:none;-webkit-transition:opacity .5s;transition:opacity .5s;z-index:200}.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares) .swp_hide span.swp_share,.swp_social_panelSide.swp_boxed .nc_tweetContainer:not(.total_shares):hover span.swp_share:not(.swp_hide),.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares) .swp_hide span.swp_share,.swp_social_panelSide.swp_circles .nc_tweetContainer:not(.total_shares):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_tweetContainer.total_shares:nth-last-child(1),.swp_social_panel.notMobile .nc_tweetContainer:nth-last-child(1){margin-right:0}.swp_social_panel.swp_default_dark_gray a,.swp_social_panel.swp_default_full_color a,.swp_social_panel.swp_default_light_gray a,.swp_social_panel.swp_default_medium_gray a,body .swp_social_panel.swp_other_dark_gray:hover a,body .swp_social_panel.swp_other_full_color:hover a,body .swp_social_panel.swp_other_light_gray:hover a,body .swp_social_panel.swp_other_medium_gray:hover a,html body .swp_social_panel.swp_individual_dark_gray a:hover,html body .swp_social_panel.swp_individual_full_color .nc_tweetContainer:hover a,html body .swp_social_panel.swp_individual_light_gray .nc_tweetContainer:hover a,html body .swp_social_panel.swp_individual_medium_gray a:hover{color:#fff}.swp_social_panel.swp_default_color_outlines .swp_twitter a,.wp-editor-container .swp_twitter:before,a.style1 .sw-click-to-tweet i.swp_twitter,a.style2 .sw-click-to-tweet i.swp_twitter,body .swp_social_panel.swp_other_color_outlines:hover .swp_twitter a,html body .swp_social_panel.swp_individual_color_outlines .swp_twitter a:hover{color:#429cd6}.sw-content-locator,.swp_social_panel.mobile .iconFiller~.swp_count{display:none}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.swp_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.swp_twitter,a.style5 .sw-click-to-tweet i.swp_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.swp_twitter{color:#2a2d34;text-decoration:none}.scale-70{-ms-transform:scale(.7);-webkit-transform:scale(.7);transform:scale(.7)}.swp_social_panel:not(.nc_floater).scale-70.scale-full_width{width:142.8571428571429%!important}.scale-80{-ms-transform:scale(.8);-webkit-transform:scale(.8);transform:scale(.8)}.swp_social_panel:not(.nc_floater).scale-80.scale-full_width{width:125%!important}.scale-90{-ms-transform:scale(.9);-webkit-transform:scale(.9);transform:scale(.9)}.swp_social_panel:not(.nc_floater).scale-90.scale-full_width{width:111.111111111111%!important}.scale-110{-ms-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1)}.swp_social_panel:not(.nc_floater).scale-110.scale-full_width{width:90.90909090909091%!important}.scale-120{-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.swp_social_panel:not(.nc_floater).scale-120.scale-full_width{width:83.33333333333333%!important}.scale-130{-ms-transform:scale(1.3);-webkit-transform:scale(1.3);transform:scale(1.3)}.swp_social_panel:not(.nc_floater).scale-130.scale-full_width{width:76.92307692307692%!important}.scale-140{-ms-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}.swp_social_panel:not(.nc_floater).scale-140.scale-full_width{width:71.42857142857143%!important}.nc_floater.scale-center,.nc_floater.scale-right,.scale-full_width,.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.swp_social_panel .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}.fl-module-content .uabb-blog-posts .uabb-post-thumbnail .sw-pinit.lazyloaded{display:block!important}.swp-content-locator{display:none!important;margin:0!important}.float-position-top-left{transform-origin:top left}.float-position-center-left{transform-origin:center left}.float-position-bottom-left{transform-origin:bottom left}.float-position-top-right{transform-origin:top right}.float-position-center-right{transform-origin:center right}.float-position-bottom-right{transform-origin:bottom right}div[class*=custom_color][class^=_wrapper]{display:none}
functions/admin/options-registration.php CHANGED
@@ -1,87 +1,87 @@
1
- <?php
2
- /**
3
- * Functions for loading the admin options page.
4
- *
5
- * @package SocialWarfare\Admin\Functions
6
- * @copyright Copyright (c) 2018, 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; ?>
1
+ <?php
2
+ /**
3
+ * Functions for loading the admin options page.
4
+ *
5
+ * @package SocialWarfare\Admin\Functions
6
+ * @copyright Copyright (c) 2018, 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/swp_system_checker.php CHANGED
@@ -1,147 +1,147 @@
1
- <?php
2
- /**
3
- * A series of classes to check the user's system for minimum system requirements
4
- *
5
- * @package social-warfare\functions\admin
6
- * @copyright Copyright (c) 2018, Warfare Plugins, LLC
7
- * @license GPL-3.0+
8
- * @since 2.2.4 | Created | 1 MAY 2017
9
- */
10
-
11
- /**
12
- * A class for initializing the system checks
13
- *
14
- * @since 2.2.4 | Created | 1 MAY 2017
15
- * @access public
16
- */
17
- abstract class swp_custom_check
18
- {
19
- public $name = "";
20
- public $whats_wrong = "";
21
- public $how_to_fix= "";
22
- public $check_passed = null;
23
- public $additional_message = null;
24
-
25
- /**
26
- * Force children to have an executable run method.
27
- */
28
- abstract public function run();
29
- }
30
-
31
- /**
32
- * A series of classes to check the user's system for minimum system requirements
33
- *
34
- * @since 2.2.4 | Created | 6 March 2017
35
- * @access public
36
- * @return string The HTML for an error notice if triggered
37
- */
38
- class swp_system_checker
39
- {
40
- public static $custom_checks = array();
41
- public static $has_error = FALSE;
42
-
43
- public static function full_system_check()
44
- {
45
- swp_system_checker::load_all_checks();
46
- swp_system_checker::run_all_checks();
47
- swp_system_checker::print_all_errors();
48
-
49
- }
50
-
51
- public static function load_all_checks()
52
- {
53
- swp_system_checker::$custom_checks[ 'swp_php_check' ] = new swp_php_check();
54
- swp_system_checker::$custom_checks[ 'swp_curl_check' ] = new swp_curl_check();
55
- }
56
-
57
- public static function run_all_checks()
58
- {
59
- foreach( swp_system_checker::$custom_checks as $custom_check )
60
- {
61
- if( method_exists( $custom_check, 'run' ) ) {
62
- if( !$custom_check->run() && !$custom_check->check_passed ) {
63
- swp_system_checker::$has_error = true;
64
- }
65
- }
66
- }
67
- }
68
-
69
- public static function print_all_errors()
70
- {
71
- if( !isset( swp_system_checker::$has_error ) || empty( swp_system_checker::$has_error ) ) {
72
- return FALSE;
73
- }
74
-
75
- foreach( swp_system_checker::$custom_checks as $custom_check )
76
- {
77
- if( $custom_check->check_passed ) {
78
- continue;
79
- }
80
-
81
- echo '<div class="sw-red-notice">' . $custom_check->whats_wrong . $custom_check->how_to_fix . '</div>';
82
- }
83
- }
84
- }
85
-
86
- /**
87
- * A class to detect if the user is using a compatible version of PHP (5.3+) on their server
88
- *
89
- * @since 2.2.4 | Created | 1 MAY 2017
90
- * @access public
91
- * @return string The HTML for an error notice if triggered
92
- */
93
- class swp_php_check extends swp_custom_check
94
- {
95
- public function __construct()
96
- {
97
- $this->name = 'PHP Check';
98
- }
99
-
100
- public function run()
101
- {
102
- if( version_compare( PHP_VERSION, '5.2.0' ) >= 0 )
103
- {
104
- $this->check_passed = true;
105
- }
106
- else
107
- {
108
- $this->check_passed = false;
109
- $this->whats_wrong = 'Your server is currently using PHP version '.PHP_VERSION.'. In order for our plugin to fetch share counts properly, you must be using PHP 5.3 or newer.';
110
- $this->how_to_fix = 'To fix this, simply contact your hosting provider and ask them to update your server to the latest stable version of PHP.';
111
- }
112
-
113
- return $this->check_passed;
114
- }
115
- }
116
-
117
- /**
118
- * A class to detect if the user has cURL enabled on their server. cURL is a requirement of the plugin.
119
- *
120
- * @since 2.2.4 | Created | 1 MAY 2017
121
- * @access public
122
- * @return string The HTML for an error notice if triggered
123
- */
124
- class swp_curl_check extends swp_custom_check
125
- {
126
- public function __construct()
127
- {
128
- $this->name = 'Curl Check';
129
- }
130
-
131
- public function run()
132
- {
133
-
134
- if( function_exists( 'curl_version' ) )
135
- {
136
- $this->check_passed = true;
137
- }
138
- else
139
- {
140
- $this->check_passed = false;
141
- $this->whats_wrong = 'Your server has cURL disabled. In order for our plugin to fetch share counts, you must have cURL enabled on your server.';
142
- $this->how_to_fix = 'To fix this, simply contact your hosting provider and ask them to activate cURL on your server.';
143
- }
144
-
145
- return $this->check_passed;
146
- }
147
- }
1
+ <?php
2
+ /**
3
+ * A series of classes to check the user's system for minimum system requirements
4
+ *
5
+ * @package social-warfare\functions\admin
6
+ * @copyright Copyright (c) 2018, Warfare Plugins, LLC
7
+ * @license GPL-3.0+
8
+ * @since 2.2.4 | Created | 1 MAY 2017
9
+ */
10
+
11
+ /**
12
+ * A class for initializing the system checks
13
+ *
14
+ * @since 2.2.4 | Created | 1 MAY 2017
15
+ * @access public
16
+ */
17
+ abstract class swp_custom_check
18
+ {
19
+ public $name = "";
20
+ public $whats_wrong = "";
21
+ public $how_to_fix= "";
22
+ public $check_passed = null;
23
+ public $additional_message = null;
24
+
25
+ /**
26
+ * Force children to have an executable run method.
27
+ */
28
+ abstract public function run();
29
+ }
30
+
31
+ /**
32
+ * A series of classes to check the user's system for minimum system requirements
33
+ *
34
+ * @since 2.2.4 | Created | 6 March 2017
35
+ * @access public
36
+ * @return string The HTML for an error notice if triggered
37
+ */
38
+ class swp_system_checker
39
+ {
40
+ public static $custom_checks = array();
41
+ public static $has_error = FALSE;
42
+
43
+ public static function full_system_check()
44
+ {
45
+ swp_system_checker::load_all_checks();
46
+ swp_system_checker::run_all_checks();
47
+ swp_system_checker::print_all_errors();
48
+
49
+ }
50
+
51
+ public static function load_all_checks()
52
+ {
53
+ swp_system_checker::$custom_checks[ 'swp_php_check' ] = new swp_php_check();
54
+ swp_system_checker::$custom_checks[ 'swp_curl_check' ] = new swp_curl_check();
55
+ }
56
+
57
+ public static function run_all_checks()
58
+ {
59
+ foreach( swp_system_checker::$custom_checks as $custom_check )
60
+ {
61
+ if( method_exists( $custom_check, 'run' ) ) {
62
+ if( !$custom_check->run() && !$custom_check->check_passed ) {
63
+ swp_system_checker::$has_error = true;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ public static function print_all_errors()
70
+ {
71
+ if( !isset( swp_system_checker::$has_error ) || empty( swp_system_checker::$has_error ) ) {
72
+ return FALSE;
73
+ }
74
+
75
+ foreach( swp_system_checker::$custom_checks as $custom_check )
76
+ {
77
+ if( $custom_check->check_passed ) {
78
+ continue;
79
+ }
80
+
81
+ echo '<div class="sw-red-notice">' . $custom_check->whats_wrong . $custom_check->how_to_fix . '</div>';
82
+ }
83
+ }
84
+ }
85
+
86
+ /**
87
+ * A class to detect if the user is using a compatible version of PHP (5.3+) on their server
88
+ *
89
+ * @since 2.2.4 | Created | 1 MAY 2017
90
+ * @access public
91
+ * @return string The HTML for an error notice if triggered
92
+ */
93
+ class swp_php_check extends swp_custom_check
94
+ {
95
+ public function __construct()
96
+ {
97
+ $this->name = 'PHP Check';
98
+ }
99
+
100
+ public function run()
101
+ {
102
+ if( version_compare( PHP_VERSION, '5.2.0' ) >= 0 )
103
+ {
104
+ $this->check_passed = true;
105
+ }
106
+ else
107
+ {
108
+ $this->check_passed = false;
109
+ $this->whats_wrong = 'Your server is currently using PHP version '.PHP_VERSION.'. In order for our plugin to fetch share counts properly, you must be using PHP 5.3 or newer.';
110
+ $this->how_to_fix = 'To fix this, simply contact your hosting provider and ask them to update your server to the latest stable version of PHP.';
111
+ }
112
+
113
+ return $this->check_passed;
114
+ }
115
+ }
116
+
117
+ /**
118
+ * A class to detect if the user has cURL enabled on their server. cURL is a requirement of the plugin.
119
+ *
120
+ * @since 2.2.4 | Created | 1 MAY 2017
121
+ * @access public
122
+ * @return string The HTML for an error notice if triggered
123
+ */
124
+ class swp_curl_check extends swp_custom_check
125
+ {
126
+ public function __construct()
127
+ {
128
+ $this->name = 'Curl Check';
129
+ }
130
+
131
+ public function run()
132
+ {
133
+
134
+ if( function_exists( 'curl_version' ) )
135
+ {
136
+ $this->check_passed = true;
137
+ }
138
+ else
139
+ {
140
+ $this->check_passed = false;
141
+ $this->whats_wrong = 'Your server has cURL disabled. In order for our plugin to fetch share counts, you must have cURL enabled on your server.';
142
+ $this->how_to_fix = 'To fix this, simply contact your hosting provider and ask them to activate cURL on your server.';
143
+ }
144
+
145
+ return $this->check_passed;
146
+ }
147
+ }
functions/frontend-output/SWP_Buttons_Panel.php CHANGED
@@ -97,7 +97,7 @@ class SWP_Buttons_Panel {
97
  global $swp_social_networks, $post;
98
  $this->networks = $swp_social_networks;
99
  $this->args = $args;
100
- $this->content = isset( $args['content'] ) ? $args['content'] : '';
101
  //* Access the $post once while we have it. Values may be overwritten.
102
  $this->post_data = [
103
  'ID' => $post->ID,
@@ -107,12 +107,13 @@ class SWP_Buttons_Panel {
107
  'post_status' => $post->post_status,
108
  'post_content' => $post->post_content
109
  ];
 
 
110
  $this->is_shortcode = $shortcode;
111
  $this->localize_options( $args );
112
  $this->establish_post_id();
113
  $this->shares = get_social_warfare_shares( $this->post_data['ID'] );
114
  $this->establish_location();
115
- $this->establish_float_location();
116
  $this->establish_permalink();
117
  $this->establish_active_buttons();
118
 
@@ -219,7 +220,7 @@ class SWP_Buttons_Panel {
219
  * content to which to append.
220
  *
221
  * @since 3.0.0 | 10 APR 2018 | Created
222
- * @since 3.0.5 | 11 MAY 2018 | Added returns to the method won't keep processing.
223
  * @param none
224
  * @return none All values are stored in local properties.
225
  * @access public
@@ -229,10 +230,10 @@ class SWP_Buttons_Panel {
229
  //* Establish a default.
230
  $this->location = 'none';
231
 
232
- if(empty($this->content)):
233
  $this->location = 'above';
234
- return;
235
  endif;
 
236
  /**
237
  * Location from the Post Options
238
  *
@@ -240,12 +241,21 @@ class SWP_Buttons_Panel {
240
  * to use this instead of the global options.
241
  *
242
  */
243
- $preset_location = get_post_meta( $this->post_data['ID'], 'swp_post_location', true );
 
 
 
 
 
244
  // If the location is set in the post options, use that.
245
- if ( !empty( $preset_location ) && 'default' !== $preset_location ) {
246
- $this->location = $preset_location;
247
- return;
 
 
248
  };
 
 
249
  /**
250
  * Global Location Settings
251
  *
@@ -253,20 +263,21 @@ class SWP_Buttons_Panel {
253
  * for that type from the global options.
254
  *
255
  */
 
256
  // If we are on the home page
257
  if( is_front_page() ):
258
  $home = $this->options['location_home'];
259
  $this->location = isset( $home ) ? $home : 'none';
260
- return;
261
  endif;
 
262
  // If we are on a singular page
263
  if ( is_singular() && !is_front_page() ) :
264
  $location = $this->options[ 'location_' . $this->post_data['post_type'] ];
265
  if ( isset( $location ) ) :
266
  $this->location = $location;
267
- return;
268
  endif;
269
  endif;
 
270
  if ( is_archive() || is_home() ) :
271
  $this->location = $this->options['location_archive_categories'];
272
  endif;
@@ -289,22 +300,6 @@ class SWP_Buttons_Panel {
289
  }
290
 
291
 
292
- protected function establish_float_location() {
293
- // Set the options for the horizontal floating bar
294
- // $spec_float_where = get_post_meta( $this->post_data['ID'] , 'nc_float_location' , true );
295
- //
296
- // if ( isset( $this->args['floating_panel'] ) && $this->args['floating_panel'] == 'ignore' ) :
297
- // $floatOption = 'float_ignore';
298
- // elseif ( $spec_float_where == 'off' && $this->options['button_alignment'] != 'float_ignore' ) :
299
- // $floatOption = 'floatNone';
300
- // elseif ( $this->options['floating_panel'] && is_singular() && $this->options[ 'float_location_' . $this->post_data['post_type'] ] == 'on' ) :
301
- // $floatOption = 'floating_panel' . ucfirst( $this->options['float_location'] );
302
- // else :
303
- // $floatOption = 'floatNone';
304
- // endif;
305
- }
306
-
307
-
308
  protected function establish_permalink() {
309
  $this->permalink = get_permalink( $this->post_data['ID'] );
310
  }
@@ -348,14 +343,22 @@ class SWP_Buttons_Panel {
348
  *
349
  *
350
  * @return Boolean True if the buttons are okay to print, else false.
 
351
  */
352
  public function should_print() {
 
 
 
 
 
 
353
  $user_settings = $this->location !== 'none';
354
 
355
  $desired_conditions = is_main_query() && in_the_loop() && get_post_status( $this->post_data['ID'] ) === 'publish';
356
 
357
- $undesired_conditions = !is_admin() && !is_feed() && !is_search() && !is_attachment();
358
- return $user_settings && $desired_conditions && $undesired_conditions;
 
359
  }
360
 
361
 
@@ -372,12 +375,13 @@ class SWP_Buttons_Panel {
372
  */
373
  public function render_HTML( $echo = false ) {
374
 
375
- if ( ! $this->should_print() ) :
376
  return $this->content;
377
  endif;
378
 
379
  $total_shares_html = $this->render_total_shares_html();
380
  $buttons = $this->render_buttons_html();
 
381
  // Create the HTML Buttons panel wrapper
382
  $container = '<div class="swp_social_panel swp_' . $this->option('button_shape') .
383
  ' swp_default_' . $this->option('default_colors') .
@@ -393,11 +397,13 @@ class SWP_Buttons_Panel {
393
  ">';
394
  //* This should be inserted via addon, not here.
395
  //'" data-emphasize="'.$this->option('emphasize_icons').'
 
396
  if ($this->option('totals_alignment') === 'totals_left') :
397
  $buttons = $total_shares_html . $buttons;
398
  else:
399
  $buttons .= $total_shares_html;
400
  endif;
 
401
  $html = $container . $buttons . '</div>';
402
  $this->html = $html;
403
  if ( $echo ) :
@@ -449,13 +455,31 @@ class SWP_Buttons_Panel {
449
  *
450
  */
451
  public function get_float_location() {
452
- if( is_home() || is_front_page() ):
 
453
  return 'none';
454
- elseif( is_single() && true == $this->option('floating_panel') && 'on' == $this->option('float_location_' . $this->post_data['post_type'] ) ):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  return $this->option('float_location');
456
- else:
457
- return 'none';
458
  endif;
 
 
459
  }
460
 
461
 
@@ -483,9 +507,21 @@ class SWP_Buttons_Panel {
483
  endif;
484
  }
485
 
486
-
 
 
 
 
 
 
 
487
  public function render_floating_HTML( $echo = true ) {
488
  //* BEGIN Old boilerplate that needs to be refactored.
 
 
 
 
 
489
 
490
  if( is_singular() && 'none' !== $this->get_float_location() ):
491
 
@@ -536,10 +572,10 @@ class SWP_Buttons_Panel {
536
  ' scale-' . $this->option('float_size') * 100 .
537
  '" data-float="' . $float_location .
538
  '" data-count="' . count($this->networks) .
539
- '" data-floatColor="' . $this->option('float_background_color') .
540
  '" data-screen-width="' . $this->option('float_screen_width') .
541
  '" data-transition="' . $this->option('transition') .
542
- '" data-float-mobile="'.$this->option('float_mobile').'">';
543
  if ($this->option('totals_alignment') === 'totals_left') :
544
  $buttons = $share_counts . $buttons;
545
  else:
@@ -683,13 +719,18 @@ class SWP_Buttons_Panel {
683
  */
684
  public function render_total_shares_html() {
685
  $buttons = isset( $this->args['buttons'] ) ? $this->args['buttons'] : [];
686
-
687
- if ( empty( $this->shares['total_shares']) || $this->shares['total_shares'] < $this->option('minimum_shares') || false == $this->option('total_shares') || $this->is_shortcode && !in_array( 'total', $buttons ) ) {
 
 
 
688
  return '';
689
  }
 
690
  $html = '<div class="nc_tweetContainer total_shares total_sharesalt" >';
691
  $html .= '<span class="swp_count ">' . swp_kilomega( $this->shares['total_shares'] ) . ' <span class="swp_label">' . __( 'Shares','social-warfare' ) . '</span></span>';
692
  $html .= '</div>';
 
693
  return $html;
694
  }
695
 
97
  global $swp_social_networks, $post;
98
  $this->networks = $swp_social_networks;
99
  $this->args = $args;
100
+
101
  //* Access the $post once while we have it. Values may be overwritten.
102
  $this->post_data = [
103
  'ID' => $post->ID,
107
  'post_status' => $post->post_status,
108
  'post_content' => $post->post_content
109
  ];
110
+
111
+ $this->content = isset( $args['content'] ) ? $args['content'] : '';
112
  $this->is_shortcode = $shortcode;
113
  $this->localize_options( $args );
114
  $this->establish_post_id();
115
  $this->shares = get_social_warfare_shares( $this->post_data['ID'] );
116
  $this->establish_location();
 
117
  $this->establish_permalink();
118
  $this->establish_active_buttons();
119
 
220
  * content to which to append.
221
  *
222
  * @since 3.0.0 | 10 APR 2018 | Created
223
+ * @since 3.0.7 | 15 MAY 2018 | Added conditionals to ensure $post_setting isn't an array.
224
  * @param none
225
  * @return none All values are stored in local properties.
226
  * @access public
230
  //* Establish a default.
231
  $this->location = 'none';
232
 
233
+ if ( empty( $this->content ) && is_singular() ):
234
  $this->location = 'above';
 
235
  endif;
236
+
237
  /**
238
  * Location from the Post Options
239
  *
241
  * to use this instead of the global options.
242
  *
243
  */
244
+ $post_setting = get_post_meta( $this->post_data['ID'], 'swp_post_location', true );
245
+
246
+ if( is_array($post_setting) ) :
247
+ $post_setting = $post_setting[0];
248
+ endif;
249
+
250
  // If the location is set in the post options, use that.
251
+ if ( !empty( $post_setting ) && 'default' != $post_setting ) {
252
+ $this->location = $post_setting;
253
+
254
+ //* Exit early because this is a priority.
255
+ return;
256
  };
257
+
258
+
259
  /**
260
  * Global Location Settings
261
  *
263
  * for that type from the global options.
264
  *
265
  */
266
+
267
  // If we are on the home page
268
  if( is_front_page() ):
269
  $home = $this->options['location_home'];
270
  $this->location = isset( $home ) ? $home : 'none';
 
271
  endif;
272
+
273
  // If we are on a singular page
274
  if ( is_singular() && !is_front_page() ) :
275
  $location = $this->options[ 'location_' . $this->post_data['post_type'] ];
276
  if ( isset( $location ) ) :
277
  $this->location = $location;
 
278
  endif;
279
  endif;
280
+
281
  if ( is_archive() || is_home() ) :
282
  $this->location = $this->options['location_archive_categories'];
283
  endif;
300
  }
301
 
302
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
  protected function establish_permalink() {
304
  $this->permalink = get_permalink( $this->post_data['ID'] );
305
  }
343
  *
344
  *
345
  * @return Boolean True if the buttons are okay to print, else false.
346
+ * @since 3.0.8 | 21 MAY 2018 | Added extra condition to check for content (for calls to social_warfare()).
347
  */
348
  public function should_print() {
349
+
350
+ //* WordPress requires title and content. This indicates the buttons are called via social_warfare().
351
+ if ( empty( $this->content ) && !isset( $this->args['content'] ) ) :
352
+ return true;
353
+ endif;
354
+
355
  $user_settings = $this->location !== 'none';
356
 
357
  $desired_conditions = is_main_query() && in_the_loop() && get_post_status( $this->post_data['ID'] ) === 'publish';
358
 
359
+ $undesired_conditions = is_admin() || is_feed() || is_search() || is_attachment();
360
+
361
+ return $user_settings && $desired_conditions && !$undesired_conditions;
362
  }
363
 
364
 
375
  */
376
  public function render_HTML( $echo = false ) {
377
 
378
+ if ( !$this->should_print() ) :
379
  return $this->content;
380
  endif;
381
 
382
  $total_shares_html = $this->render_total_shares_html();
383
  $buttons = $this->render_buttons_html();
384
+
385
  // Create the HTML Buttons panel wrapper
386
  $container = '<div class="swp_social_panel swp_' . $this->option('button_shape') .
387
  ' swp_default_' . $this->option('default_colors') .
397
  ">';
398
  //* This should be inserted via addon, not here.
399
  //'" data-emphasize="'.$this->option('emphasize_icons').'
400
+
401
  if ($this->option('totals_alignment') === 'totals_left') :
402
  $buttons = $total_shares_html . $buttons;
403
  else:
404
  $buttons .= $total_shares_html;
405
  endif;
406
+
407
  $html = $container . $buttons . '</div>';
408
  $this->html = $html;
409
  if ( $echo ) :
455
  *
456
  */
457
  public function get_float_location() {
458
+ $post_on = false;
459
+ if( is_home() && !is_front_page() ):
460
  return 'none';
461
+ endif;
462
+
463
+ $post_setting = get_post_meta( $this->post_data['ID'], 'swp_float_location', true );
464
+
465
+ if( is_array($post_setting) ) :
466
+ $post_setting = $post_setting[0];
467
+ endif;
468
+
469
+ // If the location is set in the post options, use that.
470
+ if ( !empty( $post_setting ) && 'default' != $post_setting ) {
471
+ if( 'off' === $post_setting) :
472
+ return 'none';
473
+ endif;
474
+
475
+ $post_on = true;
476
+ };
477
+
478
+ if ( $post_on || is_singular() && true === $this->option('floating_panel') && 'on' === $this->option('float_location_' . $this->post_data['post_type'] ) ) :
479
  return $this->option('float_location');
 
 
480
  endif;
481
+
482
+ return 'none';
483
  }
484
 
485
 
507
  endif;
508
  }
509
 
510
+ /**
511
+ * Creates the fully qualified markup for floating button panel.
512
+ *
513
+ * @param boolean $echo Whether or not to immediately echo the HTML.
514
+ * @return string $html The qualified markup for the panel.
515
+ * @since 3.0.0
516
+ * @since 3.0.8 | 22 MAY 2018 | Added the $blacklist and in_array conditional.
517
+ */
518
  public function render_floating_HTML( $echo = true ) {
519
  //* BEGIN Old boilerplate that needs to be refactored.
520
+ $blacklist = ['none', 'top', 'bottom'];
521
+
522
+ if ( in_array( $this->option('float_location'), $blacklist ) ) :
523
+ return '';
524
+ endif;
525
 
526
  if( is_singular() && 'none' !== $this->get_float_location() ):
527
 
572
  ' scale-' . $this->option('float_size') * 100 .
573
  '" data-float="' . $float_location .
574
  '" data-count="' . count($this->networks) .
575
+ '" data-floatcolor="' . $this->option('float_background_color') .
576
  '" data-screen-width="' . $this->option('float_screen_width') .
577
  '" data-transition="' . $this->option('transition') .
578
+ '" data-float-mobile="' . $this->get_mobile_float_location() .'">';
579
  if ($this->option('totals_alignment') === 'totals_left') :
580
  $buttons = $share_counts . $buttons;
581
  else:
719
  */
720
  public function render_total_shares_html() {
721
  $buttons = isset( $this->args['buttons'] ) ? $this->args['buttons'] : [];
722
+ $totals_argument = in_array( 'total', $buttons ) || in_array( 'totals', $buttons );
723
+
724
+
725
+
726
+ if ( empty( $this->shares['total_shares']) || $this->shares['total_shares'] < $this->option('minimum_shares') || false == $this->option('total_shares') || $this->is_shortcode && !$totals_argument && !empty( $this->args['buttons'] ) ) {
727
  return '';
728
  }
729
+
730
  $html = '<div class="nc_tweetContainer total_shares total_sharesalt" >';
731
  $html .= '<span class="swp_count ">' . swp_kilomega( $this->shares['total_shares'] ) . ' <span class="swp_label">' . __( 'Shares','social-warfare' ) . '</span></span>';
732
  $html .= '</div>';
733
+
734
  return $html;
735
  }
736
 
functions/frontend-output/SWP_Display.php CHANGED
@@ -32,11 +32,7 @@ class SWP_Display {
32
 
33
  // Hook into the template_redirect so that is_singular() conditionals will be ready
34
  add_action('template_redirect', [$this, 'activate_buttons'] );
35
-
36
- // Add the side floating buttons to the footer if they are activated
37
- if ( in_array( swp_get_option('float_location') , ['left', 'right'], true ) ) {
38
- add_action( 'wp_footer', [$this, 'floating_buttons_side'] );
39
- }
40
  }
41
  /**
42
  * A function to add the buttons
@@ -98,11 +94,19 @@ class SWP_Display {
98
  return $buttons_panel->the_buttons( $content );
99
  }
100
 
101
- function floating_buttons_side() {
 
102
  $side_panel = new SWP_Buttons_Panel( ['content' => "" ]);
 
 
 
 
 
 
 
103
  $side_panel->render_floating_HTML( $echo = true );
104
- return;
105
 
 
106
  }
107
 
108
  /**
32
 
33
  // Hook into the template_redirect so that is_singular() conditionals will be ready
34
  add_action('template_redirect', [$this, 'activate_buttons'] );
35
+ add_action( 'wp_footer', [$this, 'floating_buttons'] );
 
 
 
 
36
  }
37
  /**
38
  * A function to add the buttons
94
  return $buttons_panel->the_buttons( $content );
95
  }
96
 
97
+ function floating_buttons() {
98
+
99
  $side_panel = new SWP_Buttons_Panel( ['content' => "" ]);
100
+
101
+ $location = $side_panel->get_float_location();
102
+
103
+ if ( 'none' === $location || 'ignore' === $location ) {
104
+ return;
105
+ }
106
+
107
  $side_panel->render_floating_HTML( $echo = true );
 
108
 
109
+ return;
110
  }
111
 
112
  /**
functions/frontend-output/SWP_Script.php CHANGED
@@ -167,7 +167,7 @@ class SWP_Script {
167
  *
168
  */
169
  public function click_tracking( $info ) {
170
- if ( $info['swp_user_options']['swp_click_tracking'] ) {
171
  $info['footer_output'] .= 'var swpClickTracking = true;';
172
  } else {
173
  $info['footer_output'] .= 'var swpClickTracking = false;';
167
  *
168
  */
169
  public function click_tracking( $info ) {
170
+ if ( $info['swp_user_options']['click_tracking'] ) {
171
  $info['footer_output'] .= 'var swpClickTracking = true;';
172
  } else {
173
  $info['footer_output'] .= 'var swpClickTracking = false;';
functions/frontend-output/SWP_Shortcode.php CHANGED
@@ -164,7 +164,27 @@ class SWP_Shortcode {
164
  $theme = $this->options['ctt_theme'];
165
  endif;
166
 
167
- return '<div class="sw-tweet-clear"></div><a class="swp_CTT ' . $theme . '" href="https://twitter.com/share?text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $urlParam . '' . ($user_twitter_handle ? '&via=' . str_replace( '@','',$user_twitter_handle ) : '') . '" data-link="https://twitter.com/share?text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $urlParam . '' . ($user_twitter_handle ? '&via=' . str_replace( '@','',$user_twitter_handle ) : '') . '" rel="nofollow" target="_blank"><span class="sw-click-to-tweet"><span class="sw-ctt-text">' . $atts['quote'] . '</span><span class="sw-ctt-btn">' . __( 'Click To Tweet','social-warfare' ) . '<i class="sw sw-twitter"></i></span></span></a>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  }
169
 
170
  }
164
  $theme = $this->options['ctt_theme'];
165
  endif;
166
 
167
+ $text = urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $urlParam ;
168
+ $via = ($user_twitter_handle ? '&via=' . str_replace( '@','',$user_twitter_handle ) : '');
169
+
170
+
171
+ $html = '<div class="sw-tweet-clear"></div>';
172
+ $html .= '<a class="swp_CTT ' . $theme;
173
+ $html .= '" href="https://twitter.com/share?text=' . $text . $via;
174
+ $html .= '" data-link="https://twitter.com/share?text=' . $text . $via;
175
+ $html .= '" rel="nofollow" target="_blank">';
176
+ $html .= '<span class="sw-click-to-tweet">';
177
+ $html .= '<span class="sw-ctt-text">';
178
+ $html .= $atts['quote'];
179
+ $html .= '</span>';
180
+ $html .= '<span class="sw-ctt-btn">';
181
+ $html .= __( 'Click To Tweet','social-warfare' );
182
+ $html .= '<i class="sw swp_twitter_icon"></i>';
183
+ $html .= '</span>';
184
+ $html .= '</span>';
185
+ $html .= '</a>';
186
+
187
+ return $html;
188
  }
189
 
190
  }
functions/includes/SWP_Addon.php CHANGED
@@ -34,7 +34,6 @@ class SWP_Addon extends Social_Warfare {
34
  }
35
 
36
  public function register_plugin() {
37
-
38
  // Check to ensure that license key was passed into the function
39
  if ( !empty( $_POST['license_key'] ) ) :
40
 
@@ -111,14 +110,18 @@ class SWP_Addon extends Social_Warfare {
111
 
112
  public function is_registered() {
113
  // Get the plugin options from the database
114
- $options = get_option( 'social_warfare_settings' );
 
115
 
116
  if ( isset( $options[$this->key . '_license_key'] ) ) :
117
  $this->license_key = $options[$this->key . '_license_key'];
 
 
118
  else:
119
  $this->license_key = '';
120
  endif;
121
 
 
122
  // Get the timestamps setup for comparison to see if a week has passed since our last check
123
  $current_time = time();
124
 
@@ -136,7 +139,7 @@ class SWP_Addon extends Social_Warfare {
136
  endif;
137
 
138
  // If a week has passed since the last check, ping our API to check the validity of the license key
139
- if ( !empty( $this->licence_key) ) :
140
 
141
  $data = array(
142
  'edd_action' => 'check_license',
@@ -152,25 +155,23 @@ class SWP_Addon extends Social_Warfare {
152
  // Parse the response into an object
153
  $license_data = json_decode( $response );
154
 
 
 
155
  // If the license was invalid
156
  if ( isset( $license_data->license ) && 'invalid' === $license_data->license ) :
157
  $is_registered = false;
158
  $this->license_key = '';
159
 
160
- update_option( 'social_warfare_settings' , [
161
- $this->key.'_license_key' => '',
162
- $this->key.'_license_key_timestamp' => $current_time
163
- ] );
164
 
165
  return false;
166
 
167
  // If the property is some other status, just go with it.
168
  else :
169
  $is_registered = true;
170
- update_option( 'social_warfare_settings' , [
171
- $this->key.'_license_key' => '',
172
- $this->key.'_license_key_timestamp' => $current_time
173
- ] );
174
 
175
  return true;
176
 
@@ -179,12 +180,9 @@ class SWP_Addon extends Social_Warfare {
179
  // If we recieved no response from the server, we'll just check again next week
180
  else :
181
  $options[$key.'_license_key_timestamp'] = $current_time;
182
- update_option( 'social_warfare_settings' , [
183
- $this->key.'_license_key_timestamp' => $current_time
184
- ] );
185
 
186
  return true;
187
- $is_registered = true;
188
  endif;
189
  endif;
190
 
34
  }
35
 
36
  public function register_plugin() {
 
37
  // Check to ensure that license key was passed into the function
38
  if ( !empty( $_POST['license_key'] ) ) :
39
 
110
 
111
  public function is_registered() {
112
  // Get the plugin options from the database
113
+ $options = get_option( 'social_warfare_settings', false );
114
+ $old_options = get_option( 'socialWarfareOptions', false );
115
 
116
  if ( isset( $options[$this->key . '_license_key'] ) ) :
117
  $this->license_key = $options[$this->key . '_license_key'];
118
+ elseif ( isset( $old_options[$this->key . '_license_key'] ) ) :
119
+ $this->license_key = $old_options[$this->key . '_license_key'];
120
  else:
121
  $this->license_key = '';
122
  endif;
123
 
124
+
125
  // Get the timestamps setup for comparison to see if a week has passed since our last check
126
  $current_time = time();
127
 
139
  endif;
140
 
141
  // If a week has passed since the last check, ping our API to check the validity of the license key
142
+ if ( !empty( $this->license_key) ) :
143
 
144
  $data = array(
145
  'edd_action' => 'check_license',
155
  // Parse the response into an object
156
  $license_data = json_decode( $response );
157
 
158
+ $options[$this->key . '_license_key_timestamp'] = $current_time;
159
+
160
  // If the license was invalid
161
  if ( isset( $license_data->license ) && 'invalid' === $license_data->license ) :
162
  $is_registered = false;
163
  $this->license_key = '';
164
 
165
+ $options[$this->key . '_license_key'] = '';
166
+
167
+ update_option( 'social_warfare_settings' , $options );
 
168
 
169
  return false;
170
 
171
  // If the property is some other status, just go with it.
172
  else :
173
  $is_registered = true;
174
+ update_option( 'social_warfare_settings' , $options );
 
 
 
175
 
176
  return true;
177
 
180
  // If we recieved no response from the server, we'll just check again next week
181
  else :
182
  $options[$key.'_license_key_timestamp'] = $current_time;
183
+ update_option( 'social_warfare_settings' , $options );
 
 
184
 
185
  return true;
 
186
  endif;
187
  endif;
188
 
functions/options/SWP_Option.php CHANGED
@@ -145,16 +145,18 @@ class SWP_Option extends SWP_Abstract {
145
  *
146
  */
147
  public function set_default( $value ) {
148
- if ( !is_string( $value ) || empty( $value ) ) {
149
- $this->_throw( 'Please provide a default value as a string.' );
150
- }
151
 
152
  $this->default = $value;
153
 
154
  // Add this to our global list of defaults
155
  add_filter('swp_options_page_defaults' , array( $this , 'register_default' ) );
156
 
157
- return $this;
 
 
 
 
 
158
  }
159
 
160
 
145
  *
146
  */
147
  public function set_default( $value ) {
 
 
 
148
 
149
  $this->default = $value;
150
 
151
  // Add this to our global list of defaults
152
  add_filter('swp_options_page_defaults' , array( $this , 'register_default' ) );
153
 
154
+ global $swp_user_options;
155
+ if( !isset( $swp_user_options[$this->key] ) ):
156
+ $swp_user_options[$this->key] = $this->default;
157
+ endif;
158
+
159
+ return $this;
160
  }
161
 
162
 
functions/options/SWP_Option_Icons.php CHANGED
@@ -41,14 +41,21 @@ class SWP_Option_Icons extends SWP_Option {
41
 
42
  if ( count($user_icons) > 0 ):
43
  foreach( $user_icons as $network_key) {
 
 
 
 
 
 
 
 
 
 
 
44
  if ( array_key_exists( $network_key, $all_icons ) && isset( $all_icons[$network_key]) ) :
45
  $network = $all_icons[$network_key];
46
 
47
  $html .= $this->render_icon_HTML( $network );
48
-
49
- else :
50
- write_log( $network_key, "We are looking for this index in the following icons array.");
51
- write_log( $all_icons );
52
  endif;
53
  }
54
  endif;
@@ -72,24 +79,28 @@ class SWP_Option_Icons extends SWP_Option {
72
  $all_icons = $this->get_all_icons();
73
  $user_icons = $this->get_user_icons();
74
 
75
- if ( empty($user_icons) ) :
76
- $user_icons = [];
77
  endif;
78
 
79
- if ( array_key_exists( 0, $all_icons) ) :
80
- //* If $all_icons is numerically indexed, just diff the array.
81
- $inactive_icons = array_diff( $all_icons, $user_icons );
82
 
83
- elseif ( gettype( array_pop( $all_icons ) === 'object' ) ) :
84
  //* Get the keys first, then diff the array.
85
  $keys = [];
 
86
  foreach( $all_icons as $object) {
87
  $keys[] = $object->key;
88
  }
 
89
  $inactive_icons = array_diff( $keys, $user_icons );
90
 
91
- else :
92
- // write_log( $all_icons, 'Showing $all_icons from SWP_Option_Icons->render_inactive_icons().');
 
 
 
93
  endif;
94
 
95
  $html = '<div class="sw-grid sw-col-300">';
41
 
42
  if ( count($user_icons) > 0 ):
43
  foreach( $user_icons as $network_key) {
44
+
45
+ //* On updates, this is being passed as an object for some reason.
46
+ if ( is_object( $network_key ) ) :
47
+
48
+ $network_key = $network_key->key;
49
+
50
+ //* This should not ever be reached. But if it does, fail gracefully.
51
+ elseif ( !is_string( $network_key) ) :
52
+ return;
53
+ endif;
54
+
55
  if ( array_key_exists( $network_key, $all_icons ) && isset( $all_icons[$network_key]) ) :
56
  $network = $all_icons[$network_key];
57
 
58
  $html .= $this->render_icon_HTML( $network );
 
 
 
 
59
  endif;
60
  }
61
  endif;
79
  $all_icons = $this->get_all_icons();
80
  $user_icons = $this->get_user_icons();
81
 
82
+ if ( empty( $user_icons ) ) :
83
+ return $this;
84
  endif;
85
 
86
+ $first = reset( $all_icons );
87
+
88
+ if ( gettype( $first ) === 'object' ) :
89
 
 
90
  //* Get the keys first, then diff the array.
91
  $keys = [];
92
+
93
  foreach( $all_icons as $object) {
94
  $keys[] = $object->key;
95
  }
96
+
97
  $inactive_icons = array_diff( $keys, $user_icons );
98
 
99
+ elseif ( array_key_exists( 0, $all_icons) ) :
100
+
101
+ //* If $all_icons is numerically indexed, just diff the array.
102
+ $inactive_icons = array_diff( $all_icons, $user_icons );
103
+
104
  endif;
105
 
106
  $html = '<div class="sw-grid sw-col-300">';
functions/options/SWP_Option_Select.php CHANGED
@@ -185,12 +185,10 @@ class SWP_Option_Select extends SWP_Option {
185
  settype( $value, 'string' );
186
  endif;
187
 
188
- if ( !is_string( $value ) || !isset( $value ) ) :
189
  $this->_throw( 'Please provide a default value as a string.' );
190
  endif;
191
 
192
- $this->default = $value;
193
-
194
- return $this;
195
  }
196
  }
185
  settype( $value, 'string' );
186
  endif;
187
 
188
+ if ( !is_string( $value ) ) :
189
  $this->_throw( 'Please provide a default value as a string.' );
190
  endif;
191
 
192
+ return parent::set_default( $value );
 
 
193
  }
194
  }
functions/options/SWP_Option_Text.php CHANGED
@@ -85,8 +85,6 @@ class SWP_Option_Text extends SWP_Option {
85
  $this->_throw( 'Please provide a default value as a string.' );
86
  endif;
87
 
88
- $this->default = $default;
89
-
90
- return $this;
91
  }
92
  }
85
  $this->_throw( 'Please provide a default value as a string.' );
86
  endif;
87
 
88
+ return parent::set_default( $default );
 
 
89
  }
90
  }
functions/options/SWP_Option_Textarea.php CHANGED
@@ -80,8 +80,7 @@ class SWP_Option_Textarea extends SWP_Option {
80
  $this->_throw( 'Please provide a default value as a string.' );
81
  endif;
82
 
83
- $this->default = $default;
84
 
85
- return $this;
86
  }
87
  }
80
  $this->_throw( 'Please provide a default value as a string.' );
81
  endif;
82
 
83
+ return parent::set_default( $default );
84
 
 
85
  }
86
  }
functions/options/SWP_Option_Toggle.php CHANGED
@@ -78,8 +78,6 @@ class SWP_Option_Toggle extends SWP_Option {
78
  $this->_throw( 'Please provide a default value as a boolean.' );
79
  }
80
 
81
- $this->default = $value;
82
-
83
- return $this;
84
  }
85
  }
78
  $this->_throw( 'Please provide a default value as a boolean.' );
79
  }
80
 
81
+ return parent::set_default( $value );
 
 
82
  }
83
  }
functions/options/SWP_Section_HTML.php CHANGED
@@ -192,7 +192,6 @@ class SWP_Section_HTML extends SWP_Option {
192
  // Close the Registration Wrapper
193
  $html .= '</div>';
194
 
195
- $html .= '<div class="sw-premium-blocker"></div>';
196
  $html .= '</div>';
197
 
198
  $this->html = $html;
192
  // Close the Registration Wrapper
193
  $html .= '</div>';
194
 
 
195
  $html .= '</div>';
196
 
197
  $this->html = $html;
functions/social-networks/SWP_Twitter.php CHANGED
@@ -57,7 +57,7 @@ class SWP_Twitter extends SWP_Social_Network {
57
  global $swp_user_options;
58
 
59
  // If the user has enabled Twitter shares....
60
- if ( $swp_user_options['twitter_shares'] && isset( $swp_user_options['tweet_count_source'] ) ) :
61
 
62
  // Return the correct Twitter JSON endpoint URL
63
  if ('opensharecount' == $swp_user_options['tweet_count_source']) {
@@ -98,7 +98,7 @@ class SWP_Twitter extends SWP_Social_Network {
98
  global $swp_user_options;
99
 
100
  // If the user has enabled Twitter shares....
101
- if ( $swp_user_options['twitter_shares'] ) :
102
 
103
  // Debugging
104
  if ( _swp_is_debug( 'twitter' ) ) :
57
  global $swp_user_options;
58
 
59
  // If the user has enabled Twitter shares....
60
+ if ( swp_get_option('twitter_shares') && isset( $swp_user_options['tweet_count_source'] ) ) :
61
 
62
  // Return the correct Twitter JSON endpoint URL
63
  if ('opensharecount' == $swp_user_options['tweet_count_source']) {
98
  global $swp_user_options;
99
 
100
  // If the user has enabled Twitter shares....
101
+ if ( swp_get_option('twitter_shares') ) :
102
 
103
  // Debugging
104
  if ( _swp_is_debug( 'twitter' ) ) :
functions/utilities/SWP_Abstract.php CHANGED
@@ -134,7 +134,17 @@ class SWP_Abstract {
134
  }
135
 
136
  public function get_user_icons() {
137
- $user_icons = $this->user_options['order_of_icons'];
 
 
 
 
 
 
 
 
 
 
138
 
139
  if ( empty( $user_icons ) ):
140
  $all_icons = $this->get_all_icons();
134
  }
135
 
136
  public function get_user_icons() {
137
+ if ( isset( $this->user_options['order_of_icons'] ) ) :
138
+ $user_icons = $this->user_options['order_of_icons'];
139
+ else:
140
+ $user_icons = [
141
+ 'google_plus' => 'google_plus',
142
+ 'twitter' => 'twitter',
143
+ 'facebook' => 'facebook',
144
+ 'linkedin' => 'linkedin',
145
+ 'pinterest' => 'pinterest'
146
+ ];
147
+ endif;
148
 
149
  if ( empty( $user_icons ) ):
150
  $all_icons = $this->get_all_icons();
functions/utilities/SWP_CURL.php CHANGED
@@ -90,11 +90,11 @@ class SWP_CURL {
90
  var_dump($result);
91
  echo "</pre>";
92
  endif;
93
-
94
  return $result;
95
  }
96
 
97
- public function file_get_contents_curl( $url ) {
98
  $ch = curl_init();
99
  curl_setopt( $ch, CURLOPT_URL, $url );
100
  curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] );
90
  var_dump($result);
91
  echo "</pre>";
92
  endif;
93
+
94
  return $result;
95
  }
96
 
97
+ public static function file_get_contents_curl( $url ) {
98
  $ch = curl_init();
99
  curl_setopt( $ch, CURLOPT_URL, $url );
100
  curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] );
functions/utilities/SWP_Database_Migration.php CHANGED
@@ -29,6 +29,14 @@ class SWP_Database_Migration {
29
  *
30
  */
31
  public function __construct() {
 
 
 
 
 
 
 
 
32
  if ( !$this->database_is_migrated() ) {
33
  $this->migrate();
34
  }
@@ -40,8 +48,10 @@ class SWP_Database_Migration {
40
  if ( !$this->post_meta_is_migrated() ) {
41
  $this->update_post_meta();
42
  $this->update_hidden_post_meta();
 
43
  }
44
 
 
45
  if ( true === _swp_is_debug('migrate_db') ) {
46
  $this->migrate();
47
  }
@@ -102,16 +112,49 @@ class SWP_Database_Migration {
102
  * @return bool True if the old option still exists; false otherwise.
103
  */
104
  public function post_meta_is_migrated() {
 
 
 
 
105
  //* Fetch posts with 2.3.5 metadata.
106
  $old_metadata = get_posts( ['meta_key' => 'swp_postLocation', 'numberposts' => 1] );
107
 
108
- if( $this->last_migrated !== $this->get_last_migrated() ) {
109
- return false;
110
- }
111
-
112
  return count( $old_metadata ) === 0;
113
  }
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  public function update_hidden_post_meta() {
116
  global $wpdb;
117
 
@@ -187,6 +230,9 @@ class SWP_Database_Migration {
187
  $q2 = $wpdb->prepare( $query, $new_key, $prefix2 . $old_key );
188
  $results = $wpdb->query( $q2 );
189
  }
 
 
 
190
  }
191
 
192
 
@@ -314,7 +360,7 @@ class SWP_Database_Migration {
314
  'swp_decimal_separator' => 'decimal_separator',
315
  'swTotesFormat' => 'totals_alignment',
316
  'float' => 'floating_panel',
317
- 'float_background_color' => 'float_location',
318
  'swp_float_scr_sz' => 'float_screen_width',
319
  'sideReveal' => 'transition',
320
  'floatStyle' => 'float_button_shape',
@@ -369,27 +415,9 @@ class SWP_Database_Migration {
369
  'floatLeftMobile' => 'float_mobile',
370
  ];
371
 
372
-
373
-
374
- //* We don't actually do anything with these. I left them here just as a note.
375
- //* They are deleted during the call to delete_option( 'socialWarfareOptions' ).
376
- $removals = [
377
- 'dashboardShares',
378
- 'rawNumbers',
379
- 'notShowing',
380
- 'visualEditorBug',
381
- 'loopFix',
382
- 'locationrevision',
383
- 'locationattachment',
384
- ];
385
-
386
-
387
  $migrations = [];
388
 
389
  foreach( $options as $old => $value ) {
390
-
391
-
392
-
393
  //* The order of icons used to be stored in an array at 'active'.
394
  if ( is_array( $value) && array_key_exists( 'active', $value) ) :
395
  $new_value = $value;
@@ -400,19 +428,37 @@ class SWP_Database_Migration {
400
  $new_value = $value;
401
  endif;
402
 
 
 
 
 
 
 
 
 
 
 
 
 
 
403
  //* Specific case: customColor mapping.
404
  if ( $old === 'customColor' ) :
405
  $migrations['custom_color'] = $new_value;
406
  $migrations['custom_color_outlines'] = $new_value;
407
 
408
- if ( $options['floatStyleSource'] == false ) :
 
409
  $migrations['float_custom_color'] = $new_value;
410
  $migrations['float_custom_color_outlines'] = $new_value;
411
  endif;
412
-
413
- continue;
414
  endif;
415
 
 
 
 
 
 
 
416
  if ( array_key_exists( $old, $map) ) :
417
  //* We specified an update to the key.
418
  $new = $map[$old];
@@ -424,6 +470,43 @@ class SWP_Database_Migration {
424
 
425
  }
426
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  update_option( 'social_warfare_settings', $migrations );
428
  //* Play it safe for now.
429
  //* Leave socialWarfareOptions in the database.
29
  *
30
  */
31
  public function __construct() {
32
+
33
+ // Set up the defaults before directing into the template functions.
34
+ add_action( 'template_redirect' , [ $this , 'scan_for_new_defaults'] );
35
+
36
+ add_action( 'plugins_loaded', [$this, 'init'] );
37
+ }
38
+
39
+ public function init() {
40
  if ( !$this->database_is_migrated() ) {
41
  $this->migrate();
42
  }
48
  if ( !$this->post_meta_is_migrated() ) {
49
  $this->update_post_meta();
50
  $this->update_hidden_post_meta();
51
+ $this->update_last_migrated();
52
  }
53
 
54
+
55
  if ( true === _swp_is_debug('migrate_db') ) {
56
  $this->migrate();
57
  }
112
  * @return bool True if the old option still exists; false otherwise.
113
  */
114
  public function post_meta_is_migrated() {
115
+ if( $this->last_migrated === $this->get_last_migrated() ) {
116
+ return true;
117
+ }
118
+
119
  //* Fetch posts with 2.3.5 metadata.
120
  $old_metadata = get_posts( ['meta_key' => 'swp_postLocation', 'numberposts' => 1] );
121
 
 
 
 
 
122
  return count( $old_metadata ) === 0;
123
  }
124
 
125
+ /**
126
+ * Creates the default value for any new keys.
127
+ *
128
+ * @since 3.0.8 | 16 MAY 2018 | Created the method.
129
+ * @since 3.0.8 | 24 MAY 2018 | Added check for order_of_icons
130
+ * @param string $key They suspected missing key.
131
+ * @return [type] [description]
132
+ */
133
+ public function scan_for_new_defaults() {
134
+ global $swp_user_options;
135
+ $updated = false;
136
+ $defaults = apply_filters( 'swp_options_page_defaults', [] );
137
+
138
+ // Manually set the order_of_icons default.
139
+ // TODO: Set this programatically via the set_default method on the options page.
140
+ $defaults['order_of_icons'] = array(
141
+ 'google_plus' => 'google_plus',
142
+ 'twitter' => 'twitter',
143
+ 'facebook' => 'facebook',
144
+ 'linkedin' => 'linkedin',
145
+ 'pinterest' => 'pinterest'
146
+ );
147
+
148
+ foreach ($defaults as $key => $value ) {
149
+ if ( !array_key_exists( $key, $swp_user_options) ) :
150
+ $updated = true;
151
+ $swp_user_options[$key] = $value;
152
+ endif;
153
+ }
154
+
155
+ }
156
+
157
+
158
  public function update_hidden_post_meta() {
159
  global $wpdb;
160
 
230
  $q2 = $wpdb->prepare( $query, $new_key, $prefix2 . $old_key );
231
  $results = $wpdb->query( $q2 );
232
  }
233
+
234
+ $this->update_last_migrated();
235
+
236
  }
237
 
238
 
360
  'swp_decimal_separator' => 'decimal_separator',
361
  'swTotesFormat' => 'totals_alignment',
362
  'float' => 'floating_panel',
363
+ 'floatOption' => 'float_location',
364
  'swp_float_scr_sz' => 'float_screen_width',
365
  'sideReveal' => 'transition',
366
  'floatStyle' => 'float_button_shape',
415
  'floatLeftMobile' => 'float_mobile',
416
  ];
417
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
  $migrations = [];
419
 
420
  foreach( $options as $old => $value ) {
 
 
 
421
  //* The order of icons used to be stored in an array at 'active'.
422
  if ( is_array( $value) && array_key_exists( 'active', $value) ) :
423
  $new_value = $value;
428
  $new_value = $value;
429
  endif;
430
 
431
+ //* Specific case: newOrderOfIcons mapping.
432
+ if ( 'newOrderOfIcons' === $old ) :
433
+ if ( array_key_exists( 'googlePlus', $new_value ) ) :
434
+ unset( $new_value['googlePlus'] );
435
+ $new_value[] = 'google_plus';
436
+ endif;
437
+
438
+ if (array_key_exists( 'linkedIn', $new_value) ) :
439
+ unset( $new_value['linkedIn'] );
440
+ $new_value[] = 'linkedin';
441
+ endif;
442
+ endif;
443
+
444
  //* Specific case: customColor mapping.
445
  if ( $old === 'customColor' ) :
446
  $migrations['custom_color'] = $new_value;
447
  $migrations['custom_color_outlines'] = $new_value;
448
 
449
+ // If the float style source is set to inherit the style from the static buttons.
450
+ if ( $options['floatStyleSource'] == true ) :
451
  $migrations['float_custom_color'] = $new_value;
452
  $migrations['float_custom_color_outlines'] = $new_value;
453
  endif;
 
 
454
  endif;
455
 
456
+ // Only if the source is set to not inherit them from the static buttons.
457
+ if ( $old === 'sideCustomColor' ) :
458
+ $migrations['float_custom_color'] = $new_value;
459
+ $migrations['float_custom_color_outlines'] = $new_value;
460
+ endif;
461
+
462
  if ( array_key_exists( $old, $map) ) :
463
  //* We specified an update to the key.
464
  $new = $map[$old];
470
 
471
  }
472
 
473
+ //* Manually adding these in as short term solution.
474
+ if ( !isset( $migrations['float_size'] ) ) :
475
+ $migrations['float_size'] = '1';
476
+ endif;
477
+
478
+ if ( !isset( $migrations['float_location'] ) ) :
479
+ $migrations['float_location'] = 'bottom';
480
+ endif;
481
+
482
+ if ( !isset( $migrations['float_alignment'] ) ) :
483
+ $migrations['float_alignment'] = 'center';
484
+ endif;
485
+
486
+ $custom_colors = ['custom_color', 'custom_color_outlines', 'float_custom_color', 'float_custom_color_outlines'];
487
+
488
+ foreach( $custom_colors as $color ) {
489
+ if ( !isset($migrations[$color] ) ) :
490
+ $migrations[$color] = "#333333";
491
+ endif;
492
+ }
493
+
494
+ $removals = [
495
+ 'dashboardShares',
496
+ 'rawNumbers',
497
+ 'notShowing',
498
+ 'visualEditorBug',
499
+ 'loopFix',
500
+ 'locationrevision',
501
+ 'locationattachment',
502
+ ];
503
+
504
+ foreach ( $removals as $trash ) :
505
+ if ( ( $migrations[$trash] ) ) :
506
+ unset($migrations[$trash]);
507
+ endif;
508
+ endforeach;
509
+
510
  update_option( 'social_warfare_settings', $migrations );
511
  //* Play it safe for now.
512
  //* Leave socialWarfareOptions in the database.
functions/utilities/SWP_URL_Management.php CHANGED
@@ -55,7 +55,7 @@ class SWP_URL_Management {
55
  $options = $swp_user_options;
56
  $url = $array['url'];
57
  $network = $array['network'];
58
-
59
  if( ( 'pinterest' === $network && isset( $swp_user_options['utm_on_pins']) && true === $swp_user_options['utm_on_pins']) || $network !== 'pinterest' ):
60
 
61
  if ( true === is_attachment() ) :
@@ -103,7 +103,7 @@ class SWP_URL_Management {
103
  $network = $array['network'];
104
  $postID = $array['postID'];
105
 
106
- if( $network === 'pinterest' ):
107
  return $array;
108
  endif;
109
 
55
  $options = $swp_user_options;
56
  $url = $array['url'];
57
  $network = $array['network'];
58
+
59
  if( ( 'pinterest' === $network && isset( $swp_user_options['utm_on_pins']) && true === $swp_user_options['utm_on_pins']) || $network !== 'pinterest' ):
60
 
61
  if ( true === is_attachment() ) :
103
  $network = $array['network'];
104
  $postID = $array['postID'];
105
 
106
+ if( $network === 'pinterest' || $network === 'stumbleupon' ):
107
  return $array;
108
  endif;
109
 
functions/utilities/utility.php CHANGED
@@ -33,22 +33,29 @@
33
  * set.
34
  *
35
  * @since 3.0.0 | 24 APR 2018 | Created
 
36
  * @param string $key The key associated with the option we want.
 
37
  * @return mixed $value The value of the option.
38
  *
39
  */
40
-
41
- function swp_get_option( $key ){
42
  global $swp_user_options;
 
 
 
 
 
43
  $defaults = array();
44
  $defaults = apply_filters('swp_options_page_defaults' , $defaults );
45
 
46
  // If the options exists, return it.
47
- if( !empty( $swp_user_options[$key] ) ):
48
- return $swp_user_options[$key];
49
 
50
  // Else check if we have a default to use:
51
  elseif( !empty($defaults[$key]) ):
 
52
  return $defaults[$key];
53
 
54
  // If neither, just return false.
33
  * set.
34
  *
35
  * @since 3.0.0 | 24 APR 2018 | Created
36
+ * @since 3.0.8 | 16 MAY 2018 | Added $options parameter.
37
  * @param string $key The key associated with the option we want.
38
+ * @param optional array $optoins A set of options to read from.
39
  * @return mixed $value The value of the option.
40
  *
41
  */
42
+ function swp_get_option( $key, $options = null ){
 
43
  global $swp_user_options;
44
+
45
+ if ( null === $options ) {
46
+ $options = $swp_user_options;
47
+ }
48
+
49
  $defaults = array();
50
  $defaults = apply_filters('swp_options_page_defaults' , $defaults );
51
 
52
  // If the options exists, return it.
53
+ if( !empty( $options[$key] ) ):
54
+ return $options[$key];
55
 
56
  // Else check if we have a default to use:
57
  elseif( !empty($defaults[$key]) ):
58
+ // init_default( $key );
59
  return $defaults[$key];
60
 
61
  // If neither, just return false.
functions/widgets/notes.txt DELETED
@@ -1,14 +0,0 @@
1
- Feb 5 2018
2
-
3
- Brief phone call w/Nick go over items
4
-
5
- Debugged Meta tag output for #454
6
- Resolved issues #454, 455,
7
-
8
- Grabbed dev screenshot of CTT for Nick
9
-
10
- keys
11
- "top"
12
- "middle"
13
- "bottom"
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/admin-options-page.js CHANGED
@@ -71,6 +71,8 @@
71
  }
72
 
73
  function handleCustomColors(event, selector, customColor, customOutlines) {
 
 
74
  var visible = false;
75
  var value = event.target.value;
76
  var visibility = {
@@ -80,7 +82,7 @@
80
 
81
  $(selector).each(function(index, select) {
82
  var val = $(select).val();
83
- //* Check to see if this or a sibling input has custom_color selected.
84
  if (val.indexOf("custom") !== -1) {
85
  if (val.indexOf("outlines") > 0) {
86
  visibility.customOutlines = true;
@@ -93,6 +95,18 @@
93
  visibility.customColor ? customColor.slideDown() : customColor.slideUp();
94
  visibility.customOutlines ? customOutlines.slideDown() : customOutlines.slideUp();
95
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  }
97
 
98
  /*********************************************************
@@ -701,43 +715,6 @@
701
  });
702
  }
703
 
704
- function blockPremiumFeatures() {
705
- $( '.sw-premium-blocker' ).tooltip({
706
- items: '.sw-premium-blocker',
707
- content: '<i></i>Unlock this feature by registering your license.',
708
- position: {
709
- my: 'center top',
710
- at: 'center top'
711
- },
712
-
713
- tooltipClass: 'sw-admin-hover-notice',
714
-
715
- open: function( event, ui ) {
716
- if ( typeof ( event.originalEvent ) === 'undefined' ) {
717
- return false;
718
- }
719
-
720
- var $id = $( ui.tooltip ).attr( 'id' );
721
-
722
- // close any lingering tooltips
723
- $( 'div.ui-tooltip' ).not( '#' + $id ).remove();
724
-
725
- // ajax function to pull in data and add it to the tooltip goes here
726
- },
727
-
728
- close: function( event, ui ) {
729
- ui.tooltip.hover(function() {
730
- $( this ).stop( true ).fadeTo( 400, 1 );
731
- },
732
- function() {
733
- $( this ).fadeOut( '400', function() {
734
- $( this ).remove();
735
- });
736
- });
737
- }
738
- });
739
- }
740
-
741
  /*********************************************************
742
  A Function for image upload buttons
743
  *********************************************************/
@@ -819,7 +796,6 @@
819
  handleRegistration();
820
  sortableInit();
821
  getSystemStatus();
822
- blockPremiumFeatures();
823
  customUploaderInit();
824
  set_ctt_preview();
825
  });
71
  }
72
 
73
  function handleCustomColors(event, selector, customColor, customOutlines) {
74
+ //* Create a notice about the custom colors.
75
+ var colorNotice = '<div id="color-notice"><p><span class="color-dismiss"></span><b>Note:</b> Custom colors will not show up in the preview, but will on your site.</p></div>';
76
  var visible = false;
77
  var value = event.target.value;
78
  var visibility = {
82
 
83
  $(selector).each(function(index, select) {
84
  var val = $(select).val();
85
+ //* Check to see if this or a sibling input has a custom_color selected.
86
  if (val.indexOf("custom") !== -1) {
87
  if (val.indexOf("outlines") > 0) {
88
  visibility.customOutlines = true;
95
  visibility.customColor ? customColor.slideDown() : customColor.slideUp();
96
  visibility.customOutlines ? customOutlines.slideDown() : customOutlines.slideUp();
97
 
98
+ if (visibility.customColor || visibility.customOutlines) {
99
+ console.log(colorNotice);
100
+ $("body").append(colorNotice);
101
+ $(".color-dismiss").on("click", function() {
102
+ $("#color-notice").fadeOut("slow");
103
+ });
104
+ } else {
105
+ if ($("#color-notice")) {
106
+ $(colorNotice).fadeOut("slow");
107
+ }
108
+ }
109
+
110
  }
111
 
112
  /*********************************************************
715
  });
716
  }
717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  /*********************************************************
719
  A Function for image upload buttons
720
  *********************************************************/
796
  handleRegistration();
797
  sortableInit();
798
  getSystemStatus();
 
799
  customUploaderInit();
800
  set_ctt_preview();
801
  });
js/admin-options-page.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t,o){"use strict";function s(e,o,s,n){var a=(e.target.value,{customColor:!1,customOutlines:!1});t(o).each(function(e,o){var s=t(o).val();-1!==s.indexOf("custom")&&(s.indexOf("outlines")>0?a.customOutlines=!0:a.customColor=!0)}),a.customColor?s.slideDown():s.slideUp(),a.customOutlines?n.slideDown():n.slideUp()}function n(t){var o,s;document.body.createTextRange?(o=document.body.createTextRange(),o.moveToElementText(t),o.select()):e.getSelection&&(s=e.getSelection(),o=document.createRange(),o.selectNodeContents(t),s.removeAllRanges(),s.addRange(o))}function a(){var e={};return t("form.sw-admin-settings-form input, form.sw-admin-settings-form select, form.sw-admin-settings-form textarea").each(function(){var o,s=t(this),n=s.attr("name");o="checkbox"===s.attr("type")?s.prop("checked"):s.val(),e[n]=o}),e.order_of_icons={},t(".sw-active i").each(function(){var o=t(this).data("network");e.order_of_icons[o]=o}),e}function l(){var e=t(".sw-top-menu").offset(),o=t(".sw-top-menu").width();t(".sw-top-menu").css({position:"fixed",left:e.left,top:e.top,width:o}),t(".sw-admin-wrapper").css("padding-top","75px")}function i(){t(".sw-tab-selector").on("click",function(e){e.preventDefault(),t("html, body").animate({scrollTop:0},300);var o=t(this).attr("data-link");t(".sw-admin-tab").hide(),t("#"+o).show(),t(".sw-header-menu li").removeClass("sw-active-tab"),t(this).parents("li").addClass("sw-active-tab"),"swp_styles"===o&&socialWarfarePlugin.activateHoverStates(),swpConditionalFields()})}function r(){t(".sw-checkbox-toggle").on("click",function(){var e=t(this).attr("status"),o=t(this).attr("field");"on"===e?(t(this).attr("status","off"),t(o).prop("checked",!1)):(t(this).attr("status","on"),t(o).prop("checked",!0)),u(),swpConditionalFields()})}function c(){t("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){swpConditionalFields(),socialWarfarePlugin.newOptions=a(),u()}),socialWarfarePlugin.defaultOptions=a()}function u(){socialWarfarePlugin.newOptions=a(),JSON.stringify(socialWarfarePlugin.newOptions)!==JSON.stringify(socialWarfarePlugin.defaultOptions)?t(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button"):t(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}function _(){t(".sw-save-settings").on("click",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,p();var o=a(),s={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:o};t.post(ajaxurl,s,function(e){m(),socialWarfarePlugin.defaultOptions=a(),u()})})}function p(){t("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function m(){t(".sw-loading-message").html("Success!").removeClass("sw-loading-message").addClass("sw-loading-complete"),t(".sw-loading-bg").delay(1e3).fadeOut(1e3),setTimeout(function(){t(".sw-loading-bg").remove()},2e3)}function d(){var e=(t('select[name="button_shape"]').val(),t('select[name="default_colors"]').val()),o=t('select[name="single_colors"]').val(),s=t('select[name="hover_colors"]').val();t("style.swp_customColorStuff").remove();var n=t('input[name="custom_color"]').val(),a="";"custom_color"!=e&&"custom_color"!=o&&"custom_color"!=s||(a=".swp_social_panel.swp_default_customColor a, html body .swp_social_panel.swp_individual_customColor .nc_tweetContainer:hover a, body .swp_social_panel.swp_other_customColor:hover a {color:white} .swp_social_panel.swp_default_customColor .nc_tweetContainer, html body .swp_social_panel.swp_individual_customColor .nc_tweetContainer:hover, body .swp_social_panel.swp_other_customColor:hover .nc_tweetContainer {background-color:"+n+";border:1px solid "+n+";}"),"custom_color_outlines"!=e&&"custom_color_outlines"!=o&&"custom_color_outlines"!=s||(a=a+" .swp_social_panel.swp_default_custom_color_outlines a, html body .swp_social_panel.swp_individual_custom_color_outlines .nc_tweetContainer:hover a, body .swp_social_panel.swp_other_custom_color_outlines:hover a { color:"+n+"; } .swp_social_panel.swp_default_custom_color_outlines .nc_tweetContainer, html body .swp_social_panel.swp_individual_custom_color_outlines .nc_tweetContainer:hover, body .swp_social_panel.swp_other_custom_color_outlines:hover .nc_tweetContainer { background:transparent; border:1px solid "+n+"; }"),t("head").append('<style type="text/css" class="swp_customColorStuff">'+a+"</style>")}function f(){function e(e){var o=t('select[name="'+e+'"]').val();if(0===o.indexOf("custom")){return e.slice(0,e.indexOf("_"))+"_full_color"}return o}var o=e("button_shape"),s=e("default_colors"),n=e("single_colors"),a=e("hover_colors"),l="swp_"+o+" swp_default_"+s+" swp_individual_"+n+" swp_other_"+a;void 0===socialWarfarePlugin.lastClass&&(socialWarfarePlugin.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color");var l="swp_"+o+" swp_default_"+s+" swp_individual_"+n+" swp_other_"+a;t(".swp_social_panel").removeClass("swp_other_medium_gray"),t(".swp_social_panel").removeClass(socialWarfarePlugin.lastClass).addClass(l),socialWarfarePlugin.lastClass=l}function v(){var e={full_color:"Full Color",light_gray:"Light Gray",medium_gray:"Medium Gray",dark_gray:"Dark Gray",light_gray_outlines:"Light Gray Outlines",medium_gray_outlines:"Medium Gray Outlines",dark_gray_outlines:"Dark Gray Outlines",color_outlines:"Color Outlines",custom_color:"Custom Color",custom_color_outlines:"Custom Color Outlines"},o={flat_fresh:e,leaf:e,pill:e,three_dee:{full_color:"Full Color",light_gray:"Light Gray",medium_gray:"Medium Gray",dark_gray:"Dark Gray"},connected:e,shift:e,boxed:e};if(0!==t('select[name="button_shape"]').length){var s=t('select[name="button_shape"]').val(),n=t('select[name="default_colors"]').val(),a=t('select[name="single_colors"]').val(),l=t('select[name="hover_colors"]').val();t('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove(),t.each(o[s],function(e,o){e===n?t('select[name="default_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="default_colors"]').append('<option value="'+e+'">'+o+"</option>"),e===a?t('select[name="single_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="single_colors"]').append('<option value="'+e+'">'+o+"</option>"),e===l?t('select[name="hover_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="hover_colors"]').append('<option value="'+e+'">'+o+"</option>"),"custom_color"==n||"custom_color_outlines"==n||"custom_color"==a||"custom_color_outlines"==a||"custom_color"==l||"custom_color_outlines"==l?(t(".customColor_wrapper").slideDown(),d()):t(".customColor_wrapper").slideUp()}),t('select[name="default_colors"], select[name="single_colors"], select[name="hover_colors"]').on("change",f),t('select[name="button_shape"]').on("change",function(){var e=t('select[name="button_shape"]').val(),s=t('select[name="default_colors"]').val(),n=t('select[name="single_colors"]').val(),a=t('select[name="hover_colors"]').val(),l=0,i=o[e],r=i.hasOwnProperty(s),c=i.hasOwnProperty(n),u=i.hasOwnProperty(a);t('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove(),t.each(o[e],function(e,o){e===s||0==r&&0==l?t('select[name="default_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="default_colors"]').append('<option value="'+e+'">'+o+"</option>"),e===n||0==c&&0==l?t('select[name="single_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="single_colors"]').append('<option value="'+e+'">'+o+"</option>"),e===a||0==u&&0==l?t('select[name="hover_colors"]').append('<option value="'+e+'" selected>'+o+"</option>"):t('select[name="hover_colors"]').append('<option value="'+e+'">'+o+"</option>"),++l}),void 0===socialWarfarePlugin.lastClass&&(socialWarfarePlugin.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color");var _="swp_"+e+" swp_default_"+s+" swp_individual_"+n+" swp_other_"+a;t(".swp_social_panel").removeClass(socialWarfarePlugin.lastClass).addClass(_),socialWarfarePlugin.lastClass=_})}}function w(){t('select[name="button_size"],select[name="button_alignment"]').on("change",function(){t(".swp_social_panel").css({width:"100%"});var e,o=t(".swp_social_panel").width(),s=t('select[name="button_size"]').val(),n=t('select[name="button_alignment"]').val();"full_width"==n&&1!=s||s>=1?(e=o/s,t(".swp_social_panel").css("cssText","width:"+e+"px!important;"),t(".swp_social_panel").css({transform:"scale("+s+")","transform-origin":"left"})):"full_width"!=n&&s<1&&(e=o/s,t(".swp_social_panel").css({transform:"scale("+s+")","transform-origin":n})),socialWarfarePlugin.activateHoverStates()})}function g(){var e=t('select[name="ctt_theme"]');e.on("change",function(){var e=t('select[name="ctt_theme"]').val();t(".swp_CTT").attr("class","swp_CTT").addClass(e)}),e.trigger("change")}function h(e,o){var s=t(".sw-admin-wrapper");s.attr("swp-addons"),s.attr("swp-registrations");t(".registration-wrapper."+o).attr("registration",e),1===parseInt(e)?(s.attr("sw-registered",e),t(".sw-top-menu").attr("sw-registered",e),C(s,"swp-registrations",o)):y(s,"swp-registrations",o)}function y(e,o,s){var n=t(e).attr(o),a=n.indexOf(s);if(-1!==a){var l=a+s.length,i=n.slice(0,a)+n.slice(l);t(e).attr(o,i)}}function C(e,o,s){var n=t(e).attr(o);n.includes(s)||t(e).attr(o,n+s)}function b(o,s){var n=!1,a={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",name_key:o,item_id:s,license_key:t('input[name="'+o+'_license_key"]').val()};return p(),t.post(ajaxurl,a,function(t){t=JSON.parse(t),t.success?(h("1",o),n=!0):alert("Failure: "+t.data),e.location.reload(!0),m()}),n}function O(o,s){var n=!1,a={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister",name_key:o,item_id:s};return p(),t.post(ajaxurl,a,function(s){s=JSON.parse(s),s.success?(t('input[name="'+o+'_license_key"]').val(""),h("0",o),n=!0):alert("Failure: "+s.data),e.location.reload(!0),m()}),n}function k(){t(".register-plugin").on("click",function(){return b(t(this).attr("swp-addon"),t(this).attr("swp-item-id")),!1}),t(".unregister-plugin").on("click",function(){return O(t(this).attr("swp-addon"),t(this).attr("swp-item-id")),!1})}function x(){t(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){u()}}),t(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){u()}})}function P(){t(".sw-system-status").on("click",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,t(".system-status-wrapper").slideToggle(),n(t(".system-status-container").get(0))})}function W(){t(".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(e,o){if(void 0===e.originalEvent)return!1;var s=t(o.tooltip).attr("id");t("div.ui-tooltip").not("#"+s).remove()},close:function(e,o){o.tooltip.hover(function(){t(this).stop(!0).fadeTo(400,1)},function(){t(this).fadeOut("400",function(){t(this).remove()})})}})}function D(){var e;t(".swp_upload_image_button").click(function(o){o.preventDefault();var s=t(this).attr("for");if(e)return void e.open();e=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:!1}),e.on("select",function(){var o=e.state().get("selection").first().toJSON();t('input[name="'+s+'"').val(o.url)}),e.open()})}function S(){var e=t("#ctt_preview"),o=t("select[name=ctt_theme]");e.length||(e=t('<style id="ctt_preview"></style>'),t("head").append(e)),"none"===t(o).val()&&T(),t(o).on("change",function(e){"none"===e.target.value&&T()}),t("textarea[name=ctt_css]").on("keyup",T)}function T(){var e=t("#ctt_preview"),o=t("textarea[name=ctt_css]");t(e).text(t(o).val())}e.onload=function(){var e="[name=default_colors],[name=hover_colors], [name=single_colors]",o="[name=float_default_colors], [name=float_hover_colors], [name=float_single_colors]";t("[name=custom_color],[name=custom_color_outlines],[name=float_custom_color],[name=float_custom_color_outlines]").parent().parent().hide(),t(e).each(function(e,o){var s=t(o).val(),n=t("[name=custom_color]").parent().parent(),a=t("[name=custom_color_outlines]").parent().parent();-1!==s.indexOf("custom")&&(s.indexOf("outlines")>0?a.show():n.show())}),t(o).each(function(e,o){var s=t(o).val(),n=t("[name=float_custom_color]").parent().parent(),a=t("[name=float_custom_color_outlines]").parent().parent();-1!==s.indexOf("custom")&&(s.indexOf("outlines")>0?a.show():n.show())}),t(e).on("change",function(o){var n=(o.target.value,t("[name=custom_color]").parent().parent()),a=t("[name=custom_color_outlines]").parent().parent();s(o,e,n,a)}),t(o).on("change",function(e){var n=(e.target.value,t("[name=float_custom_color]").parent().parent()),a=t("[name=float_custom_color_outlines]").parent().parent();n.hide(),a.hide(),s(e,o,n,a)})},t(document).ready(function(){_(),c(),l(),i(),r(),v(),swpConditionalFields(),g(),w(),k(),x(),P(),W(),D(),S()})}(this,jQuery);
1
+ (function(m,f,i){m.onload=function(){var F="[name=default_colors],[name=hover_colors], [name=single_colors]";var E="[name=float_default_colors], [name=float_hover_colors], [name=float_single_colors]";f("[name=custom_color],[name=custom_color_outlines],[name=float_custom_color],[name=float_custom_color_outlines]").parent().parent().hide();f(F).each(function(J,H){var K=f(H).val();var I=f("[name=custom_color]").parent().parent();var G=f("[name=custom_color_outlines]").parent().parent();if(K.indexOf("custom")!==-1){if(K.indexOf("outlines")>0){G.show()}else{I.show()}}});f(E).each(function(J,H){var K=f(H).val();var I=f("[name=float_custom_color]").parent().parent();var G=f("[name=float_custom_color_outlines]").parent().parent();if(K.indexOf("custom")!==-1){K.indexOf("outlines")>0?G.show():I.show()}});f(F).on("change",function(J){var I=J.target.value;var H=f("[name=custom_color]").parent().parent();var G=f("[name=custom_color_outlines]").parent().parent();p(J,F,H,G,I)});f(E).on("change",function(J){var I=J.target.value;var H=f("[name=float_custom_color]").parent().parent();var G=f("[name=float_custom_color_outlines]").parent().parent();H.hide();G.hide();p(J,E,H,G,I)})};function p(J,F,H,E){var I='<div id="color-notice"><p><span class="color-dismiss"></span><b>Note:</b> Custom colors will not show up in the preview, but will on your site.</p></div>';var L=false;var K=J.target.value;var G={customColor:false,customOutlines:false};f(F).each(function(N,M){var O=f(M).val();if(O.indexOf("custom")!==-1){if(O.indexOf("outlines")>0){G.customOutlines=true}else{G.customColor=true}}});G.customColor?H.slideDown():H.slideUp();G.customOutlines?E.slideDown():E.slideUp();if(G.customColor||G.customOutlines){console.log(I);f("body").append(I);f(".color-dismiss").on("click",function(){f("#color-notice").fadeOut("slow")})}else{if(f("#color-notice")){f(I).fadeOut("slow")}}}function C(F){var E,G;if(document.body.createTextRange){E=document.body.createTextRange();E.moveToElementText(F);E.select()}else{if(m.getSelection){G=m.getSelection();E=document.createRange();E.selectNodeContents(F);G.removeAllRanges();G.addRange(E)}}}function r(){var E={};f("form.sw-admin-settings-form input, form.sw-admin-settings-form select, form.sw-admin-settings-form textarea").each(function(){var G=f(this);var F=G.attr("name");var H;if("checkbox"===G.attr("type")){H=G.prop("checked")}else{H=G.val()}E[F]=H});E.order_of_icons={};f(".sw-active i").each(function(){var F=f(this).data("network");E.order_of_icons[F]=F});return E}function k(){var F=f(".sw-top-menu").offset();var E=f(".sw-top-menu").width();f(".sw-top-menu").css({position:"fixed",left:F.left,top:F.top,width:E});f(".sw-admin-wrapper").css("padding-top","75px")}function w(){f(".sw-tab-selector").on("click",function(F){F.preventDefault();f("html, body").animate({scrollTop:0},300);var E=f(this).attr("data-link");f(".sw-admin-tab").hide();f("#"+E).show();f(".sw-header-menu li").removeClass("sw-active-tab");f(this).parents("li").addClass("sw-active-tab");if("swp_styles"===E){socialWarfarePlugin.activateHoverStates()}swpConditionalFields()})}function q(){f(".sw-checkbox-toggle").on("click",function(){var E=f(this).attr("status");var F=f(this).attr("field");if("on"===E){f(this).attr("status","off");f(F).prop("checked",false)}else{f(this).attr("status","on");f(F).prop("checked",true)}D();swpConditionalFields()})}function b(){f("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){swpConditionalFields();socialWarfarePlugin.newOptions=r();D()});socialWarfarePlugin.defaultOptions=r()}function D(){socialWarfarePlugin.newOptions=r();if(JSON.stringify(socialWarfarePlugin.newOptions)!==JSON.stringify(socialWarfarePlugin.defaultOptions)){f(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button")}else{f(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}}function l(){f(".sw-save-settings").on("click",function(F){F.preventDefault?F.preventDefault():(F.returnValue=false);v();var E=r();var G={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:E};f.post(ajaxurl,G,function(H){g();socialWarfarePlugin.defaultOptions=r();D()})})}function v(){f("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function g(){f(".sw-loading-message").html("Success!").removeClass("sw-loading-message").addClass("sw-loading-complete");f(".sw-loading-bg").delay(1000).fadeOut(1000);setTimeout(function(){f(".sw-loading-bg").remove()},2000)}function a(){var J=f('select[name="button_shape"]').val();var G=f('select[name="default_colors"]').val();var E=f('select[name="single_colors"]').val();var H=f('select[name="hover_colors"]').val();f("style.swp_customColorStuff").remove();var F=f('input[name="custom_color"]').val();var I="";if(G=="custom_color"||E=="custom_color"||H=="custom_color"){I=".swp_social_panel.swp_default_customColor a, html body .swp_social_panel.swp_individual_customColor .nc_tweetContainer:hover a, body .swp_social_panel.swp_other_customColor:hover a {color:white} .swp_social_panel.swp_default_customColor .nc_tweetContainer, html body .swp_social_panel.swp_individual_customColor .nc_tweetContainer:hover, body .swp_social_panel.swp_other_customColor:hover .nc_tweetContainer {background-color:"+F+";border:1px solid "+F+";}"}if(G=="custom_color_outlines"||E=="custom_color_outlines"||H=="custom_color_outlines"){I=I+" .swp_social_panel.swp_default_custom_color_outlines a, html body .swp_social_panel.swp_individual_custom_color_outlines .nc_tweetContainer:hover a, body .swp_social_panel.swp_other_custom_color_outlines:hover a { color:"+F+"; } .swp_social_panel.swp_default_custom_color_outlines .nc_tweetContainer, html body .swp_social_panel.swp_individual_custom_color_outlines .nc_tweetContainer:hover, body .swp_social_panel.swp_other_custom_color_outlines:hover .nc_tweetContainer { background:transparent; border:1px solid "+F+"; }"}f("head").append('<style type="text/css" class="swp_customColorStuff">'+I+"</style>")}function x(){var J=F("button_shape");var G=F("default_colors");var E=F("single_colors");var H=F("hover_colors");function F(K){var M=f('select[name="'+K+'"]').val();if(M.indexOf("custom")===0){var L=K.slice(0,K.indexOf("_"));return L+"_full_color"}return M}var I="swp_"+J+" swp_default_"+G+" swp_individual_"+E+" swp_other_"+H;if("undefined"===typeof socialWarfarePlugin.lastClass){socialWarfarePlugin.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color"}var I="swp_"+J+" swp_default_"+G+" swp_individual_"+E+" swp_other_"+H;f(".swp_social_panel").removeClass("swp_other_medium_gray");f(".swp_social_panel").removeClass(socialWarfarePlugin.lastClass).addClass(I);socialWarfarePlugin.lastClass=I}function A(){var I={full_color:"Full Color",light_gray:"Light Gray",medium_gray:"Medium Gray",dark_gray:"Dark Gray",light_gray_outlines:"Light Gray Outlines",medium_gray_outlines:"Medium Gray Outlines",dark_gray_outlines:"Dark Gray Outlines",color_outlines:"Color Outlines",custom_color:"Custom Color",custom_color_outlines:"Custom Color Outlines"};var G={flat_fresh:I,leaf:I,pill:I,three_dee:{full_color:"Full Color",light_gray:"Light Gray",medium_gray:"Medium Gray",dark_gray:"Dark Gray"},connected:I,shift:I,boxed:I};if(0===f('select[name="button_shape"]').length){return}var J=f('select[name="button_shape"]').val();var F=f('select[name="default_colors"]').val();var E=f('select[name="single_colors"]').val();var H=f('select[name="hover_colors"]').val();f('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove();f.each(G[J],function(K,L){if(K===F){f('select[name="default_colors"]').append('<option value="'+K+'" selected>'+L+"</option>")}else{f('select[name="default_colors"]').append('<option value="'+K+'">'+L+"</option>")}if(K===E){f('select[name="single_colors"]').append('<option value="'+K+'" selected>'+L+"</option>")}else{f('select[name="single_colors"]').append('<option value="'+K+'">'+L+"</option>")}if(K===H){f('select[name="hover_colors"]').append('<option value="'+K+'" selected>'+L+"</option>")}else{f('select[name="hover_colors"]').append('<option value="'+K+'">'+L+"</option>")}if(F=="custom_color"||F=="custom_color_outlines"||E=="custom_color"||E=="custom_color_outlines"||H=="custom_color"||H=="custom_color_outlines"){f(".customColor_wrapper").slideDown();a()}else{f(".customColor_wrapper").slideUp()}});f('select[name="default_colors"], select[name="single_colors"], select[name="hover_colors"]').on("change",x);f('select[name="button_shape"]').on("change",function(){var T=f('select[name="button_shape"]').val();var K=f('select[name="default_colors"]').val();var M=f('select[name="single_colors"]').val();var R=f('select[name="hover_colors"]').val();var O=0;var P=G[T];var Q=P.hasOwnProperty(K);var N=P.hasOwnProperty(M);var L=P.hasOwnProperty(R);f('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove();f.each(G[T],function(U,V){if(U===K||(Q==false&&O==0)){f('select[name="default_colors"]').append('<option value="'+U+'" selected>'+V+"</option>")}else{f('select[name="default_colors"]').append('<option value="'+U+'">'+V+"</option>")}if(U===M||(N==false&&O==0)){f('select[name="single_colors"]').append('<option value="'+U+'" selected>'+V+"</option>")}else{f('select[name="single_colors"]').append('<option value="'+U+'">'+V+"</option>")}if(U===R||(L==false&&O==0)){f('select[name="hover_colors"]').append('<option value="'+U+'" selected>'+V+"</option>")}else{f('select[name="hover_colors"]').append('<option value="'+U+'">'+V+"</option>")}++O});if("undefined"===typeof socialWarfarePlugin.lastClass){socialWarfarePlugin.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color"}var S="swp_"+T+" swp_default_"+K+" swp_individual_"+M+" swp_other_"+R;f(".swp_social_panel").removeClass(socialWarfarePlugin.lastClass).addClass(S);socialWarfarePlugin.lastClass=S})}function B(){f('select[name="button_size"],select[name="button_alignment"]').on("change",function(){f(".swp_social_panel").css({width:"100%"});var E=f(".swp_social_panel").width();var G=f('select[name="button_size"]').val();var H=f('select[name="button_alignment"]').val();var F;if((H=="full_width"&&G!=1)||G>=1){F=E/G;f(".swp_social_panel").css("cssText","width:"+F+"px!important;");f(".swp_social_panel").css({transform:"scale("+G+")","transform-origin":"left"})}else{if(H!="full_width"&&G<1){F=E/G;f(".swp_social_panel").css({transform:"scale("+G+")","transform-origin":H})}}socialWarfarePlugin.activateHoverStates()})}function o(){var E=f('select[name="ctt_theme"]');E.on("change",function(){var F=f('select[name="ctt_theme"]').val();f(".swp_CTT").attr("class","swp_CTT").addClass(F)});E.trigger("change")}function z(F,G){var E=f(".sw-admin-wrapper");var H=E.attr("swp-addons");var I=E.attr("swp-registrations");f(".registration-wrapper."+G).attr("registration",F);if(1===parseInt(F)){E.attr("sw-registered",F);f(".sw-top-menu").attr("sw-registered",F);t(E,"swp-registrations",G)}else{y(E,"swp-registrations",G)}}function y(G,H,F){var I=f(G).attr(H);var K=I.indexOf(F);if(K===-1){return}var E=K+F.length;var J=I.slice(0,K)+I.slice(E);f(G).attr(H,J)}function t(F,G,E){var H=f(F).attr(G);if(H.includes(E)){return}f(F).attr(G,H+E)}function u(F,E){var H=false;var G={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",name_key:F,item_id:E,license_key:f('input[name="'+F+'_license_key"]').val()};v();f.post(ajaxurl,G,function(I){I=JSON.parse(I);if(!I.success){alert("Failure: "+I.data)}else{z("1",F);H=true}m.location.reload(true);g()});return H}function j(H,G){var F=false;var E={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister",name_key:H,item_id:G,};v();f.post(ajaxurl,E,function(I){I=JSON.parse(I);if(!I.success){alert("Failure: "+I.data)}else{f('input[name="'+H+'_license_key"]').val("");z("0",H);F=true}m.location.reload(true);g()});return F}function d(){f(".register-plugin").on("click",function(){var F=f(this).attr("swp-addon");var E=f(this).attr("swp-item-id");u(F,E);return false});f(".unregister-plugin").on("click",function(){var F=f(this).attr("swp-addon");var E=f(this).attr("swp-item-id");j(F,E);return false})}function c(){f(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){D()}});f(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){D()}})}function e(){f(".sw-system-status").on("click",function(E){E.preventDefault?E.preventDefault():(E.returnValue=false);f(".system-status-wrapper").slideToggle();C(f(".system-status-container").get(0))})}function s(){var E;f(".swp_upload_image_button").click(function(G){G.preventDefault();var F=f(this).attr("for");if(E){E.open();return}E=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:false});E.on("select",function(){var H=E.state().get("selection").first().toJSON();f('input[name="'+F+'"').val(H.url)});E.open()})}function h(){var F=f("#ctt_preview");var E=f("select[name=ctt_theme]");if(!F.length){F=f('<style id="ctt_preview"></style>');f("head").append(F)}if(f(E).val()==="none"){n()}f(E).on("change",function(G){if(G.target.value==="none"){n()}});f("textarea[name=ctt_css]").on("keyup",n)}function n(){var F=f("#ctt_preview");var E=f("textarea[name=ctt_css]");f(F).text(f(E).val())}f(document).ready(function(){l();b();k();w();q();A();swpConditionalFields();o();B();d();c();e();s();h()})})(this,jQuery);
js/admin.js CHANGED
@@ -278,46 +278,6 @@ if (window.location.href.indexOf("widgets.php") > -1 ) {
278
  swpConditionalFields();
279
  });
280
 
281
- if ( jQuery( '.postbox#social_warfare' ).length ) {
282
- var registrationStatus = jQuery( '#social_warfare .registrationWrapper input' ).attr( 'id' );
283
- if ( registrationStatus == 'false' ) {
284
- jQuery( '.postbox#social_warfare' )
285
- .css({ position: 'relative',opacity: '0.3' })
286
- .append( '<div class="sw-premium-blocker"></div>' );
287
-
288
- jQuery( '#social_warfare .sw-premium-blocker' ).tooltip({
289
- items: '#social_warfare .sw-premium-blocker',
290
- content: '<i></i>Unlock these features by registering your license.',
291
- position: {
292
- my: 'center top',
293
- at: 'center top'
294
- },
295
- tooltipClass: 'sw-admin-hover-notice',
296
- open: function( event, ui ) {
297
- if ( 'undefined' === typeof ( event.originalEvent ) ) {
298
- return false;
299
- }
300
-
301
- var jQueryid = jQuery( ui.tooltip ).attr( 'id' );
302
-
303
- // close any lingering tooltips
304
- jQuery( 'div.ui-tooltip' ).not( '#' + jQueryid ).remove();
305
-
306
- // ajax function to pull in data and add it to the tooltip goes here
307
- },
308
- close: function( event, ui ) {
309
- ui.tooltip.hover(function() {
310
- jQuery(this).stop( true ).fadeTo( 400, 1 );
311
- },
312
- function() {
313
- jQuery(this).fadeOut( '400', function() {
314
- jQuery(this).remove();
315
- });
316
- });
317
- }
318
- });
319
- }
320
- }
321
 
322
  /*
323
  var customThumbnailSelect = jQuery("#widget-swp_popular_posts_widget-2-thumb_size");
278
  swpConditionalFields();
279
  });
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
 
282
  /*
283
  var customThumbnailSelect = jQuery("#widget-swp_popular_posts_widget-2-thumb_size");
js/admin.min.js CHANGED
@@ -1 +1 @@
1
- function swpConditionalFields(){function e(e){return jQuery('select[name="'+e+'"]').val()}function s(e){return"true"===e&&(e=!0),"false"===e&&(e=!1),e}jQuery("[data-dep]").each(function(){var e=jQuery(this).data("dep"),t=JSON.parse(JSON.stringify(jQuery(this).data("dep_val")));if(-1===window.location.href.indexOf("page=social-warfare"))var o=jQuery(this).parents(".widgets-holder-wrap").find('[data-swp-name="'+e+'"]');else var o=jQuery('[name="'+e+'"]')[0];var r;void 0===o&&void 0===(o=jQuery('[name="'+e+'"]')[0])&&(o=jQuery("[fieldjQuery="+e+"]")[0]),r="checkbox"==jQuery(o).attr("type")?jQuery(o).prop("checked"):jQuery(o).val(),r=s(r),-1!==window.location.href.indexOf("page=social-warfare")?-1!==jQuery.inArray(r,t)&&jQuery(o).parent(".sw-grid").is(":visible")?jQuery(this).show():jQuery(this).hide():-1!==jQuery.inArray(r,t)||r===t?jQuery(this).show():jQuery(this).hide()}),!1===function(e){return jQuery('[name="'+e+'"]').prop("checked")}("float_style_source")&&"custom_color"===e("float_default_colors")||"custom_color_outlines"===e("float_default_colors")||"custom_color"===e("float_single_colors")||"custom_color_outlines"===e("float_single_colors")||"custom_color"===e("float_hover_colors")||"custom_color_outlines"===e("float_hover_colors")?jQuery(".sideCustomColor_wrapper").slideDown():jQuery(".sideCustomColor_wrapper").slideUp()}var socialWarfareAdmin=socialWarfareAdmin||{},swpWidget,widgetSubmit;if(window.location.href.indexOf("widgets.php")>-1)var widgetFinder=setInterval(function(){void 0!==swpWidget&&clearInterval(widgetFinder),swpWidget=jQuery("#widgets-right [id*=_swp_popular_posts_widget], [id*=_swp_popular_posts_widget].open")[0],widgetSubmit=jQuery(swpWidget).find("[idjQuery=savewidget]")[0],jQuery(swpWidget).on("click",swpConditionalFields),jQuery(widgetSubmit).on("click",function(){setTimeout(swpConditionalFields,600)})},50);!function(e,s,t){"use strict";function o(){var e=s("#social_warfare textarea#swp_og_title").val(),t=60-e.length;e.length>0&&t>=0?s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):e.length>0&&t<0?s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_og_title .counterNumber").html(t)}function r(){var e=s("#social_warfare textarea#swp_og_description").val(),t=160-e.length;e.length>0&&t>=0?s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):e.length>0&&t<0?s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_og_description .counterNumber").html(t)}function a(){var e,t=s("#social_warfare textarea#swp_custom_tweet").val(),o=s("#social_warfare .twitterIDWrapper label").html();t.indexOf("http")>-1||t.indexOf("https")>-1?(e=0,s(".tweetLinkSection").css({"text-decoration":"line-through"})):(e=23,s(".tweetLinkSection").css({"text-decoration":"none"}));var r;r=void 0===o?280-socialWarfareAdmin.linkLength(t)-e:280-socialWarfareAdmin.linkLength(t)-e-o.length-6,t.length>0&&r>=0?s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):t.length>0&&r<0?s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_customTweetWrapper .counterNumber").html(r)}socialWarfareAdmin.linkLength=function(e){for(var s="",t=0;t<23;t++)s+="o";return e.replace(/(http:\/\/[\S]*)/g,s).length},s(document).ready(function(){if(s("#social_warfare.postbox").length){s("#social_warfare #swp_og_title").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">60</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),s("#social_warfare #swp_og_description").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">150</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),s("#social_warfare #swp_customTweet").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">118</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),o(),s("#social_warfare textarea#swp_og_title").on("input",function(){o()}),r(),s("#social_warfare textarea#swp_og_description").on("input",function(){r()}),a(),s("#social_warfare textarea#swp_customTweet").on("input",function(){a()});setInterval(function(){var e,t,o=s(".swp_og_imageWrapper ul.swpmb-media-list"),r=s(".swp_pinterest_imageWrapper ul.swpmb-media-list");o.length&&o.is(":empty")?(e=o.width(),t=e*(9/16),o.css({height:t+"px"})):(t=o.find("img").height(),o.css({height:t+"px"}));var a,i;r.length&&r.is(":empty")?(a=r.width(),i=1.5*a,r.css({height:i+"px"})):(i=r.find("img").height(),r.css({height:i+"px"}))},1e3)}if(swpConditionalFields(),s(".swp_popular_post_options select").on("change",function(){swpConditionalFields()}),s(".postbox#social_warfare").length){"false"==s("#social_warfare .registrationWrapper input").attr("id")&&(s(".postbox#social_warfare").css({position:"relative",opacity:"0.3"}).append('<div class="sw-premium-blocker"></div>'),s("#social_warfare .sw-premium-blocker").tooltip({items:"#social_warfare .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(e,t){if(void 0===e.originalEvent)return!1;var o=s(t.tooltip).attr("id");s("div.ui-tooltip").not("#"+o).remove()},close:function(e,t){t.tooltip.hover(function(){s(this).stop(!0).fadeTo(400,1)},function(){s(this).fadeOut("400",function(){s(this).remove()})})}}))}})}(0,jQuery);
1
+ function swpConditionalFields(){function e(e){return jQuery('select[name="'+e+'"]').val()}function s(e){return"true"===e&&(e=!0),"false"===e&&(e=!1),e}jQuery("[data-dep]").each(function(){var e=jQuery(this).data("dep"),a=JSON.parse(JSON.stringify(jQuery(this).data("dep_val")));if(-1===window.location.href.indexOf("page=social-warfare"))var r=jQuery(this).parents(".widgets-holder-wrap").find('[data-swp-name="'+e+'"]');else var r=jQuery('[name="'+e+'"]')[0];var t;void 0===r&&void 0===(r=jQuery('[name="'+e+'"]')[0])&&(r=jQuery("[fieldjQuery="+e+"]")[0]),t="checkbox"==jQuery(r).attr("type")?jQuery(r).prop("checked"):jQuery(r).val(),t=s(t),-1!==window.location.href.indexOf("page=social-warfare")?-1!==jQuery.inArray(t,a)&&jQuery(r).parent(".sw-grid").is(":visible")?jQuery(this).show():jQuery(this).hide():-1!==jQuery.inArray(t,a)||t===a?jQuery(this).show():jQuery(this).hide()}),!1===function(e){return jQuery('[name="'+e+'"]').prop("checked")}("float_style_source")&&"custom_color"===e("float_default_colors")||"custom_color_outlines"===e("float_default_colors")||"custom_color"===e("float_single_colors")||"custom_color_outlines"===e("float_single_colors")||"custom_color"===e("float_hover_colors")||"custom_color_outlines"===e("float_hover_colors")?jQuery(".sideCustomColor_wrapper").slideDown():jQuery(".sideCustomColor_wrapper").slideUp()}var socialWarfareAdmin=socialWarfareAdmin||{},swpWidget,widgetSubmit;if(window.location.href.indexOf("widgets.php")>-1)var widgetFinder=setInterval(function(){void 0!==swpWidget&&clearInterval(widgetFinder),swpWidget=jQuery("#widgets-right [id*=_swp_popular_posts_widget], [id*=_swp_popular_posts_widget].open")[0],widgetSubmit=jQuery(swpWidget).find("[idjQuery=savewidget]")[0],jQuery(swpWidget).on("click",swpConditionalFields),jQuery(widgetSubmit).on("click",function(){setTimeout(swpConditionalFields,600)})},50);!function(e,s,a){"use strict";function r(){var e=s("#social_warfare textarea#swp_og_title").val(),a=60-e.length;e.length>0&&a>=0?s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):e.length>0&&a<0?s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_og_title .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_og_title .counterNumber").html(a)}function t(){var e=s("#social_warfare textarea#swp_og_description").val(),a=160-e.length;e.length>0&&a>=0?s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):e.length>0&&a<0?s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_og_description .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_og_description .counterNumber").html(a)}function o(){var e,a=s("#social_warfare textarea#swp_custom_tweet").val(),r=s("#social_warfare .twitterIDWrapper label").html();a.indexOf("http")>-1||a.indexOf("https")>-1?(e=0,s(".tweetLinkSection").css({"text-decoration":"line-through"})):(e=23,s(".tweetLinkSection").css({"text-decoration":"none"}));var t;t=void 0===r?280-socialWarfareAdmin.linkLength(a)-e:280-socialWarfareAdmin.linkLength(a)-e-r.length-6,a.length>0&&t>=0?s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_red").addClass("swp_blue"):a.length>0&&t<0?s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_blue").addClass("swp_red"):s("#social_warfare .swp_customTweetWrapper .swp_CountDown").removeClass("swp_blue").removeClass("swp_red"),s("#social_warfare .swp_customTweetWrapper .counterNumber").html(t)}socialWarfareAdmin.linkLength=function(e){for(var s="",a=0;a<23;a++)s+="o";return e.replace(/(http:\/\/[\S]*)/g,s).length},s(document).ready(function(){if(s("#social_warfare.postbox").length){s("#social_warfare #swp_og_title").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">60</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),s("#social_warfare #swp_og_description").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">150</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),s("#social_warfare #swp_customTweet").parent().prepend('<div class="swp_CountDown"><span class="counterNumber">118</span> '+swp_localize_admin.swp_characters_remaining+"</div>"),r(),s("#social_warfare textarea#swp_og_title").on("input",function(){r()}),t(),s("#social_warfare textarea#swp_og_description").on("input",function(){t()}),o(),s("#social_warfare textarea#swp_customTweet").on("input",function(){o()});setInterval(function(){var e,a,r=s(".swp_og_imageWrapper ul.swpmb-media-list"),t=s(".swp_pinterest_imageWrapper ul.swpmb-media-list");r.length&&r.is(":empty")?(e=r.width(),a=e*(9/16),r.css({height:a+"px"})):(a=r.find("img").height(),r.css({height:a+"px"}));var o,i;t.length&&t.is(":empty")?(o=t.width(),i=1.5*o,t.css({height:i+"px"})):(i=t.find("img").height(),t.css({height:i+"px"}))},1e3)}swpConditionalFields(),s(".swp_popular_post_options select").on("change",function(){swpConditionalFields()})})}(0,jQuery);
js/script.js CHANGED
@@ -100,7 +100,6 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
100
  'use strict';
101
 
102
  var swp = window.socialWarfarePlugin;
103
- var animating = false;
104
 
105
  function absint( $int ) {
106
  return parseInt( $int, 10 );
@@ -193,8 +192,9 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
193
  $('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller').removeAttr('style');
194
  $('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)').removeAttr('style');
195
  }
 
196
  function createFloatBar() {
197
- //if ( ! $( '.swp_social_panelSide' ).length ) {
198
  if( $( '.nc_wrapper' ).length ) {
199
  $( '.nc_wrapper' ).remove();
200
  }
@@ -205,25 +205,31 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
205
  if ( location ) {
206
 
207
  if ( $( '.swp_social_panel' ).not( '.swp_social_panelSide' ).length ) {
208
- var floatLeftMobile = $( '.swp_social_panelSide' ).data( 'float-mobile' );
209
- var offsetOne = firstSocialPanel.offset();
210
- var ncSideFloater = $( '.swp_social_panelSide' ).filter( ':not(.mobile)' );
211
- var minWidth = ncSideFloater.data( 'screen-width' );
 
212
  if ( offsetOne.left < 100 || $( window ).width() < minWidth ) {
213
- var position = floatLeftMobile;
214
  } else {
215
  var position = location;
216
  }
217
 
218
  } else {
219
  var position = location;
 
220
  }
221
 
222
  var backgroundColor = $( '.swp_social_panel' ).data( 'floatcolor' );
223
 
224
  var el = $( '<div class="nc_wrapper" style="background-color:' + backgroundColor + '"></div>' );
225
  el.appendTo( 'body' );
226
- var position = firstSocialPanel.data( 'float' );
 
 
 
 
227
  firstSocialPanel.clone().appendTo( el );
228
 
229
  $( '.nc_wrapper' ).hide().addClass( position );
@@ -238,8 +244,8 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
238
  $( '.swp_social_panel' ).eq( 0 ).addClass( 'swp_one' );
239
  $( '.swp_social_panel' ).eq( 2 ).addClass( 'swp_two' );
240
  $( '.swp_social_panel' ).eq( 1 ).addClass( 'swp_three' );
241
- }
242
- //}
243
  }
244
 
245
  function floatingBarReveal() {
@@ -256,14 +262,13 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
256
  var scrollPos = windowElement.scrollTop();
257
  var st = $( window ).scrollTop();
258
  var visible = false;
259
- console.log("Animating: ", animating);
260
 
261
  if ( typeof window.swpOffsets == 'undefined' ) {
262
  window.swpOffsets = {};
263
  }
264
 
265
  if ( location === 'right' || location === 'left' ) {
266
- var floatLeftMobile = $( '.swp_social_panelSide' ).data( 'float-mobile' );
267
  var direction = (location.indexOf("left") !== -1) ? "left" : "right";
268
 
269
  if ( $( '.swp_social_panel' ).not( '.swp_social_panelSide' ).length ) {
@@ -276,11 +281,13 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
276
  });
277
  if ( offsetOne.left < 100 || $( window ).width() < minWidth ) {
278
  visible = true;
279
- if ( floatLeftMobile == 'bottom' ) {
280
  location = 'bottom';
281
- } else if ( floatLeftMobile == 'top' ) {
282
- location = 'top';``
283
  }
 
 
284
  } else {
285
  visible = false;
286
  }
@@ -290,9 +297,9 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
290
  visible = false;
291
  } else {
292
  visible = true;
293
- if(floatLeftMobile == 'bottom') {
294
  location = 'bottom';
295
- } else if ( floatLeftMobile == 'top' ) {
296
  location = 'top';
297
  }
298
  }
@@ -308,22 +315,11 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
308
  }
309
 
310
  } else if ( transition == 'fade' ) {
311
- console.log("Pre-fade controls. 1200");
312
- if (false === animating) {
313
- console.log("Inner if.");
314
- animating = true;
315
- console.log("Visible: ", visible);
316
- if ( visible == true ) {
317
- console.log("fadingOut");
318
- // !animating ? ncSideFloater.animate({opacity:0}, 2000, function() {animating = false} ) : '';
319
- ncSideFloater.fadeOut(1200, function() {animating = false; console.log("done fade out.")});
320
- } else {
321
- console.log("fadingIn");
322
- ncSideFloater.fadeIn(1200, function() {animating = false; console.log("done fade in.")}).css("display", "flex");
323
- // !animating ? ncSideFloater.animate({opacity: 1}, function() {animating = false} ).css("display", "flex") : '';
324
- }
325
- }
326
-
327
  }
328
  }
329
 
@@ -369,9 +365,28 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
369
  }
370
  }
371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
  function initShareButtons() {
373
  if ( 0 !== $( '.swp_social_panel' ).length ) {
374
  createFloatBar();
 
375
  swp.activateHoverStates();
376
  handleWindowOpens();
377
  $( window ).scrollTop();
@@ -379,7 +394,7 @@ var socialWarfarePlugin = socialWarfarePlugin || {};
379
  floatingBarReveal();
380
  }));
381
  $( window ).trigger( 'scroll' );
382
- $( '.swp_social_panel' ).css( {'opacity':1} );
383
  }
384
  }
385
 
100
  'use strict';
101
 
102
  var swp = window.socialWarfarePlugin;
 
103
 
104
  function absint( $int ) {
105
  return parseInt( $int, 10 );
192
  $('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller').removeAttr('style');
193
  $('.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)').removeAttr('style');
194
  }
195
+
196
  function createFloatBar() {
197
+ // if ( ! $( '.swp_social_panelSide' ).length ) {
198
  if( $( '.nc_wrapper' ).length ) {
199
  $( '.nc_wrapper' ).remove();
200
  }
205
  if ( location ) {
206
 
207
  if ( $( '.swp_social_panel' ).not( '.swp_social_panelSide' ).length ) {
208
+ var floatMobile = $( '.swp_social_panelSide' ).data( 'float-mobile' );
209
+ var offsetOne = firstSocialPanel.offset();
210
+ var ncSideFloater = $( '.swp_social_panelSide' ).filter( ':not(.mobile)' );
211
+ var minWidth = ncSideFloater.data( 'screen-width' );
212
+
213
  if ( offsetOne.left < 100 || $( window ).width() < minWidth ) {
214
+ var position = floatMobile;
215
  } else {
216
  var position = location;
217
  }
218
 
219
  } else {
220
  var position = location;
221
+
222
  }
223
 
224
  var backgroundColor = $( '.swp_social_panel' ).data( 'floatcolor' );
225
 
226
  var el = $( '<div class="nc_wrapper" style="background-color:' + backgroundColor + '"></div>' );
227
  el.appendTo( 'body' );
228
+ if ( location === 'left' || location === 'right' ) {
229
+ var position = firstSocialPanel.data( 'float-mobile' );
230
+ } else {
231
+ var position = firstSocialPanel.data( 'float' );
232
+ }
233
  firstSocialPanel.clone().appendTo( el );
234
 
235
  $( '.nc_wrapper' ).hide().addClass( position );
244
  $( '.swp_social_panel' ).eq( 0 ).addClass( 'swp_one' );
245
  $( '.swp_social_panel' ).eq( 2 ).addClass( 'swp_two' );
246
  $( '.swp_social_panel' ).eq( 1 ).addClass( 'swp_three' );
247
+ }
248
+ // }
249
  }
250
 
251
  function floatingBarReveal() {
262
  var scrollPos = windowElement.scrollTop();
263
  var st = $( window ).scrollTop();
264
  var visible = false;
 
265
 
266
  if ( typeof window.swpOffsets == 'undefined' ) {
267
  window.swpOffsets = {};
268
  }
269
 
270
  if ( location === 'right' || location === 'left' ) {
271
+ var floatMobile = $( '.swp_social_panelSide' ).data( 'float-mobile' );
272
  var direction = (location.indexOf("left") !== -1) ? "left" : "right";
273
 
274
  if ( $( '.swp_social_panel' ).not( '.swp_social_panelSide' ).length ) {
281
  });
282
  if ( offsetOne.left < 100 || $( window ).width() < minWidth ) {
283
  visible = true;
284
+ if ( floatMobile == 'bottom' ) {
285
  location = 'bottom';
286
+ } else if ( floatMobile == 'top' ) {
287
+ location = 'top';
288
  }
289
+ } else if (visible) {
290
+ visible == true;
291
  } else {
292
  visible = false;
293
  }
297
  visible = false;
298
  } else {
299
  visible = true;
300
+ if(floatMobile == 'bottom') {
301
  location = 'bottom';
302
+ } else if ( floatMobile == 'top' ) {
303
  location = 'top';
304
  }
305
  }
315
  }
316
 
317
  } else if ( transition == 'fade' ) {
318
+ if ( visible == true ) {
319
+ ncSideFloater.fadeOut( 200 );
320
+ } else {
321
+ ncSideFloater.fadeIn( 200 ).css("display", "flex");
322
+ }
 
 
 
 
 
 
 
 
 
 
 
323
  }
324
  }
325
 
365
  }
366
  }
367
 
368
+ function centerSidePanel() {
369
+ var sidePanel = jQuery("[class*=float-position-center]");
370
+
371
+ if (!sidePanel.length) return;
372
+
373
+ var panelHeight = sidePanel.outerHeight();
374
+ var windowHeight = window.innerHeight;
375
+
376
+ if (panelHeight > windowHeight) {
377
+ sidePanel.css("top", 0);
378
+ return;
379
+ }
380
+
381
+ var offset = (windowHeight - panelHeight) / 2;
382
+
383
+ sidePanel.css("top", offset);
384
+ }
385
+
386
  function initShareButtons() {
387
  if ( 0 !== $( '.swp_social_panel' ).length ) {
388
  createFloatBar();
389
+ centerSidePanel();
390
  swp.activateHoverStates();
391
  handleWindowOpens();
392
  $( window ).scrollTop();
394
  floatingBarReveal();
395
  }));
396
  $( window ).trigger( 'scroll' );
397
+ // $( '.swp_social_panel' ).css( {'opacity':1} );
398
  }
399
  }
400
 
js/script.min.js CHANGED
@@ -1 +1 @@
1
- var socialWarfarePlugin=socialWarfarePlugin||{};!function(e,t){var i,o=e.socialWarfarePlugin;o.throttle=i=function(e,i,a,n){function s(){function o(){r=+new Date,a.apply(p,c)}function s(){l=t}var p=this,d=+new Date-r,c=arguments;n&&!l&&o(),l&&clearTimeout(l),n===t&&d>e?o():!0!==i&&(l=setTimeout(n?s:o,n===t?e-d:e))}var l,r=0;return"boolean"!=typeof i&&(n=a,a=i,i=t),o.guid&&(s.guid=a.guid=a.guid||o.guid++),s},o.debounce=function(e,o,a){return a===t?i(e,o,!1):i(e,a,!1!==o)}}(this),function(e,t,i){"use strict";function o(e){return parseInt(e,10)}function a(i){var o=t.Event(i);t(e).trigger(o)}function n(){t(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller").removeAttr("style"),t(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)").removeAttr("style")}function s(){t(".nc_wrapper").length&&t(".nc_wrapper").remove();var i=t(".swp_social_panel").not('[data-float="ignore"]').first(),o=i.data("float"),a=i.data("align");if(o){if(t(".swp_social_panel").not(".swp_social_panelSide").length){var n=t(".swp_social_panelSide").data("float-mobile"),s=i.offset(),l=t(".swp_social_panelSide").filter(":not(.mobile)"),r=l.data("screen-width");if(s.left<100||t(e).width()<r)var p=n;else var p=o}else var p=o;var d=t(".swp_social_panel").data("floatcolor"),c=t('<div class="nc_wrapper" style="background-color:'+d+'"></div>');c.appendTo("body");var p=i.data("float");i.clone().appendTo(c),t(".nc_wrapper").hide().addClass(p);var f=i.outerWidth(!0),h=i.offset();t(".swp_social_panel").last().addClass("nc_floater").css({width:f,left:"center"==a?0:h.left}),t(".swp_social_panel .swp_count").css({transition:"padding .1s linear"}),t(".swp_social_panel").eq(0).addClass("swp_one"),t(".swp_social_panel").eq(2).addClass("swp_two"),t(".swp_social_panel").eq(1).addClass("swp_three")}}function l(){var i=t(".swp_social_panel"),o=i.not('[data-float="float_ignore"]').eq(0).data("float"),a=t(e),n=a.height(),s=t(".nc_wrapper"),l=t(".swp_social_panelSide").filter(":not(.mobile)"),r=(t(".swp_social_panel").data("position"),l.data("screen-width")),p=i.eq(0).offset(),d=a.scrollTop(),c=(t(e).scrollTop(),!1);if(console.log("Animating: ",f),void 0===e.swpOffsets&&(e.swpOffsets={}),"right"===o||"left"===o){var h=t(".swp_social_panelSide").data("float-mobile"),_=-1!==o.indexOf("left")?"left":"right";t(".swp_social_panel").not(".swp_social_panelSide").length?(t(".swp_social_panel").not(".swp_social_panelSide, .nc_floater").each(function(){var e=t(this).offset(),i=t(this).height();e.top+i>d&&e.top<d+n&&(c=!0)}),p.left<100||t(e).width()<r?(c=!0,"bottom"==h?o="bottom":"top"==h&&(o="top")):c||(c=!1)):t(e).width()>r?c=!1:(c=!0,"bottom"==h?o="bottom":"top"==h&&(o="top"));var w=l.data("transition");"slide"==w?1==c?l.css(_,"-150px"):l.css(_,"5px"):"fade"==w&&(console.log("Pre-fade controls."),!1===f&&(console.log("Inner if."),f=!0,console.log("Visible: ",c),1==c?(console.log("fadingOut"),l.fadeOut(200,function(){f=!1,console.log("done fade out.")})):(console.log("fadingIn"),l.fadeIn(200,function(){f=!1,console.log("done fade out.")}).css("display","flex"))))}if("bottom"==o||"top"==o)if(c=!1,t(".swp_social_panel").not(".swp_social_panelSide, .nc_floater").each(function(){var e=t(this).offset(),i=t(this).height();e.top+i>d&&e.top<d+n&&(c=!0)}),c)s.hide(),"bottom"==o?t("body").animate({"padding-bottom":e.bodyPaddingBottom+"px"},0):"top"==o&&t("body").animate({"padding-top":e.bodyPaddingTop+"px"},0);else{var u,v;s.show(),"bottom"==o?(u=e.bodyPaddingBottom+50,t("body").animate({"padding-bottom":u+"px"},0)):"top"==o&&(v=t(".swp_social_panel").not(".swp_social_panelSide, .nc_wrapper .swp_social_panel").first().offset(),v.top>d+n&&(u=e.bodyPaddingTop+50,t("body").animate({"padding-top":u+"px"},0)))}}function r(){0!==t(".swp_social_panel").length&&(s(),c.activateHoverStates(),d(),t(e).scrollTop(),t(e).scroll(c.throttle(50,function(){l()})),t(e).trigger("scroll"),t(".swp_social_panel").css({opacity:1}))}function p(){var i={wrap:'<div class="sw-pinit" />',pageURL:document.URL},o=t.extend(i,o);t(".swp-content-locator").parent().find("img").each(function(){var i=t(this);if(!(i.outerHeight()<swpPinIt.minHeight||i.outerWidth()<swpPinIt.minWidth)){var a=!1;if(void 0!==swpPinIt.image_source?a=swpPinIt.image_source:i.data("media")?a=i.data("media"):t(this).data("lazy-src")?a=t(this).data("lazy-src"):i[0].src&&(a=i[0].src),!1!==a&&!i.hasClass("no_pin")){var n="";void 0!==swpPinIt.image_description?n=swpPinIt.image_description:i.attr("title")?n=i.attr("title"):i.attr("alt")&&(n=i.attr("alt"));var s="http://pinterest.com/pin/create/bookmarklet/?media="+encodeURI(a)+"&url="+encodeURI(o.pageURL)+"&is_video=false&description="+encodeURIComponent(n),l=i.attr("class"),r=i.attr("style");i.removeClass().attr("style","").wrap(o.wrap),i.after('<a href="'+s+'" class="sw-pinit-button sw-pinit-'+swpPinIt.vLocation+" sw-pinit-"+swpPinIt.hLocation+'">Save</a>'),i.parent(".sw-pinit").addClass(l).attr("style",r),t(".sw-pinit .sw-pinit-button").on("click",function(){if(e.open(t(this).attr("href"),"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"),"function"==typeof ga&&!0===swpClickTracking){ga("send","event","social_media","swp_pin_image_share")}return!1})}}})}function d(){t(".nc_tweet, a.swp_CTT").off("click"),t(".nc_tweet, a.swp_CTT").on("click",function(i){if(t(this).hasClass("noPop"))return!1;if(t(this).data("link")){i.preventDefault?i.preventDefault():i.returnValue=!1;var o,a,n,s,l,r=t(this).data("link");if(r=r.replace("’","'"),t(this).hasClass("pinterest")||t(this).hasClass("buffer_link")||t(this).hasClass("flipboard")?(o=550,a=775):(o=270,a=500),n=e.screenY+(e.innerHeight-o)/2,s=e.screenX+(e.innerWidth-a)/2,l="height="+o+",width="+a+",top="+n+",left="+s,e.open(r,"_blank",l),"function"==typeof ga&&!0===swpClickTracking){if(t(this).hasClass("nc_tweet"))var p=t(this).parents(".nc_tweetContainer").attr("data-network");else if(t(this).hasClass("swp_CTT"))var p="ctt";ga("send","event","social_media","swp_"+p+"_share")}return!1}})}var c=e.socialWarfarePlugin,f=!1,h={};socialWarfarePlugin.fetchShares=function(){t.when(t.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_url),swp_post_recovery_url?t.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_recovery_url):"").then(function(e,t){if(void 0!==e[0].share){var i=o(e[0].share.share_count),a=o(e[0].share.comment_count);if(void 0!==e[0].og_object)var n=o(e[0].og_object.likes.summary.total_count);else var n=0;var s=i+a+n;if(swp_post_recovery_url){if(void 0!==t[0].share)var l=o(t[0].share.share_count),r=o(t[0].share.comment_count);else var l=0,r=0;if(void 0!==t[0].og_object)var p=o(t[0].og_object.likes.summary.total_count);else var p=0;var d=l+r+p;s!==d&&(s+=d)}h={action:"swp_facebook_shares_update",post_id:swp_post_id,activity:s}}})},c.activateHoverStates=function(){a("pre_activate_buttons"),t(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer").on("mouseenter",function(){if(t(this).hasClass("swp_nohover"));else{n();var e=t(this).find(".swp_share").outerWidth(),i=t(this).find("i.sw").outerWidth(),o=t(this).width(),a=1+(e+35)/o;t(this).find(".iconFiller").width(e+i+25+"px"),t(this).css({flex:a+" 1 0%"})}}),t(".swp_social_panel:not(.swp_social_panelSide)").on("mouseleave",function(){n()})},t(e).on("load",function(){"undefined"!=typeof swpPinIt&&swpPinIt.enabled&&p()}),t(document).ready(function(){d(),r();var i=t(".swp_social_panelSide");e.bodyPaddingTop=o(t("body").css("padding-top").replace("px","")),e.bodyPaddingBottom=o(t("body").css("padding-bottom").replace("px",""));var a=!1;if(t(".swp_social_panel").hover(function(){a=!0},function(){a=!1}),t(e).resize(c.debounce(250,function(){t(".swp_social_panel").length&&!1!==a||(e.swpAdjust=1,r())})),t(document.body).on("post-load",function(){r()}),0!==i.length){if(-1!==t(i).attr("class").indexOf("swp_side"))return;var n=t(i).height(),s=t(e).height(),l=o(s/2-n/2);setTimeout(function(){t(i).animate({top:l},0)},105)}1===t(".swp-content-locator").parent().children().length&&t(".swp-content-locator").parent().hide()})}(this,jQuery),function(e){var t=/iPhone/i,i=/iPod/i,o=/iPad/i,a=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,n=/Android/i,s=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,l=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,r=/Windows Phone/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,d=/BlackBerry/i,c=/BB10/i,f=/Opera Mini/i,h=/(CriOS|Chrome)(?=.*\bMobile\b)/i,_=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,w=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),u=function(e,t){return e.test(t)},v=function(e){var v=e||navigator.userAgent,b=v.split("[FBAN");if(void 0!==b[1]&&(v=b[0]),b=v.split("Twitter"),void 0!==b[1]&&(v=b[0]),this.apple={phone:u(t,v),ipod:u(i,v),tablet:!u(t,v)&&u(o,v),device:u(t,v)||u(i,v)||u(o,v)},this.amazon={phone:u(s,v),tablet:!u(s,v)&&u(l,v),device:u(s,v)||u(l,v)},this.android={phone:u(s,v)||u(a,v),tablet:!u(s,v)&&!u(a,v)&&(u(l,v)||u(n,v)),device:u(s,v)||u(l,v)||u(a,v)||u(n,v)},this.windows={phone:u(r,v),tablet:u(p,v),device:u(r,v)||u(p,v)},this.other={blackberry:u(d,v),blackberry10:u(c,v),opera:u(f,v),firefox:u(_,v),chrome:u(h,v),device:u(d,v)||u(c,v)||u(f,v)||u(_,v)||u(h,v)},this.seven_inch=u(w,v),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},b=function(){var e=new v;return e.Class=v,e};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=v:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=b():"function"==typeof define&&define.amd?define("swp_isMobile",[],e.swp_isMobile=b()):e.swp_isMobile=b()}(this);
1
+ var socialWarfarePlugin=socialWarfarePlugin||{};!function(t,e){var i,a=t.socialWarfarePlugin;a.throttle=i=function(t,i,o,n){function s(){function a(){l=+new Date,o.apply(p,c)}function s(){r=e}var p=this,d=+new Date-l,c=arguments;n&&!r&&a(),r&&clearTimeout(r),n===e&&d>t?a():!0!==i&&(r=setTimeout(n?s:a,n===e?t-d:t))}var r,l=0;return"boolean"!=typeof i&&(n=o,o=i,i=e),a.guid&&(s.guid=o.guid=o.guid||a.guid++),s},a.debounce=function(t,a,o){return o===e?i(t,a,!1):i(t,o,!1!==a)}}(this),function(t,e,i){"use strict";function a(t){return parseInt(t,10)}function o(i){var a=e.Event(i);e(t).trigger(a)}function n(){e(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller").removeAttr("style"),e(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)").removeAttr("style")}function s(){e(".nc_wrapper").length&&e(".nc_wrapper").remove();var i=e(".swp_social_panel").not('[data-float="ignore"]').first(),a=i.data("float"),o=i.data("align");if(a){if(e(".swp_social_panel").not(".swp_social_panelSide").length){var n=e(".swp_social_panelSide").data("float-mobile"),s=i.offset(),r=e(".swp_social_panelSide").filter(":not(.mobile)"),l=r.data("screen-width");if(s.left<100||e(t).width()<l)var p=n;else var p=a}else var p=a;var d=e(".swp_social_panel").data("floatcolor"),c=e('<div class="nc_wrapper" style="background-color:'+d+'"></div>');if(c.appendTo("body"),"left"===a||"right"===a)var p=i.data("float-mobile");else var p=i.data("float");i.clone().appendTo(c),e(".nc_wrapper").hide().addClass(p);var f=i.outerWidth(!0),h=i.offset();e(".swp_social_panel").last().addClass("nc_floater").css({width:f,left:"center"==o?0:h.left}),e(".swp_social_panel .swp_count").css({transition:"padding .1s linear"}),e(".swp_social_panel").eq(0).addClass("swp_one"),e(".swp_social_panel").eq(2).addClass("swp_two"),e(".swp_social_panel").eq(1).addClass("swp_three")}}function r(){var i=e(".swp_social_panel"),a=i.not('[data-float="float_ignore"]').eq(0).data("float"),o=e(t),n=o.height(),s=e(".nc_wrapper"),r=e(".swp_social_panelSide").filter(":not(.mobile)"),l=(e(".swp_social_panel").data("position"),r.data("screen-width")),p=i.eq(0).offset(),d=o.scrollTop(),c=(e(t).scrollTop(),!1);if(void 0===t.swpOffsets&&(t.swpOffsets={}),"right"===a||"left"===a){var f=e(".swp_social_panelSide").data("float-mobile"),h=-1!==a.indexOf("left")?"left":"right";e(".swp_social_panel").not(".swp_social_panelSide").length?(e(".swp_social_panel").not(".swp_social_panelSide, .nc_floater").each(function(){var t=e(this).offset(),i=e(this).height();t.top+i>d&&t.top<d+n&&(c=!0)}),p.left<100||e(t).width()<l?(c=!0,"bottom"==f?a="bottom":"top"==f&&(a="top")):c||(c=!1)):e(t).width()>l?c=!1:(c=!0,"bottom"==f?a="bottom":"top"==f&&(a="top"));var _=r.data("transition");"slide"==_?1==c?r.css(h,"-150px"):r.css(h,"5px"):"fade"==_&&(1==c?r.fadeOut(200):r.fadeIn(200).css("display","flex"))}if("bottom"==a||"top"==a)if(c=!1,e(".swp_social_panel").not(".swp_social_panelSide, .nc_floater").each(function(){var t=e(this).offset(),i=e(this).height();t.top+i>d&&t.top<d+n&&(c=!0)}),c)s.hide(),"bottom"==a?e("body").animate({"padding-bottom":t.bodyPaddingBottom+"px"},0):"top"==a&&e("body").animate({"padding-top":t.bodyPaddingTop+"px"},0);else{var w,u;s.show(),"bottom"==a?(w=t.bodyPaddingBottom+50,e("body").animate({"padding-bottom":w+"px"},0)):"top"==a&&(u=e(".swp_social_panel").not(".swp_social_panelSide, .nc_wrapper .swp_social_panel").first().offset(),u.top>d+n&&(w=t.bodyPaddingTop+50,e("body").animate({"padding-top":w+"px"},0)))}}function l(){var e=jQuery("[class*=float-position-center]");if(e.length){var i=e.outerHeight(),a=t.innerHeight;if(i>a)return void e.css("top",0);var o=(a-i)/2;e.css("top",o)}}function p(){0!==e(".swp_social_panel").length&&(s(),l(),f.activateHoverStates(),c(),e(t).scrollTop(),e(t).scroll(f.throttle(50,function(){r()})),e(t).trigger("scroll"))}function d(){var i={wrap:'<div class="sw-pinit" />',pageURL:document.URL},a=e.extend(i,a);e(".swp-content-locator").parent().find("img").each(function(){var i=e(this);if(!(i.outerHeight()<swpPinIt.minHeight||i.outerWidth()<swpPinIt.minWidth)){var o=!1;if(void 0!==swpPinIt.image_source?o=swpPinIt.image_source:i.data("media")?o=i.data("media"):e(this).data("lazy-src")?o=e(this).data("lazy-src"):i[0].src&&(o=i[0].src),!1!==o&&!i.hasClass("no_pin")){var n="";void 0!==swpPinIt.image_description?n=swpPinIt.image_description:i.attr("title")?n=i.attr("title"):i.attr("alt")&&(n=i.attr("alt"));var s="http://pinterest.com/pin/create/bookmarklet/?media="+encodeURI(o)+"&url="+encodeURI(a.pageURL)+"&is_video=false&description="+encodeURIComponent(n),r=i.attr("class"),l=i.attr("style");i.removeClass().attr("style","").wrap(a.wrap),i.after('<a href="'+s+'" class="sw-pinit-button sw-pinit-'+swpPinIt.vLocation+" sw-pinit-"+swpPinIt.hLocation+'">Save</a>'),i.parent(".sw-pinit").addClass(r).attr("style",l),e(".sw-pinit .sw-pinit-button").on("click",function(){if(t.open(e(this).attr("href"),"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"),"function"==typeof ga&&!0===swpClickTracking){ga("send","event","social_media","swp_pin_image_share")}return!1})}}})}function c(){e(".nc_tweet, a.swp_CTT").off("click"),e(".nc_tweet, a.swp_CTT").on("click",function(i){if(e(this).hasClass("noPop"))return!1;if(e(this).data("link")){i.preventDefault?i.preventDefault():i.returnValue=!1;var a,o,n,s,r,l=e(this).data("link");if(l=l.replace("’","'"),e(this).hasClass("pinterest")||e(this).hasClass("buffer_link")||e(this).hasClass("flipboard")?(a=550,o=775):(a=270,o=500),n=t.screenY+(t.innerHeight-a)/2,s=t.screenX+(t.innerWidth-o)/2,r="height="+a+",width="+o+",top="+n+",left="+s,t.open(l,"_blank",r),"function"==typeof ga&&!0===swpClickTracking){if(e(this).hasClass("nc_tweet"))var p=e(this).parents(".nc_tweetContainer").attr("data-network");else if(e(this).hasClass("swp_CTT"))var p="ctt";ga("send","event","social_media","swp_"+p+"_share")}return!1}})}var f=t.socialWarfarePlugin,h={};socialWarfarePlugin.fetchShares=function(){e.when(e.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_url),swp_post_recovery_url?e.get("https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id="+swp_post_recovery_url):"").then(function(t,e){if(void 0!==t[0].share){var i=a(t[0].share.share_count),o=a(t[0].share.comment_count);if(void 0!==t[0].og_object)var n=a(t[0].og_object.likes.summary.total_count);else var n=0;var s=i+o+n;if(swp_post_recovery_url){if(void 0!==e[0].share)var r=a(e[0].share.share_count),l=a(e[0].share.comment_count);else var r=0,l=0;if(void 0!==e[0].og_object)var p=a(e[0].og_object.likes.summary.total_count);else var p=0;var d=r+l+p;s!==d&&(s+=d)}h={action:"swp_facebook_shares_update",post_id:swp_post_id,activity:s}}})},f.activateHoverStates=function(){o("pre_activate_buttons"),e(".swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer").on("mouseenter",function(){if(e(this).hasClass("swp_nohover"));else{n();var t=e(this).find(".swp_share").outerWidth(),i=e(this).find("i.sw").outerWidth(),a=e(this).width(),o=1+(t+35)/a;e(this).find(".iconFiller").width(t+i+25+"px"),e(this).css({flex:o+" 1 0%"})}}),e(".swp_social_panel:not(.swp_social_panelSide)").on("mouseleave",function(){n()})},e(t).on("load",function(){"undefined"!=typeof swpPinIt&&swpPinIt.enabled&&d()}),e(document).ready(function(){c(),p();var i=e(".swp_social_panelSide");t.bodyPaddingTop=a(e("body").css("padding-top").replace("px","")),t.bodyPaddingBottom=a(e("body").css("padding-bottom").replace("px",""));var o=!1;if(e(".swp_social_panel").hover(function(){o=!0},function(){o=!1}),e(t).resize(f.debounce(250,function(){e(".swp_social_panel").length&&!1!==o||(t.swpAdjust=1,p())})),e(document.body).on("post-load",function(){p()}),0!==i.length){if(-1!==e(i).attr("class").indexOf("swp_side"))return;var n=e(i).height(),s=e(t).height(),r=a(s/2-n/2);setTimeout(function(){e(i).animate({top:r},0)},105)}1===e(".swp-content-locator").parent().children().length&&e(".swp-content-locator").parent().hide()})}(this,jQuery),function(t){var e=/iPhone/i,i=/iPod/i,a=/iPad/i,o=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,n=/Android/i,s=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,r=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,l=/Windows Phone/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,d=/BlackBerry/i,c=/BB10/i,f=/Opera Mini/i,h=/(CriOS|Chrome)(?=.*\bMobile\b)/i,_=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,w=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),u=function(t,e){return t.test(e)},v=function(t){var v=t||navigator.userAgent,b=v.split("[FBAN");if(void 0!==b[1]&&(v=b[0]),b=v.split("Twitter"),void 0!==b[1]&&(v=b[0]),this.apple={phone:u(e,v),ipod:u(i,v),tablet:!u(e,v)&&u(a,v),device:u(e,v)||u(i,v)||u(a,v)},this.amazon={phone:u(s,v),tablet:!u(s,v)&&u(r,v),device:u(s,v)||u(r,v)},this.android={phone:u(s,v)||u(o,v),tablet:!u(s,v)&&!u(o,v)&&(u(r,v)||u(n,v)),device:u(s,v)||u(r,v)||u(o,v)||u(n,v)},this.windows={phone:u(l,v),tablet:u(p,v),device:u(l,v)||u(p,v)},this.other={blackberry:u(d,v),blackberry10:u(c,v),opera:u(f,v),firefox:u(_,v),chrome:u(h,v),device:u(d,v)||u(c,v)||u(f,v)||u(_,v)||u(h,v)},this.seven_inch=u(w,v),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},b=function(){var t=new v;return t.Class=v,t};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=v:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=b():"function"==typeof define&&define.amd?define("swp_isMobile",[],t.swp_isMobile=b()):t.swp_isMobile=b()}(this);
js/sw-shortcode-generator.js CHANGED
@@ -1,73 +1,73 @@
1
- (function() {
2
- tinymce.PluginManager.add( 'swp_shortcode_generator', function( editor, url ) {
3
- editor.addButton( 'swp_shortcode_generator', {
4
- title: 'Social Warfare Buttons',
5
- icon: 'sw sw sw-social-warfare',
6
- onclick: function() {
7
- editor.windowManager.open( {
8
- title: 'Insert Social Warfare Buttons',
9
- body: [
10
- {
11
- type: 'listbox',
12
- name: 'reflection',
13
- label: 'Should the buttons reflect this post or another one?',
14
- values: [
15
- { text: 'This Post', value: 'default' },
16
- { text: 'A Different Post', value: 'alt' }
17
- ],
18
- onselect: function( v ) {
19
- if ( this.value() == 'alt' ) {
20
- jQuery( '.mce-postid' ).parent().parent().slideDown();
21
- } else {
22
- jQuery( '.mce-postid' ).parent().parent().slideUp();
23
- }
24
- }
25
- },
26
- {
27
- type: 'textbox',
28
- multiline: false,
29
- name: 'postID',
30
- classes: 'postid',
31
- label: 'The ID of the post or page to reflect:'
32
- },
33
- {
34
- type: 'textbox',
35
- multiline: false,
36
- name: 'buttons',
37
- classes: 'buttons',
38
- label: 'Buttons to Include:'
39
- },
40
- {
41
- type: 'label',
42
- name: 'someHelpText',
43
- onPostRender: function() {
44
- this.getEl().innerHTML =
45
- '<span style="float:right;">Comma separated list of social network (e.g. "Facebook,Twitter,Total"). Leave blank to use site-wide defaults.</span>';
46
- },
47
- text: ''
48
- }
49
- ],
50
- onPostRender: function() {
51
- jQuery( '.mce-postid' ).parent().parent().slideUp();
52
- jQuery( '.mce-title' ).prepend( '<i class="sw sw-social-warfare"></i>' );
53
- },
54
- onsubmit: function( e ) {
55
- // Check if this is supposed to refelct a different post_id
56
- if ( e.data.reflection == 'alt' && e.data.postID != '' ) {
57
- var post_information = ' post_id="' + e.data.postID + '"';
58
- } else {
59
- var post_information = '';
60
- }
61
- // Check if this is a custom set of buttons
62
- if ( e.data.buttons != '' ) {
63
- var button_set = ' buttons="' + e.data.buttons + '"';
64
- } else {
65
- var button_set = '';
66
- }
67
- editor.insertContent( '[social_warfare' + post_information + '' + button_set + ']' );
68
- }
69
- });
70
- }
71
- });
72
- });
73
- })();
1
+ (function() {
2
+ tinymce.PluginManager.add( 'swp_shortcode_generator', function( editor, url ) {
3
+ editor.addButton( 'swp_shortcode_generator', {
4
+ title: 'Social Warfare Buttons',
5
+ icon: 'sw sw sw-social-warfare',
6
+ onclick: function() {
7
+ editor.windowManager.open( {
8
+ title: 'Insert Social Warfare Buttons',
9
+ body: [
10
+ {
11
+ type: 'listbox',
12
+ name: 'reflection',
13
+ label: 'Should the buttons reflect this post or another one?',
14
+ values: [
15
+ { text: 'This Post', value: 'default' },
16
+ { text: 'A Different Post', value: 'alt' }
17
+ ],
18
+ onselect: function( v ) {
19
+ if ( this.value() == 'alt' ) {
20
+ jQuery( '.mce-postid' ).parent().parent().slideDown();
21
+ } else {
22
+ jQuery( '.mce-postid' ).parent().parent().slideUp();
23
+ }
24
+ }
25
+ },
26
+ {
27
+ type: 'textbox',
28
+ multiline: false,
29
+ name: 'postID',
30
+ classes: 'postid',
31
+ label: 'The ID of the post or page to reflect:'
32
+ },
33
+ {
34
+ type: 'textbox',
35
+ multiline: false,
36
+ name: 'buttons',
37
+ classes: 'buttons',
38
+ label: 'Buttons to Include:'
39
+ },
40
+ {
41
+ type: 'label',
42
+ name: 'someHelpText',
43
+ onPostRender: function() {
44
+ this.getEl().innerHTML =
45
+ '<span style="float:right;">Comma separated list of social network (e.g. "Facebook,Twitter,Total"). Leave blank to use site-wide defaults.</span>';
46
+ },
47
+ text: ''
48
+ }
49
+ ],
50
+ onPostRender: function() {
51
+ jQuery( '.mce-postid' ).parent().parent().slideUp();
52
+ jQuery( '.mce-title' ).prepend( '<i class="sw sw-social-warfare"></i>' );
53
+ },
54
+ onsubmit: function( e ) {
55
+ // Check if this is supposed to refelct a different post_id
56
+ if ( e.data.reflection == 'alt' && e.data.postID != '' ) {
57
+ var post_information = ' post_id="' + e.data.postID + '"';
58
+ } else {
59
+ var post_information = '';
60
+ }
61
+ // Check if this is a custom set of buttons
62
+ if ( e.data.buttons != '' ) {
63
+ var button_set = ' buttons="' + e.data.buttons + '"';
64
+ } else {
65
+ var button_set = '';
66
+ }
67
+ editor.insertContent( '[social_warfare' + post_information + '' + button_set + ']' );
68
+ }
69
+ });
70
+ }
71
+ });
72
+ });
73
+ })();
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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, social sharing buttons, social share, social sharing, social media sharing, wordpress social sharing plugin, social sharing plugin, share buttons, share counts
4
  Requires at least: 3.5.1
5
  Tested up to: 4.9
6
- Stable tag: 3.0.6
7
  License: GNU General Public License v2.0 or later
8
 
9
  The most beautiful, responsive, lightning fast social share buttons built to boost shares and drive more traffic without slowing down your site.
@@ -192,6 +192,20 @@ We have a growing archive of <a href="https://warfareplugins.com/support/" rel="
192
  > Robert Ryan, Professional Web Designer
193
 
194
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  = 3.0.0 (8 MAY 2018) =
196
  * Rewrote the core mechanics of the plugin to a class based system.
197
  * Added top floating bar for mobile.
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, social sharing buttons, social share, social sharing, social media sharing, wordpress social sharing plugin, social sharing plugin, share buttons, share counts
4
  Requires at least: 3.5.1
5
  Tested up to: 4.9
6
+ Stable tag: 3.0.8
7
  License: GNU General Public License v2.0 or later
8
 
9
  The most beautiful, responsive, lightning fast social share buttons built to boost shares and drive more traffic without slowing down your site.
192
  > Robert Ryan, Professional Web Designer
193
 
194
  == Changelog ==
195
+ = 3.0.8 (24 MAY 2018) =
196
+ * Fixed 'Undefined Index' notices.
197
+ * Fixed 'File not found' errors.
198
+ * Custom Color and Custom Color Outlines are fully functional.
199
+ * Floating bar on mobile is back to normal.
200
+ * Fixed global/post-specific setting incompatibilities.
201
+ * Total shares is responsive to the settings, shortcode, and function.
202
+ * Right floating buttons are properly positioned.
203
+ * Fixed conflict with buttons showing on Archive/Category post types.
204
+ * The shortcode and social_warfare() function behave as expected.
205
+ * Yummly and StumbleUpon buttons are back.
206
+ * Created default settings for float position, location, and size.
207
+ * Improved the migration mechanism.
208
+
209
  = 3.0.0 (8 MAY 2018) =
210
  * Rewrote the core mechanics of the plugin to a class based system.
211
  * Added top floating bar for mobile.
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: 3.0.6
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
@@ -16,7 +16,7 @@ defined( 'WPINC' ) || die;
16
  * Define plugin constants for use throughout the plugin (Version and Directories)
17
  *
18
  */
19
- define( 'SWP_VERSION' , '3.0.6' );
20
  define( 'SWP_PLUGIN_FILE', __FILE__ );
21
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
22
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
@@ -29,8 +29,9 @@ define( 'SWP_STORE_URL', 'https://warfareplugins.com' );
29
  * @TODO THis should be removed after 31 DEC 2018.
30
  *
31
  */
32
- require_once SWP_PLUGIN_DIR . '/functions/legacy/update-checker.php';
33
-
 
34
  add_filter('the_excerpt', 'do_shortcode', 1);
35
 
36
  // Load the main Social_Warfare class and fire up the plugin.
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: 3.0.8
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
16
  * Define plugin constants for use throughout the plugin (Version and Directories)
17
  *
18
  */
19
+ define( 'SWP_VERSION' , '3.0.8' );
20
  define( 'SWP_PLUGIN_FILE', __FILE__ );
21
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
22
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
  * @TODO THis should be removed after 31 DEC 2018.
30
  *
31
  */
32
+ if ( file_exists( SWP_PLUGIN_DIR . '/functions/legacy/update-checker.php') ) :
33
+ require_once SWP_PLUGIN_DIR . '/functions/legacy/update-checker.php';
34
+ endif;
35
  add_filter('the_excerpt', 'do_shortcode', 1);
36
 
37
  // Load the main Social_Warfare class and fire up the plugin.