WordPress Social Sharing Plugin – Social Warfare - Version 4.2.0

Version Description

(02 DEC 2020) = * BRAND NEW!!! A whole suite of social analytics tools! * Social Optimizer scores are now saved allowing for comparisons and recommendations. * Added a check for share counts on URLs with UTM codes for Pinterest. * Fixed a few minor CSS issues. * Fix for line breaks in font URLs in the CSS that made the icon font not appear. * Fixed blank settings page on some page loads. * Cleaned up some post meta remnants. * Clean out share counts for buttons that don't use share counts like "email" or "more" * Added a posts column to display the social optimization score.

Download this release

Release Info

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

Code changes from version 4.1.0 to 4.2.0

assets/css/admin.css CHANGED
@@ -1,7 +1,3 @@
1
- /*
2
- * DOM element rendering detection
3
- * https://davidwalsh.name/detect-node-insertion
4
- */
5
  @keyframes chartjs-render-animation {
6
  from {
7
  opacity: 0.99;
@@ -15,10 +11,6 @@
15
  animation: chartjs-render-animation 0.001s;
16
  }
17
 
18
- /*
19
- * DOM element resizing detection
20
- * https://github.com/marcj/css-element-queries
21
- */
22
  .chartjs-size-monitor,
23
  .chartjs-size-monitor-expand,
24
  .chartjs-size-monitor-shrink {
@@ -106,6 +98,10 @@
106
  padding: 0;
107
  }
108
 
 
 
 
 
109
  #social_warfare .open-graph ul.swpmb-media-list,
110
  #social_warfare .twitter ul.swpmb-media-list {
111
  background-image: url("../images/img-placeholder-og.jpg");
@@ -632,4 +628,4 @@ a.swp-notice-cta {
632
  color: black;
633
  }
634
 
635
- /*# sourceMappingURL=admin.css.map */
 
 
 
 
1
  @keyframes chartjs-render-animation {
2
  from {
3
  opacity: 0.99;
11
  animation: chartjs-render-animation 0.001s;
12
  }
13
 
 
 
 
 
14
  .chartjs-size-monitor,
15
  .chartjs-size-monitor-expand,
16
  .chartjs-size-monitor-shrink {
98
  padding: 0;
99
  }
100
 
101
+ #social_warfare #swp_reset_button {
102
+ display: none;
103
+ }
104
+
105
  #social_warfare .open-graph ul.swpmb-media-list,
106
  #social_warfare .twitter ul.swpmb-media-list {
107
  background-image: url("../images/img-placeholder-og.jpg");
628
  color: black;
629
  }
630
 
631
+ /*# sourceMappingURL=admin.css.map */
assets/css/admin.css.map CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "version": 3,
3
- "file": "admin.css",
4
- "sources": [
5
- "admin.scss",
6
- "partials/_variables.scss",
7
- "partials/_chartjs.scss"
8
- ],
9
- "names": [],
10
- "mappings": "AECA;;;GAGG;AACH,UAAU,CAAV,wBAAU;CACT,IAAI;EAAG,OAAO,EAAE,IAAI;;CACpB,EAAE;EAAG,OAAO,EAAE,CAAC;;;;AAGhB,AAAA,uBAAuB,CAAC;CACvB,SAAS,EAAE,+BAA+B;CAC1C;;AAED;;;GAGG;AACH,AAAA,qBAAqB;AACrB,4BAA4B;AAC5B,4BAA4B,CAAC;CAC5B,QAAQ,EAAE,QAAQ;CAClB,SAAS,EAAE,GAAG;CACd,IAAI,EAAE,CAAC;CACP,GAAG,EAAE,CAAC;CACN,KAAK,EAAE,CAAC;CACR,MAAM,EAAE,CAAC;CACT,QAAQ,EAAE,MAAM;CAChB,cAAc,EAAE,IAAI;CACpB,UAAU,EAAE,MAAM;CAClB,OAAO,EAAE,EAAE;CACX;;AAED,AAAA,4BAA4B,GAAG,GAAG,CAAC;CAClC,QAAQ,EAAE,QAAQ;CAClB,KAAK,EAAE,SAAS;CAChB,MAAM,EAAE,SAAS;CACjB,IAAI,EAAE,CAAC;CACP,GAAG,EAAE,CAAC;CACN;;AAED,AAAA,4BAA4B,GAAG,GAAG,CAAC;CAClC,QAAQ,EAAE,QAAQ;CAClB,KAAK,EAAE,IAAI;CACX,MAAM,EAAE,IAAI;CACZ,IAAI,EAAE,CAAC;CACP,GAAG,EAAE,CAAC;CACN;;AF5CD,AAAA,eAAe,AAAA,QAAQ,CAAC;CACvB,OAAO,EAAE,IAAI;CACb;;AAED,AAAA,aAAa,CAAC;CACb,OAAO,EAAE,GAAG;CACZ;;AAGD,AAAA,6BAA6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AAC;CAC/B,MAAM,EAAE,OAAO;CAChB;;AAED,AAAA,uBAAuB,CAAC;CACtB,KAAK,EAAE,KAAK;CACZ,KAAK,EAAE,IAAI;CACX,SAAS,EAAE,IAAI;CACf,WAAW,EAAE,IAAI;CACjB,WAAW,EAAE,IAAI;CACjB,UAAU,EAAE,SAAS;CACrB,aAAa,EAAE,GAAG;CAClB,MAAM,EAAE,IAAI;CACZ,UAAU,EAAE,MAAM;CAClB,OAAO,EAAE,GAAG;CACb;;AAED,AAAA,YAAY,CAAC,KAAK,CAAC;CACjB,SAAS,EAAE,IAAI;CACf,KAAK,EAAE,KAAK;CACb;;AAED,AAAA,kBAAkB,CAAC,KAAK,CAAC;CACvB,UAAU,EAAE,KAAK;CAClB;;AAED,AAAA,iBAAiB,CAAC,KAAK;AACvB,iBAAiB,CAAC,MAAM;AACxB,kBAAkB,CAAC,KAAK,CAAC;CACvB,OAAO,EAAE,IAAI;CACb,KAAK,EAAE,GAAG;CACV,MAAM,EAAE,IAAI;CACZ,aAAa,EAAE,GAAG;CACnB;;AAED,AAAA,kBAAkB,AAAA,cAAc,CAAC,GAAG,CAAC;CACnC,UAAU,EAAE,KAAK;CAClB;;AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,CAAC;CACjC,KAAK,EAAE,KAAK;CACb;;AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,AAAA,aAAa,CAAC;CAC9C,KAAK,EAAE,KAAK;CACb"
11
  }
1
+ {
2
+ "version": 3,
3
+ "file": "admin.css",
4
+ "sources": [
5
+ "admin.scss",
6
+ "partials/_variables.scss",
7
+ "partials/_chartjs.scss"
8
+ ],
9
+ "names": [],
10
+ "mappings": "AEAA,UAAU,CAAV,wBAAU;CACT,IAAI;EACH,OAAO,EAAE,IAAI;;CAGd,EAAE;EACD,OAAO,EAAE,CAAC;;;;AAIZ,AAAA,uBAAuB,CAAC;CACvB,SAAS,EAAE,+BAA+B;CAC1C;;AAED,AAAA,qBAAqB;A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CAAC,KAAK,CAAC;CACvB,UAAU,EAAE,KAAK;CAClB;;AAED,AAAA,iBAAiB,CAAC,KAAK;AACvB,iBAAiB,CAAC,MAAM;AACxB,kBAAkB,CAAC,KAAK,CAAC;CACvB,OAAO,EAAE,IAAI;CACb,KAAK,EAAE,GAAG;CACV,MAAM,EAAE,IAAI;CACZ,aAAa,EAAE,GAAG;CACnB;;AAED,AAAA,kBAAkB,AAAA,cAAc,CAAC,GAAG,CAAC;CACnC,UAAU,EAAE,KAAK;CAClB;;AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,CAAC;CACjC,KAAK,EAAE,KAAK;CACb;;AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,AAAA,aAAa,CAAC;CAC9C,KAAK,EAAE,KAAK;CACb"
11
  }
assets/css/admin.min.css CHANGED
@@ -1,3 +1,3 @@
1
- @keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 0.001s}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}#social_warfare.postbox{display:none}.notAvailable{opacity:0.3}#toplevel_page_social-warfare .wp-menu-image.dashicons-before::before{font-family:'sw-icon-font';content:"K";margin-top:3px;transform:scale(1.2)}#toplevel_page_social-warfare:hover .wp-menu-image.dashicons-before::before,#toplevel_page_social-warfare a.current .wp-menu-image.dashicons-before::before{color:#ee464f !important}.swp_CountDown{background-color:#CCC;display:block;padding:5px 15px;border-radius:3px 3px 0 0;color:#FFF;font-weight:bold;max-width:200px;float:right;font-size:12px;min-width:50px;text-align:center}.swp_CountDown.swp_blue{background-color:#30394F}.swp_CountDown.swp_red{background-color:#EE464F}#social_warfare textarea.large-text{width:100%}#social_warfare ul.swpmb-media-list.ui-sortable{display:block;width:100%;background-size:cover;background-position-x:center;background-repeat:no-repeat;background-color:#ccc;border-radius:4px;padding:0}#social_warfare .open-graph ul.swpmb-media-list,#social_warfare .twitter ul.swpmb-media-list{background-image:url("../images/img-placeholder-og.jpg")}#social_warfare .pinterest ul.swpmb-media-list:empty{background-image:url("../images/img-placeholder-pin.jpg")}#social_warfare .pinterest ul.swpmb-media-list:not(:empty){display:flex;background:#ffffff}#social_warfare .swpmb-field{margin-top:10px;position:relative}#social_warfare .swpmb-image-item,#social_warfare .swpmb-attachment-preview,#social_warfare .swpmb-media-content .centered,#social_warfare .swpmb-media-content img{width:100%;margin-bottom:-5px;height:auto;max-height:none;transform:none}.wp-core-ui #social_warfare #swp_meta_box_heading{display:none}.wp-core-ui #social_warfare .attachment{position:relative;padding:0 0 12px 0;background:#ffffff}.wp-core-ui #social_warfare .attachment .attachment-preview:before{padding:0;content:''}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail{position:relative}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail .centered{position:relative}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail .centered img{position:relative;max-width:100%}.wp-core-ui #social_warfare .attachment .swpmb-image-overlay{position:absolute;z-index:1;top:0;bottom:0;left:0;right:0;background:#000;opacity:0;transition:opacity .2s;height:97%}.wp-core-ui #social_warfare .attachment:hover .swpmb-image-actions{opacity:1}.wp-core-ui #social_warfare .attachment:hover .swpmb-image-overlay{opacity:.6}.wp-core-ui #social_warfare .swpmb-media-add a.button{display:block;background:#30394f;color:#fff;font-size:12px;line-height:1;text-align:center;vertical-align:middle;padding:15px 25px;margin:0;box-shadow:none;border:none;height:auto}.swpmb-media-status{display:none}.wp-core-ui #social_warfare .swpmb-media-add a.button:hover{background:#EE464F}#social_warfare .swpmb-media-content img{transform:translate(0%, 0%)}#social_warfare .swpmb-media-content{overflow:visible}#social_warfare .swpmb-media-preview:before{padding-top:0px}#social_warfare .swpmb-media-content{position:inherit}#social_warfare .swpmb-divider-wrapper hr{border:none !important}#social_warfare .swpmb-label label{font-weight:bold;color:#30394f;font-size:18px}#social_warfare .swpmb-divider-wrapper{max-height:1px;clear:both}#social_warfare .swpmb-label{margin-bottom:10px;display:inline}#social_warfare h2.hndle span:before{content:"K";margin-right:10px;font-family:"sw-icon-font";vertical-align:middle}.ui-tooltip.sw-admin-hover-notice{background:#ee464f;color:#fff;padding:15px;border-radius:2px;margin:15px 0;border:0;box-shadow:none;max-width:none;padding:20px}.sw-admin-hover-notice i:before{font-family:'sw-icon-font';font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:"K";float:left;font-style:normal}[class$=title_wrapper] ~ [class$=title_wrapper]{border-top:1px solid #CED3DC;padding-top:40px}.swp-notice-wrapper{max-width:73%;margin-top:-15px;margin-bottom:15px}.swp-notice{padding:10px 15px;padding:20px}.swp-actions{display:flex;align-items:center}.swp-notice a{cursor:hover;text-decoration:underline;margin:0 10px}.swp-dismiss-notice.notice.notice-info{font-size:15px;line-height:25px}.swp-dismiss-notice.notice.notice-info{border-left-color:#D34250;padding:20px;margin:15px 0 15px}.swp-dismiss-notice.notice.notice-info p{font-size:15px;line-height:25px;padding:0;margin:0 0 20px}a.swp-notice-cta{cursor:pointer;text-decoration:underline;font-size:15px;line-height:30px;margin-right:50px}#swp-admin-sidebar{margin-top:-20px}#swp-admin-sidebar .swp-component.dark-text{color:#333}#swp-admin-sidebar .swp-component.light-text{color:#eee}#swp-admin-sidebar .swp-component{font-size:13px;padding:20px;margin:20px 0;border-radius:8px}#swp-admin-sidebar .swp-component.text-center{text-align:center}#swp-admin-sidebar .swp-component-cta{margin:0 auto;display:block;padding:10px 15px;border:0;border-radius:4px;text-align:center;text-decoration:none;color:white;text-transform:uppercase;letter-spacing:2px;font-weight:bold;cursor:pointer;width:90%}#swp-admin-sidebar button.swp-component-cta{width:100%}#swp-admin-sidebar .swp-component-icon{text-align:center}#swp-admin-sidebar .swp-component .swp-component-title{font-size:26px;text-align:center;font-weight:bold}.sw-checkbox-toggle{width:150px;height:46px;background-color:#30394f;float:right;margin:5px 0;cursor:pointer;border-radius:4px;overflow:hidden;position:relative}.sw-checkbox-on,.sw-checkbox-off{color:white;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-checkbox-toggle[status="on"] .sw-checkbox-off,.sw-checkbox-toggle[status="off"] .sw-checkbox-on{display:none}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status="on"] .sw-checkbox-on{display:none}.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}.swpmb-heading-wrapper h1{font-weight:bold}.swpmb-meta-box{margin:25px 30px}.swpmb-meta-container{display:flex;flex-flow:row wrap;margin:25px 0}.swpmb-flex{display:flex;flex-flow:column nowrap}.swpmb-full-width-wrap{order:1;width:96.5%}.swpmb-left-wrap,.swpmb-right-wrap{order:2}@media screen and (max-width: 767px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:40%}}@media screen and (max-width: 996px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:44%}}@media screen and (min-width: 997px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:47%}}.swpmb-left-wrap{margin-right:30px}.swpmb-right-wrap{align-content:last baseline}.swpmb-input{margin-top:10px}.swpmb-input input{width:100%;padding:10px;margin:0}.swpmb-input textarea{width:100%;resize:unset;border-radius:5px;padding:10px;min-height:120px}.swpmb-field.inline-select .swpmb-input{margin-top:0;display:inline;float:right;border-radius:5px}.swpmb-field .swpmb-label{margin-bottom:none}.swpmb-field.other{margin:15px 0}#social_warfare .sw-checkbox-toggle{width:84px;height:32px}#social_warfare .sw-checkbox-on,#social_warfare .sw-checkbox-off{font-size:12px;line-height:32px}#social_warfare p.description{padding:15px 0}.wp-core-ui #social_warfare a.swpmb-add-media.button{margin:15px 0}.swfw-revoke-button,.swfw-authorization-button{width:70%;text-align:center;max-width:200px}.swfw-input-field,.swfw-follow-field{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;height:50px;margin:15px auto}.swfw-follow-field.swfw-inactive a{cursor:initial}.swfw-follow-field.swfw-active a{cursor:pointer}.swfw-follow-field-icon{color:black;width:40px;font-size:27px;line-height:45px;font-weight:bold;transition:all 300ms;border-radius:3px;height:40px;text-align:center;padding:2px}.swfw-widget label{font-size:14px;width:100px}.swfw-follow-field label{text-align:right}.swfw-input-field input,.swfw-input-field select,.swfw-follow-field input{padding:10px;width:50%;height:100%;border-radius:4px}.swfw-follow-field.swfw-inactive div{background:white}.swfw-follow-field.swfw-active div{color:white}.swfw-follow-field.swfw-active div.swp-snapchat{color:black}
2
-
3
  /*# sourceMappingURL=admin.min.css.map */
1
+ @keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 0.001s}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}#social_warfare.postbox{display:none}.notAvailable{opacity:0.3}#toplevel_page_social-warfare .wp-menu-image.dashicons-before::before{font-family:'sw-icon-font';content:"K";margin-top:3px;transform:scale(1.2)}#toplevel_page_social-warfare:hover .wp-menu-image.dashicons-before::before,#toplevel_page_social-warfare a.current .wp-menu-image.dashicons-before::before{color:#ee464f !important}.swp_CountDown{background-color:#CCC;display:block;padding:5px 15px;border-radius:3px 3px 0 0;color:#FFF;font-weight:bold;max-width:200px;float:right;font-size:12px;min-width:50px;text-align:center}.swp_CountDown.swp_blue{background-color:#30394F}.swp_CountDown.swp_red{background-color:#EE464F}#social_warfare textarea.large-text{width:100%}#social_warfare ul.swpmb-media-list.ui-sortable{display:block;width:100%;background-size:cover;background-position-x:center;background-repeat:no-repeat;background-color:#ccc;border-radius:4px;padding:0}#social_warfare #swp_reset_button{display:none}#social_warfare .open-graph ul.swpmb-media-list,#social_warfare .twitter ul.swpmb-media-list{background-image:url("../images/img-placeholder-og.jpg")}#social_warfare .pinterest ul.swpmb-media-list:empty{background-image:url("../images/img-placeholder-pin.jpg")}#social_warfare .pinterest ul.swpmb-media-list:not(:empty){display:flex;background:#ffffff}#social_warfare .swpmb-field{margin-top:10px;position:relative}#social_warfare .swpmb-image-item,#social_warfare .swpmb-attachment-preview,#social_warfare .swpmb-media-content .centered,#social_warfare .swpmb-media-content img{width:100%;margin-bottom:-5px;height:auto;max-height:none;transform:none}.wp-core-ui #social_warfare #swp_meta_box_heading{display:none}.wp-core-ui #social_warfare .attachment{position:relative;padding:0 0 12px 0;background:#ffffff}.wp-core-ui #social_warfare .attachment .attachment-preview:before{padding:0;content:''}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail{position:relative}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail .centered{position:relative}.wp-core-ui #social_warfare .attachment .attachment-preview .thumbnail .centered img{position:relative;max-width:100%}.wp-core-ui #social_warfare .attachment .swpmb-image-overlay{position:absolute;z-index:1;top:0;bottom:0;left:0;right:0;background:#000;opacity:0;transition:opacity .2s;height:97%}.wp-core-ui #social_warfare .attachment:hover .swpmb-image-actions{opacity:1}.wp-core-ui #social_warfare .attachment:hover .swpmb-image-overlay{opacity:.6}.wp-core-ui #social_warfare .swpmb-media-add a.button{display:block;background:#30394f;color:#fff;font-size:12px;line-height:1;text-align:center;vertical-align:middle;padding:15px 25px;margin:0;box-shadow:none;border:none;height:auto}.swpmb-media-status{display:none}.wp-core-ui #social_warfare .swpmb-media-add a.button:hover{background:#EE464F}#social_warfare .swpmb-media-content img{transform:translate(0%, 0%)}#social_warfare .swpmb-media-content{overflow:visible}#social_warfare .swpmb-media-preview:before{padding-top:0px}#social_warfare .swpmb-media-content{position:inherit}#social_warfare .swpmb-divider-wrapper hr{border:none !important}#social_warfare .swpmb-label label{font-weight:bold;color:#30394f;font-size:18px}#social_warfare .swpmb-divider-wrapper{max-height:1px;clear:both}#social_warfare .swpmb-label{margin-bottom:10px;display:inline}#social_warfare h2.hndle span:before{content:"K";margin-right:10px;font-family:"sw-icon-font";vertical-align:middle}.ui-tooltip.sw-admin-hover-notice{background:#ee464f;color:#fff;padding:15px;border-radius:2px;margin:15px 0;border:0;box-shadow:none;max-width:none;padding:20px}.sw-admin-hover-notice i:before{font-family:'sw-icon-font';font-size:26px;margin:0 15px 0 0;vertical-align:middle;content:"K";float:left;font-style:normal}[class$=title_wrapper] ~ [class$=title_wrapper]{border-top:1px solid #CED3DC;padding-top:40px}.swp-notice-wrapper{max-width:73%;margin-top:-15px;margin-bottom:15px}.swp-notice{padding:10px 15px;padding:20px}.swp-actions{display:flex;align-items:center}.swp-notice a{cursor:hover;text-decoration:underline;margin:0 10px}.swp-dismiss-notice.notice.notice-info{font-size:15px;line-height:25px}.swp-dismiss-notice.notice.notice-info{border-left-color:#D34250;padding:20px;margin:15px 0 15px}.swp-dismiss-notice.notice.notice-info p{font-size:15px;line-height:25px;padding:0;margin:0 0 20px}a.swp-notice-cta{cursor:pointer;text-decoration:underline;font-size:15px;line-height:30px;margin-right:50px}#swp-admin-sidebar{margin-top:-20px}#swp-admin-sidebar .swp-component.dark-text{color:#333}#swp-admin-sidebar .swp-component.light-text{color:#eee}#swp-admin-sidebar .swp-component{font-size:13px;padding:20px;margin:20px 0;border-radius:8px}#swp-admin-sidebar .swp-component.text-center{text-align:center}#swp-admin-sidebar .swp-component-cta{margin:0 auto;display:block;padding:10px 15px;border:0;border-radius:4px;text-align:center;text-decoration:none;color:white;text-transform:uppercase;letter-spacing:2px;font-weight:bold;cursor:pointer;width:90%}#swp-admin-sidebar button.swp-component-cta{width:100%}#swp-admin-sidebar .swp-component-icon{text-align:center}#swp-admin-sidebar .swp-component .swp-component-title{font-size:26px;text-align:center;font-weight:bold}.sw-checkbox-toggle{width:150px;height:46px;background-color:#30394f;float:right;margin:5px 0;cursor:pointer;border-radius:4px;overflow:hidden;position:relative}.sw-checkbox-on,.sw-checkbox-off{color:white;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-checkbox-toggle[status="on"] .sw-checkbox-off,.sw-checkbox-toggle[status="off"] .sw-checkbox-on{display:none}.sw-admin-wrapper[sw-registered="0"] .sw-option-container[premium="1"] .sw-checkbox-toggle[status="on"] .sw-checkbox-on{display:none}.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}.swpmb-heading-wrapper h1{font-weight:bold}.swpmb-meta-box{margin:25px 30px}.swpmb-meta-container{display:flex;flex-flow:row wrap;margin:25px 0}.swpmb-flex{display:flex;flex-flow:column nowrap}.swpmb-full-width-wrap{order:1;width:96.5%}.swpmb-left-wrap,.swpmb-right-wrap{order:2}@media screen and (max-width: 767px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:40%}}@media screen and (max-width: 996px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:44%}}@media screen and (min-width: 997px){.swpmb-left-wrap,.swpmb-right-wrap{flex-basis:47%}}.swpmb-left-wrap{margin-right:30px}.swpmb-right-wrap{align-content:last baseline}.swpmb-input{margin-top:10px}.swpmb-input input{width:100%;padding:10px;margin:0}.swpmb-input textarea{width:100%;resize:unset;border-radius:5px;padding:10px;min-height:120px}.swpmb-field.inline-select .swpmb-input{margin-top:0;display:inline;float:right;border-radius:5px}.swpmb-field .swpmb-label{margin-bottom:none}.swpmb-field.other{margin:15px 0}#social_warfare .sw-checkbox-toggle{width:84px;height:32px}#social_warfare .sw-checkbox-on,#social_warfare .sw-checkbox-off{font-size:12px;line-height:32px}#social_warfare p.description{padding:15px 0}.wp-core-ui #social_warfare a.swpmb-add-media.button{margin:15px 0}.swfw-revoke-button,.swfw-authorization-button{width:70%;text-align:center;max-width:200px}.swfw-input-field,.swfw-follow-field{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;height:50px;margin:15px auto}.swfw-follow-field.swfw-inactive a{cursor:initial}.swfw-follow-field.swfw-active a{cursor:pointer}.swfw-follow-field-icon{color:black;width:40px;font-size:27px;line-height:45px;font-weight:bold;transition:all 300ms;border-radius:3px;height:40px;text-align:center;padding:2px}.swfw-widget label{font-size:14px;width:100px}.swfw-follow-field label{text-align:right}.swfw-input-field input,.swfw-input-field select,.swfw-follow-field input{padding:10px;width:50%;height:100%;border-radius:4px}.swfw-follow-field.swfw-inactive div{background:white}.swfw-follow-field.swfw-active div{color:white}.swfw-follow-field.swfw-active div.swp-snapchat{color:black}
2
+
3
  /*# sourceMappingURL=admin.min.css.map */
assets/css/admin.min.css.map CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "version": 3,
3
- "file": "admin.min.css",
4
- "sources": [
5
- "admin.scss",
6
- "partials/_variables.scss",
7
- "partials/_chartjs.scss"
8
- ],
9
- "names": [],
10
- "mappings": "AEKA,UAAU,CAAV,wBAAU,CACT,IAAI,CAAG,OAAO,CAAE,IAAI,CACpB,EAAE,CAAG,OAAO,CAAE,CAAC,EAGhB,AAAA,uBAAuB,AAAC,CACvB,SAAS,CAAE,+BAA+B,CAC1C,AAMD,AAAA,qBAAqB,CACrB,4BAA4B,CAC5B,4BAA4B,AAAC,CAC5B,QAAQ,CAAE,QAAQ,CAClB,SAAS,CAAE,GAAG,CACd,IAAI,CAAE,CAAC,CACP,GAAG,CAAE,CAAC,CACN,KAAK,CAAE,CAAC,CACR,M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AAC,CAC9C,KAAK,CAAE,KAAK,CACb"
11
  }
1
+ {
2
+ "version": 3,
3
+ "file": "admin.min.css",
4
+ "sources": [
5
+ "admin.scss",
6
+ "partials/_variables.scss",
7
+ "partials/_chartjs.scss"
8
+ ],
9
+ "names": [],
10
+ "mappings": "AEAA,UAAU,CAAV,wBAAU,CACT,IAAI,CACH,OAAO,CAAE,IAAI,CAGd,EAAE,CACD,OAAO,CAAE,CAAC,EAIZ,AAAA,uBAAuB,AAAC,CACvB,SAAS,CAAE,+BAA+B,CAC1C,AAED,AAAA,qBAAqB,CACrB,4BAA4B,CAC5B,4BAA4B,AAAC,CAC5B,QAAQ,CAAE,QAAQ,CAClB,SAAS,CAAE,GAAG,CACd,IAAI,CAAE,CAAC,CACP,GAAG,CAAE,CAAC,CACN,KAAK,CAAE,CAAC,CACR,MAAM,CAAE,CAAC,CACT,QAAQ,CAAE,MAAM,CAChB,cAAc,CAAE,IAAI,CACpB,UAAU,CAAE,MAAM,CAClB,OAAO,CAAE,EAAE,CACX,AAED,AAAA,4BAA4B,CAAG,GAAG,AAAC,CAClC,QAAQ,CAAE,QAAQ,CAClB,KAAK,CAAE,SAAS,CAChB,MAAM,CAAE,SAAS,CACjB,IAAI,CAAE,CAAC,CACP,GAAG,CAAE,CAAC,CACN,AAED,AAAA,4BAA4B,CAAG,GAAG,AAAC,CAClC,QAAQ,CAAE,QAAQ,CAClB,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,IAAI,CAAE,CAAC,CACP,GAAG,CAAE,CAAC,CACN,AFxCD,AAAA,eAAe,AAAA,QAAQ,AAAC,CACvB,OAAO,CAAE,IAAI,CACb,AAED,AAAA,aAAa,AAAC,CACb,OAAO,CAAE,GAAG,CACZ,AAGD,AAAA,6BAA6B,CAAC,cAAc,AAAA,iBAAiB,AAAA,QAAQ,AAAC,CACrE,WAAW,CAAC,cAAc,CCuF1B,OAAO,CA5BW,GAAG,CDzDrB,UAAU,CAAC,GAAG,CACd,S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CAClB,OAAO,CAAE,GAAG,CACb,AAED,AAAA,YAAY,CAAC,KAAK,AAAC,CACjB,SAAS,CAAE,IAAI,CACf,KAAK,CAAE,KAAK,CACb,AAED,AAAA,kBAAkB,CAAC,KAAK,AAAC,CACvB,UAAU,CAAE,KAAK,CAClB,AAED,AAAA,iBAAiB,CAAC,KAAK,CACvB,iBAAiB,CAAC,MAAM,CACxB,kBAAkB,CAAC,KAAK,AAAC,CACvB,OAAO,CAAE,IAAI,CACb,KAAK,CAAE,GAAG,CACV,MAAM,CAAE,IAAI,CACZ,aAAa,CAAE,GAAG,CACnB,AAED,AAAA,kBAAkB,AAAA,cAAc,CAAC,GAAG,AAAC,CACnC,UAAU,CAAE,KAAK,CAClB,AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,AAAC,CACjC,KAAK,CAAE,KAAK,CACb,AAED,AAAA,kBAAkB,AAAA,YAAY,CAAC,GAAG,AAAA,aAAa,AAAC,CAC9C,KAAK,CAAE,KAAK,CACb"
11
  }
assets/css/admin.scss CHANGED
@@ -58,6 +58,10 @@
58
  padding: 0;
59
  }
60
 
 
 
 
 
61
  #social_warfare .open-graph ul.swpmb-media-list,
62
  #social_warfare .twitter ul.swpmb-media-list {
63
  background-image: url('../images/img-placeholder-og.jpg');
@@ -75,7 +79,6 @@
75
 
76
  }
77
 
78
-
79
  #social_warfare .swpmb-field {
80
  margin-top: 10px;
81
  position: relative;
58
  padding: 0;
59
  }
60
 
61
+ #social_warfare #swp_reset_button {
62
+ display:none;
63
+ }
64
+
65
  #social_warfare .open-graph ul.swpmb-media-list,
66
  #social_warfare .twitter ul.swpmb-media-list {
67
  background-image: url('../images/img-placeholder-og.jpg');
79
 
80
  }
81
 
 
82
  #social_warfare .swpmb-field {
83
  margin-top: 10px;
84
  position: relative;
assets/css/partials/_chartjs.scss CHANGED
@@ -1,21 +1,17 @@
1
- // main:../admin.scss
2
- /*
3
- * DOM element rendering detection
4
- * https://davidwalsh.name/detect-node-insertion
5
- */
6
  @keyframes chartjs-render-animation {
7
- from { opacity: 0.99; }
8
- to { opacity: 1; }
 
 
 
 
 
9
  }
10
 
11
  .chartjs-render-monitor {
12
  animation: chartjs-render-animation 0.001s;
13
  }
14
 
15
- /*
16
- * DOM element resizing detection
17
- * https://github.com/marcj/css-element-queries
18
- */
19
  .chartjs-size-monitor,
20
  .chartjs-size-monitor-expand,
21
  .chartjs-size-monitor-shrink {
 
 
 
 
 
1
  @keyframes chartjs-render-animation {
2
+ from {
3
+ opacity: 0.99;
4
+ }
5
+
6
+ to {
7
+ opacity: 1;
8
+ }
9
  }
10
 
11
  .chartjs-render-monitor {
12
  animation: chartjs-render-animation 0.001s;
13
  }
14
 
 
 
 
 
15
  .chartjs-size-monitor,
16
  .chartjs-size-monitor-expand,
17
  .chartjs-size-monitor-shrink {
assets/js/admin-options-page.js CHANGED
@@ -4,7 +4,7 @@
4
 
5
  window.onload = function() {
6
  /*********************************************************
7
- Temporary patch for the custom color se lects.
8
  *********************************************************/
9
  /*
10
  * Temp patch on the Visual Options colors.
@@ -197,14 +197,40 @@
197
  });
198
  }
199
 
 
 
 
 
 
 
 
 
 
 
 
200
  function activateSelectedTab(tab) {
 
 
 
 
 
 
 
201
  jQuery('.sw-admin-tab').hide();
 
 
202
  jQuery('#' + tab).show();
 
 
203
  jQuery('.sw-header-menu li').removeClass('sw-active-tab');
204
  jQuery('[data-link="'+ tab +'"]').parents('li').addClass('sw-active-tab');
 
 
205
  if ('swp_styles' === tab) {
206
  socialWarfare.activateHoverStates();
207
  }
 
 
208
  socialWarfareAdmin.conditionalFields();
209
  }
210
 
@@ -281,7 +307,8 @@
281
  };
282
 
283
  // Send the POST request
284
- jQuery.post({
 
285
  url: ajaxurl,
286
  data: data,
287
  success: function(response) {
@@ -290,7 +317,7 @@
290
  console.log(response);
291
  // Reset the default options variable
292
  socialWarfare.defaultOptions = fetchAllOptions();
293
-
294
  saveColorToggle();
295
  }
296
 
4
 
5
  window.onload = function() {
6
  /*********************************************************
7
+ Temporary patch for the custom color selects.
8
  *********************************************************/
9
  /*
10
  * Temp patch on the Visual Options colors.
197
  });
198
  }
199
 
200
+
201
+ /**
202
+ * The activateSelectedTab() function will hide all of the tabbed sections
203
+ * and then reveal the one that was clicked on.
204
+ *
205
+ * @since 1.0.0 | UNKNOWN | Created
206
+ * @since 4.2.0 | 25 AUG 2020 | Added existence check for tab content.
207
+ * @param string tab The unique key of the selected tab.
208
+ * @return void
209
+ *
210
+ */
211
  function activateSelectedTab(tab) {
212
+
213
+ // Bail if the requested tab doesn't exist on this page.
214
+ if( 0 === jQuery('[data-link="'+ tab +'"]').length ) {
215
+ return;
216
+ };
217
+
218
+ // Hide all of the tabs in one go.
219
  jQuery('.sw-admin-tab').hide();
220
+
221
+ // Reveal the selected tab.
222
  jQuery('#' + tab).show();
223
+
224
+ // Update the items in the menu so the right one has the active class.
225
  jQuery('.sw-header-menu li').removeClass('sw-active-tab');
226
  jQuery('[data-link="'+ tab +'"]').parents('li').addClass('sw-active-tab');
227
+
228
+ // Run some special stuff if we're on the styles tab now.
229
  if ('swp_styles' === tab) {
230
  socialWarfare.activateHoverStates();
231
  }
232
+
233
+ // Update all of the conditional fields...just in case.
234
  socialWarfareAdmin.conditionalFields();
235
  }
236
 
307
  };
308
 
309
  // Send the POST request
310
+ jQuery.ajax({
311
+ type: 'POST',
312
  url: ajaxurl,
313
  data: data,
314
  success: function(response) {
317
  console.log(response);
318
  // Reset the default options variable
319
  socialWarfare.defaultOptions = fetchAllOptions();
320
+ console.log('woohoo');
321
  saveColorToggle();
322
  }
323
 
assets/js/admin-options-page.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(e,t){"use strict";function o(e,t,o,s){var a={customColor:!1,customOutlines:!1};jQuery(t).each(function(e,t){var o=jQuery(t).val();-1!==o.indexOf("custom")&&(o.indexOf("outlines")>0?a.customOutlines=!0:a.customColor=!0)}),a.customColor?o.slideDown():o.slideUp(),a.customOutlines?s.slideDown():s.slideUp(),a.customColor||a.customOutlines?(jQuery("body").append('<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>'),jQuery(".color-dismiss").on("click",function(){jQuery("#color-notice").fadeOut("slow")})):jQuery("#color-notice").length&&jQuery("#color-notice").fadeOut("slow")}function s(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 jQuery("form.sw-admin-settings-form input, form.sw-admin-settings-form select, form.sw-admin-settings-form textarea").each(function(){var t,o=jQuery(this),s=o.attr("name");t="checkbox"===o.attr("type")?o.prop("checked"):(o.attr("type"),o.val()),e[s]=t}),e.order_of_icons={},jQuery(".sw-active i").each(function(){var t=jQuery(this).data("network");e.order_of_icons[t]=t}),console.log(e),e}function r(){var e=jQuery(".sw-top-menu").offset(),t=jQuery(".sw-top-menu").width();jQuery(".sw-top-menu").css({position:"fixed",left:e.left,top:e.top,width:t}),jQuery(".sw-admin-wrapper").css("padding-top","75px")}function n(){jQuery(".sw-tab-selector").on("click",function(e){e.preventDefault(),jQuery("html, body").animate({scrollTop:0},300);var t=jQuery(this).attr("data-link");sessionStorage.setItem("swp_tab",t),l(t)})}function l(e){jQuery(".sw-admin-tab").hide(),jQuery("#"+e).show(),jQuery(".sw-header-menu li").removeClass("sw-active-tab"),jQuery('[data-link="'+e+'"]').parents("li").addClass("sw-active-tab"),"swp_styles"===e&&socialWarfare.activateHoverStates(),socialWarfareAdmin.conditionalFields()}function i(){jQuery(".sw-checkbox-toggle").on("click",function(){var e=jQuery(this).attr("status"),t=jQuery(this).attr("field");"on"===e?(jQuery(this).attr("status","off"),jQuery(t).prop("checked",!1)):(jQuery(this).attr("status","on"),jQuery(t).prop("checked",!0)),c(),socialWarfareAdmin.conditionalFields()})}function u(){jQuery("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){socialWarfareAdmin.conditionalFields(),socialWarfare.newOptions=a(),c()}),socialWarfare.defaultOptions=a()}function c(){socialWarfare.newOptions=a(),JSON.stringify(socialWarfare.newOptions)!==JSON.stringify(socialWarfare.defaultOptions)?jQuery(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button"):jQuery(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}function _(){jQuery(".sw-save-settings").on("click",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,p();var t=a(),o={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:t};jQuery.post({url:ajaxurl,data:o,success:function(e){m(!0),console.log(e),socialWarfare.defaultOptions=a(),c()}})})}function p(){jQuery("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function m(e){var t=e?"Success!":"";jQuery(".sw-loading-message").html(t).removeClass("sw-loading-message").addClass("sw-loading-complete"),jQuery(".sw-loading-bg").delay(1e3).fadeOut(1e3),setTimeout(function(){jQuery(".sw-loading-bg").remove()},2e3)}function d(){var e=(jQuery('select[name="button_shape"]').val(),jQuery('select[name="default_colors"]').val()),t=jQuery('select[name="single_colors"]').val(),o=jQuery('select[name="hover_colors"]').val();jQuery("style.swp_customColorStuff").remove();var s=jQuery('input[name="custom_color"]').val(),a="";"custom_color"!=e&&"custom_color"!=t&&"custom_color"!=o||(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:"+s+";border:1px solid "+s+";}"),"custom_color_outlines"!=e&&"custom_color_outlines"!=t&&"custom_color_outlines"!=o||(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:"+s+"; } .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 "+s+"; }"),jQuery("head").append('<style type="text/css" class="swp_customColorStuff">'+a+"</style>")}function y(){function e(e){var t=jQuery('select[name="'+e+'"]').val();if(0===t.indexOf("custom")){return e.slice(0,e.indexOf("_"))+"_full_color"}return t}var o=e("button_shape"),s=e("default_colors"),a=e("single_colors"),r=e("hover_colors"),n="swp_"+o+" swp_default_"+s+" swp_individual_"+a+" swp_other_"+r;if(void 0===socialWarfare.lastClass){var l=t(".swp_social_panel");if(!l.length)return;socialWarfare.lastClass=l.get().className}var n="swp_"+o+" swp_default_"+s+" swp_individual_"+a+" swp_other_"+r;jQuery(".swp_social_panel").removeClass("swp_other_medium_gray"),jQuery(".swp_social_panel").removeClass(socialWarfare.lastClass).addClass(n),socialWarfare.lastClass=n}function f(){if(0!==jQuery('select[name="button_shape"]').length){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"},t={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,modern:{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"},dark:{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=jQuery('select[name="button_shape"]').val(),s=jQuery('select[name="default_colors"]').val(),a=jQuery('select[name="single_colors"]').val(),r=jQuery('select[name="hover_colors"]').val(),n=jQuery('select[name="button_shape"]').find("option").map(function(e,t){return t.value});jQuery('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove(),jQuery.each(t[o],function(e,t){e===s?jQuery('select[name="default_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="default_colors"]').append('<option value="'+e+'">'+t+"</option>"),e===a?jQuery('select[name="single_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="single_colors"]').append('<option value="'+e+'">'+t+"</option>"),e===r?jQuery('select[name="hover_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="hover_colors"]').append('<option value="'+e+'">'+t+"</option>"),"custom_color"==s||"custom_color_outlines"==s||"custom_color"==a||"custom_color_outlines"==a||"custom_color"==r||"custom_color_outlines"==r?(jQuery(".customColor_wrapper").slideDown(),d()):jQuery(".customColor_wrapper").slideUp()}),jQuery('select[name="default_colors"], select[name="single_colors"], select[name="hover_colors"]').on("change",y),jQuery('select[name="button_shape"]').on("change",function(){var e=jQuery('select[name="button_shape"]').val(),o=jQuery('select[name="default_colors"]').val(),s=jQuery('select[name="single_colors"]').val(),a=jQuery('select[name="hover_colors"]').val(),r=0,l=t[e],i=l.hasOwnProperty(o),u=l.hasOwnProperty(s),c=l.hasOwnProperty(a);jQuery('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove(),jQuery.each(t[e],function(e,t){e===o||0==i&&0==r?jQuery('select[name="default_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="default_colors"]').append('<option value="'+e+'">'+t+"</option>"),e===s||0==u&&0==r?jQuery('select[name="single_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="single_colors"]').append('<option value="'+e+'">'+t+"</option>"),e===a||0==c&&0==r?jQuery('select[name="hover_colors"]').append('<option value="'+e+'" selected>'+t+"</option>"):jQuery('select[name="hover_colors"]').append('<option value="'+e+'">'+t+"</option>"),++r}),void 0===socialWarfare.lastClass&&(socialWarfare.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color");var _="swp_"+e+" swp_default_"+o+" swp_individual_"+s+" swp_other_"+a;n.map(function(e,t){jQuery(".swp_social_panel").removeClass("swp_"+t.value)}),jQuery(".swp_social_panel").removeClass(socialWarfare.lastClass).addClass(_),socialWarfare.lastClass=_})}}function w(){jQuery('select[name="button_size"],select[name="button_alignment"]').on("change",function(){jQuery(".swp_social_panel").css({width:"100%"});var e,t=jQuery(".swp_social_panel").width(),o=jQuery('select[name="button_size"]').val(),s=jQuery('select[name="button_alignment"]').val();"full_width"==s&&1!=o||o>=1?(e=t/o,jQuery(".swp_social_panel").css("cssText","width:"+e+"px!important;"),jQuery(".swp_social_panel").css({transform:"scale("+o+")","transform-origin":"left"})):"full_width"!=s&&o<1&&(e=t/o,jQuery(".swp_social_panel").css({transform:"scale("+o+")","transform-origin":s})),socialWarfare.activateHoverStates()})}function v(){var e=jQuery('select[name="ctt_theme"]');e.on("change",function(){var e=jQuery('select[name="ctt_theme"]').val();jQuery(".swp_CTT").attr("class","swp_CTT").addClass(e)}),e.trigger("change")}function j(e,t){var o=jQuery(".sw-admin-wrapper");o.attr("swp-addons"),o.attr("swp-registrations");jQuery(".registration-wrapper."+t).attr("registration",e),1===parseInt(e)?(o.attr("sw-registered",e),jQuery(".sw-top-menu").attr("sw-registered",e),g(o,"swp-registrations",t)):Q(o,"swp-registrations",t)}function Q(e,t,o){var s=jQuery(e).attr(t),a=s.indexOf(o);if(-1!==a){var r=a+o.length,n=s.slice(0,a)+s.slice(r);jQuery(e).attr(t,n)}}function g(e,t,o){var s=jQuery(e).attr(t);s.includes(o)||jQuery(e).attr(t,s+o)}function h(t,o){var s=!1,a={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",name_key:t,item_id:o,license_key:jQuery('input[name="'+t+'_license_key"]').val()};return p(),jQuery.post(ajaxurl,a,function(o){if("object"!=typeof(o=JSON.parse(o)))throw o;if(o.success)j("1",t),s=!0;else{alert("This license key is not currently active. Please check the status of your key at https://warfareplugins.com/my-account/license-keys/")}m(s),e.location.reload(!0)}),s}function C(t,o){var s=!1,a={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister",name_key:t,item_id:o};return p(),jQuery.post(ajaxurl,a,function(o){if(o=JSON.parse(o),o.success)jQuery('input[name="'+t+'_license_key"]').val(""),j("0",t),s=!0;else{alert("Sorry, we had trouble deactivating your key. Please let us know about this at https://warfareplugins.com/submit-ticket")}m(s),e.location.reload(!0)}),s}function b(){jQuery(".register-plugin").on("click",function(){return h(jQuery(this).attr("swp-addon"),jQuery(this).attr("swp-item-id").trim()),!1}),jQuery(".unregister-plugin").on("click",function(){return C(jQuery(this).attr("swp-addon"),jQuery(this).attr("swp-item-id").trim()),!1})}function O(){jQuery(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){c()}}),jQuery(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){c()}})}function k(){jQuery(".sw-system-status").on("click",function(e){e.preventDefault(),jQuery(".system-status-wrapper").slideToggle(),s(jQuery(".system-status-container").get(0))})}function x(){var e;jQuery(".swp_upload_image_button").click(function(t){t.preventDefault();var o=jQuery(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 t=e.state().get("selection").first().toJSON();jQuery('input[name="'+o+'"').val(t.url)}),e.open()})}function W(){var e=jQuery("#ctt_preview"),t=jQuery("select[name=ctt_theme]");e.length||(e=jQuery('<style id="ctt_preview"></style>'),jQuery("head").append(e)),"none"===jQuery(t).val()&&D(),jQuery(t).on("change",function(e){"none"===e.target.value&&D()}),jQuery("textarea[name=ctt_css]").on("keyup",D)}function D(){var e=jQuery("#ctt_preview"),t=jQuery("textarea[name=ctt_css]");jQuery(e).text(jQuery(t).val())}function G(e){var t,o=e.target,s=jQuery(o).data("network"),a=(o.getBoundingClientRect(),{top:jQuery(o).position().top-50,left:jQuery(o).position().left+4});if(s.indexOf("_")>0){s=s.split("_").map(function(e){return e[0].toUpperCase()+e.slice(1,e.length)}).join(" ")}if(s=s[0].toUpperCase()+s.slice(1,s.length),t=jQuery('<span class="swp-icon-tooltip">'+s+"</span>").css(a).get(0),jQuery(this).parents(".sw-grid").first().append(t),jQuery(t).outerWidth()>jQuery(o).outerWidth()){var r=jQuery(t).outerWidth()-jQuery(o).outerWidth();a.left=a.left-r/2,jQuery(t).css(a)}jQuery(o).on("mousedown",function(e){jQuery("body").mousemove(function(){S(),jQuery("body").off("mousemove")})})}function S(e){jQuery(".swp-icon-tooltip").remove()}function T(){jQuery("[class*='sw-'][class*='-icon']").each(function(e,t){jQuery(t).hover(G,S)})}function N(){jQuery("a[data-deactivation]").on("click",function(e){var o=t(this).data("deactivation");if(o){p(),e.preventDefault();var s={action:"swp_"+o};jQuery.post(ajaxurl,s,function(e){"success"==e&&location.reload()})}})}function A(){var e=sessionStorage.getItem("swp_tab_time"),t=sessionStorage.getItem("swp_tab");(new Date).getTime()/1e3-e<15&&l(t)}function F(){e.onbeforeunload=function(e){var t=new Date,o=t.getTime()/1e3;sessionStorage.setItem("swp_tab_time",o)}}e.onload=function(){var e="[name=default_colors],[name=hover_colors], [name=single_colors]",t="[name=float_default_colors], [name=float_hover_colors], [name=float_single_colors]";jQuery("[name=custom_color],[name=custom_color_outlines],[name=float_custom_color],[name=float_custom_color_outlines]").parent().parent().hide(),jQuery(e).each(function(e,t){var o=jQuery(t).val(),s=jQuery("[name=custom_color]").parent().parent(),a=jQuery("[name=custom_color_outlines]").parent().parent();-1!==o.indexOf("custom")&&(o.indexOf("outlines")>0?a.show():s.show())}),jQuery(t).each(function(e,t){var o=jQuery(t).val(),s=jQuery("[name=float_custom_color]").parent().parent(),a=jQuery("[name=float_custom_color_outlines]").parent().parent();-1!==o.indexOf("custom")&&(o.indexOf("outlines")>0?a.show():s.show())}),jQuery(e).on("change",function(t){var s=(t.target.value,jQuery("[name=custom_color]").parent().parent()),a=jQuery("[name=custom_color_outlines]").parent().parent();o(t,e,s,a)}),jQuery(t).on("change",function(e){var s=(e.target.value,jQuery("[name=float_custom_color]").parent().parent()),a=jQuery("[name=float_custom_color_outlines]").parent().parent();s.hide(),a.hide(),o(e,t,s,a)})},jQuery(document).ready(function(){F(),A(),_(),u(),r(),n(),i(),f(),socialWarfareAdmin.conditionalFields(),v(),w(),b(),O(),k(),x(),W(),T(),N()})}(this,jQuery);
 
1
+ (function(window,$){"use strict";window.onload=function(){var panelSelector="[name=default_colors],[name=hover_colors], [name=single_colors]";var floatSelector="[name=float_default_colors], [name=float_hover_colors], [name=float_single_colors]";jQuery("[name=custom_color],[name=custom_color_outlines],[name=float_custom_color],[name=float_custom_color_outlines]").parent().parent().hide();jQuery(panelSelector).each(function(index,select){var value=jQuery(select).val();var customColor=jQuery("[name=custom_color]").parent().parent();var customOutlines=jQuery("[name=custom_color_outlines]").parent().parent();if(value.indexOf("custom")!==-1){if(value.indexOf("outlines")>0){customOutlines.show()}else{customColor.show()}}});jQuery(floatSelector).each(function(index,select){var value=jQuery(select).val();var customColor=jQuery("[name=float_custom_color]").parent().parent();var customOutlines=jQuery("[name=float_custom_color_outlines]").parent().parent();if(value.indexOf("custom")!==-1){if(value.indexOf("outlines")>0){customOutlines.show()}else{customColor.show()}}});jQuery(panelSelector).on("change",function(e){var value=e.target.value;var customColor=jQuery("[name=custom_color]").parent().parent();var customOutlines=jQuery("[name=custom_color_outlines]").parent().parent();handleCustomColors(e,panelSelector,customColor,customOutlines,value)});jQuery(floatSelector).on("change",function(e){var value=e.target.value;var customColor=jQuery("[name=float_custom_color]").parent().parent();var customOutlines=jQuery("[name=float_custom_color_outlines]").parent().parent();customColor.hide();customOutlines.hide();handleCustomColors(e,floatSelector,customColor,customOutlines,value)})};function handleCustomColors(event,selector,customColor,customOutlines){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>';var visibility={customColor:false,customOutlines:false};jQuery(selector).each(function(index,select){var val=jQuery(select).val();if(val.indexOf("custom")!==-1){if(val.indexOf("outlines")>0){visibility.customOutlines=true}else{visibility.customColor=true}}});visibility.customColor?customColor.slideDown():customColor.slideUp();visibility.customOutlines?customOutlines.slideDown():customOutlines.slideUp();if(visibility.customColor||visibility.customOutlines){jQuery("body").append(colorNotice);jQuery(".color-dismiss").on("click",function(){jQuery("#color-notice").fadeOut("slow")})}else{if(jQuery("#color-notice").length){jQuery("#color-notice").fadeOut("slow")}}}function selectText(element){var range,selection;if(document.body.createTextRange){range=document.body.createTextRange();range.moveToElementText(element);range.select()}else if(window.getSelection){selection=window.getSelection();range=document.createRange();range.selectNodeContents(element);selection.removeAllRanges();selection.addRange(range)}}function fetchAllOptions(){var values={};jQuery("form.sw-admin-settings-form input, form.sw-admin-settings-form select, form.sw-admin-settings-form textarea").each(function(){var jQueryfield=jQuery(this);var name=jQueryfield.attr("name");var value;if("checkbox"===jQueryfield.attr("type")){value=jQueryfield.prop("checked")}else if("textarea"===jQueryfield.attr("type")){value=jQueryfield.val()}else{value=jQueryfield.val()}values[name]=value});values.order_of_icons={};jQuery(".sw-active i").each(function(){var network=jQuery(this).data("network");values.order_of_icons[network]=network});console.log(values);return values}function headerMenuInit(){var offset=jQuery(".sw-top-menu").offset();var width=jQuery(".sw-top-menu").width();jQuery(".sw-top-menu").css({position:"fixed",left:offset.left,top:offset.top,width:width});jQuery(".sw-admin-wrapper").css("padding-top","75px")}function tabNavInit(){jQuery(".sw-tab-selector").on("click",function(event){event.preventDefault();jQuery("html, body").animate({scrollTop:0},300);var tab=jQuery(this).attr("data-link");sessionStorage.setItem("swp_tab",tab);activateSelectedTab(tab)})}function activateSelectedTab(tab){if(0===jQuery('[data-link="'+tab+'"]').length){return}jQuery(".sw-admin-tab").hide();jQuery("#"+tab).show();jQuery(".sw-header-menu li").removeClass("sw-active-tab");jQuery('[data-link="'+tab+'"]').parents("li").addClass("sw-active-tab");if("swp_styles"===tab){socialWarfare.activateHoverStates()}socialWarfareAdmin.conditionalFields()}function checkboxesInit(){jQuery(".sw-checkbox-toggle").on("click",function(){var status=jQuery(this).attr("status");var elem=jQuery(this).attr("field");if("on"===status){jQuery(this).attr("status","off");jQuery(elem).prop("checked",false)}else{jQuery(this).attr("status","on");jQuery(elem).prop("checked",true)}saveColorToggle();socialWarfareAdmin.conditionalFields()})}function populateOptions(){jQuery("form.sw-admin-settings-form input, form.sw-admin-settings-form select").on("change",function(){socialWarfareAdmin.conditionalFields();socialWarfare.newOptions=fetchAllOptions();saveColorToggle()});socialWarfare.defaultOptions=fetchAllOptions()}function saveColorToggle(){socialWarfare.newOptions=fetchAllOptions();if(JSON.stringify(socialWarfare.newOptions)!==JSON.stringify(socialWarfare.defaultOptions)){jQuery(".sw-save-settings").removeClass("sw-navy-button").addClass("sw-red-button")}else{jQuery(".sw-save-settings").removeClass("sw-red-button").addClass("sw-navy-button")}}function handleSettingSave(){jQuery(".sw-save-settings").on("click",function(event){event.preventDefault?event.preventDefault():event.returnValue=false;loadingScreen();var settings=fetchAllOptions();var data={action:"swp_store_settings",security:swpAdminOptionsData.optionsNonce,settings:settings};jQuery.ajax({type:"POST",url:ajaxurl,data:data,success:function(response){clearLoadingScreen(true);console.log(response);socialWarfare.defaultOptions=fetchAllOptions();console.log("woohoo");saveColorToggle()}})})}function loadingScreen(){jQuery("body").append('<div class="sw-loading-bg"><div class="sw-loading-message">Saving Changes</div></div>')}function clearLoadingScreen(isSuccess){var message=isSuccess?"Success!":"";jQuery(".sw-loading-message").html(message).removeClass("sw-loading-message").addClass("sw-loading-complete");jQuery(".sw-loading-bg").delay(1e3).fadeOut(1e3);setTimeout(function(){jQuery(".sw-loading-bg").remove()},2e3)}function updateCustomColor(){var visualTheme=jQuery('select[name="button_shape"]').val();var dColorSet=jQuery('select[name="default_colors"]').val();var iColorSet=jQuery('select[name="single_colors"]').val();var oColorSet=jQuery('select[name="hover_colors"]').val();jQuery("style.swp_customColorStuff").remove();var colorCode=jQuery('input[name="custom_color"]').val();var customCSS="";if(dColorSet=="custom_color"||iColorSet=="custom_color"||oColorSet=="custom_color"){customCSS=".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:"+colorCode+";border:1px solid "+colorCode+";}"}if(dColorSet=="custom_color_outlines"||iColorSet=="custom_color_outlines"||oColorSet=="custom_color_outlines"){customCSS=customCSS+" .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:"+colorCode+"; } .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 "+colorCode+"; }"}jQuery("head").append('<style type="text/css" class="swp_customColorStuff">'+customCSS+"</style>")}function updateTheme(){var visualTheme=getParsedValue("button_shape");var dColorSet=getParsedValue("default_colors");var iColorSet=getParsedValue("single_colors");var oColorSet=getParsedValue("hover_colors");function getParsedValue(selector){var value=jQuery('select[name="'+selector+'"]').val();if(value.indexOf("custom")===0){var prefix=selector.slice(0,selector.indexOf("_"));return prefix+"_full_color"}return value}var buttonsClass="swp_"+visualTheme+" swp_default_"+dColorSet+" swp_individual_"+iColorSet+" swp_other_"+oColorSet;if("undefined"===typeof socialWarfare.lastClass){var panel=$(".swp_social_panel");if(!panel.length){return}socialWarfare.lastClass=panel.get().className}var buttonsClass="swp_"+visualTheme+" swp_default_"+dColorSet+" swp_individual_"+iColorSet+" swp_other_"+oColorSet;jQuery(".swp_social_panel").removeClass("swp_other_medium_gray");jQuery(".swp_social_panel").removeClass(socialWarfare.lastClass).addClass(buttonsClass);socialWarfare.lastClass=buttonsClass}function updateButtonPreviews(){if(0===jQuery('select[name="button_shape"]').length){return}var defaults={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 availableOptions={flat_fresh:defaults,leaf:defaults,pill:defaults,three_dee:{full_color:"Full Color",light_gray:"Light Gray",medium_gray:"Medium Gray",dark_gray:"Dark Gray"},connected:defaults,shift:defaults,boxed:defaults,modern:{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"},dark:{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 visualTheme=jQuery('select[name="button_shape"]').val();var dColorSet=jQuery('select[name="default_colors"]').val();var iColorSet=jQuery('select[name="single_colors"]').val();var oColorSet=jQuery('select[name="hover_colors"]').val();var themeOptions=jQuery('select[name="button_shape"]').find("option").map(function(index,option){return option.value});jQuery('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove();jQuery.each(availableOptions[visualTheme],function(index,value){if(index===dColorSet){jQuery('select[name="default_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="default_colors"]').append('<option value="'+index+'">'+value+"</option>")}if(index===iColorSet){jQuery('select[name="single_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="single_colors"]').append('<option value="'+index+'">'+value+"</option>")}if(index===oColorSet){jQuery('select[name="hover_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="hover_colors"]').append('<option value="'+index+'">'+value+"</option>")}if(dColorSet=="custom_color"||dColorSet=="custom_color_outlines"||iColorSet=="custom_color"||iColorSet=="custom_color_outlines"||oColorSet=="custom_color"||oColorSet=="custom_color_outlines"){jQuery(".customColor_wrapper").slideDown();updateCustomColor()}else{jQuery(".customColor_wrapper").slideUp()}});jQuery('select[name="default_colors"], select[name="single_colors"], select[name="hover_colors"]').on("change",updateTheme);jQuery('select[name="button_shape"]').on("change",function(){var visualTheme=jQuery('select[name="button_shape"]').val();var dColorSet=jQuery('select[name="default_colors"]').val();var iColorSet=jQuery('select[name="single_colors"]').val();var oColorSet=jQuery('select[name="hover_colors"]').val();var i=0;var array=availableOptions[visualTheme];var dColor=array.hasOwnProperty(dColorSet);var iColor=array.hasOwnProperty(iColorSet);var oColor=array.hasOwnProperty(oColorSet);jQuery('select[name="default_colors"] option, select[name="single_colors"] option, select[name="hover_colors"] option').remove();jQuery.each(availableOptions[visualTheme],function(index,value){if(index===dColorSet||dColor==false&&i==0){jQuery('select[name="default_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="default_colors"]').append('<option value="'+index+'">'+value+"</option>")}if(index===iColorSet||iColor==false&&i==0){jQuery('select[name="single_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="single_colors"]').append('<option value="'+index+'">'+value+"</option>")}if(index===oColorSet||oColor==false&&i==0){jQuery('select[name="hover_colors"]').append('<option value="'+index+'" selected>'+value+"</option>")}else{jQuery('select[name="hover_colors"]').append('<option value="'+index+'">'+value+"</option>")}++i});if("undefined"===typeof socialWarfare.lastClass){socialWarfare.lastClass="swp_flat_fresh swp_default_full_color swp_individual_full_color swp_other_full_color"}var buttonsClass="swp_"+visualTheme+" swp_default_"+dColorSet+" swp_individual_"+iColorSet+" swp_other_"+oColorSet;themeOptions.map(function(index,option){jQuery(".swp_social_panel").removeClass("swp_"+option.value)});jQuery(".swp_social_panel").removeClass(socialWarfare.lastClass).addClass(buttonsClass);socialWarfare.lastClass=buttonsClass})}function updateScale(){jQuery('select[name="button_size"],select[name="button_alignment"]').on("change",function(){jQuery(".swp_social_panel").css({width:"100%"});var width=jQuery(".swp_social_panel").width();var scale=jQuery('select[name="button_size"]').val();var align=jQuery('select[name="button_alignment"]').val();var newWidth;if(align=="full_width"&&scale!=1||scale>=1){newWidth=width/scale;jQuery(".swp_social_panel").css("cssText","width:"+newWidth+"px!important;");jQuery(".swp_social_panel").css({transform:"scale("+scale+")","transform-origin":"left"})}else if(align!="full_width"&&scale<1){newWidth=width/scale;jQuery(".swp_social_panel").css({transform:"scale("+scale+")","transform-origin":align})}socialWarfare.activateHoverStates()})}function updateCttDemo(){var jQuerycttOptions=jQuery('select[name="ctt_theme"]');jQuerycttOptions.on("change",function(){var newStyle=jQuery('select[name="ctt_theme"]').val();jQuery(".swp_CTT").attr("class","swp_CTT").addClass(newStyle)});jQuerycttOptions.trigger("change")}function toggleRegistration(status,key){var adminWrapper=jQuery(".sw-admin-wrapper");var addons=adminWrapper.attr("swp-addons");var registeredAddons=adminWrapper.attr("swp-registrations");jQuery(".registration-wrapper."+key).attr("registration",status);if(1===parseInt(status)){adminWrapper.attr("sw-registered",status);jQuery(".sw-top-menu").attr("sw-registered",status);addAttrValue(adminWrapper,"swp-registrations",key)}else{removeAttrValue(adminWrapper,"swp-registrations",key)}}function removeAttrValue(el,attribute,removal){var value=jQuery(el).attr(attribute);var startIndex=value.indexOf(removal);if(startIndex===-1)return;var stopIndex=startIndex+removal.length;var newValue=value.slice(0,startIndex)+value.slice(stopIndex);jQuery(el).attr(attribute,newValue)}function addAttrValue(el,attribute,addition){var value=jQuery(el).attr(attribute);if(value.includes(addition))return;jQuery(el).attr(attribute,value+addition)}function registerPlugin(key,item_id){var registered=false;var data={action:"swp_register_plugin",security:swpAdminOptionsData.registerNonce,activity:"register",name_key:key,item_id:item_id,license_key:jQuery('input[name="'+key+'_license_key"]').val()};loadingScreen();jQuery.post(ajaxurl,data,function(response){response=JSON.parse(response);if(typeof response!="object"){throw"Error making addon registration request. Passed in this data ",data," and got this response",response;return}if(!response.success){var message="This license key is not currently active. Please check the status of your key at https://warfareplugins.com/my-account/license-keys/";alert(message)}else{toggleRegistration("1",key);registered=true}clearLoadingScreen(registered);window.location.reload(true)});return registered}function unregisterPlugin(key,item_id){var unregistered=false;var ajaxData={action:"swp_unregister_plugin",security:swpAdminOptionsData.registerNonce,activity:"unregister",name_key:key,item_id:item_id};loadingScreen();jQuery.post(ajaxurl,ajaxData,function(response){response=JSON.parse(response);if(!response.success){var message="Sorry, we had trouble deactivating your key. Please let us know about this at https://warfareplugins.com/submit-ticket";alert(message)}else{jQuery('input[name="'+key+'_license_key"]').val("");toggleRegistration("0",key);unregistered=true}clearLoadingScreen(unregistered);window.location.reload(true)});return unregistered}function handleRegistration(){jQuery(".register-plugin").on("click",function(){var key=jQuery(this).attr("swp-addon");var item_id=jQuery(this).attr("swp-item-id").trim();registerPlugin(key,item_id);return false});jQuery(".unregister-plugin").on("click",function(){var key=jQuery(this).attr("swp-addon");var item_id=jQuery(this).attr("swp-item-id").trim();unregisterPlugin(key,item_id);return false})}function sortableInit(){jQuery(".sw-buttons-sort.sw-active").sortable({connectWith:".sw-buttons-sort.sw-inactive",update:function(){saveColorToggle()}});jQuery(".sw-buttons-sort.sw-inactive").sortable({connectWith:".sw-buttons-sort.sw-active",update:function(){saveColorToggle()}})}function getSystemStatus(){jQuery(".sw-system-status").on("click",function(event){event.preventDefault();jQuery(".system-status-wrapper").slideToggle();selectText(jQuery(".system-status-container").get(0))})}function customUploaderInit(){var customUploader;jQuery(".swp_upload_image_button").click(function(e){e.preventDefault();var inputField=jQuery(this).attr("for");if(customUploader){customUploader.open();return}customUploader=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:false});customUploader.on("select",function(){var attachment=customUploader.state().get("selection").first().toJSON();jQuery('input[name="'+inputField+'"').val(attachment.url)});customUploader.open()})}function set_ctt_preview(){var preview=jQuery("#ctt_preview");var select=jQuery("select[name=ctt_theme]");if(!preview.length){preview=jQuery('<style id="ctt_preview"></style>');jQuery("head").append(preview)}if(jQuery(select).val()==="none"){update_ctt_preview()}jQuery(select).on("change",function(e){if(e.target.value==="none"){update_ctt_preview()}});jQuery("textarea[name=ctt_css]").on("keyup",update_ctt_preview)}function update_ctt_preview(){var preview=jQuery("#ctt_preview");var textarea=jQuery("textarea[name=ctt_css]");jQuery(preview).text(jQuery(textarea).val())}function createTooltip(event){var tooltip;var icon=event.target;var network=jQuery(icon).data("network");var networkBounds=icon.getBoundingClientRect();var tooltipBounds={};var knownMargin=4;var css={top:jQuery(icon).position().top-50,left:jQuery(icon).position().left+knownMargin};if(network.indexOf("_")>0){var words=network.split("_").map(function(word){return word[0].toUpperCase()+word.slice(1,word.length)});network=words.join(" ")}network=network[0].toUpperCase()+network.slice(1,network.length);tooltip=jQuery('<span class="swp-icon-tooltip">'+network+"</span>").css(css).get(0);jQuery(this).parents(".sw-grid").first().append(tooltip);if(jQuery(tooltip).outerWidth()>jQuery(icon).outerWidth()){var delta=jQuery(tooltip).outerWidth()-jQuery(icon).outerWidth();css.left=css.left-delta/2;jQuery(tooltip).css(css)}jQuery(icon).on("mousedown",function(e){jQuery("body").mousemove(function(){removeTooltip();jQuery("body").off("mousemove")})})}function removeTooltip(event){jQuery(".swp-icon-tooltip").remove()}function addIconTooltips(){jQuery("[class*='sw-'][class*='-icon']").each(function(index,icon){jQuery(icon).hover(createTooltip,removeTooltip)})}function handleDeactivations(){jQuery("a[data-deactivation]").on("click",function(event){var deactivationHook=$(this).data("deactivation");if(deactivationHook){loadingScreen();event.preventDefault();var data={action:"swp_"+deactivationHook};jQuery.post(ajaxurl,data,function(response){if("success"==response){location.reload()}})}})}function loadPreviousTab(){var previousTime=sessionStorage.getItem("swp_tab_time");var previousTab=sessionStorage.getItem("swp_tab");var dateObject=new Date;var currentTime=dateObject.getTime()/1e3;if(currentTime-previousTime<15){activateSelectedTab(previousTab)}}function savePreviousTab(){window.onbeforeunload=function(e){var dateObject=new Date;var seconds=dateObject.getTime()/1e3;sessionStorage.setItem("swp_tab_time",seconds)}}jQuery(document).ready(function(){savePreviousTab();loadPreviousTab();handleSettingSave();populateOptions();headerMenuInit();tabNavInit();checkboxesInit();updateButtonPreviews();socialWarfareAdmin.conditionalFields();updateCttDemo();updateScale();handleRegistration();sortableInit();getSystemStatus();customUploaderInit();set_ctt_preview();addIconTooltips();handleDeactivations()})})(this,jQuery);
2
+ //# sourceMappingURL=admin-options-page.min.js.map
assets/js/admin-options-page.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["admin-options-page.js"],"names":["window","$","onload","panelSelector","floatSelector","jQuery","parent","hide","each","index","select","value","val","customColor","customOutlines","indexOf","show","on","e","target","handleCustomColors","event","selector","colorNotice","visibility","slideDown","slideUp","append","fadeOut","length","selectText","element","range","selection","document","body","createTextRange","moveToElementText","getSelection","createRange","selectNodeContents","removeAllRanges","addRange","fetchAllOptions","values","jQueryfield","this","name","attr","prop","order_of_icons","network","data","console","log","headerMenuInit","offset","width","css","position","left","top","tabNavInit","preventDefault","animate","scrollTop","tab","sessionStorage","setItem","activateSelectedTab","removeClass","parents","addClass","socialWarfare","activateHoverStates","socialWarfareAdmin","conditionalFields","checkboxesInit","status","elem","saveColorToggle","populateOptions","newOptions","defaultOptions","JSON","stringify","handleSettingSave","returnValue","loadingScreen","settings","action","security","swpAdminOptionsData","optionsNonce","ajax","type","url","ajaxurl","success","response","clearLoadingScreen","isSuccess","message","html","delay","setTimeout","remove","updateCustomColor","visualTheme","dColorSet","iColorSet","oColorSet","colorCode","customCSS","updateTheme","getParsedValue","prefix","slice","buttonsClass","lastClass","panel","get","className","updateButtonPreviews","defaults","full_color","light_gray","medium_gray","dark_gray","light_gray_outlines","medium_gray_outlines","dark_gray_outlines","color_outlines","custom_color","custom_color_outlines","availableOptions","flat_fresh","leaf","pill","three_dee","connected","shift","boxed","modern","dark","themeOptions","find","map","option","i","array","dColor","hasOwnProperty","iColor","oColor","updateScale","scale","align","newWidth","transform","transform-origin","updateCttDemo","jQuerycttOptions","newStyle","trigger","toggleRegistration","key","adminWrapper","addons","registeredAddons","parseInt","addAttrValue","removeAttrValue","el","attribute","removal","startIndex","stopIndex","newValue","addition","includes","registerPlugin","item_id","registered","registerNonce","activity","name_key","license_key","post","parse","alert","location","reload","unregisterPlugin","unregistered","ajaxData","handleRegistration","trim","sortableInit","sortable","connectWith","update","getSystemStatus","slideToggle","customUploaderInit","customUploader","click","inputField","open","wp","media","frames","file_frame","title","button","text","multiple","attachment","state","first","toJSON","set_ctt_preview","preview","update_ctt_preview","textarea","createTooltip","tooltip","icon","networkBounds","getBoundingClientRect","tooltipBounds","knownMargin","words","split","word","toUpperCase","join","outerWidth","delta","mousemove","removeTooltip","off","addIconTooltips","hover","handleDeactivations","deactivationHook","loadPreviousTab","previousTime","getItem","previousTab","dateObject","Date","currentTime","getTime","savePreviousTab","onbeforeunload","seconds","ready"],"mappings":"CACA,SAAUA,OAAQC,GACjB,aAEAD,OAAOE,OAAS,WAQf,IAAIC,cAAgB,kEACpB,IAAIC,cAAgB,qFAGpBC,OAAO,iHAAiHC,SAASA,SAASC,OAG1IF,OAAOF,eAAeK,KAAK,SAASC,MAAOC,QAC1C,IAAIC,MAAQN,OAAOK,QAAQE,MAC3B,IAAIC,YAAcR,OAAO,uBAAuBC,SAASA,SACzD,IAAIQ,eAAiBT,OAAO,gCAAgCC,SAASA,SAErE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b,OAAO,QAAQ0O,UAAU,WACxBC,gBACA3O,OAAO,QAAQ4O,IAAI,iBAKtB,SAASD,cAAc3N,OACtBhB,OAAO,qBAAqBqG,SAG7B,SAASwI,kBACR7O,OAAO,kCAAkCG,KAAK,SAASC,MAAO0N,MAC7D9N,OAAO8N,MAAMgB,MAAMlB,cAAee,iBAgBpC,SAASI,sBACR/O,OAAO,wBAAwBY,GAAG,QAAQ,SAAUI,OAGnD,IAAIgO,iBAAmBpP,EAAE6C,MAAMM,KAAK,gBACpC,GAAIiM,iBAAmB,CAGtB7J,gBACAnE,MAAM0C,iBAGN,IAAIX,MAASsC,OAAQ,OAAS2J,kBAG9BhP,OAAOuL,KAAK3F,QAAS7C,KAAM,SAAS+C,UAGnC,GAAI,WAAaA,SAAW,CAC3B4F,SAASC,eAQd,SAASsD,kBACR,IAAIC,aAAepL,eAAeqL,QAAQ,gBAC1C,IAAIC,YAActL,eAAeqL,QAAQ,WACzC,IAAIE,WAAa,IAAIC,KACrB,IAAIC,YAAcF,WAAWG,UAAY,IACzC,GAAKD,YAAcL,aAAgB,GAAI,CACtClL,oBAAqBoL,cAIvB,SAASK,kBACR9P,OAAO+P,eAAiB,SAAS7O,GAChC,IAAIwO,WAAa,IAAIC,KACrB,IAAIK,QAAUN,WAAWG,UAAY,IACrC1L,eAAeC,QAAQ,eAAgB4L,UAIzC3P,OAAO6B,UAAU+N,MAAM,WACtBH,kBACAR,kBACAhK,oBACAL,kBACA1B,iBACAO,aACAe,iBACA8C,uBACAhD,mBAAmBC,oBACnBqF,gBACAN,cACAyC,qBACAE,eACAI,kBACAE,qBACAiB,kBACAqB,kBACAE,yBAt8BF,CAw8BGtM,KAAMzC"}
assets/js/admin.js CHANGED
@@ -218,7 +218,8 @@ var swpWidget, widgetSubmit;
218
 
219
  var parent = $(this).parents(".swp-dismiss-notice");
220
 
221
- $.post({
 
222
  url: ajaxurl,
223
  data: {
224
  action: 'dismiss',
@@ -490,8 +491,8 @@ var swpWidget, widgetSubmit;
490
 
491
  socialWarfareAdmin.triggerDeletePostMeta = function(event) {
492
  event.preventDefault()
493
- var message = "This will delete all Social Warfare meta keys for this post, including Open Graph, Twitter, and Pinterest descriptions and images. If you want to keep these, please copy them to an offline file first, and paste them back in after the reset. To reset, enter reset_post_meta";
494
- var prompt = window.prompt(message, 'reset_or_cancel');
495
  console.log('prompt', prompt)
496
  if (prompt == 'reset_post_meta') {
497
  jQuery.post({
218
 
219
  var parent = $(this).parents(".swp-dismiss-notice");
220
 
221
+ $.ajax({
222
+ type: 'POST',
223
  url: ajaxurl,
224
  data: {
225
  action: 'dismiss',
491
 
492
  socialWarfareAdmin.triggerDeletePostMeta = function(event) {
493
  event.preventDefault()
494
+ var message = "This will delete all Social Warfare data (share counts and custom fields) for this post, including Open Graph, Twitter, and Pinterest descriptions and images. If you want to keep these, please copy them to an offline file first, and paste them back in after the reset. To reset, enter reset_post_meta";
495
+ var prompt = window.prompt(message, '');
496
  console.log('prompt', prompt)
497
  if (prompt == 'reset_post_meta') {
498
  jQuery.post({
assets/js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- var socialWarfareAdmin=socialWarfareAdmin||{};var swpWidget,widgetSubmit;(function(window,$){"use strict";if(typeof $!="function"){if(typeof jQuery=="function"){$=jQuery}else if(typeof window.jQuery=="function"){$=window.jQuery}else{console.log("Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.");return}}socialWarfareAdmin.conditionalFields=function(){if(typeof $=="undefined"){$=jQuery}function swp_selected(name){return $('select[name="'+name+'"]').val()}function swp_checked(name){return $('[name="'+name+'"]').prop("checked")}function string_to_bool(string){if(string==="true"){string=true}if(string==="false"){string=false}return string}$("[data-dep]").each(function(){var condition=$(this).data("dep");var required=JSON.parse(JSON.stringify($(this).data("dep_val")));if(window.location.href.indexOf("page=social-warfare")===-1){var conditionEl=$(this).parents(".widgets-holder-wrap").find('[data-swp-name="'+condition+'"]')}else{var conditionEl=$('[name="'+condition+'"]')[0]}var value;if(typeof conditionEl==="undefined"){conditionEl=$('[name="'+condition+'"]')[0];if(typeof conditionEl==="undefined"){conditionEl=$("[field$="+condition+"]")[0]}}if($(conditionEl).attr("type")=="checkbox"){value=$(conditionEl).prop("checked")}else{value=$(conditionEl).val()}value=string_to_bool(value);if(window.location.href.indexOf("page=social-warfare")!==-1){if($.inArray(value,required)!==-1&&$(conditionEl).parent(".sw-grid").is(":visible")){$(this).show()}else{$(this).hide()}}else{if($.inArray(value,required)!==-1||value===required){$(this).show()}else{$(this).hide()}}});if(false===swp_checked("float_style_source")&&"custom_color"===swp_selected("float_default_colors")||"custom_color_outlines"===swp_selected("float_default_colors")||"custom_color"===swp_selected("float_single_colors")||"custom_color_outlines"===swp_selected("float_single_colors")||"custom_color"===swp_selected("float_hover_colors")||"custom_color_outlines"===swp_selected("float_hover_colors")){$(".sideCustomColor_wrapper").slideDown()}else{$(".sideCustomColor_wrapper").slideUp()}};if(window.location.href.indexOf("widgets.php")>-1){var widgetFinder=setInterval(function(){if(typeof swpWidget!=="undefined")clearInterval(widgetFinder);swpWidget=$("#widgets-right [id*=_swp_popular_posts_widget], [id*=_swp_popular_posts_widget].open")[0];widgetSubmit=$(swpWidget).find("[id$=savewidget]")[0];$(swpWidget).on("click",socialWarfareAdmin.conditionalFields);$(widgetSubmit).on("click",function(){setTimeout(socialWarfareAdmin.conditionalFields,600)})},50)}socialWarfareAdmin.linkLength=function(input){var tmp="";for(var i=0;i<23;i++){tmp+="o"}return input.replace(/(http:\/\/[\S]*)/g,tmp).length};function updateCharactersRemaining(containerSelector,characterLimit){var input=$("#social_warfare #"+containerSelector);var container=input.parent();var remaining=characterLimit-input.val().length;if(containerSelector=="swp_custom_tweet"){var permalinkLength=0;if($("#sample-permalink").length){permalinkLength=$("#sample-permalink").text().length}else if($("#wp-admin-bar-view a").length){permalinkLength=$("#wp-admin-bar-view a").attr("href").length}if($("#swp-twitter-handle").length){var twitterHandle=$("#swp-twitter-handle").text();remaining-=twitterHandle.length}remaining-=permalinkLength}if(remaining>=0){container.find(".swp_CountDown").removeClass("swp_red").addClass("swp_blue")}else{container.find(".swp_CountDown").removeClass("swp_blue").addClass("swp_red")}container.find(".counterNumber").text(remaining)}function toggleCustomThumbnailFields(show){if(typeof show==="undefined")show=true;if(show){$(".custom_thumb_size").show()}else{$(".custom_thumb_size").hide()}}function noticeClickHandlers(){$(".swp-notice-cta").on("click",function(e){e.preventDefault();var link=e.target.getAttribute("href");if(typeof link=="string"&&link.length){window.open(link)}var parent=$(this).parents(".swp-dismiss-notice");$.post({url:ajaxurl,data:{action:"dismiss",key:parent.data("key"),timeframe:this.dataset.timeframe},success:function(result){result=JSON.parse(result);if(result){parent.slideUp(500)}}})})}function postEditorCheckboxChange(event){event.preventDefault();var checked=!($(this).attr("status")=="on");var selector=$(this).attr("field");var checkbox=$(selector);if(checked){$(this).attr("status","on");checkbox.prop("checked",true).prop("value",true)}else{$(this).attr("status","off");checkbox.prop("checked",false).prop("value",false)}}function updateTextareaStyle(textareaID){var style={top:"-25px",position:"relative"};$("#"+textareaID).css("border-top-right-radius",0).parent().css(style)}function createCharactersRemaining(selector,textLimit){var div='<div class="swp_CountDown"><span class="counterNumber">'+-textLimit+"</span></div>";updateTextareaStyle(selector);$("#social_warfare #"+selector).parent().prepend(div)}socialWarfareAdmin.resizeImageFields=function(){$("ul.swpmb-media-list").each(function(index,mediaList){if($(mediaList).is(":empty")){if($(mediaList).parents(".swpmb-field").attr("class").indexOf("pinterest")>0){var height=$(mediaList).width()*(3/2)}else{var height=$(mediaList).width()*(9/16)}$(mediaList).css("height",height)}else{$(mediaList).css("height","initial")}})};function fillContainer(container){var positions=["full-width","left","right","centered"];var type=$(container).data("type");positions.forEach(function(position){var className=".swpmb-"+position;if($(container).find(className)){var children=$(container).find(className).filter(function(index,child){return $(child).hasClass(type)});if(children.length){var wrap=$(container).find(className+"-wrap");$(wrap).append(children)}}})}function putFieldsInContainers(){$(".swpmb-meta-container[data-type]").map(function(index,container){var type=$(this).data("type");if(!type){return}var fields=$(".swpmb-field."+type);if(fields.length){$(this).append(fields)}fillContainer(container)})}function createTextCounters(){var textCounters={swp_og_title:60,swp_og_description:150,swp_pinterest_description:500,swp_custom_tweet:280};Object.keys(textCounters).map(function(selector){var textLimit=textCounters[selector];createCharactersRemaining(selector,textLimit);updateCharactersRemaining(selector,textLimit);$("#social_warfare #"+selector).on("input",function(){updateCharactersRemaining(selector,textLimit)})})}function setTempConditionalField(){$("#social_warfare .twitter_og_toggle").on("click",function(event){var target=$("#swp_twitter_use_open_graph");if(jQuery("#swp_twitter_use_open_graph").is(":checked")){$(".swpmb-meta-container[data-type=twitter]").slideUp()}else{$(".swpmb-meta-container[data-type=twitter]").slideDown()}socialWarfareAdmin.resizeImageFields()})}function displayMetaBox(){if(!$($(".swpmb-media-list").length))return;clearInterval(window.initSWMetabox);putFieldsInContainers();setTimeout(socialWarfareAdmin.resizeImageFields,600);setTimeout(socialWarfareAdmin.resizeImageFields,1400);setTimeout(socialWarfareAdmin.resizeImageFields,3e3);if(jQuery("#swp_twitter_use_open_graph").is(":checked")){$(".swpmb-meta-container[data-type=twitter]").hide()}else{$(".swpmb-meta-container[data-type=twitter]").show()}setTempConditionalField();socialWarfareAdmin.addImageEditListeners();$("#social_warfare.postbox").show()}socialWarfareAdmin.addImageEditListeners=function(){$(document).on("change",".swpmb-image_advanced",socialWarfareAdmin.resizeImageFields);$(document).on("click",".swpmb-edit-media, .swpmb-remove-media",function(){setTimeout(socialWarfareAdmin.resizeImageFields,200)})};socialWarfareAdmin.revokeNetworkConnection=function(event){var button,index,networkAndTail,network;button=event.target;if($(event.target).is("div")){button=event.target.parentNode}else{button=event.target}index=button.className.indexOf("swp-network");index=1+button.className.indexOf("-",4+index);networkAndTail=button.className.slice(index);index=networkAndTail.indexOf(" ");if(-1==index){network=networkAndTail}else{network=networkAndTail.slice(0,index)}$.post({url:ajaxurl,data:{action:"swp_delete_network_tokens",network:network},success:function(r){var response=JSON.parse(r);if(response.ok){window.location.href=response.url}else{console.log("bad response",response)}}})};socialWarfareAdmin.triggerDeletePostMeta=function(event){event.preventDefault();var message="This will delete all Social Warfare meta keys for this post, including Open Graph, Twitter, and Pinterest descriptions and images. If you want to keep these, please copy them to an offline file first, and paste them back in after the reset. To reset, enter reset_post_meta";var prompt=window.prompt(message,"reset_or_cancel");console.log("prompt",prompt);if(prompt=="reset_post_meta"){jQuery.post({url:ajaxurl,data:{action:"swp_reset_post_meta",post_id:socialWarfare.post_id},complete:function(response){socialWarfareAdmin.resetMetaFields()}})}};socialWarfareAdmin.resetMetaFields=function(){$("#social_warfare.postbox").find("input[type=text], textarea").val("");$("#social_warfare.postbox").find("select").val("default")};socialWarfareAdmin.addEventListeners=function(){$(".swp-revoke-button").on("click",socialWarfareAdmin.revokeNetworkConnection);$("#swp_reset_button").on("click",socialWarfareAdmin.triggerDeletePostMeta)};socialWarfareAdmin.createResetButton=function(){var parent=$("#swp_reset_button");var button=jQuery('<button class="button">Reset Post Meta</button>');button.on("click",socialWarfareAdmin.triggerDeletePostMeta);parent.after(button)};$(document).ready(function(){noticeClickHandlers();if($("#social_warfare.postbox").length){createTextCounters();socialWarfareAdmin.createResetButton();socialWarfareAdmin.conditionalFields();$(".sw-checkbox-toggle.swp-post-editor").click(postEditorCheckboxChange);$(".swp_popular_post_options select").on("change",socialWarfareAdmin.conditionalFields);window.initSWMetabox=setInterval(displayMetaBox,10)}socialWarfareAdmin.addEventListeners()})})(this,jQuery);
2
  //# sourceMappingURL=admin.min.js.map
1
+ var socialWarfareAdmin=socialWarfareAdmin||{};var swpWidget,widgetSubmit;(function(window,$){"use strict";if(typeof $!="function"){if(typeof jQuery=="function"){$=jQuery}else if(typeof window.jQuery=="function"){$=window.jQuery}else{console.log("Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.");return}}socialWarfareAdmin.conditionalFields=function(){if(typeof $=="undefined"){$=jQuery}function swp_selected(name){return $('select[name="'+name+'"]').val()}function swp_checked(name){return $('[name="'+name+'"]').prop("checked")}function string_to_bool(string){if(string==="true"){string=true}if(string==="false"){string=false}return string}$("[data-dep]").each(function(){var condition=$(this).data("dep");var required=JSON.parse(JSON.stringify($(this).data("dep_val")));if(window.location.href.indexOf("page=social-warfare")===-1){var conditionEl=$(this).parents(".widgets-holder-wrap").find('[data-swp-name="'+condition+'"]')}else{var conditionEl=$('[name="'+condition+'"]')[0]}var value;if(typeof conditionEl==="undefined"){conditionEl=$('[name="'+condition+'"]')[0];if(typeof conditionEl==="undefined"){conditionEl=$("[field$="+condition+"]")[0]}}if($(conditionEl).attr("type")=="checkbox"){value=$(conditionEl).prop("checked")}else{value=$(conditionEl).val()}value=string_to_bool(value);if(window.location.href.indexOf("page=social-warfare")!==-1){if($.inArray(value,required)!==-1&&$(conditionEl).parent(".sw-grid").is(":visible")){$(this).show()}else{$(this).hide()}}else{if($.inArray(value,required)!==-1||value===required){$(this).show()}else{$(this).hide()}}});if(false===swp_checked("float_style_source")&&"custom_color"===swp_selected("float_default_colors")||"custom_color_outlines"===swp_selected("float_default_colors")||"custom_color"===swp_selected("float_single_colors")||"custom_color_outlines"===swp_selected("float_single_colors")||"custom_color"===swp_selected("float_hover_colors")||"custom_color_outlines"===swp_selected("float_hover_colors")){$(".sideCustomColor_wrapper").slideDown()}else{$(".sideCustomColor_wrapper").slideUp()}};if(window.location.href.indexOf("widgets.php")>-1){var widgetFinder=setInterval(function(){if(typeof swpWidget!=="undefined")clearInterval(widgetFinder);swpWidget=$("#widgets-right [id*=_swp_popular_posts_widget], [id*=_swp_popular_posts_widget].open")[0];widgetSubmit=$(swpWidget).find("[id$=savewidget]")[0];$(swpWidget).on("click",socialWarfareAdmin.conditionalFields);$(widgetSubmit).on("click",function(){setTimeout(socialWarfareAdmin.conditionalFields,600)})},50)}socialWarfareAdmin.linkLength=function(input){var tmp="";for(var i=0;i<23;i++){tmp+="o"}return input.replace(/(http:\/\/[\S]*)/g,tmp).length};function updateCharactersRemaining(containerSelector,characterLimit){var input=$("#social_warfare #"+containerSelector);var container=input.parent();var remaining=characterLimit-input.val().length;if(containerSelector=="swp_custom_tweet"){var permalinkLength=0;if($("#sample-permalink").length){permalinkLength=$("#sample-permalink").text().length}else if($("#wp-admin-bar-view a").length){permalinkLength=$("#wp-admin-bar-view a").attr("href").length}if($("#swp-twitter-handle").length){var twitterHandle=$("#swp-twitter-handle").text();remaining-=twitterHandle.length}remaining-=permalinkLength}if(remaining>=0){container.find(".swp_CountDown").removeClass("swp_red").addClass("swp_blue")}else{container.find(".swp_CountDown").removeClass("swp_blue").addClass("swp_red")}container.find(".counterNumber").text(remaining)}function toggleCustomThumbnailFields(show){if(typeof show==="undefined")show=true;if(show){$(".custom_thumb_size").show()}else{$(".custom_thumb_size").hide()}}function noticeClickHandlers(){$(".swp-notice-cta").on("click",function(e){e.preventDefault();var link=e.target.getAttribute("href");if(typeof link=="string"&&link.length){window.open(link)}var parent=$(this).parents(".swp-dismiss-notice");$.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss",key:parent.data("key"),timeframe:this.dataset.timeframe},success:function(result){result=JSON.parse(result);if(result){parent.slideUp(500)}}})})}function postEditorCheckboxChange(event){event.preventDefault();var checked=!($(this).attr("status")=="on");var selector=$(this).attr("field");var checkbox=$(selector);if(checked){$(this).attr("status","on");checkbox.prop("checked",true).prop("value",true)}else{$(this).attr("status","off");checkbox.prop("checked",false).prop("value",false)}}function updateTextareaStyle(textareaID){var style={top:"-25px",position:"relative"};$("#"+textareaID).css("border-top-right-radius",0).parent().css(style)}function createCharactersRemaining(selector,textLimit){var div='<div class="swp_CountDown"><span class="counterNumber">'+-textLimit+"</span></div>";updateTextareaStyle(selector);$("#social_warfare #"+selector).parent().prepend(div)}socialWarfareAdmin.resizeImageFields=function(){$("ul.swpmb-media-list").each(function(index,mediaList){if($(mediaList).is(":empty")){if($(mediaList).parents(".swpmb-field").attr("class").indexOf("pinterest")>0){var height=$(mediaList).width()*(3/2)}else{var height=$(mediaList).width()*(9/16)}$(mediaList).css("height",height)}else{$(mediaList).css("height","initial")}})};function fillContainer(container){var positions=["full-width","left","right","centered"];var type=$(container).data("type");positions.forEach(function(position){var className=".swpmb-"+position;if($(container).find(className)){var children=$(container).find(className).filter(function(index,child){return $(child).hasClass(type)});if(children.length){var wrap=$(container).find(className+"-wrap");$(wrap).append(children)}}})}function putFieldsInContainers(){$(".swpmb-meta-container[data-type]").map(function(index,container){var type=$(this).data("type");if(!type){return}var fields=$(".swpmb-field."+type);if(fields.length){$(this).append(fields)}fillContainer(container)})}function createTextCounters(){var textCounters={swp_og_title:60,swp_og_description:150,swp_pinterest_description:500,swp_custom_tweet:280};Object.keys(textCounters).map(function(selector){var textLimit=textCounters[selector];createCharactersRemaining(selector,textLimit);updateCharactersRemaining(selector,textLimit);$("#social_warfare #"+selector).on("input",function(){updateCharactersRemaining(selector,textLimit)})})}function setTempConditionalField(){$("#social_warfare .twitter_og_toggle").on("click",function(event){var target=$("#swp_twitter_use_open_graph");if(jQuery("#swp_twitter_use_open_graph").is(":checked")){$(".swpmb-meta-container[data-type=twitter]").slideUp()}else{$(".swpmb-meta-container[data-type=twitter]").slideDown()}socialWarfareAdmin.resizeImageFields()})}function displayMetaBox(){if(!$($(".swpmb-media-list").length))return;clearInterval(window.initSWMetabox);putFieldsInContainers();setTimeout(socialWarfareAdmin.resizeImageFields,600);setTimeout(socialWarfareAdmin.resizeImageFields,1400);setTimeout(socialWarfareAdmin.resizeImageFields,3e3);if(jQuery("#swp_twitter_use_open_graph").is(":checked")){$(".swpmb-meta-container[data-type=twitter]").hide()}else{$(".swpmb-meta-container[data-type=twitter]").show()}setTempConditionalField();socialWarfareAdmin.addImageEditListeners();$("#social_warfare.postbox").show()}socialWarfareAdmin.addImageEditListeners=function(){$(document).on("change",".swpmb-image_advanced",socialWarfareAdmin.resizeImageFields);$(document).on("click",".swpmb-edit-media, .swpmb-remove-media",function(){setTimeout(socialWarfareAdmin.resizeImageFields,200)})};socialWarfareAdmin.revokeNetworkConnection=function(event){var button,index,networkAndTail,network;button=event.target;if($(event.target).is("div")){button=event.target.parentNode}else{button=event.target}index=button.className.indexOf("swp-network");index=1+button.className.indexOf("-",4+index);networkAndTail=button.className.slice(index);index=networkAndTail.indexOf(" ");if(-1==index){network=networkAndTail}else{network=networkAndTail.slice(0,index)}$.post({url:ajaxurl,data:{action:"swp_delete_network_tokens",network:network},success:function(r){var response=JSON.parse(r);if(response.ok){window.location.href=response.url}else{console.log("bad response",response)}}})};socialWarfareAdmin.triggerDeletePostMeta=function(event){event.preventDefault();var message="This will delete all Social Warfare data (share counts and custom fields) for this post, including Open Graph, Twitter, and Pinterest descriptions and images. If you want to keep these, please copy them to an offline file first, and paste them back in after the reset. To reset, enter reset_post_meta";var prompt=window.prompt(message,"");console.log("prompt",prompt);if(prompt=="reset_post_meta"){jQuery.post({url:ajaxurl,data:{action:"swp_reset_post_meta",post_id:socialWarfare.post_id},complete:function(response){socialWarfareAdmin.resetMetaFields()}})}};socialWarfareAdmin.resetMetaFields=function(){$("#social_warfare.postbox").find("input[type=text], textarea").val("");$("#social_warfare.postbox").find("select").val("default")};socialWarfareAdmin.addEventListeners=function(){$(".swp-revoke-button").on("click",socialWarfareAdmin.revokeNetworkConnection);$("#swp_reset_button").on("click",socialWarfareAdmin.triggerDeletePostMeta)};socialWarfareAdmin.createResetButton=function(){var parent=$("#swp_reset_button");var button=jQuery('<button class="button">Reset Post Meta</button>');button.on("click",socialWarfareAdmin.triggerDeletePostMeta);parent.after(button)};$(document).ready(function(){noticeClickHandlers();if($("#social_warfare.postbox").length){createTextCounters();socialWarfareAdmin.createResetButton();socialWarfareAdmin.conditionalFields();$(".sw-checkbox-toggle.swp-post-editor").click(postEditorCheckboxChange);$(".swp_popular_post_options select").on("change",socialWarfareAdmin.conditionalFields);window.initSWMetabox=setInterval(displayMetaBox,10)}socialWarfareAdmin.addEventListeners()})})(this,jQuery);
2
  //# sourceMappingURL=admin.min.js.map
assets/js/admin.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["admin.js"],"names":["socialWarfareAdmin","swpWidget","widgetSubmit","window","$","jQuery","console","log","conditionalFields","swp_selected","name","val","swp_checked","prop","string_to_bool","string","each","condition","this","data","required","JSON","parse","stringify","location","href","indexOf","conditionEl","parents","find","value","attr","inArray","parent","is","show","hide","slideDown","slideUp","widgetFinder","setInterval","clearInterval","on","setTimeout","linkLength","input","tmp","i","replace","length","updateCharactersRemaining","containerSelector","characterLimit","container","remaining","permalinkLength","text","twitterHandle","removeClass","addClass","toggleCustomThumbnailFields","noticeClickHandlers","e","preventDefault","link","target","getAttribute","open","post","url","ajaxurl","action","key","timeframe","dataset","success","result","postEditorCheckboxChange","event","checked","selector","checkbox","updateTextareaStyle","textareaID","style","top","position","css","createCharactersRemaining","textLimit","div","prepend","resizeImageFields","index","mediaList","height","width","fillContainer","positions","type","forEach","className","children","filter","child","hasClass","wrap","append","putFieldsInContainers","map","fields","createTextCounters","textCounters","swp_og_title","swp_og_description","swp_pinterest_description","swp_custom_tweet","Object","keys","setTempConditionalField","displayMetaBox","initSWMetabox","addImageEditListeners","document","revokeNetworkConnection","button","networkAndTail","network","parentNode","slice","r","response","ok","triggerDeletePostMeta","message","prompt","post_id","socialWarfare","complete","resetMetaFields","addEventListeners","createResetButton","after","ready","click"],"mappings":"AAUA,IAAIA,mBAAqBA,uBACzB,IAAIC,UAAWC,cAGf,SAAUC,OAAQC,GACjB,aAEA,UAAWA,GAAK,WAAY,CAE3B,UAAWC,QAAU,WAAY,CAChCD,EAAIC,YAEA,UAAWF,OAAOE,QAAU,WAAY,CAC5CD,EAAID,OAAOE,WAEP,CACJC,QAAQC,IAAI,uJACZ,QAiBFP,mBAAmBQ,kBAAoB,WACtC,UAAWJ,GAAK,YAAa,CAC5BA,EAAIC,OAGL,SAASI,aAAaC,MACrB,OAAON,EAAE,gBAAkBM,KAAO,MAAMC,MAGzC,SAASC,YAAYF,MACpB,OAAON,EAAE,UAAYM,KAAO,MAAMG,KAA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YgF,eAAgB,IAGpDxH,mBAAmB4I,uBAphBrB,CAshBG1H,KAAMb"}
1
+ {"version":3,"sources":["admin.js"],"names":["socialWarfareAdmin","swpWidget","widgetSubmit","window","$","jQuery","console","log","conditionalFields","swp_selected","name","val","swp_checked","prop","string_to_bool","string","each","condition","this","data","required","JSON","parse","stringify","location","href","indexOf","conditionEl","parents","find","value","attr","inArray","parent","is","show","hide","slideDown","slideUp","widgetFinder","setInterval","clearInterval","on","setTimeout","linkLength","input","tmp","i","replace","length","updateCharactersRemaining","containerSelector","characterLimit","container","remaining","permalinkLength","text","twitterHandle","removeClass","addClass","toggleCustomThumbnailFields","noticeClickHandlers","e","preventDefault","link","target","getAttribute","open","ajax","type","url","ajaxurl","action","key","timeframe","dataset","success","result","postEditorCheckboxChange","event","checked","selector","checkbox","updateTextareaStyle","textareaID","style","top","position","css","createCharactersRemaining","textLimit","div","prepend","resizeImageFields","index","mediaList","height","width","fillContainer","positions","forEach","className","children","filter","child","hasClass","wrap","append","putFieldsInContainers","map","fields","createTextCounters","textCounters","swp_og_title","swp_og_description","swp_pinterest_description","swp_custom_tweet","Object","keys","setTempConditionalField","displayMetaBox","initSWMetabox","addImageEditListeners","document","revokeNetworkConnection","button","networkAndTail","network","parentNode","slice","post","r","response","ok","triggerDeletePostMeta","message","prompt","post_id","socialWarfare","complete","resetMetaFields","addEventListeners","createResetButton","after","ready","click"],"mappings":"AAUA,IAAIA,mBAAqBA,uBACzB,IAAIC,UAAWC,cAGf,SAAUC,OAAQC,GACjB,aAEA,UAAWA,GAAK,WAAY,CAE3B,UAAWC,QAAU,WAAY,CAChCD,EAAIC,YAEA,UAAWF,OAAOE,QAAU,WAAY,CAC5CD,EAAID,OAAOE,WAEP,CACJC,QAAQC,IAAI,uJACZ,QAiBFP,mBAAmBQ,kBAAoB,WACtC,UAAWJ,GAAK,YAAa,CAC5BA,EAAIC,OAGL,SAASI,aAAaC,MACrB,OAAON,EAAE,gBAAkBM,KAAO,MAAMC,MAGzC,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/C1E,EAAE,oCAAoCsC,GAAG,SAAU1C,mBAAmBQ,mBAGtEL,OAAOsH,cAAgBjF,YAAYgF,eAAgB,IAGpDxH,mBAAmB6I,uBArhBrB,CAuhBG3H,KAAMb"}
lib/admin/SWP_Column.php CHANGED
@@ -94,12 +94,13 @@ class SWP_Column {
94
  * Make the column sortable
95
  *
96
  * @since 1.4.0 | 01 JAN 2018 | Created
 
97
  * @param array The array of registered columns.
98
  * @return array The array modified columns.
99
  *
100
  */
101
  public function make_social_shares_sortable( $columns ) {
102
- $columns['swSocialShares'] = 'Social Shares';
103
  return $columns;
104
  }
105
 
94
  * Make the column sortable
95
  *
96
  * @since 1.4.0 | 01 JAN 2018 | Created
97
+ * @since 4.2.0 | 22 AUG 2020 | Made the sort default to desc.
98
  * @param array The array of registered columns.
99
  * @return array The array modified columns.
100
  *
101
  */
102
  public function make_social_shares_sortable( $columns ) {
103
+ $columns['swSocialShares'] = array( 'Social Shares', 'desc' );
104
  return $columns;
105
  }
106
 
lib/buttons-panel/SWP_Buttons_Panel_Loader.php CHANGED
@@ -101,6 +101,10 @@ class SWP_Buttons_panel_Loader {
101
  *
102
  * @since 2.1.4 | 01 JAN 2017 | Created
103
  * @since 3.0.6 | 14 MAY 2018 | Added second filter for the_content.
 
 
 
 
104
  * @param void
105
  * @return void
106
  *
@@ -115,13 +119,13 @@ class SWP_Buttons_panel_Loader {
115
  // Only hook into the_content filter if is_singular() is true or
116
  // they don't use excerpts on the archive pages.
117
  if( is_singular() || true === SWP_Utility::get_option( 'full_content' ) ) {
118
- add_filter( 'the_content', array( $this, 'social_warfare_wrapper' ) , 20 );
119
- add_filter( 'the_content', array( $this, 'add_content_locator' ), 20);
120
  }
121
 
122
  // If we're not on is_singlular, we'll hook into the excerpt.
123
  if ( !is_singular() && false === SWP_Utility::get_option( 'full_content' ) ) {
124
- add_filter( 'the_excerpt', array( $this, 'social_warfare_wrapper' ) );
125
  }
126
  }
127
 
101
  *
102
  * @since 2.1.4 | 01 JAN 2017 | Created
103
  * @since 3.0.6 | 14 MAY 2018 | Added second filter for the_content.
104
+ * @since 4.2.0 | 02 DEC 2020 | The priority (1000) needs to be a third
105
+ * parameter, and not a third member of the
106
+ * array being passed. Watch those closing
107
+ * paranthesis.
108
  * @param void
109
  * @return void
110
  *
119
  // Only hook into the_content filter if is_singular() is true or
120
  // they don't use excerpts on the archive pages.
121
  if( is_singular() || true === SWP_Utility::get_option( 'full_content' ) ) {
122
+ add_filter( 'the_content', array( $this, 'social_warfare_wrapper' ), 1000 );
123
+ add_filter( 'the_content', array( $this, 'add_content_locator' ), 1000);
124
  }
125
 
126
  // If we're not on is_singlular, we'll hook into the excerpt.
127
  if ( !is_singular() && false === SWP_Utility::get_option( 'full_content' ) ) {
128
+ add_filter( 'the_excerpt', array( $this, 'social_warfare_wrapper' ), 1000 );
129
  }
130
  }
131
 
lib/utilities/SWP_Post_Cache.php CHANGED
@@ -597,6 +597,8 @@ class SWP_Post_Cache {
597
  */
598
  $this->add_trailing_slashes( $key );
599
 
 
 
600
  }
601
 
602
  }
@@ -868,6 +870,10 @@ class SWP_Post_Cache {
868
  continue;
869
  }
870
 
 
 
 
 
871
  // Access the Social_Network object and update its count.
872
  $Current_Social_Network = $swp_social_networks[$key];
873
  $Current_Social_Network->update_share_count( $this->post_id, $count );
@@ -876,6 +882,7 @@ class SWP_Post_Cache {
876
  // Update the total shares.
877
  delete_post_meta( $this->post_id, '_total_shares');
878
  update_post_meta( $this->post_id, '_total_shares', $this->share_counts['total_shares'] );
 
879
  do_action('swp_analytics_record_shares', $this->post_id, $this->share_counts );
880
  }
881
 
@@ -1033,12 +1040,86 @@ class SWP_Post_Cache {
1033
  }
1034
  }
1035
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
  /**
1037
  * Merge our newly created permalinks array into the class property array
1038
  * whilst specifically targeting the array that lives in the indice for
1039
  * this network.
1040
  */
1041
  $this->permalinks[$key] = array_merge( $this->permalinks[$key], $new_links );
 
 
1042
 
 
 
 
 
 
 
1043
  }
1044
  }
597
  */
598
  $this->add_trailing_slashes( $key );
599
 
600
+ $this->add_utm_codes( $key );
601
+
602
  }
603
 
604
  }
870
  continue;
871
  }
872
 
873
+ if( 0 === $swp_social_networks[$key]->get_api_link('') ) {
874
+ continue;
875
+ }
876
+
877
  // Access the Social_Network object and update its count.
878
  $Current_Social_Network = $swp_social_networks[$key];
879
  $Current_Social_Network->update_share_count( $this->post_id, $count );
882
  // Update the total shares.
883
  delete_post_meta( $this->post_id, '_total_shares');
884
  update_post_meta( $this->post_id, '_total_shares', $this->share_counts['total_shares'] );
885
+ $this->cleanup_remnants();
886
  do_action('swp_analytics_record_shares', $this->post_id, $this->share_counts );
887
  }
888
 
1040
  }
1041
  }
1042
 
1043
+
1044
+ /**
1045
+ * Merge our newly created permalinks array into the class property array
1046
+ * whilst specifically targeting the array that lives in the indice for
1047
+ * this network.
1048
+ */
1049
+ $this->permalinks[$key] = array_merge( $this->permalinks[$key], $new_links );
1050
+
1051
+ }
1052
+
1053
+
1054
+ /**
1055
+ * This function will add a version of the URL with UTM codes so we check a
1056
+ * network for share counts for both versions of the link. Now we will check
1057
+ * for the following versions of a link:
1058
+ *
1059
+ * Note: This is currently done exclusively for Pinterest, but other networks
1060
+ * can be added instantaneously by adding them to the $eligible_networks array below.
1061
+ *
1062
+ * /my-blog-post/
1063
+ * /my-blog-post/?utm=blahblah
1064
+ *
1065
+ * @since 4.2.0 | 30 NOV 2020 | Created
1066
+ * @param string $key The key corresponding to the current social network.
1067
+ * @return void All data is stored in class properties.
1068
+ *
1069
+ */
1070
+ protected function add_utm_codes( $key ) {
1071
+ global $swp_social_networks;
1072
+
1073
+ // The list of networks that we will check both URL versions for.
1074
+ $eligible_networks = array('pinterest');
1075
+
1076
+ // If this isn't one of those networks, bail out early.
1077
+ if( false === in_array( $key, $eligible_networks ) ) {
1078
+ return false;
1079
+ }
1080
+
1081
+ // If Google Analytics are turned off, then just bail out.
1082
+ if( false === SWP_Utility::get_option( 'google_analytics' ) ) {
1083
+ return;
1084
+ }
1085
+
1086
+
1087
+ // If UTM is turned off on Pinterest, and this is Pinterest, just bail out.
1088
+ if( false === SWP_Utility::get_option( 'utm_on_pins' ) && 'pinterest' === $key ) {
1089
+ return;
1090
+ }
1091
+
1092
+
1093
+ /**
1094
+ * We'll add our newly created permalinks to this now-empty array. Later
1095
+ * we'll merge this back into the original class property array.
1096
+ *
1097
+ */
1098
+ $new_links = array();
1099
+
1100
+ // The data needed by the get_shareable_permalink() method below.
1101
+ $post_data = array(
1102
+ 'ID' => $this->post_id,
1103
+ 'permalink' => $this->permalinks[$key][0]
1104
+ );
1105
+
1106
+ $new_links[] = urldecode( $swp_social_networks[$key]->get_shareable_permalink( $post_data ) );
1107
+
1108
+
1109
  /**
1110
  * Merge our newly created permalinks array into the class property array
1111
  * whilst specifically targeting the array that lives in the indice for
1112
  * this network.
1113
  */
1114
  $this->permalinks[$key] = array_merge( $this->permalinks[$key], $new_links );
1115
+ }
1116
+
1117
 
1118
+ public function cleanup_remnants() {
1119
+ delete_post_meta( $this->post_id, '_totes');
1120
+ delete_post_meta( $this->post_id, '_email_shares');
1121
+ delete_post_meta( $this->post_id, '_more_shares');
1122
+ delete_post_meta( $this->post_id, '_print_shares');
1123
+ delete_post_meta( $this->post_id, '_telegram_shares');
1124
  }
1125
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: holas84, dustinwstout, webinator, warfareplugins, cdegraff1, ckmah
3
  Tags: sharing buttons, social media share, floating share buttons, facebook share, google plus share, linkedin share, pin it, pinterest save, mix 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: 4.5.0
5
  Tested up to: 5.5
6
- Stable tag: 4.1.0
7
  Requires PHP: 5.6
8
  License: GNU General Public License v2.0 or later
9
 
@@ -194,10 +194,21 @@ We have a growing archive of <a href="https://warfareplugins.com/support/" rel="
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
 
 
 
 
 
197
  = 4.1.0 (17 AUG 2020) =
198
  * BRAND NEW!!! Added a "Social Optimizer" to the Gutenberg post editor sidebar.
199
  * Fixed a few minor CSS issues.
200
- * Updated the post editor custom fields to be compatable with WP 5.5.
201
 
202
  = 4.0.2 (28 JUL 2020) =
203
  * Added Facebook authentications to core to allow for faster and more reliable share counts when authenticated.
3
  Tags: sharing buttons, social media share, floating share buttons, facebook share, google plus share, linkedin share, pin it, pinterest save, mix 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: 4.5.0
5
  Tested up to: 5.5
6
+ Stable tag: 4.2.0
7
  Requires PHP: 5.6
8
  License: GNU General Public License v2.0 or later
9
 
194
 
195
  == Changelog ==
196
 
197
+ = 4.2.0 (02 DEC 2020) =
198
+ * BRAND NEW!!! A whole suite of social analytics tools!
199
+ * Social Optimizer scores are now saved allowing for comparisons and recommendations.
200
+ * Added a check for share counts on URLs with UTM codes for Pinterest.
201
+ * Fixed a few minor CSS issues.
202
+ * Fix for line breaks in font URLs in the CSS that made the icon font not appear.
203
+ * Fixed blank settings page on some page loads.
204
+ * Cleaned up some post meta remnants.
205
+ * Clean out share counts for buttons that don't use share counts like "email" or "more"
206
+ * Added a posts column to display the social optimization score.
207
+
208
  = 4.1.0 (17 AUG 2020) =
209
  * BRAND NEW!!! Added a "Social Optimizer" to the Gutenberg post editor sidebar.
210
  * Fixed a few minor CSS issues.
211
+ * Updated the post editor custom fields to be compatible with WP 5.5.
212
 
213
  = 4.0.2 (28 JUL 2020) =
214
  * Added Facebook authentications to core to allow for faster and more reliable share counts when authenticated.
social-warfare.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Social Warfare
5
  * Plugin URI: https://warfareplugins.com
6
  * 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!
7
- * Version: 4.1.0
8
  * Author: Warfare Plugins
9
  * Author URI: https://warfareplugins.com
10
  * Text Domain: social-warfare
@@ -17,11 +17,13 @@ defined( 'WPINC' ) || die;
17
  * We create these constants here so that we can use them throughout the plugin
18
  * for things like includes and requires.
19
  *
 
 
20
  */
21
- define( 'SWP_VERSION', '4.1.0' );
22
- define( 'SWP_DEV_VERSION', '2020.08.18.Master' );
23
  define( 'SWP_PLUGIN_FILE', __FILE__ );
24
- define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
25
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
26
  define( 'SWP_STORE_URL', 'https://warfareplugins.com' );
27
 
4
  * Plugin Name: Social Warfare
5
  * Plugin URI: https://warfareplugins.com
6
  * 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!
7
+ * Version: 4.2.0
8
  * Author: Warfare Plugins
9
  * Author URI: https://warfareplugins.com
10
  * Text Domain: social-warfare
17
  * We create these constants here so that we can use them throughout the plugin
18
  * for things like includes and requires.
19
  *
20
+ * @since 4.2.0 | 19 NOV 2020 | The str_replace() removes any linebreaks in the string.
21
+ *
22
  */
23
+ define( 'SWP_VERSION', '4.2.0' );
24
+ define( 'SWP_DEV_VERSION', '2020.12.02.9:56PM (class-wp-hook.php php error fix)' );
25
  define( 'SWP_PLUGIN_FILE', __FILE__ );
26
+ define( 'SWP_PLUGIN_URL', str_replace( array("\r", "\n") , '', untrailingslashit( plugin_dir_url( __FILE__ ) ) ) );
27
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
28
  define( 'SWP_STORE_URL', 'https://warfareplugins.com' );
29