Content Aware Sidebars – Unlimited Widget Areas - Version 3.7.5

Version Description

View Release Notes

  • Added: UI improvements
  • Added: affiliation program
  • Fixed: some hierarchical sub-items could not be selectable as conditions
  • Fixed: conditions would in some cases not be displayed properly after save
  • Updated: wp-content-aware-engine
  • Updated: freemius sdk
Download this release

Release Info

Developer intoxstudio
Plugin Icon 128x128 Content Aware Sidebars – Unlimited Widget Areas
Version 3.7.5
Comparing to
See all releases

Code changes from version 3.7.4 to 3.7.5

admin/sidebar-edit.php CHANGED
@@ -739,7 +739,7 @@ final class CAS_Sidebar_Edit extends CAS_Admin {
739
 
740
  $boxes[] = array(
741
  'id' => 'cas-plugin-links',
742
- 'title' => __('Content Aware Sidebars', 'content-aware-sidebars'),
743
  'view' => 'support',
744
  'context' => 'side',
745
  'priority' => 'default'
739
 
740
  $boxes[] = array(
741
  'id' => 'cas-plugin-links',
742
+ 'title' => __('Helpful Links', 'content-aware-sidebars'),
743
  'view' => 'support',
744
  'context' => 'side',
745
  'priority' => 'default'
app.php CHANGED
@@ -15,7 +15,7 @@ final class CAS_App {
15
  /**
16
  * Plugin version
17
  */
18
- const PLUGIN_VERSION = '3.7.4';
19
 
20
  /**
21
  * Prefix for sidebar id
15
  /**
16
  * Plugin version
17
  */
18
+ const PLUGIN_VERSION = '3.7.5';
19
 
20
  /**
21
  * Prefix for sidebar id
changelog.txt CHANGED
@@ -1,3 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = 3.3.3 =
2
 
3
  * Added: counter-measure against plugins that add buggy scripts
1
+ = 3.6.2 =
2
+
3
+ * Added: UI improvements
4
+ * Added: better support for RTL languages
5
+ * Fixed: forced replace action now always takes priority
6
+ * Fixed: archives would in rare cases not display correct sidebar if a post was password protected
7
+ * Fixed: special characters in translations of conditions
8
+ * Fixed: post type conditions with no titles
9
+
10
+ **Pro Plan:**
11
+
12
+ * Added: changes in sidebar title no longer adds revision
13
+ * Fixed: edit links in sidebar admin columns for post types
14
+
15
+ = 3.6.1 =
16
+
17
+ * Fixed: UI improvements
18
+ * Fixed: better plugin compatibility for sidebars quick select
19
+
20
+ **Pro Plan:**
21
+
22
+ * Fixed: unable to disable widgets
23
+ * Fixed: javascript would in rare cases not be loaded correctly in sidebar editor
24
+
25
+ = 3.6 =
26
+
27
+ * Added: ability to wrap sidebar in html
28
+ * Added: ability to change widget html
29
+ * Added: danish and german translations now use automatic language packs
30
+ * Added: performance and memory improvements
31
+ * Added: UI improvements
32
+ * Added: wordpress 4.8 support
33
+ * Fixed: widget manager could behave unexpectedly in cases with many inactive widget areas
34
+ * Fixed: sidebars quick select could cause nested sidebars to be removed from posts
35
+ * Fixed: sidebar bulk messages
36
+ * Updated: wp-content-aware-engine
37
+ * Updated: freemius sdk
38
+
39
+ **Pro Plan:**
40
+
41
+ * Added: widget to insert widgets from other sidebars
42
+ * Added: 1-click automatic install on checkout
43
+ * Fixed: avoid auto-draft sidebar adding extra revision
44
+
45
+ = 3.5.2 =
46
+
47
+ * Added: woocommerce 3.0 compat
48
+ * Added: badgeos compat
49
+ * Added: UI improvements in widget manager
50
+
51
+ = 3.5.1 =
52
+
53
+ * Fixed: database upgrade script
54
+
55
+ = 3.5 =
56
+
57
+ * Added: 1-click sidebar activation
58
+ * Added: improved design on widgets screen
59
+ * Added: autosave conditions
60
+ * Added: simplify option to autoselect conditions
61
+ * Added: UI improvements
62
+ * Added: minimum requirement wordpress 4.0
63
+ * Added: freemius sdk updated
64
+ * Added: actions and filters for developers
65
+
66
+ **Pro Plan:**
67
+
68
+ * Added: duplicate sidebars and conditions
69
+ * Added: disable widgets
70
+ * Fixed: improved upgrade routine
71
+
72
+ = 3.4.3 =
73
+
74
+ * Added: preparation for automatic translation packages
75
+ * Added: prevent adding duplicate sidebar titles
76
+ * Fixed: sidebar quick select would in rare cases not show sidebars
77
+ * Fixed: UI improvements
78
+
79
+ = 3.4.2 =
80
+
81
+ * Added: freemius sdk updated
82
+ * Fixed: sidebar editor now works properly in IE browser
83
+ * Fixed: UI improvements
84
+
85
+ = 3.4.1 =
86
+
87
+ * Added: ability to target all buddypress profile sections
88
+ * Added: freemius opt-in message made more clear
89
+ * Added: links to docs
90
+ * Added: wordpress 4.7 support
91
+ * Fixed: sidebar order not being saved
92
+ * Fixed: "Automatically add new children of a selected ancestor" not working for post types
93
+ * Fixed: sidebar edit links on widgets screen
94
+
95
+ **Pro Plan:**
96
+
97
+ * Fixed: buddypress groups condition not selectable on new sidebars
98
+
99
+ = 3.4 =
100
+
101
+ * Added: sidebar list and editor screens completely rewritten for performance and extensibility
102
+ * Added: ability to schedule sidebar deactivation
103
+ * Added: exposure moved to condition groups, now called singulars or archives
104
+ * Added: freemius sdk updated
105
+ * Added: data update process will no longer be triggered on new installs
106
+ * Added: sidebar status now active/inactive instead of publish/draft
107
+ * Added: always load latest version of wp-content-aware-engine
108
+ * Fixed: sidebar quick select compatibility with other sidebar managers
109
+ * Removed: deprecated function display_ca_sidebar (use ca_display_sidebar)
110
+
111
+ **Pro Plan:**
112
+
113
+ * Added: display sidebars in time ranges on given days
114
+ * Fixed: initial widget revision could in some cases be malformed
115
+ * Fixed: bug when adding url and date conditions
116
+ * Fixed: bug with license activation if user had opted out of freemius
117
+
118
  = 3.3.3 =
119
 
120
  * Added: counter-measure against plugins that add buggy scripts
content-aware-sidebars.php CHANGED
@@ -9,8 +9,8 @@
9
  Plugin Name: Content Aware Sidebars
10
  Plugin URI: https://dev.institute/wordpress-sidebars/
11
  Description: Unlimited custom sidebars and widget areas for any post, page, category etc.
12
- Version: 3.7.4
13
- Author: Joachim Jensen
14
  Author URI: https://dev.institute
15
  Text Domain: content-aware-sidebars
16
  Domain Path: /lang/
9
  Plugin Name: Content Aware Sidebars
10
  Plugin URI: https://dev.institute/wordpress-sidebars/
11
  Description: Unlimited custom sidebars and widget areas for any post, page, category etc.
12
+ Version: 3.7.5
13
+ Author: Joachim Jensen - DEV Institute
14
  Author URI: https://dev.institute
15
  Text Domain: content-aware-sidebars
16
  Domain Path: /lang/
css/style.css CHANGED
@@ -3,4 +3,4 @@
3
  * @author Joachim Jensen <jv@intox.dk>
4
  * @license GPLv3
5
  * @copyright 2017 by Joachim Jensen
6
- */#submitdiv .handlediv,#submitdiv .hndle,.cas-section,.js-cas-action{display:none}#cas-rules .cas-heart{color:#ac170a}.nav-tab-active:focus{box-shadow:none}.cas-input-sm{max-width:65px;font-size:.8em;vertical-align:middle}#submitdiv .cas-save{background:#f5f5f5;border-bottom:1px solid #ddd;overflow:hidden;padding:7px 10px}#submitdiv .cas-overview-actions{padding:0 10px}#submitdiv .cas-overview-actions .dashicons{color:#82878c}#submitdiv .cas-overview-actions li{margin-bottom:14px}.cas-pro-label{background-color:#31c455;border-radius:5px;color:#fff;padding:3px 8px;text-transform:uppercase;vertical-align:baseline;white-space:nowrap;font-weight:700}a.cas-delete{color:#a00;text-decoration:none}a.cas-delete:hover{color:red}.cas-schedule-slide.ui-slider{position:relative;margin:12px;border-radius:4px;background:#c5c5c5;color:#333}.cas-schedule-slide.ui-slider .ui-slider-handle{position:absolute;z-index:2;height:24px;width:24px;-ms-touch-action:none;touch-action:none;text-align:center;border-radius:12px;transition:background .2s ease}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-default{border:1px solid #c5c5c5;background:#fff;box-shadow:0 0 0 9px #fff inset,0 1px 2px rgba(0,0,0,.15)}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-active{background:#7ad03a;border-color:#999}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-focus:focus{outline:0}.cas-schedule-slide.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#7ad03a}.cas-schedule-slide.ui-slider.ui-state-disabled{opacity:.35;cursor:default!important;pointer-events:none}.cas-schedule-slide.ui-slider.ui-slider-horizontal{height:4px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-handle{margin-left:-12px;top:-12px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-max{right:0}.button.button-cas-upgrade{background:#dd1d0c;color:#fff;border-color:#ac170a;font-weight:700;box-shadow:0 0 0 1px rgba(255,255,255,.3) inset,0 1px 0 #ac170a}.button.button-cas-upgrade:hover{color:#fff;border-color:#ac170a;background:#eb5c50}.button.button-cas-upgrade:active,.button.button-cas-upgrade:focus{color:#fff;background:#dd1d0c;border-color:#ac170a;box-shadow:inset 0 2px 0 #ac170a;vertical-align:top}#cas-plugin-links.postbox{background-color:#ddecf4;border-color:#9fcadf;box-shadow:0 0 0 1px #fff inset,0 1px 1px rgba(0,0,0,.04)}#cas-plugin-links .hndle{border-bottom-color:#9fcadf;box-shadow:0 -1px #fff inset}.wp-list-table.fixed.striped>tbody>:nth-child(2n+1){background-color:#f9f9f9}.wp-list-table.fixed .column-widgets{width:8%}.wp-list-table.fixed .column-visibility{width:20%}.wp-list-table.fixed .column-handle{width:25%}.wp-list-table.fixed .column-status{width:12%}.widget-liquid-right .widgets-holder-wrap .cas-settings{border-top:1px solid #DFDFDF;border-bottom:1px solid #DFDFDF;background-color:#f7f7f7;margin-left:-8px;margin-right:-8px;margin-bottom:10px;overflow:hidden}.widget-liquid-right .widgets-holder-wrap .sidebar-status{margin:10px 10px 0;float:right;position:relative;width:28px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;box-sizing:border-box}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input{display:none}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-label{display:block;overflow:hidden;cursor:pointer;height:16px;padding:0;line-height:16px;border-radius:16px;background-color:#dc3232;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-label:before{content:"";display:block;width:12px;height:12px;margin:0;background:#FFF;position:absolute;top:2px;bottom:0;right:14px;border-radius:16px;transition:right .2s ease-in 0s;box-shadow:0 1px 2px rgba(0,0,0,.2)}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:checked+.sidebar-status-label{background-color:#7ad03a}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:checked+.sidebar-status-label:before{right:2px}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input.sidebar-status-future:not(:checked)+.sidebar-status-label{background-color:#ffb900}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:disabled+.sidebar-status-label{cursor:auto}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link{display:inline-block;border-right:1px solid #DFDFDF;padding:8px 10px;color:#888;text-decoration:none;transition:all .4s ease;box-shadow:none}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link:hover{background-color:#fff;color:#222}.widget-liquid-right .widgets-holder-wrap.closed .cas-settings{display:none}.widget-liquid-right .widgets-holder-wrap div[id^=ca-sidebar]{box-shadow:inset 0 4px 0 #75d7ef}.cas-form-table{width:97%;margin:0 auto}.cas-form-table tr td:first-child{min-width:30%}.cas-form-table tr td{border-bottom:1px solid #eee}.cas-schedule-days{text-transform:uppercase;overflow:hidden;display:inline-block;border:1px solid #DFDFDF;margin:0;border-radius:3px}.cas-schedule-days li{float:left;margin:0}.cas-schedule-days input{display:none}.cas-schedule-days label{transition:background .2s;background:#0085BA;display:block;padding:8px 12px;color:#fff}.cas-schedule-days label:hover{background:#007aab}.cas-schedule-days input:checked+label{color:inherit;background:#f1f1f1}.cas-schedule-days input:checked+label:hover{background:#e9e9e9}.cas-filter-sidebar{max-width:calc(900px + 2%);margin:10px 0;vertical-align:middle}.cas-filter-sidebar .sidebars-toggle{margin:16px 16px 0 0;float:right;display:inline-block}.cas-filter-sidebar .button,.cas-filter-sidebar input{margin:12px 0 11px}.cas-filter-sidebar input{float:right}.cas-filter-widget{margin:10px 0}body.branch-3-9 .cas-filter-sidebar.wp-filter{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;color:#555;display:inline-block;font-size:13px;margin:9pt 0 25px;padding:0 10px;position:relative;width:100%}body.branch-3-9 .cas-filter-sidebar.wp-filter input,body.branch-3-9 .cas-filter-widget{padding:3px 5px;line-height:initial}@media (min-width:783px){.cas-widget-manager:not(.widgets_access) #screen-meta{z-index:20}.cas-widget-manager:not(.widgets_access) .widget-liquid-left{position:absolute;top:50px}.cas-widget-manager:not(.widgets_access) .wrap .notice,.cas-widget-manager:not(.widgets_access) .wrap h1{margin:0 0 0 calc(38% + 56px)}.cas-widget-manager:not(.widgets_access) #available-widgets{z-index:1;position:fixed;top:32px;padding:0 10px;background:#fafafa;box-shadow:0 0 5px 0 rgba(0,0,0,.1);width:32%;border-color:#DFDFDF;border-style:solid;border-width:0 1px 1px 0;left:160px}.cas-widget-manager:not(.widgets_access) #available-widgets .cas-filter-widget{width:100%}.cas-widget-manager:not(.widgets_access) #available-widgets .widget{padding-bottom:10px}.cas-widget-manager:not(.widgets_access) #available-widgets #widget-list{border-top:1px solid #DFDFDF;padding:3px;margin:0 -10px;background:#fff}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed){min-height:600px;bottom:0;border-bottom-width:0}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name{position:static}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{display:block;bottom:auto;right:10px}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .toggle-indicator{display:block}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #removing-widget{box-sizing:border-box;padding:10px 0 0;color:#c00;z-index:2;text-align:center;position:absolute;background-color:rgba(255,255,255,.6);border:4px dashed #c00;top:0;left:0;right:0;height:100%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .description{display:none}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{position:fixed;top:120px;padding:12px 10px;overflow-y:auto;overflow-x:hidden;width:calc(32% - 1px);bottom:0}.cas-widget-manager:not(.widgets_access).folded #available-widgets{left:36px;width:37.5%}.cas-widget-manager:not(.widgets_access).folded #available-widgets:not(.closed) #widget-list{width:calc(37.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl .wrap .notice,.cas-widget-manager:not(.widgets_access).rtl .wrap h1{margin:0 calc(38% + 56px) 0 0}.cas-widget-manager:not(.widgets_access).rtl #available-widgets{box-shadow:0 0 5px 0 rgba(0,0,0,.1);right:160px;left:auto;border-width:0 0 1px 1px}.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{left:10px;right:auto}.cas-widget-manager:not(.widgets_access).rtl.folded #available-widgets{left:auto;right:36px}.cas-widget-manager:not(.widgets_access) #widgets-right .widgets-sortables{z-index:2}}@media (min-width:783px) and (max-width:960px){.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets{left:36px;width:36%}.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(36% - 1px)}.cas-widget-manager.auto-fold:not(.widgets_access).rtl #available-widgets{left:auto;right:36px}}@media (min-width:1250px){.cas-widget-manager:not(.widgets_access) #widgets-left #available-widgets .widget:nth-child(even){float:left;margin:0 0 0 2%}.cas-widget-manager:not(.widgets_access) #available-widgets{width:34.5%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(34.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget{float:right;padding-left:2%}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget:nth-child(odd){margin-right:-2%}}
3
  * @author Joachim Jensen <jv@intox.dk>
4
  * @license GPLv3
5
  * @copyright 2017 by Joachim Jensen
6
+ */#submitdiv .handlediv,#submitdiv .hndle,.cas-section,.js-cas-action{display:none}#cas-rules .cas-heart{color:#ac170a}.nav-tab-active:focus{box-shadow:none}.cas-input-sm{max-width:65px;font-size:.8em;vertical-align:middle}#submitdiv .cas-save{background:#f5f5f5;border-bottom:1px solid #ddd;overflow:hidden;padding:7px 10px}#submitdiv .cas-overview-actions{padding:0 10px}#submitdiv .cas-overview-actions .dashicons{color:#82878c}#submitdiv .cas-overview-actions li{margin-bottom:14px}.cas-pro-label{background-color:#31c455;border-radius:5px;color:#fff;padding:3px 8px;text-transform:uppercase;vertical-align:baseline;white-space:nowrap;font-weight:700}a.cas-delete{color:#a00;text-decoration:none}a.cas-delete:hover{color:red}.cas-schedule-slide.ui-slider{position:relative;margin:12px;border-radius:4px;background:#c5c5c5;color:#333}.cas-schedule-slide.ui-slider .ui-slider-handle{position:absolute;z-index:2;height:24px;width:24px;-ms-touch-action:none;touch-action:none;text-align:center;border-radius:12px;transition:background .2s ease}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-default{border:1px solid #c5c5c5;background:#fff;box-shadow:0 0 0 9px #fff inset,0 1px 2px rgba(0,0,0,.15)}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-active{background:#7ad03a;border-color:#999}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-focus:focus{outline:0}.cas-schedule-slide.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#7ad03a}.cas-schedule-slide.ui-slider.ui-state-disabled{opacity:.35;cursor:default!important;pointer-events:none}.cas-schedule-slide.ui-slider.ui-slider-horizontal{height:4px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-handle{margin-left:-12px;top:-12px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-max{right:0}.button.button-cas-upgrade{background:#dd1d0c;color:#fff;border-color:#ac170a;font-weight:700;box-shadow:0 0 0 1px rgba(255,255,255,.3) inset,0 1px 0 #ac170a}.button.button-cas-upgrade:hover{color:#fff;border-color:#ac170a;background:#eb5c50}.button.button-cas-upgrade:active,.button.button-cas-upgrade:focus{color:#fff;background:#dd1d0c;border-color:#ac170a;box-shadow:inset 0 2px 0 #ac170a;vertical-align:top}#cas-plugin-links.postbox{background-color:#ddecf4;border-color:#9fcadf;box-shadow:0 0 0 1px #fff inset,0 1px 1px rgba(0,0,0,.04)}#cas-plugin-links .hndle{border-bottom-color:#9fcadf;box-shadow:0 -1px #fff inset}.wp-list-table.fixed.striped>tbody>:nth-child(2n+1){background-color:#f9f9f9}.wp-list-table.fixed .column-widgets{width:8%}.wp-list-table.fixed .column-visibility{width:20%}.wp-list-table.fixed .column-handle{width:25%}.wp-list-table.fixed .column-status{width:12%}.widget-liquid-right .widgets-holder-wrap .cas-settings{border-top:1px solid #DFDFDF;border-bottom:1px solid #DFDFDF;background-color:#f7f7f7;margin-left:-8px;margin-right:-8px;margin-bottom:10px;overflow:hidden}.widget-liquid-right .widgets-holder-wrap .sidebar-status{margin:10px 10px 0;float:right;position:relative;width:28px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;box-sizing:border-box}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input{display:none}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-label{display:block;overflow:hidden;cursor:pointer;height:16px;padding:0;line-height:16px;border-radius:16px;background-color:#dc3232;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-label:before{content:"";display:block;width:12px;height:12px;margin:0;background:#FFF;position:absolute;top:2px;bottom:0;right:14px;border-radius:16px;transition:right .2s ease-in 0s;box-shadow:0 1px 2px rgba(0,0,0,.2)}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:checked+.sidebar-status-label{background-color:#7ad03a}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:checked+.sidebar-status-label:before{right:2px}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input.sidebar-status-future:not(:checked)+.sidebar-status-label{background-color:#ffb900}.widget-liquid-right .widgets-holder-wrap .sidebar-status .sidebar-status-input:disabled+.sidebar-status-label{cursor:auto}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link{display:inline-block;border-right:1px solid #DFDFDF;padding:8px 10px;color:#888;text-decoration:none;transition:all .4s ease;box-shadow:none}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link:hover{background-color:#fff;color:#222}.widget-liquid-right .widgets-holder-wrap.closed .cas-settings{display:none}.widget-liquid-right .widgets-holder-wrap div[id^=ca-sidebar]{box-shadow:inset 0 4px 0 #75d7ef}.cas-form-table{width:97%;margin:0 auto}.cas-form-table tr td:first-child{min-width:30%}.cas-form-table tr td{border-bottom:1px solid #eee}.cas-schedule-days{text-transform:uppercase;overflow:hidden;display:inline-block;border:1px solid #DFDFDF;margin:0;border-radius:3px}.cas-schedule-days li{float:left;margin:0}.cas-schedule-days input{display:none}.cas-schedule-days label{transition:background .2s;background:#0085BA;display:block;padding:8px 12px;color:#fff}.cas-schedule-days label:hover{background:#007aab}.cas-schedule-days input:checked+label{color:inherit;background:#f1f1f1}.cas-schedule-days input:checked+label:hover{background:#e9e9e9}.cas-filter-sidebar{max-width:calc(900px + 2%);margin:10px 0;vertical-align:middle}.cas-filter-sidebar .sidebars-toggle{margin:16px 16px 0 0;float:right;display:inline-block}.cas-filter-sidebar .button,.cas-filter-sidebar input{margin:12px 0 11px}.cas-filter-sidebar input{float:right}.cas-filter-widget{margin:10px 0}body.branch-3-9 .cas-filter-sidebar.wp-filter{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;color:#555;display:inline-block;font-size:13px;margin:9pt 0 25px;padding:0 10px;position:relative;width:100%}body.branch-3-9 .cas-filter-sidebar.wp-filter input,body.branch-3-9 .cas-filter-widget{padding:3px 5px;line-height:initial}@media (min-width:783px){.cas-widget-manager:not(.widgets_access) #screen-meta{z-index:20}.cas-widget-manager:not(.widgets_access) .widget-liquid-left{position:absolute;top:50px}.cas-widget-manager:not(.widgets_access) .wrap .error,.cas-widget-manager:not(.widgets_access) .wrap .notice,.cas-widget-manager:not(.widgets_access) .wrap .updated,.cas-widget-manager:not(.widgets_access) .wrap h1{margin:0 0 0 calc(38% + 56px)}.cas-widget-manager:not(.widgets_access) #available-widgets{z-index:1;position:fixed;top:32px;padding:0 10px;background:#fafafa;box-shadow:0 0 5px 0 rgba(0,0,0,.1);width:32%;border-color:#DFDFDF;border-style:solid;border-width:0 1px 1px 0;left:160px}.cas-widget-manager:not(.widgets_access) #available-widgets .cas-filter-widget{width:100%}.cas-widget-manager:not(.widgets_access) #available-widgets .widget{padding-bottom:10px}.cas-widget-manager:not(.widgets_access) #available-widgets #widget-list{border-top:1px solid #DFDFDF;padding:3px;margin:0 -10px;background:#fff}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed){min-height:600px;bottom:0;border-bottom-width:0}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name{position:static}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{display:block;bottom:auto;right:10px}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .toggle-indicator{display:block}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #removing-widget{box-sizing:border-box;padding:10px 0 0;color:#c00;z-index:2;text-align:center;position:absolute;background-color:rgba(255,255,255,.6);border:4px dashed #c00;top:0;left:0;right:0;height:100%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .description{display:none}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{position:fixed;top:120px;padding:12px 10px;overflow-y:auto;overflow-x:hidden;width:calc(32% - 1px);bottom:0}.cas-widget-manager:not(.widgets_access).folded #available-widgets{left:36px;width:37.5%}.cas-widget-manager:not(.widgets_access).folded #available-widgets:not(.closed) #widget-list{width:calc(37.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl .wrap .error,.cas-widget-manager:not(.widgets_access).rtl .wrap .notice,.cas-widget-manager:not(.widgets_access).rtl .wrap .updated,.cas-widget-manager:not(.widgets_access).rtl .wrap h1{margin:0 calc(38% + 56px) 0 0}.cas-widget-manager:not(.widgets_access).rtl #available-widgets{box-shadow:0 0 5px 0 rgba(0,0,0,.1);right:160px;left:auto;border-width:0 0 1px 1px}.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{left:10px;right:auto}.cas-widget-manager:not(.widgets_access).rtl.folded #available-widgets{left:auto;right:36px}.cas-widget-manager:not(.widgets_access) #widgets-right .widgets-sortables{z-index:2}}@media (min-width:783px) and (max-width:960px){.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets{left:36px;width:36%}.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(36% - 1px)}.cas-widget-manager.auto-fold:not(.widgets_access).rtl #available-widgets{left:auto;right:36px}}@media (min-width:1250px){.cas-widget-manager:not(.widgets_access) #widgets-left #available-widgets .widget:nth-child(even){float:left;margin:0 0 0 2%}.cas-widget-manager:not(.widgets_access) #available-widgets{width:34.5%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(34.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget{float:right;padding-left:2%}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget:nth-child(odd){margin-right:-2%}}
freemius.php CHANGED
@@ -29,7 +29,7 @@ function cas_fs()
29
  'menu' => array(
30
  'slug' => 'wpcas',
31
  'support' => false,
32
- 'affiliation' => false,
33
  ),
34
  'is_live' => true,
35
  ) );
29
  'menu' => array(
30
  'slug' => 'wpcas',
31
  'support' => false,
32
+ 'affiliation' => true,
33
  ),
34
  'is_live' => true,
35
  ) );
js/cas_admin.js CHANGED
@@ -6,6 +6,7 @@
6
  */
7
 
8
  (function($) {
 
9
 
10
  var cas_options = {
11
 
@@ -38,8 +39,8 @@
38
  time_24hr: true,
39
  allowInput: true,
40
  enableSeconds: true,
41
- altInput: true,
42
- altFormat: CASAdmin.dateFormat + ' @ H:i:S',
43
  onChange: function(dateObj, dateStr, instance) {
44
  console.log("activate");
45
  if(dateStr || deactivate.config.minDate) {
6
  */
7
 
8
  (function($) {
9
+ "use strict";
10
 
11
  var cas_options = {
12
 
39
  time_24hr: true,
40
  allowInput: true,
41
  enableSeconds: true,
42
+ //altInput: true,
43
+ //altFormat: CASAdmin.dateFormat + ' @ H:i:S',
44
  onChange: function(dateObj, dateStr, instance) {
45
  console.log("activate");
46
  if(dateStr || deactivate.config.minDate) {
js/cas_admin.min.js CHANGED
@@ -4,4 +4,4 @@
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
- !function($){var t={current_section:0,sections:[],init:function(){this.tabController(),this.actionOptionHandler(),this.suggestVisibility(),this.initSidebarActivation(),$(".js-cas-color-field").wpColorPicker(),$(".js-cas-html").on("change",function(t){var n=$(this);$(n.data("target")).attr("disabled",!n.is(":checked"))}).trigger("change")},initSidebarActivation:function(){flatpickr.l10ns.default.weekdays=CASAdmin.weekdays,flatpickr.l10ns.default.months=CASAdmin.months,flatpickr.l10ns.default.firstDayOfWeek=CASAdmin.weekStart;var t=flatpickr(".js-cas-activation",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:!0,allowInput:!0,enableSeconds:!0,altInput:!0,altFormat:CASAdmin.dateFormat+" @ H:i:S",onChange:function(t,i,a){(i||n.config.minDate)&&n.set("minDate",i?new Date(t).fp_incr(1):null),i?e.prop("checked",!1):e.is(":checked")||n.clear()}}),n=flatpickr(".js-cas-expiry",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:!0,allowInput:!0,enableSeconds:!0,altInput:!0,altFormat:CASAdmin.dateFormat+" @ H:i:S",onChange:function(n,e,i){(e||t.config.maxDate)&&t.set("maxDate",e?new Date(n).fp_incr(-1):null)}}),e=$(".js-cas-status");e.on("change",function(e){$(this).is(":checked")?t.clear():t.selectedDates.length||n.clear()})},initTabSections:function(){$(".js-cas-tabs").find(".nav-tab").each(function(){var n=this.href.lastIndexOf("#");if(n>=0){var e=this.href.substr(n);t.sections.push(e),$(e).hide()}})},tabController:function(){this.initTabSections(),this.setCurrentSection(window.location.hash),$("#poststuff").on("click",".js-nav-link",function(n){t.setCurrentSection(this.href)})},findSectionByURL:function(t){var n=this.sections.indexOf(t.substring(t.lastIndexOf("#")));return n>=0?n:null},setCurrentSection:function(t){var n=this.findSectionByURL(t)||0,e=$(".js-cas-tabs").find(".nav-tab");e.eq(n).is(":visible")&&($(this.sections[this.current_section]).hide(),e.eq(this.current_section).removeClass("nav-tab-active"),this.current_section=n,$(this.sections[this.current_section]).show(),e.eq(this.current_section).addClass("nav-tab-active"),$("#_cas_section").val("#top"+this.sections[this.current_section]))},actionOptionHandler:function(){var t=$("#cas-options"),n=t.find(".js-cas-action");t.on("change",".js-cas-handle",function(){var t=$(this),e=n.filter(".js-cas-action-"+t.val());n.not(e).hide().find("input,select").attr("disabled",!0),e.fadeIn("fast").find("input,select").attr("disabled",!1)}),t.find(".js-cas-handle").trigger("change")},suggestVisibility:function(){var t=$(".js-cas-visibility");t.select2({theme:"wpca",placeholder:CASAdmin.allVisibility,minimumInputLength:0,closeOnSelect:!0,allowClear:!1,nextSearchTerm:function(t,n){return n},data:CASAdmin.visibility}).on("select2:selecting",function(n){t.data("forceOpen",!0)}).on("select2:close",function(n){t.data("forceOpen")&&(n.preventDefault(),t.select2("open"),t.data("forceOpen",!1))}),t.data("value")&&t.val(t.data("value").toString().split(",")).trigger("change")}};$(document).ready(function(){t.init()})}(jQuery);
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
+ !function($){"use strict";var t={current_section:0,sections:[],init:function(){this.tabController(),this.actionOptionHandler(),this.suggestVisibility(),this.initSidebarActivation(),$(".js-cas-color-field").wpColorPicker(),$(".js-cas-html").on("change",function(t){var n=$(this);$(n.data("target")).attr("disabled",!n.is(":checked"))}).trigger("change")},initSidebarActivation:function(){flatpickr.l10ns.default.weekdays=CASAdmin.weekdays,flatpickr.l10ns.default.months=CASAdmin.months,flatpickr.l10ns.default.firstDayOfWeek=CASAdmin.weekStart;var t=flatpickr(".js-cas-activation",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:!0,allowInput:!0,enableSeconds:!0,onChange:function(t,i,a){(i||n.config.minDate)&&n.set("minDate",i?new Date(t).fp_incr(1):null),i?e.prop("checked",!1):e.is(":checked")||n.clear()}}),n=flatpickr(".js-cas-expiry",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:!0,allowInput:!0,enableSeconds:!0,altInput:!0,altFormat:CASAdmin.dateFormat+" @ H:i:S",onChange:function(n,e,i){(e||t.config.maxDate)&&t.set("maxDate",e?new Date(n).fp_incr(-1):null)}}),e=$(".js-cas-status");e.on("change",function(e){$(this).is(":checked")?t.clear():t.selectedDates.length||n.clear()})},initTabSections:function(){$(".js-cas-tabs").find(".nav-tab").each(function(){var n=this.href.lastIndexOf("#");if(n>=0){var e=this.href.substr(n);t.sections.push(e),$(e).hide()}})},tabController:function(){this.initTabSections(),this.setCurrentSection(window.location.hash),$("#poststuff").on("click",".js-nav-link",function(n){t.setCurrentSection(this.href)})},findSectionByURL:function(t){var n=this.sections.indexOf(t.substring(t.lastIndexOf("#")));return n>=0?n:null},setCurrentSection:function(t){var n=this.findSectionByURL(t)||0,e=$(".js-cas-tabs").find(".nav-tab");e.eq(n).is(":visible")&&($(this.sections[this.current_section]).hide(),e.eq(this.current_section).removeClass("nav-tab-active"),this.current_section=n,$(this.sections[this.current_section]).show(),e.eq(this.current_section).addClass("nav-tab-active"),$("#_cas_section").val("#top"+this.sections[this.current_section]))},actionOptionHandler:function(){var t=$("#cas-options"),n=t.find(".js-cas-action");t.on("change",".js-cas-handle",function(){var t=$(this),e=n.filter(".js-cas-action-"+t.val());n.not(e).hide().find("input,select").attr("disabled",!0),e.fadeIn("fast").find("input,select").attr("disabled",!1)}),t.find(".js-cas-handle").trigger("change")},suggestVisibility:function(){var t=$(".js-cas-visibility");t.select2({theme:"wpca",placeholder:CASAdmin.allVisibility,minimumInputLength:0,closeOnSelect:!0,allowClear:!1,nextSearchTerm:function(t,n){return n},data:CASAdmin.visibility}).on("select2:selecting",function(n){t.data("forceOpen",!0)}).on("select2:close",function(n){t.data("forceOpen")&&(n.preventDefault(),t.select2("open"),t.data("forceOpen",!1))}),t.data("value")&&t.val(t.data("value").toString().split(",")).trigger("change")}};$(document).ready(function(){t.init()})}(jQuery);
js/general.js CHANGED
@@ -6,6 +6,7 @@
6
  */
7
 
8
  (function($) {
 
9
 
10
  var cas_general = {
11
 
6
  */
7
 
8
  (function($) {
9
+ "use strict";
10
 
11
  var cas_general = {
12
 
js/general.min.js CHANGED
@@ -4,4 +4,4 @@
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
- !function($){var i={init:function(){this.upgradeNoticeHandler(),this.reviewNoticeHandler()},upgradeNoticeHandler:function(){$(".js-cas-pro-notice").on("click",function(i){i.preventDefault(),$(".js-cas-pro-read-more").attr("href",$(this).data("url")),$(".js-cas-pro-popup").trigger("click")})},reviewNoticeHandler:function(){$notice=$(".js-cas-notice-review"),$notice.on("click","a, button",function(i){$this=$(this),$.ajax({url:ajaxurl,data:{action:"cas_dismiss_review_notice",dismiss:$this.data("cas-rating")?1:0},dataType:"JSON",type:"POST",success:function(i){$notice.fadeOut(400,function(){$notice.remove()})},error:function(i,t,e){}})})}};$(document).ready(function(){i.init()})}(jQuery);
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
+ !function($){"use strict";var t={init:function(){this.upgradeNoticeHandler(),this.reviewNoticeHandler()},upgradeNoticeHandler:function(){$(".js-cas-pro-notice").on("click",function(t){t.preventDefault(),$(".js-cas-pro-read-more").attr("href",$(this).data("url")),$(".js-cas-pro-popup").trigger("click")})},reviewNoticeHandler:function(){$notice=$(".js-cas-notice-review"),$notice.on("click","a, button",function(t){$this=$(this),$.ajax({url:ajaxurl,data:{action:"cas_dismiss_review_notice",dismiss:$this.data("cas-rating")?1:0},dataType:"JSON",type:"POST",success:function(t){$notice.fadeOut(400,function(){$notice.remove()})},error:function(t,i,e){}})})}};$(document).ready(function(){t.init()})}(jQuery);
js/suggest-sidebars.js CHANGED
@@ -6,6 +6,7 @@
6
  */
7
 
8
  (function($) {
 
9
 
10
  var cas_sidebars = {
11
 
6
  */
7
 
8
  (function($) {
9
+ "use strict";
10
 
11
  var cas_sidebars = {
12
 
js/suggest-sidebars.min.js CHANGED
@@ -4,4 +4,4 @@
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
- !function($){var e={init:function(){this.suggestSidebars(),this.toggleSidebarInputs()},toggleSidebarInputs:function(){$(".js-cas-more").click(function(e){e.preventDefault();var t=$(this),n=$(t.data("toggle")),a=t.children(":first");a.hasClass("dashicons-arrow-down-alt2")?(a.addClass("dashicons-arrow-up-alt2").removeClass("dashicons-arrow-down-alt2"),n.slideDown()):(a.addClass("dashicons-arrow-down-alt2").removeClass("dashicons-arrow-up-alt2"),n.slideUp())})},suggestSidebars:function(){$(".js-cas-sidebars").each(function(){$(this).select2({theme:"wpca",minimumInputLength:0,closeOnSelect:!0,allowClear:!1,width:"100%",escapeMarkup:function(e){return e},createTag:function(e){var t=$.trim(e.term);return""===t?null:{id:"_"+t.replace(/,/g,"__"),text:t,new:!0}},templateSelection:function(e){return(e.new?"<b>("+CAS.labelNew+")</b> ":"")+e.text},templateResult:function(e){return(e.new?"<b>"+CAS.createNew+":</b> ":"")+e.text},templateNoMatches:function(e){return CAS.notFound}})})}};$(document).ready(function(){e.init()})}(jQuery);
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
+ !function($){"use strict";var e={init:function(){this.suggestSidebars(),this.toggleSidebarInputs()},toggleSidebarInputs:function(){$(".js-cas-more").click(function(e){e.preventDefault();var t=$(this),n=$(t.data("toggle")),a=t.children(":first");a.hasClass("dashicons-arrow-down-alt2")?(a.addClass("dashicons-arrow-up-alt2").removeClass("dashicons-arrow-down-alt2"),n.slideDown()):(a.addClass("dashicons-arrow-down-alt2").removeClass("dashicons-arrow-up-alt2"),n.slideUp())})},suggestSidebars:function(){$(".js-cas-sidebars").each(function(){$(this).select2({theme:"wpca",minimumInputLength:0,closeOnSelect:!0,allowClear:!1,width:"100%",escapeMarkup:function(e){return e},createTag:function(e){var t=$.trim(e.term);return""===t?null:{id:"_"+t.replace(/,/g,"__"),text:t,new:!0}},templateSelection:function(e){return(e.new?"<b>("+CAS.labelNew+")</b> ":"")+e.text},templateResult:function(e){return(e.new?"<b>"+CAS.createNew+":</b> ":"")+e.text},templateNoMatches:function(e){return CAS.notFound}})})}};$(document).ready(function(){e.init()})}(jQuery);
js/widgets.js CHANGED
@@ -6,6 +6,7 @@
6
  */
7
 
8
  (function($) {
 
9
 
10
  var cas_widgets = {
11
 
6
  */
7
 
8
  (function($) {
9
+ "use strict";
10
 
11
  var cas_widgets = {
12
 
js/widgets.min.js CHANGED
@@ -4,4 +4,4 @@
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
- !function($){var e={$sidebarContainer:$(".widget-liquid-right"),$widgetContainer:$("#available-widgets"),init:function(){this.openSidebarByURL(),this.addSidebarToolbar(),this.addWidgetSearch(),this.toggleSidebarStatus(),this.enhancedWidgetManager()},openSidebarByURL:function(){if(window.location.hash){var e=this.$sidebarContainer.find(".widgets-holder-wrap"),i=e.has(window.location.hash);i.length&&i.add(e.first()).find(".handlediv,.sidebar-name-arrow").trigger("click")}},enhancedWidgetManager:function(){if($("body").hasClass("cas-widget-manager")){this.$widgetContainer.find(".widget").draggable("option","scroll",!1);var e=this,i=$("#widgets-left .inactive-sidebar");i.toggle(this.$widgetContainer.hasClass("closed")),this.$widgetContainer.find(".sidebar-name").click(function(t){i.toggle(e.$widgetContainer.hasClass("closed"))})}},toggleSidebarStatus:function(){$(".widget-liquid-right").on("change",".sidebar-status-input",function(e){var i=$(this),t=i.is(":checked");!i.hasClass("sidebar-status-future")||confirm(CASAdmin.enableConfirm)?$.post(ajaxurl,{action:"cas_sidebar_status",sidebar_id:i.val(),status:t},function(e){e.success?(i.next().attr("title",e.data.title),i.removeClass("sidebar-status-future")):i.attr("checked",!t)}):i.attr("checked",!t)})},addWidgetSearch:function(){var e=$(".widget",this.$widgetContainer).get().reverse();$(".sidebar-description",this.$widgetContainer).prepend('<input type="search" class="js-cas-widget-filter cas-filter-widget" placeholder="'+CASAdmin.filterWidgets+'...">'),this.searchWidgetListener(e)},searchWidgetListener:function(e){var i,t="";this.$widgetContainer.on("input",".js-cas-widget-filter",function(a){var s=$(this).val();s!=t&&(t=s,i&&clearTimeout(i),i=setTimeout(function(){$(e).each(function(e,i){var t=$(i);t.find(".widget-title :nth-child(1)").text().search(new RegExp(s,"i"))<0?t.fadeOut():(t.prependTo(t.parent()),t.fadeIn().css("display",""))})},250))})},addSidebarToolbar:function(){var e='<div class="wp-filter cas-filter-sidebar"><a href="admin.php?page=wpcas-edit" class="button button-primary">'+CASAdmin.addNew+'</a><input type="search" class="js-cas-filter" placeholder="'+CASAdmin.filterSidebars+'..."><a href="#" title="'+CASAdmin.collapse+'" class="js-sidebars-toggle sidebars-toggle" data-toggle="0"><span class="dashicons dashicons-arrow-up-alt2"></span></a><a href="#" title="'+CASAdmin.expand+'" class="js-sidebars-toggle sidebars-toggle" data-toggle="1"><span class="dashicons dashicons-arrow-down-alt2"></span></a></div>';this.$sidebarContainer.prepend(e),this.searchSidebarListener(),this.addSidebarToggle()},addSidebarToggle:function(){var e=$(document),i=this.$sidebarContainer.find(".widgets-holder-wrap");$("body").on("click",".js-sidebars-toggle",function(t){t.preventDefault();var a=!!$(this).data("toggle");i.toggleClass("closed",!a),a&&i.children(".widgets-sortables").sortable("refresh"),e.triggerHandler("wp-pin-menu")})},searchSidebarListener:function(){var e,i=this,t="";this.$sidebarContainer.on("input",".js-cas-filter",function(a){var s=$(this).val();s!=t&&(t=s,e&&clearTimeout(e),e=setTimeout(function(){$(".widgets-holder-wrap",i.$sidebarContainer).each(function(e,i){var t=$(i);t.find(".sidebar-name :nth-child(2)").text().search(new RegExp(s,"i"))<0?t.fadeOut():t.fadeIn()})},250))})}};$(document).ready(function(){e.init()})}(jQuery);
4
  * @license GPLv3
5
  * @copyright 2018 by Joachim Jensen
6
  */
7
+ !function($){"use strict";var e={$sidebarContainer:$(".widget-liquid-right"),$widgetContainer:$("#available-widgets"),init:function(){this.openSidebarByURL(),this.addSidebarToolbar(),this.addWidgetSearch(),this.toggleSidebarStatus(),this.enhancedWidgetManager()},openSidebarByURL:function(){if(window.location.hash){var e=this.$sidebarContainer.find(".widgets-holder-wrap"),i=e.has(window.location.hash);i.length&&i.add(e.first()).find(".handlediv,.sidebar-name-arrow").trigger("click")}},enhancedWidgetManager:function(){if($("body").hasClass("cas-widget-manager")){this.$widgetContainer.find(".widget").draggable("option","scroll",!1);var e=this,i=$("#widgets-left .inactive-sidebar");i.toggle(this.$widgetContainer.hasClass("closed")),this.$widgetContainer.find(".sidebar-name").click(function(t){i.toggle(e.$widgetContainer.hasClass("closed"))})}},toggleSidebarStatus:function(){$(".widget-liquid-right").on("change",".sidebar-status-input",function(e){var i=$(this),t=i.is(":checked");!i.hasClass("sidebar-status-future")||confirm(CASAdmin.enableConfirm)?$.post(ajaxurl,{action:"cas_sidebar_status",sidebar_id:i.val(),status:t},function(e){e.success?(i.next().attr("title",e.data.title),i.removeClass("sidebar-status-future")):i.attr("checked",!t)}):i.attr("checked",!t)})},addWidgetSearch:function(){var e=$(".widget",this.$widgetContainer).get().reverse();$(".sidebar-description",this.$widgetContainer).prepend('<input type="search" class="js-cas-widget-filter cas-filter-widget" placeholder="'+CASAdmin.filterWidgets+'...">'),this.searchWidgetListener(e)},searchWidgetListener:function(e){var i,t="";this.$widgetContainer.on("input",".js-cas-widget-filter",function(a){var s=$(this).val();s!=t&&(t=s,i&&clearTimeout(i),i=setTimeout(function(){$(e).each(function(e,i){var t=$(i);t.find(".widget-title :nth-child(1)").text().search(new RegExp(s,"i"))<0?t.fadeOut():(t.prependTo(t.parent()),t.fadeIn().css("display",""))})},250))})},addSidebarToolbar:function(){var e='<div class="wp-filter cas-filter-sidebar"><a href="admin.php?page=wpcas-edit" class="button button-primary">'+CASAdmin.addNew+'</a><input type="search" class="js-cas-filter" placeholder="'+CASAdmin.filterSidebars+'..."><a href="#" title="'+CASAdmin.collapse+'" class="js-sidebars-toggle sidebars-toggle" data-toggle="0"><span class="dashicons dashicons-arrow-up-alt2"></span></a><a href="#" title="'+CASAdmin.expand+'" class="js-sidebars-toggle sidebars-toggle" data-toggle="1"><span class="dashicons dashicons-arrow-down-alt2"></span></a></div>';this.$sidebarContainer.prepend(e),this.searchSidebarListener(),this.addSidebarToggle()},addSidebarToggle:function(){var e=$(document),i=this.$sidebarContainer.find(".widgets-holder-wrap");$("body").on("click",".js-sidebars-toggle",function(t){t.preventDefault();var a=!!$(this).data("toggle");i.toggleClass("closed",!a),a&&i.children(".widgets-sortables").sortable("refresh"),e.triggerHandler("wp-pin-menu")})},searchSidebarListener:function(){var e,i=this,t="";this.$sidebarContainer.on("input",".js-cas-filter",function(a){var s=$(this).val();s!=t&&(t=s,e&&clearTimeout(e),e=setTimeout(function(){$(".widgets-holder-wrap",i.$sidebarContainer).each(function(e,i){var t=$(i);t.find(".sidebar-name :nth-child(2)").text().search(new RegExp(s,"i"))<0?t.fadeOut():t.fadeIn()})},250))})}};$(document).ready(function(){e.init()})}(jQuery);
lib/freemius/includes/class-freemius.php CHANGED
@@ -3061,6 +3061,19 @@
3061
  // Check if Freemius is on for the current plugin.
3062
  // This MUST be executed after all the plugin variables has been loaded.
3063
  if ( ! $this->is_on() ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
3064
  return;
3065
  }
3066
  }
@@ -7596,6 +7609,10 @@
7596
  function pricing_url( $billing_cycle = WP_FS__PERIOD_ANNUALLY, $is_trial = false ) {
7597
  $this->_logger->entrance();
7598
 
 
 
 
 
7599
  $params = array(
7600
  'billing_cycle' => $billing_cycle
7601
  );
@@ -13369,7 +13386,7 @@
13369
  function _add_license_action_link() {
13370
  $this->_logger->entrance();
13371
 
13372
- if ( $this->is_free_plan() && $this->is_addon() ) {
13373
  return;
13374
  }
13375
 
3061
  // Check if Freemius is on for the current plugin.
3062
  // This MUST be executed after all the plugin variables has been loaded.
3063
  if ( ! $this->is_on() ) {
3064
+
3065
+ //Load add-on modals when Freemius is OFF
3066
+ if ( $this->is_user_in_admin() ) {
3067
+ if ( $this->is_plugin() && $this->has_addons() &&
3068
+ 'plugin-information' === fs_request_get( 'tab', false ) &&
3069
+ $this->get_id() == fs_request_get( 'parent_plugin_id', false )
3070
+ ) {
3071
+ require_once WP_FS__DIR_INCLUDES . '/fs-plugin-info-dialog.php';
3072
+
3073
+ new FS_Plugin_Info_Dialog( $this );
3074
+ }
3075
+ }
3076
+
3077
  return;
3078
  }
3079
  }
7609
  function pricing_url( $billing_cycle = WP_FS__PERIOD_ANNUALLY, $is_trial = false ) {
7610
  $this->_logger->entrance();
7611
 
7612
+ if($this->is_addon() && $this->is_only_premium()) {
7613
+ return $this->_parent->addon_url($this->_slug);
7614
+ }
7615
+
7616
  $params = array(
7617
  'billing_cycle' => $billing_cycle
7618
  );
13386
  function _add_license_action_link() {
13387
  $this->_logger->entrance();
13388
 
13389
+ if ( $this->is_free_plan() && !$this->is_only_premium() && $this->is_addon() ) {
13390
  return;
13391
  }
13392
 
lib/freemius/start.php CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @var string
17
  */
18
- $this_sdk_version = '1.2.4.1';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
15
  *
16
  * @var string
17
  */
18
+ $this_sdk_version = '1.2.4.2';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
lib/wp-content-aware-engine/assets/js/condition_groups.js CHANGED
@@ -82,8 +82,9 @@ var CAE = CAE || {};
82
  model = response.conditions[key];
83
  for(var key2 in model.data) {
84
  if(model.data.hasOwnProperty(key2)) {
 
85
  values.push({
86
- text: model.data[key2],
87
  id: key2
88
  });
89
  }
82
  model = response.conditions[key];
83
  for(var key2 in model.data) {
84
  if(model.data.hasOwnProperty(key2)) {
85
+ //TODO: make sure conditions have same schema
86
  values.push({
87
+ text: typeof model.data[key2] === 'object' ? model.data[key2].text : model.data[key2],
88
  id: key2
89
  });
90
  }
lib/wp-content-aware-engine/module/post_type.php CHANGED
@@ -149,7 +149,8 @@ class WPCAModule_post_type extends WPCAModule_Base {
149
  foreach ($posts as $post) {
150
  $pages_sorted[$post->post_parent][] = $post;
151
  }
152
- $this->_walk_tree($pages_sorted,$pages_sorted[0],0,$start,$end,0,$retval);
 
153
  } else {
154
  foreach ($posts as $post) {
155
  $retval[$post->ID] = $this->post_title($post);
@@ -172,7 +173,7 @@ class WPCAModule_post_type extends WPCAModule_Base {
172
  * @param array &$retval
173
  * @return void
174
  */
175
- protected function _walk_tree($all_pages,$pages,$i,$start,$end,$level,&$retval) {
176
  foreach ($pages as $page) {
177
  if ( $i >= $end ) {
178
  break;
149
  foreach ($posts as $post) {
150
  $pages_sorted[$post->post_parent][] = $post;
151
  }
152
+ $i = 0;
153
+ $this->_walk_tree($pages_sorted,$pages_sorted[0],$i,$start,$end,0,$retval);
154
  } else {
155
  foreach ($posts as $post) {
156
  $retval[$post->ID] = $this->post_title($post);
173
  * @param array &$retval
174
  * @return void
175
  */
176
+ protected function _walk_tree($all_pages,$pages,&$i,$start,$end,$level,&$retval) {
177
  foreach ($pages as $page) {
178
  if ( $i >= $end ) {
179
  break;
lib/wp-content-aware-engine/module/taxonomy.php CHANGED
@@ -203,7 +203,8 @@ class WPCAModule_taxonomy extends WPCAModule_Base {
203
  foreach ($terms as $term) {
204
  $sorted_terms[$term->parent][] = $term;
205
  }
206
- $this->_walk_tree($sorted_terms,$sorted_terms[0],0,$start,$end,0,$retval);
 
207
  } else {
208
  //Hierarchical taxonomies use ids instead of slugs
209
  //see http://codex.wordpress.org/Function_Reference/wp_set_post_objects
@@ -231,7 +232,7 @@ class WPCAModule_taxonomy extends WPCAModule_Base {
231
  * @param array &$retval
232
  * @return void
233
  */
234
- protected function _walk_tree($all_terms,$terms,$i,$start,$end,$level,&$retval) {
235
  foreach ($terms as $term) {
236
  if ( $i >= $end ) {
237
  break;
203
  foreach ($terms as $term) {
204
  $sorted_terms[$term->parent][] = $term;
205
  }
206
+ $i = 0;
207
+ $this->_walk_tree($sorted_terms,$sorted_terms[0],$i,$start,$end,0,$retval);
208
  } else {
209
  //Hierarchical taxonomies use ids instead of slugs
210
  //see http://codex.wordpress.org/Function_Reference/wp_set_post_objects
232
  * @param array &$retval
233
  * @return void
234
  */
235
+ protected function _walk_tree($all_terms,$terms,&$i,$start,$end,$level,&$retval) {
236
  foreach ($terms as $term) {
237
  if ( $i >= $end ) {
238
  break;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: custom sidebars, sidebar, hide sidebar, display widgets, widget, bbpress,
5
  Requires at least: 4.1
6
  Requires PHP: 5.2.4
7
  Tested up to: 4.9
8
- Stable tag: 3.7.4
9
  License: GPLv3
10
 
11
  Display widget areas and custom sidebars on any post, page, category etc. Supports bbPress, BuddyPress, WooCommerce, WPML, and more.
@@ -14,7 +14,9 @@ Display widget areas and custom sidebars on any post, page, category etc. Suppor
14
 
15
  **The Fastest and Most Powerful WordPress Sidebar Plugin yet. Create tailored widget areas for any post, page, or custom post type in seconds. No coding required!**
16
 
17
- Content Aware Sidebars is packed with features and is being used to boost on-site SEO, upsell products, and to optimize conversion rates by displaying different sidebars on different conditions.
 
 
18
 
19
  ####Add Unlimited Sidebars and Widget Areas
20
 
@@ -69,20 +71,20 @@ Content Aware Sidebars automatically supports Custom Post Types and Taxonomies c
69
  * [WooCommerce](https://dev.institute/wordpress-sidebars/woocommerce/?utm_source=readme&utm_medium=referral&utm_content=integration&utm_campaign=cas)
70
  * [WPML](https://dev.institute/wordpress-sidebars/multilingual-plugins/?utm_source=readme&utm_medium=referral&utm_content=integration&utm_campaign=cas)
71
 
72
- **Content Aware Sidebars Pro - [Complete control for your custom sidebars](https://dev.institute/wordpress-sidebars/?utm_source=readme&utm_medium=referral&utm_content=title&utm_campaign=cas)**
73
 
74
  ####Highlighted Premium Features
75
 
76
- * **Sidebar Designer:** Add widget columns and edit colors, backgrounds, paddings, etc.
77
- * **Insert Sidebars:** Intelligently insert widget areas in theme hooks without coding
78
  * **Automatic Widgets Backup:** Easily restore any changed or deleted widgets
79
  * **Sidebar Visibility:** Extended visibility for User Roles and Guests
80
  * **Time Schedule**: Display widget areas only in select time ranges on given days
81
- * **Smart Widget:** Use your widget areas as reusable blocks
82
  * **Duplicate Sidebars:** A real time-saver when adding new similar widget areas
83
  * **Disable Any Widget:** Save memory and remove clutter by removing unused widgets
84
- * **Priority Email Support:** Get expert help directly in your inbox
85
- * [and so much more...](https://dev.institute/wordpress-sidebars/features/?utm_source=readme&utm_medium=referral&utm_content=more&utm_campaign=cas)
86
 
87
  ####Extra Sidebar Conditions
88
 
@@ -128,11 +130,17 @@ Yes!
128
 
129
  Many users already mix Content Aware Sidebars with popular page builder plugins such as Elementor, SiteOrigin Page Builder, Beaver Builder, and Visual Composer.
130
 
 
 
 
 
 
 
131
  = Can I really display sidebars and widget areas on any page? =
132
 
133
  Yep.
134
 
135
- In the Sidebar Editor, you can select where, when and to whom your sidebar should be displayed. Create a sidebar for each page, a sidebar for posts in a category, or any sidebar you need, without confusing widget logic code.
136
 
137
  You can also select sidebars directly when you're editing a post or page.
138
 
@@ -161,10 +169,19 @@ Of course! Check out the links below:
161
 
162
  == Changelog ==
163
 
164
- = 3.7.4 =
165
 
166
  [View Release Notes](https://dev.institute/blog/design-insert-widget-areas-content-aware-sidebars-3-7/?utm_source=readme&utm_medium=referral&utm_content=changelog&utm_campaign=cas)
167
 
 
 
 
 
 
 
 
 
 
168
  * Added: UI improvements
169
  * Fixed: some conditions could not be added on legacy php versions
170
  * Updated: wp-content-aware-engine
@@ -225,121 +242,4 @@ Fixed: url condition could in some cases not be set
225
  * Fixed: improved widget sync on theme switch
226
  * Removed: sidebar column in post overview list
227
 
228
- = 3.6.2 =
229
-
230
- * Added: UI improvements
231
- * Added: better support for RTL languages
232
- * Fixed: forced replace action now always takes priority
233
- * Fixed: archives would in rare cases not display correct sidebar if a post was password protected
234
- * Fixed: special characters in translations of conditions
235
- * Fixed: post type conditions with no titles
236
-
237
- **Pro Plan:**
238
-
239
- * Added: changes in sidebar title no longer adds revision
240
- * Fixed: edit links in sidebar admin columns for post types
241
-
242
- = 3.6.1 =
243
-
244
- * Fixed: UI improvements
245
- * Fixed: better plugin compatibility for sidebars quick select
246
-
247
- **Pro Plan:**
248
-
249
- * Fixed: unable to disable widgets
250
- * Fixed: javascript would in rare cases not be loaded correctly in sidebar editor
251
-
252
- = 3.6 =
253
-
254
- * Added: ability to wrap sidebar in html
255
- * Added: ability to change widget html
256
- * Added: danish and german translations now use automatic language packs
257
- * Added: performance and memory improvements
258
- * Added: UI improvements
259
- * Added: wordpress 4.8 support
260
- * Fixed: widget manager could behave unexpectedly in cases with many inactive widget areas
261
- * Fixed: sidebars quick select could cause nested sidebars to be removed from posts
262
- * Fixed: sidebar bulk messages
263
- * Updated: wp-content-aware-engine
264
- * Updated: freemius sdk
265
-
266
- **Pro Plan:**
267
-
268
- * Added: widget to insert widgets from other sidebars
269
- * Added: 1-click automatic install on checkout
270
- * Fixed: avoid auto-draft sidebar adding extra revision
271
-
272
- = 3.5.2 =
273
-
274
- * Added: woocommerce 3.0 compat
275
- * Added: badgeos compat
276
- * Added: UI improvements in widget manager
277
-
278
- = 3.5.1 =
279
-
280
- * Fixed: database upgrade script
281
-
282
- = 3.5 =
283
-
284
- * Added: 1-click sidebar activation
285
- * Added: improved design on widgets screen
286
- * Added: autosave conditions
287
- * Added: simplify option to autoselect conditions
288
- * Added: UI improvements
289
- * Added: minimum requirement wordpress 4.0
290
- * Added: freemius sdk updated
291
- * Added: actions and filters for developers
292
-
293
- **Pro Plan:**
294
-
295
- * Added: duplicate sidebars and conditions
296
- * Added: disable widgets
297
- * Fixed: improved upgrade routine
298
-
299
- = 3.4.3 =
300
-
301
- * Added: preparation for automatic translation packages
302
- * Added: prevent adding duplicate sidebar titles
303
- * Fixed: sidebar quick select would in rare cases not show sidebars
304
- * Fixed: UI improvements
305
-
306
- = 3.4.2 =
307
-
308
- * Added: freemius sdk updated
309
- * Fixed: sidebar editor now works properly in IE browser
310
- * Fixed: UI improvements
311
-
312
- = 3.4.1 =
313
-
314
- * Added: ability to target all buddypress profile sections
315
- * Added: freemius opt-in message made more clear
316
- * Added: links to docs
317
- * Added: wordpress 4.7 support
318
- * Fixed: sidebar order not being saved
319
- * Fixed: "Automatically add new children of a selected ancestor" not working for post types
320
- * Fixed: sidebar edit links on widgets screen
321
-
322
- **Pro Plan:**
323
-
324
- * Fixed: buddypress groups condition not selectable on new sidebars
325
-
326
- = 3.4 =
327
-
328
- * Added: sidebar list and editor screens completely rewritten for performance and extensibility
329
- * Added: ability to schedule sidebar deactivation
330
- * Added: exposure moved to condition groups, now called singulars or archives
331
- * Added: freemius sdk updated
332
- * Added: data update process will no longer be triggered on new installs
333
- * Added: sidebar status now active/inactive instead of publish/draft
334
- * Added: always load latest version of wp-content-aware-engine
335
- * Fixed: sidebar quick select compatibility with other sidebar managers
336
- * Removed: deprecated function display_ca_sidebar (use ca_display_sidebar)
337
-
338
- **Pro Plan:**
339
-
340
- * Added: display sidebars in time ranges on given days
341
- * Fixed: initial widget revision could in some cases be malformed
342
- * Fixed: bug when adding url and date conditions
343
- * Fixed: bug with license activation if user had opted out of freemius
344
-
345
  See changelog.txt for previous changes.
5
  Requires at least: 4.1
6
  Requires PHP: 5.2.4
7
  Tested up to: 4.9
8
+ Stable tag: 3.7.5
9
  License: GPLv3
10
 
11
  Display widget areas and custom sidebars on any post, page, category etc. Supports bbPress, BuddyPress, WooCommerce, WPML, and more.
14
 
15
  **The Fastest and Most Powerful WordPress Sidebar Plugin yet. Create tailored widget areas for any post, page, or custom post type in seconds. No coding required!**
16
 
17
+ Content Aware Sidebars is packed with free features and is being used to boost on-site SEO, upsell products, and to optimize conversion rates by displaying different sidebars on different conditions.
18
+
19
+ Focusing on scalability, this plugin the ideal solution for sites in growth.
20
 
21
  ####Add Unlimited Sidebars and Widget Areas
22
 
71
  * [WooCommerce](https://dev.institute/wordpress-sidebars/woocommerce/?utm_source=readme&utm_medium=referral&utm_content=integration&utm_campaign=cas)
72
  * [WPML](https://dev.institute/wordpress-sidebars/multilingual-plugins/?utm_source=readme&utm_medium=referral&utm_content=integration&utm_campaign=cas)
73
 
74
+ **Content Aware Sidebars Pro - [Complete control for your widget areas](https://dev.institute/wordpress-sidebars/?utm_source=readme&utm_medium=referral&utm_content=title&utm_campaign=cas)**
75
 
76
  ####Highlighted Premium Features
77
 
78
+ * **Design your Widget Areas:** Add widget columns and edit colors, backgrounds, paddings, etc.
79
+ * **Widget Areas in Theme Hooks:** Intelligently insert new widget areas into your theme without coding
80
  * **Automatic Widgets Backup:** Easily restore any changed or deleted widgets
81
  * **Sidebar Visibility:** Extended visibility for User Roles and Guests
82
  * **Time Schedule**: Display widget areas only in select time ranges on given days
83
+ * **Smart Widget:** Turn widget areas into reusable blocks and show the same widgets in different places
84
  * **Duplicate Sidebars:** A real time-saver when adding new similar widget areas
85
  * **Disable Any Widget:** Save memory and remove clutter by removing unused widgets
86
+ * **First-class Email Support:** Get expert help fast and directly to your inbox
87
+ * [and so much more...](https://dev.institute/wordpress-sidebars/pricing/?utm_source=readme&utm_medium=referral&utm_content=more&utm_campaign=cas)
88
 
89
  ####Extra Sidebar Conditions
90
 
130
 
131
  Many users already mix Content Aware Sidebars with popular page builder plugins such as Elementor, SiteOrigin Page Builder, Beaver Builder, and Visual Composer.
132
 
133
+ = Do I need to know widget logic code? =
134
+
135
+ Nope.
136
+
137
+ Content Aware Sidebars is praised by users for its unparalleled sidebar and widget visibility options. It's the only plugin that allows you to display widget areas on literally any condition without any code.
138
+
139
  = Can I really display sidebars and widget areas on any page? =
140
 
141
  Yep.
142
 
143
+ In the Sidebar Editor, you can select where, when and to whom your sidebar should be displayed. Create a sidebar for each page, a sidebar for posts in a category, or any sidebar you need, all in a user-friendly UI.
144
 
145
  You can also select sidebars directly when you're editing a post or page.
146
 
169
 
170
  == Changelog ==
171
 
172
+ = 3.7.5 =
173
 
174
  [View Release Notes](https://dev.institute/blog/design-insert-widget-areas-content-aware-sidebars-3-7/?utm_source=readme&utm_medium=referral&utm_content=changelog&utm_campaign=cas)
175
 
176
+ * Added: UI improvements
177
+ * Added: affiliation program
178
+ * Fixed: some hierarchical sub-items could not be selectable as conditions
179
+ * Fixed: conditions would in some cases not be displayed properly after save
180
+ * Updated: wp-content-aware-engine
181
+ * Updated: freemius sdk
182
+
183
+ = 3.7.4 =
184
+
185
  * Added: UI improvements
186
  * Fixed: some conditions could not be added on legacy php versions
187
  * Updated: wp-content-aware-engine
242
  * Fixed: improved widget sync on theme switch
243
  * Removed: sidebar column in post overview list
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  See changelog.txt for previous changes.
view/meta_box_support.php CHANGED
@@ -15,7 +15,7 @@ $locale = get_locale();
15
  <li><a href="https://dev.institute/docs/content-aware-sidebars/?utm_source=plugin&amp;utm_medium=referral&amp;utm_content=info-box&amp;utm_campaign=cas" target="_blank"><?php _e('Documentation & FAQ','content-aware-sidebars'); ?></a></li>
16
  <!--<li><a href="<?php echo esc_url(cas_fs()->get_upgrade_url()); ?>"><?php _e('Priority Email Support','content-aware-sidebars'); ?></a></li>-->
17
  <li><a href="https://wordpress.org/support/plugin/content-aware-sidebars/" target="_blank"><?php _e('Forum Support','content-aware-sidebars'); ?></a></li>
18
- <?php if($locale != "en_US") : ?>
19
  <li><a href="https://dev.institute/translate-content-aware-sidebars/" target="_blank"><?php _e('Translate plugin &amp; get Pro version','content-aware-sidebars'); ?></a></li>
20
  <?php endif; ?>
21
  </ul>
15
  <li><a href="https://dev.institute/docs/content-aware-sidebars/?utm_source=plugin&amp;utm_medium=referral&amp;utm_content=info-box&amp;utm_campaign=cas" target="_blank"><?php _e('Documentation & FAQ','content-aware-sidebars'); ?></a></li>
16
  <!--<li><a href="<?php echo esc_url(cas_fs()->get_upgrade_url()); ?>"><?php _e('Priority Email Support','content-aware-sidebars'); ?></a></li>-->
17
  <li><a href="https://wordpress.org/support/plugin/content-aware-sidebars/" target="_blank"><?php _e('Forum Support','content-aware-sidebars'); ?></a></li>
18
+ <?php if(stripos($locale, 'en') !== 0) : ?>
19
  <li><a href="https://dev.institute/translate-content-aware-sidebars/" target="_blank"><?php _e('Translate plugin &amp; get Pro version','content-aware-sidebars'); ?></a></li>
20
  <?php endif; ?>
21
  </ul>