Widget Options - Version 3.7.7

Version Description

  • Compatible with Latest WordPress.
  • Fixed deprecated jQuery functions.
  • Fixed Logic option issue.
  • Fixed Mobile restrictions issues.
  • Update plugin page descriptions.
  • Updated admin options page details.
  • Added affiliate URL support via hooks.
Download this release

Release Info

Developer justhyre
Plugin Icon 128x128 Widget Options
Version 3.7.7
Comparing to
See all releases

Code changes from version 3.7.6 to 3.7.7

Files changed (37) hide show
  1. assets/css/widget-options.css +1 -1
  2. assets/js/widgets.js +1 -1
  3. assets/js/widgets.min.js +1 -1
  4. assets/js/wpWidgetOpts.js +4 -3
  5. assets/js/wpWidgetOpts.min.js +1 -1
  6. assets/scss/widget-options.scss +3 -3
  7. includes/admin/import-export.php +4 -2
  8. includes/admin/settings/display-settings.php +2 -1
  9. includes/admin/settings/modules/animation.php +1 -1
  10. includes/admin/settings/modules/cache.php +1 -1
  11. includes/admin/settings/modules/clone.php +1 -1
  12. includes/admin/settings/modules/columns.php +3 -2
  13. includes/admin/settings/modules/dates.php +1 -1
  14. includes/admin/settings/modules/disable_widgets.php +1 -1
  15. includes/admin/settings/modules/fixed.php +1 -1
  16. includes/admin/settings/modules/links.php +1 -1
  17. includes/admin/settings/modules/permission.php +1 -1
  18. includes/admin/settings/modules/roles.php +1 -1
  19. includes/admin/settings/modules/shortcodes.php +1 -1
  20. includes/admin/settings/modules/sidebar-opt_in.php +1 -1
  21. includes/admin/settings/modules/sidebar-support_box.php +5 -5
  22. includes/admin/settings/modules/sidebar-upsell_pro.php +4 -2
  23. includes/admin/settings/modules/sliding.php +1 -1
  24. includes/admin/settings/modules/styling.php +1 -1
  25. includes/admin/settings/modules/taxonomies.php +1 -1
  26. includes/admin/settings/modules/urls.php +1 -1
  27. includes/admin/welcome.php +1 -1
  28. includes/install.php +2 -1
  29. includes/pagebuilders/beaver/beaver.php +9 -4
  30. includes/pagebuilders/elementor/elementor.php +2 -1
  31. includes/pagebuilders/elementor/render.php +8 -3
  32. includes/pagebuilders/siteorigin.php +9 -4
  33. includes/widgets/display.php +8 -3
  34. includes/widgets/option-tabs/alignment.php +2 -1
  35. includes/widgets/option-tabs/upsell.php +1 -1
  36. plugin.php +7 -2
  37. readme.txt +11 -2
assets/css/widget-options.css CHANGED
@@ -1 +1 @@
1
- body .extendedwopts-show{display:none}body .widgetopts-hide_title .widget-title{display:none}body .extendedwopts-md-right{text-align:right}body .extendedwopts-md-left{text-align:left}body .extendedwopts-md-center{text-align:center}body .extendedwopts-md-justify{text-align:justify}@media screen and (min-width: 769px){body .extendedwopts-hide.extendedwopts-desktop{display:none}body .extendedwopts-show.extendedwopts-desktop{display:block}body .widget.clearfix-desktop{clear:both}}@media screen and (max-width: 768px) and (min-width: 737px){body .extendedwopts-hide.extendedwopts-tablet{display:none}body .extendedwopts-show.extendedwopts-tablet{display:block}body .widget.clearfix-desktop{clear:none}body .widget.clearfix-tablet{clear:both}}@media screen and (max-width: 736px){body .extendedwopts-hide.extendedwopts-mobile{display:none}body .extendedwopts-show.extendedwopts-mobile{display:block}body .widget.clearfix-desktop,body .widget.clearfix-tablet{clear:none}body .widget.clearfix-mobile{clear:both}}
1
+ body .extendedwopts-show{display:none}body .widgetopts-hide_title .widget-title{display:none}body .extendedwopts-md-right{text-align:right}body .extendedwopts-md-left{text-align:left}body .extendedwopts-md-center{text-align:center}body .extendedwopts-md-justify{text-align:justify}@media screen and (min-width: 769px){body .extendedwopts-hide.extendedwopts-desktop{display:none !important;}body .extendedwopts-show.extendedwopts-desktop{display:block}body .widget.clearfix-desktop{clear:both}}@media screen and (max-width: 768px) and (min-width: 737px){body .extendedwopts-hide.extendedwopts-tablet{display:none !important;}body .extendedwopts-show.extendedwopts-tablet{display:block}body .widget.clearfix-desktop{clear:none}body .widget.clearfix-tablet{clear:both}}@media screen and (max-width: 736px){body .extendedwopts-hide.extendedwopts-mobile{display:none !important;}body .extendedwopts-show.extendedwopts-mobile{display:block}body .widget.clearfix-desktop,body .widget.clearfix-tablet{clear:none}body .widget.clearfix-mobile{clear:both}}
assets/js/widgets.js CHANGED
@@ -61,7 +61,7 @@
61
  }
62
 
63
  //add live filter
64
- if ( typeof $.fn.liveFilter !== 'undefined' && $.isFunction( $.fn.liveFilter ) && $( '#widgetopts-widgets-search' ).length > 0 ) {
65
  // Add separator to distinguish between visible and hidden widgets
66
  $('.widget:last-of-type').after('<div class="widgetopts-separator" />');
67
 
61
  }
62
 
63
  //add live filter
64
+ if ( typeof $.fn.liveFilter !== 'undefined' && $( '#widgetopts-widgets-search' ).length > 0 ) {
65
  // Add separator to distinguish between visible and hidden widgets
66
  $('.widget:last-of-type').after('<div class="widgetopts-separator" />');
67
 
assets/js/widgets.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e,i,d){function n(e,i){selected=0,selected_visibility=0,selected_settings=0,in_customizer=!1,"undefined"!=typeof wp&&(in_customizer=void 0!==wp.customize),""!=e&&(t("#"+e.attr("id")).find("#extended-widget-opts-selectedtab").length>0&&(selected=t("#"+e.attr("id")).find("#extended-widget-opts-selectedtab").val(),selected=parseInt(selected)),t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").length>0&&(selected_visibility=t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").val(),selected_visibility=parseInt(selected_visibility)),t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").length>0&&(selected_settings=t("#"+e.attr("id")).find("#extended-widget-opts-settings-selectedtab").val(),selected_settings=parseInt(selected_settings))),"added"==i&&(selected=0,selected_visibility=0,selected_settings=0),""!=e?(t("#"+e.attr("id")).find(".extended-widget-opts-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-tabs").tabs({active:selected}),t("#"+e.attr("id")).find(".extended-widget-opts-visibility-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-visibility-tabs").tabs({active:selected_visibility}),t("#"+e.attr("id")).find(".extended-widget-opts-settings-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-settings-tabs").tabs({active:selected_settings})):(t(".extended-widget-opts-tabs").tabs({active:selected}),t(".extended-widget-opts-visibility-tabs").tabs({active:selected_visibility}),t(".extended-widget-opts-settings-tabs").tabs({active:selected_settings})),t(".extended-widget-opts-tabs").click("tabsselect",function(e,i){t(this).find("#extended-widget-opts-selectedtab").length>0&&t(this).find("#extended-widget-opts-selectedtab").val(t(this).tabs("option","active"))}),t(".extended-widget-opts-visibility-tabs").click("tabsselect",function(e,i){t(this).find("#extended-widget-opts-visibility-selectedtab").length>0&&t(this).find("#extended-widget-opts-visibility-selectedtab").val(t(this).tabs("option","active"))}),t(".extended-widget-opts-settings-tabs").click("tabsselect",function(e,i){t(this).find("#extended-widget-opts-settings-selectedtab").length>0&&t(this).find("#extended-widget-opts-settings-selectedtab").val(t(this).tabs("option","active"))})}t(".extended-widget-opts-tabs").length>0&&n("","loaded"),t(i).ready(function(){t(".widget-liquid-right .widget, .inactive-sidebar .widget, #accordion-panel-widgets .customize-control-widget_form").each(function(t,e){n("","loaded")}),t(i).on("widget-added",function(t,e){n(e,"added")}),t(i).on("widget-updated",function(t,e){n(e,"updated")}),t(i).on("click",".extended-widget-opts-inner-lists h4",function(){getid=t(this).attr("id"),t(".extended-widget-opts-inner-lists ."+getid).slideToggle(250)}),t(i).on("click",".widget-opts-toggler-note",function(e){t(this).parent("p").parent(".widget-opts-logic").find(".widget-opts-toggle-note").slideToggle(250),e.preventDefault(),e.stopPropagation()}),t(i).on("click",".opts-add-class-btn",function(e){getVal=t(".opts-add-class-txtfld").val();var i="extwopts_class_settings[classlists][]";t(this).hasClass("widgetopts-add-class-btn")&&(i="classes[classlists][]"),getVal.length>0&&(t("#opts-predefined-classes ul").append('<li><input type="hidden" name="'+i+'" value="'+getVal+'" /><span class"opts-li-value">'+getVal+'</span> <a href="#" class="opts-remove-class-btn"><span class="dashicons dashicons-dismiss"></span></a></li>'),t(".opts-add-class-txtfld").val("")),e.preventDefault(),e.stopPropagation()}),t(i).on("click",".opts-remove-class-btn",function(e){t(this).parent("li").fadeOut("fast",function(){t(this).remove()}),e.preventDefault(),e.stopPropagation()}),t(".wp-admin.widgets-php .wrap a.page-title-action").length>0&&t(".wp-admin.widgets-php .wrap a.page-title-action").after('<a href="'+widgetopts10n.opts_page+'" class="page-title-action hide-if-no-customize">'+widgetopts10n.translation.manage_settings+"</a>"),void 0!==t.fn.liveFilter&&t.isFunction(t.fn.liveFilter)&&t("#widgetopts-widgets-search").length>0&&(t(".widget:last-of-type").after('<div class="widgetopts-separator" />'),t("#widgets-left .widget").each(function(){var e=t(this).index()+1;t(this).attr("data-widget-index",e)}),t("#widgets-left").liveFilter("#widgetopts-widgets-search",".widget",{filterChildSelector:".widget-title h4, .widget-title h3",after:function(e,i){i.each(function(){t(this).insertAfter(t(this).parent().find(".widgetopts-separator"))}),e.sort(function(t,e){return t.getAttribute("data-widget-index")-e.getAttribute("data-widget-index")}),e.each(function(){t(this).insertBefore(t(this).parent().find(".widgetopts-separator"))})}}),t("#wpbody-content").on("keyup",".widgetopts-widgets-search",function(e){p=t(this).parent().find(".widgetopts-clear-results"),""!==t(this).val()?p.addClass("widgetopts-is-visible"):p.removeClass("widgetopts-is-visible")}),t("#wpbody-content").on("click",".widgetopts-clear-results",function(e){return s=t(this).parent().find(".widgetopts-widgets-search"),s.val("").focus().trigger("keyup"),"widgetopts-search-chooser"==s.attr("id")&&t(".widgets-chooser-sidebars li:not(:first)").removeClass("widgets-chooser-selected"),e.preventDefault(),e.stopPropagation(),!1}),t(".widgets-chooser").prepend(widgetopts10n.search_form),t(".widgets-chooser").liveFilter("#widgetopts-search-chooser",".widgets-chooser-sidebars li",{after:function(e,i){i.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgets-chooser-selected")}}))})}(jQuery,window,document);
1
+ !function(t,e,i){function d(e,i){selected=0,selected_visibility=0,selected_settings=0,in_customizer=!1,"undefined"!=typeof wp&&(in_customizer="undefined"!=typeof wp.customize),""!=e&&(t("#"+e.attr("id")).find("#extended-widget-opts-selectedtab").length>0&&(selected=t("#"+e.attr("id")).find("#extended-widget-opts-selectedtab").val(),selected=parseInt(selected)),t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").length>0&&(selected_visibility=t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").val(),selected_visibility=parseInt(selected_visibility)),t("#"+e.attr("id")).find("#extended-widget-opts-visibility-selectedtab").length>0&&(selected_settings=t("#"+e.attr("id")).find("#extended-widget-opts-settings-selectedtab").val(),selected_settings=parseInt(selected_settings))),"added"==i&&(selected=0,selected_visibility=0,selected_settings=0),""!=e?(t("#"+e.attr("id")).find(".extended-widget-opts-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-tabs").tabs({active:selected}),t("#"+e.attr("id")).find(".extended-widget-opts-visibility-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-visibility-tabs").tabs({active:selected_visibility}),t("#"+e.attr("id")).find(".extended-widget-opts-settings-tabs").length>0&&t("#"+e.attr("id")).find(".extended-widget-opts-settings-tabs").tabs({active:selected_settings})):(t(".extended-widget-opts-tabs").tabs({active:selected}),t(".extended-widget-opts-visibility-tabs").tabs({active:selected_visibility}),t(".extended-widget-opts-settings-tabs").tabs({active:selected_settings})),t(".extended-widget-opts-tabs").click("tabsselect",function(){t(this).find("#extended-widget-opts-selectedtab").length>0&&t(this).find("#extended-widget-opts-selectedtab").val(t(this).tabs("option","active"))}),t(".extended-widget-opts-visibility-tabs").click("tabsselect",function(){t(this).find("#extended-widget-opts-visibility-selectedtab").length>0&&t(this).find("#extended-widget-opts-visibility-selectedtab").val(t(this).tabs("option","active"))}),t(".extended-widget-opts-settings-tabs").click("tabsselect",function(){t(this).find("#extended-widget-opts-settings-selectedtab").length>0&&t(this).find("#extended-widget-opts-settings-selectedtab").val(t(this).tabs("option","active"))})}t(".extended-widget-opts-tabs").length>0&&d("","loaded"),t(i).ready(function(){t(".widget-liquid-right .widget, .inactive-sidebar .widget, #accordion-panel-widgets .customize-control-widget_form").each(function(){d("","loaded")}),t(i).on("widget-added",function(t,e){d(e,"added")}),t(i).on("widget-updated",function(t,e){d(e,"updated")}),t(i).on("click",".extended-widget-opts-inner-lists h4",function(){getid=t(this).attr("id"),t(".extended-widget-opts-inner-lists ."+getid).slideToggle(250)}),t(i).on("click",".widget-opts-toggler-note",function(e){t(this).parent("p").parent(".widget-opts-logic").find(".widget-opts-toggle-note").slideToggle(250),e.preventDefault(),e.stopPropagation()}),t(i).on("click",".opts-add-class-btn",function(e){getVal=t(".opts-add-class-txtfld").val();var i="extwopts_class_settings[classlists][]";t(this).hasClass("widgetopts-add-class-btn")&&(i="classes[classlists][]"),getVal.length>0&&(t("#opts-predefined-classes ul").append('<li><input type="hidden" name="'+i+'" value="'+getVal+'" /><span class"opts-li-value">'+getVal+'</span> <a href="#" class="opts-remove-class-btn"><span class="dashicons dashicons-dismiss"></span></a></li>'),t(".opts-add-class-txtfld").val("")),e.preventDefault(),e.stopPropagation()}),t(i).on("click",".opts-remove-class-btn",function(e){t(this).parent("li").fadeOut("fast",function(){t(this).remove()}),e.preventDefault(),e.stopPropagation()}),t(".wp-admin.widgets-php .wrap a.page-title-action").length>0&&t(".wp-admin.widgets-php .wrap a.page-title-action").after('<a href="'+widgetopts10n.opts_page+'" class="page-title-action hide-if-no-customize">'+widgetopts10n.translation.manage_settings+"</a>"),"undefined"!=typeof t.fn.liveFilter&&t("#widgetopts-widgets-search").length>0&&(t(".widget:last-of-type").after('<div class="widgetopts-separator" />'),t("#widgets-left .widget").each(function(){var e=t(this).index()+1;t(this).attr("data-widget-index",e)}),t("#widgets-left").liveFilter("#widgetopts-widgets-search",".widget",{filterChildSelector:".widget-title h4, .widget-title h3",after:function(e,i){i.each(function(){t(this).insertAfter(t(this).parent().find(".widgetopts-separator"))}),e.sort(function(t,e){return t.getAttribute("data-widget-index")-e.getAttribute("data-widget-index")}),e.each(function(){t(this).insertBefore(t(this).parent().find(".widgetopts-separator"))})}}),t("#wpbody-content").on("keyup",".widgetopts-widgets-search",function(){p=t(this).parent().find(".widgetopts-clear-results"),""!==t(this).val()?p.addClass("widgetopts-is-visible"):p.removeClass("widgetopts-is-visible")}),t("#wpbody-content").on("click",".widgetopts-clear-results",function(e){return s=t(this).parent().find(".widgetopts-widgets-search"),s.val("").focus().trigger("keyup"),"widgetopts-search-chooser"==s.attr("id")&&t(".widgets-chooser-sidebars li:not(:first)").removeClass("widgets-chooser-selected"),e.preventDefault(),e.stopPropagation(),!1}),t(".widgets-chooser").prepend(widgetopts10n.search_form),t(".widgets-chooser").liveFilter("#widgetopts-search-chooser",".widgets-chooser-sidebars li",{after:function(e,i){i.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgets-chooser-selected")}}))})}(jQuery,window,document);
assets/js/wpWidgetOpts.js CHANGED
@@ -172,7 +172,7 @@ wpWidgetOpts = {
172
  });
173
  },
174
  live_search : function(){
175
- if ( typeof $.fn.liveFilter !== 'undefined' && $.isFunction( $.fn.liveFilter ) && $( '#widgetopts-widgets-search' ).length > 0 ) {
176
  // Add separator to distinguish between visible and hidden widgets
177
  $('.widget:last-of-type').after('<div class="widgetopts-separator" />');
178
 
@@ -260,7 +260,7 @@ wpWidgetOpts = {
260
  var $element = $( element ),
261
  name = $element.find( '.sidebar-name h2' ).text(),
262
  id = $element.find( '.widgets-sortables' ).attr( 'id' ),
263
- li = $('<li tabindex="0">').text( $.trim( name ) );
264
 
265
  if ( index === 0 ) {
266
  li.addClass( 'widgetopts-chooser-selected' );
@@ -375,8 +375,9 @@ wpWidgetOpts = {
375
  var self = this;
376
  if( widgetopts10n.sidebaropts.length > 0 ){
377
  $( '#widgets-right .widgets-holder-wrap' ).each( function( index, element ) {
 
378
  dl_link = widgetopts10n.sidebaropts.replace( '__sidebaropts__', $(this).find('.widgets-sortables').attr('id') );
379
- dl_link = dl_link.replace( '__sidebar_opts__', $.trim( $(this).find('.widgets-sortables h2').text() ) );
380
  $(this).append( dl_link );
381
  });
382
  }
172
  });
173
  },
174
  live_search : function(){
175
+ if ( typeof $.fn.liveFilter !== 'undefined' && $( '#widgetopts-widgets-search' ).length > 0 ) {
176
  // Add separator to distinguish between visible and hidden widgets
177
  $('.widget:last-of-type').after('<div class="widgetopts-separator" />');
178
 
260
  var $element = $( element ),
261
  name = $element.find( '.sidebar-name h2' ).text(),
262
  id = $element.find( '.widgets-sortables' ).attr( 'id' ),
263
+ li = $('<li tabindex="0">').text(name.trim());
264
 
265
  if ( index === 0 ) {
266
  li.addClass( 'widgetopts-chooser-selected' );
375
  var self = this;
376
  if( widgetopts10n.sidebaropts.length > 0 ){
377
  $( '#widgets-right .widgets-holder-wrap' ).each( function( index, element ) {
378
+ var sidebar_opts_h2 = $(this).find('.widgets-sortables h2').text();
379
  dl_link = widgetopts10n.sidebaropts.replace( '__sidebaropts__', $(this).find('.widgets-sortables').attr('id') );
380
+ dl_link = dl_link.replace( '__sidebar_opts__', sidebar_opts_h2.trim() );
381
  $(this).append( dl_link );
382
  });
383
  }
assets/js/wpWidgetOpts.min.js CHANGED
@@ -1 +1 @@
1
- var wpWidgetOpts;!function(t){var e=t(document);wpWidgetOpts={hoveredSidebar:null,init:function(){var i=this,s=t(".wp-admin.widgets-php .wrap a.page-title-action"),o=t(".extended-widget-opts-tabs"),d=t(".widgetsopts-chooser"),n=d.find(".widgetopts-chooser-sidebars");o.length>0&&i.loaded("","loaded"),t(".widget-liquid-right .widget, .inactive-sidebar .widget, #accordion-panel-widgets .customize-control-widget_form").each(function(t,e){i.loaded("","loaded")}),e.on("widget-added",function(t,e){i.loaded(e,"added")}),e.on("widget-updated",function(t,e){i.loaded(e,"updated")}),e.on("click",".extended-widget-opts-inner-lists h4",function(){var e=t(this).attr("id");t(".extended-widget-opts-inner-lists ."+e).slideToggle(250)}),e.on("click",".widget-opts-toggler-note",function(e){t(this).parent("p").parent(".widget-opts-logic").find(".widget-opts-toggle-note").slideToggle(250),e.preventDefault(),e.stopPropagation()}),s.length>0&&s.after('<a href="'+widgetopts10n.opts_page+'" class="page-title-action hide-if-no-customize">'+widgetopts10n.translation.manage_settings+"</a>"),i.live_search(),t(".widget-control-actions .alignleft .widget-control-remove").after(widgetopts10n.controls),i.do_chooser(d,n),i.sidebarOptions(),i.removeSidebarWidgets()},loaded:function(e,i){var s,o=0,d=0,n=0,a=0,r=".extended-widget-opts-tabs",c=".extended-widget-opts-visibility-m-tabs",l=".extended-widget-opts-visibility-tabs",p=".extended-widget-opts-settings-tabs",g="#extended-widget-opts-selectedtab",h="#extended-widget-opts-visibility-m-selectedtab",w="#extended-widget-opts-visibility-selectedtab",f="#extended-widget-opts-settings-selectedtab";"undefined"!=typeof wp&&wp.customize,""!=e&&(s="#"+e.attr("id"),t(s).find(g).length>0&&(o=t("#"+e.attr("id")).find(g).val(),o=parseInt(o)),t(s).find(w).length>0&&(n=t("#"+e.attr("id")).find(w).val(),n=parseInt(n)),t(s).find(h).length>0&&(d=t("#"+e.attr("id")).find(h).val(),d=parseInt(d)),t(s).find(f).length>0&&(a=t("#"+e.attr("id")).find(f).val(),a=parseInt(a))),"added"==i&&(o=0,d=0,n=0,a=0),""!=e?(t(s).find(r).length>0&&t(s).find(r).tabs({active:o}),t(s).find(c).length>0&&t(s).find(c).tabs({active:d}),t(s).find(l).length>0&&t(s).find(l).tabs({active:n}),t(s).find(p).length>0&&t(s).find(p).tabs({active:a})):(t(r).tabs({active:o}),t(".extended-widget-opts-styling-tabs").tabs({active:0}),t(c).tabs({active:d}),t(l).tabs({active:n}),t(p).tabs({active:a})),t(r).click("tabsselect",function(e,i){t(this).find(g).length>0&&t(this).find(g).val(t(this).tabs("option","active"))}),t(l).click("tabsselect",function(e,i){t(this).find(w).length>0&&t(this).find(w).val(t(this).tabs("option","active"))}),t(c).click("tabsselect",function(e,i){t(this).find(h).length>0&&t(this).find(h).val(t(this).tabs("option","active"))}),t(p).click("tabsselect",function(e,i){t(this).find(f).length>0&&t(this).find(f).val(t(this).tabs("option","active"))})},live_search:function(){void 0!==t.fn.liveFilter&&t.isFunction(t.fn.liveFilter)&&t("#widgetopts-widgets-search").length>0&&(t(".widget:last-of-type").after('<div class="widgetopts-separator" />'),t("#widgets-left .widget").each(function(){var e=t(this).index()+1;t(this).attr("data-widget-index",e)}),t("#widgets-left").liveFilter("#widgetopts-widgets-search",".widget",{filterChildSelector:".widget-title h4, .widget-title h3",after:function(e,i){i.each(function(){t(this).insertAfter(t(this).parent().find(".widgetopts-separator"))}),e.sort(function(t,e){return t.getAttribute("data-widget-index")-e.getAttribute("data-widget-index")}),e.each(function(){t(this).insertBefore(t(this).parent().find(".widgetopts-separator"))})}}),t("#wpbody-content").on("keyup",".widgetopts-widgets-search",function(e){p=t(this).parent().find(".widgetopts-clear-results"),""!==t(this).val()?p.addClass("widgetopts-is-visible"):p.removeClass("widgetopts-is-visible")}),t("#wpbody-content").on("click",".widgetopts-clear-results",function(e){return s=t(this).parent().find(".widgetopts-widgets-search"),s.val("").focus().trigger("keyup"),"widgetopts-search-chooser"==s.attr("id")?t(".widgets-chooser-sidebars li:not(:first)").removeClass("widgets-chooser-selected"):s.hasClass("widgetsopts-widgets-search")&&t(".widgetopts-chooser-sidebars li:not(:first)").removeClass("widgetopts-chooser-selected"),e.preventDefault(),e.stopPropagation(),!1}),t(".widgets-chooser").prepend(widgetopts10n.search_form),t(".widgets-chooser").liveFilter("#widgetopts-search-chooser",".widgets-chooser-sidebars li",{after:function(e,i){i.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgets-chooser-selected")}}))},do_chooser:function(i,s){var o=this;t("#widgets-right .widgets-holder-wrap").each(function(e,i){var o=t(i),d=o.find(".sidebar-name h2").text(),n=o.find(".widgets-sortables").attr("id"),a=t('<li tabindex="0">').text(t.trim(d));0===e&&a.addClass("widgetopts-chooser-selected"),s.append(a),a.attr("data-sidebarId",n)}),e.on("click",".widgetopts-control",function(e){var d=t(this).text(),n=t(this).attr("data-action");t(this).hasClass("widgetopts-control-open")?(o.closeChooser(),t(".widgetopts-control-open").removeClass("widgetopts-control-open")):(i.find(".widgetopts-chooser-action span").text(d),i.find(".widgetopts-chooser-action").attr("data-action",n),t(this).parents(".widget-control-actions").find(".clear").after(i),i.slideDown(300,function(){s.find(".widgets-chooser-selected").focus()}),t(".widgetopts-control-open").removeClass("widgetopts-control-open"),t(this).addClass("widgetopts-control-open"),o.chooserSearch()),e.preventDefault()}),e.on("click",".widgetopts-chooser-sidebars li",function(e){s.find(".widgetopts-chooser-selected").removeClass("widgetopts-chooser-selected"),t(this).addClass("widgetopts-chooser-selected")}),e.on("click",".widgetsopts-chooser .widgetopts-chooser-action",function(e){var i=t("html,body"),s=t(this).attr("data-action"),o=t(this).parents(".widgets-sortables").attr("id"),d=t(this).parents(".widget").attr("id"),n=t("#"+d);switch(sidebarID=t(".widgetopts-chooser-selected").attr("data-sidebarId"),t("#"+d+" .widgetsopts-chooser").remove(),n.find(" .widgetopts-control-open").removeClass("widgetopts-control-open"),s){case"move":t("#"+o).find("#"+d).appendTo("#"+sidebarID),t("#"+sidebarID).sortable("refresh"),n.addClass("widgetopts-move-ds"),t("#"+sidebarID).parent(".widgets-holder-wrap").removeClass("closed"),wpWidgets.save(t("#"+d),0,0,1)}var a=t(".widgetopts-move-ds");i.animate({scrollTop:a.offset().top-(i.offset().top+i.scrollTop()+60)},200),t(".widgetopts-move-ds").removeClass(".widgetopts-move-ds"),e.preventDefault()}),e.on("click",".widgetsopts-chooser .widgetsopts-chooser-cancel",function(t){o.closeChooser(i),t.preventDefault()})},closeChooser:function(e){t(".widgetsopts-chooser").slideUp(200,function(){t(".widgetopts-control").removeClass("widgetopts-control-open"),t("#wpbody-content").append(this)})},chooserSearch:function(){t("#widgetsopts-widgets-search").length>0&&t(".widgetsopts-chooser").liveFilter("#widgetsopts-widgets-search",".widgetopts-chooser-sidebars li",{after:function(e,i){i.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgetopts-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgetopts-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgetopts-chooser-selected")}})},sidebarOptions:function(){widgetopts10n.sidebaropts.length>0&&t("#widgets-right .widgets-holder-wrap").each(function(e,i){dl_link=widgetopts10n.sidebaropts.replace("__sidebaropts__",t(this).find(".widgets-sortables").attr("id")),dl_link=dl_link.replace("__sidebar_opts__",t.trim(t(this).find(".widgets-sortables h2").text())),t(this).append(dl_link)})},removeSidebarWidgets:function(){var i=t("html,body");e.on("click",".sidebaropts-clear",function(e){t(this).parent().find(".sidebaropts-confirm").addClass("sidebaropts-confirmed"),t(this).parent().find(".sidebaropts-confirm").slideToggle(250),e.preventDefault()}),e.on("click",".sidebaropts-confirmed .button",function(e){if(sidebar_id=t(this).parent().parent().parent().find(".widgets-sortables"),t(this).hasClass("button-primary")){var s=sidebar_id;t(this).parent().slideToggle(50),i.animate({scrollTop:s.offset().top-50},200),sidebar_id.find(".widget").each(function(e,i){t(i).fadeOut(),wpWidgets.save(t(i),1,1,0)})}else t(this).parent().slideToggle(250);e.preventDefault()})}},e.ready(function(){wpWidgetOpts.init()})}(jQuery);
1
+ var wpWidgetOpts;!function(t){var e=t(document);wpWidgetOpts={hoveredSidebar:null,init:function(){var s=this,i=t(".wp-admin.widgets-php .wrap a.page-title-action"),o=t(".extended-widget-opts-tabs"),d=t(".widgetsopts-chooser"),n=d.find(".widgetopts-chooser-sidebars");o.length>0&&s.loaded("","loaded"),t(".widget-liquid-right .widget, .inactive-sidebar .widget, #accordion-panel-widgets .customize-control-widget_form").each(function(){s.loaded("","loaded")}),e.on("widget-added",function(t,e){s.loaded(e,"added")}),e.on("widget-updated",function(t,e){s.loaded(e,"updated")}),e.on("click",".extended-widget-opts-inner-lists h4",function(){var e=t(this).attr("id");t(".extended-widget-opts-inner-lists ."+e).slideToggle(250)}),e.on("click",".widget-opts-toggler-note",function(e){t(this).parent("p").parent(".widget-opts-logic").find(".widget-opts-toggle-note").slideToggle(250),e.preventDefault(),e.stopPropagation()}),i.length>0&&i.after('<a href="'+widgetopts10n.opts_page+'" class="page-title-action hide-if-no-customize">'+widgetopts10n.translation.manage_settings+"</a>"),s.live_search(),t(".widget-control-actions .alignleft .widget-control-remove").after(widgetopts10n.controls),s.do_chooser(d,n),s.sidebarOptions(),s.removeSidebarWidgets()},loaded:function(e,s){var i,o=0,d=0,n=0,a=0,r=0,c=!1,l=".extended-widget-opts-tabs",p=".extended-widget-opts-styling-tabs",g=".extended-widget-opts-visibility-m-tabs",h=".extended-widget-opts-visibility-tabs",w=".extended-widget-opts-settings-tabs",f="#extended-widget-opts-selectedtab",v="#extended-widget-opts-visibility-m-selectedtab",b="#extended-widget-opts-visibility-selectedtab",u="#extended-widget-opts-settings-selectedtab";"undefined"!=typeof wp&&(c="undefined"!=typeof wp.customize),""!=e&&(i="#"+e.attr("id"),t(i).find(f).length>0&&(o=t("#"+e.attr("id")).find(f).val(),o=parseInt(o)),t(i).find(b).length>0&&(a=t("#"+e.attr("id")).find(b).val(),a=parseInt(a)),t(i).find(v).length>0&&(n=t("#"+e.attr("id")).find(v).val(),n=parseInt(n)),t(i).find(u).length>0&&(r=t("#"+e.attr("id")).find(u).val(),r=parseInt(r))),"added"==s&&(o=0,n=0,a=0,r=0),""!=e?(t(i).find(l).length>0&&t(i).find(l).tabs({active:o}),t(i).find(g).length>0&&t(i).find(g).tabs({active:n}),t(i).find(h).length>0&&t(i).find(h).tabs({active:a}),t(i).find(w).length>0&&t(i).find(w).tabs({active:r})):(t(l).tabs({active:o}),t(p).tabs({active:d}),t(g).tabs({active:n}),t(h).tabs({active:a}),t(w).tabs({active:r})),t(l).click("tabsselect",function(){t(this).find(f).length>0&&t(this).find(f).val(t(this).tabs("option","active"))}),t(h).click("tabsselect",function(){t(this).find(b).length>0&&t(this).find(b).val(t(this).tabs("option","active"))}),t(g).click("tabsselect",function(){t(this).find(v).length>0&&t(this).find(v).val(t(this).tabs("option","active"))}),t(w).click("tabsselect",function(){t(this).find(u).length>0&&t(this).find(u).val(t(this).tabs("option","active"))})},live_search:function(){"undefined"!=typeof t.fn.liveFilter&&t("#widgetopts-widgets-search").length>0&&(t(".widget:last-of-type").after('<div class="widgetopts-separator" />'),t("#widgets-left .widget").each(function(){var e=t(this).index()+1;t(this).attr("data-widget-index",e)}),t("#widgets-left").liveFilter("#widgetopts-widgets-search",".widget",{filterChildSelector:".widget-title h4, .widget-title h3",after:function(e,s){s.each(function(){t(this).insertAfter(t(this).parent().find(".widgetopts-separator"))}),e.sort(function(t,e){return t.getAttribute("data-widget-index")-e.getAttribute("data-widget-index")}),e.each(function(){t(this).insertBefore(t(this).parent().find(".widgetopts-separator"))})}}),t("#wpbody-content").on("keyup",".widgetopts-widgets-search",function(){p=t(this).parent().find(".widgetopts-clear-results"),""!==t(this).val()?p.addClass("widgetopts-is-visible"):p.removeClass("widgetopts-is-visible")}),t("#wpbody-content").on("click",".widgetopts-clear-results",function(e){return s=t(this).parent().find(".widgetopts-widgets-search"),s.val("").focus().trigger("keyup"),"widgetopts-search-chooser"==s.attr("id")?t(".widgets-chooser-sidebars li:not(:first)").removeClass("widgets-chooser-selected"):s.hasClass("widgetsopts-widgets-search")&&t(".widgetopts-chooser-sidebars li:not(:first)").removeClass("widgetopts-chooser-selected"),e.preventDefault(),e.stopPropagation(),!1}),t(".widgets-chooser").prepend(widgetopts10n.search_form),t(".widgets-chooser").liveFilter("#widgetopts-search-chooser",".widgets-chooser-sidebars li",{after:function(e,s){s.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgets-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgets-chooser-selected")}}))},do_chooser:function(s,i){var o=this;t("#widgets-right .widgets-holder-wrap").each(function(e,s){var o=t(s),d=o.find(".sidebar-name h2").text(),n=o.find(".widgets-sortables").attr("id"),a=t('<li tabindex="0">').text(d.trim());0===e&&a.addClass("widgetopts-chooser-selected"),i.append(a),a.attr("data-sidebarId",n)}),e.on("click",".widgetopts-control",function(e){var d=t(this).text(),n=t(this).attr("data-action");t(this).hasClass("widgetopts-control-open")?(o.closeChooser(),t(".widgetopts-control-open").removeClass("widgetopts-control-open")):(s.find(".widgetopts-chooser-action span").text(d),s.find(".widgetopts-chooser-action").attr("data-action",n),t(this).parents(".widget-control-actions").find(".clear").after(s),s.slideDown(300,function(){i.find(".widgets-chooser-selected").focus()}),t(".widgetopts-control-open").removeClass("widgetopts-control-open"),t(this).addClass("widgetopts-control-open"),o.chooserSearch()),e.preventDefault()}),e.on("click",".widgetopts-chooser-sidebars li",function(){i.find(".widgetopts-chooser-selected").removeClass("widgetopts-chooser-selected"),t(this).addClass("widgetopts-chooser-selected")}),e.on("click",".widgetsopts-chooser .widgetopts-chooser-action",function(e){var s=t("html,body"),i=t(this).attr("data-action"),o=t(this).parents(".widgets-sortables").attr("id"),d=t(this).parents(".widget").attr("id"),n=t("#"+d);switch(sidebarID=t(".widgetopts-chooser-selected").attr("data-sidebarId"),t("#"+d+" .widgetsopts-chooser").remove(),n.find(" .widgetopts-control-open").removeClass("widgetopts-control-open"),i){case"move":t("#"+o).find("#"+d).appendTo("#"+sidebarID),t("#"+sidebarID).sortable("refresh"),n.addClass("widgetopts-move-ds"),t("#"+sidebarID).parent(".widgets-holder-wrap").removeClass("closed"),wpWidgets.save(t("#"+d),0,0,1)}var a=t(".widgetopts-move-ds");s.animate({scrollTop:a.offset().top-(s.offset().top+s.scrollTop()+60)},200),t(".widgetopts-move-ds").removeClass(".widgetopts-move-ds"),e.preventDefault()}),e.on("click",".widgetsopts-chooser .widgetsopts-chooser-cancel",function(t){o.closeChooser(s),t.preventDefault()})},closeChooser:function(){t(".widgetsopts-chooser").slideUp(200,function(){t(".widgetopts-control").removeClass("widgetopts-control-open"),t("#wpbody-content").append(this)})},chooserSearch:function(){t("#widgetsopts-widgets-search").length>0&&t(".widgetsopts-chooser").liveFilter("#widgetsopts-widgets-search",".widgetopts-chooser-sidebars li",{after:function(e,s){s.each(function(){t(this).addClass("widgetopts-is-hidden").removeClass("widgetopts-chooser-selected")}),e.each(function(){t(this).removeClass("widgetopts-is-hidden").removeClass("widgetopts-chooser-selected")}),e.length>0&&t(e[0]).addClass("widgetopts-chooser-selected")}})},sidebarOptions:function(){widgetopts10n.sidebaropts.length>0&&t("#widgets-right .widgets-holder-wrap").each(function(){var e=t(this).find(".widgets-sortables h2").text();dl_link=widgetopts10n.sidebaropts.replace("__sidebaropts__",t(this).find(".widgets-sortables").attr("id")),dl_link=dl_link.replace("__sidebar_opts__",e.trim()),t(this).append(dl_link)})},removeSidebarWidgets:function(){var s=t("html,body");e.on("click",".sidebaropts-clear",function(e){t(this).parent().find(".sidebaropts-confirm").addClass("sidebaropts-confirmed"),t(this).parent().find(".sidebaropts-confirm").slideToggle(250),e.preventDefault()}),e.on("click",".sidebaropts-confirmed .button",function(e){if(sidebar_id=t(this).parent().parent().parent().find(".widgets-sortables"),t(this).hasClass("button-primary")){var i=sidebar_id;t(this).parent().slideToggle(50),s.animate({scrollTop:i.offset().top-50},200),sidebar_id.find(".widget").each(function(e,s){t(s).fadeOut(),wpWidgets.save(t(s),1,1,0)})}else t(this).parent().slideToggle(250);e.preventDefault()})}},e.ready(function(){wpWidgetOpts.init()})}(jQuery);
assets/scss/widget-options.scss CHANGED
@@ -27,7 +27,7 @@ body{
27
  }
28
  @media screen and (min-width: $desktop) {
29
  .extendedwopts-hide.extendedwopts-desktop{
30
- display: none;
31
  }
32
  .extendedwopts-show.extendedwopts-desktop{
33
  display: block;
@@ -39,7 +39,7 @@ body{
39
  @media screen and (max-width: $tablet)
40
  and (min-width: $mobile + 1) {
41
  .extendedwopts-hide.extendedwopts-tablet{
42
- display: none;
43
  }
44
  .extendedwopts-show.extendedwopts-tablet{
45
  display: block;
@@ -53,7 +53,7 @@ body{
53
  }
54
  @media screen and (max-width: $mobile) {
55
  .extendedwopts-hide.extendedwopts-mobile{
56
- display: none;
57
  }
58
  .extendedwopts-show.extendedwopts-mobile{
59
  display: block;
27
  }
28
  @media screen and (min-width: $desktop) {
29
  .extendedwopts-hide.extendedwopts-desktop{
30
+ display: none !important;
31
  }
32
  .extendedwopts-show.extendedwopts-desktop{
33
  display: block;
39
  @media screen and (max-width: $tablet)
40
  and (min-width: $mobile + 1) {
41
  .extendedwopts-hide.extendedwopts-tablet{
42
+ display: none !important;
43
  }
44
  .extendedwopts-show.extendedwopts-tablet{
45
  display: block;
53
  }
54
  @media screen and (max-width: $mobile) {
55
  .extendedwopts-hide.extendedwopts-mobile{
56
+ display: none !important;
57
  }
58
  .extendedwopts-show.extendedwopts-mobile{
59
  display: block;
includes/admin/import-export.php CHANGED
@@ -46,12 +46,14 @@ class WP_Widget_Options_Importer {
46
  );
47
  }
48
 
49
- function settings_page(){ ?>
 
 
50
  <div class="wrap">
51
  <h1>
52
  <?php _e( 'Import or Export Widgets', 'widget-options' ); ?>
53
  <a href="<?php echo esc_url( admin_url( 'options-general.php?page=widgetopts_plugin_settings' ) );?>" class="page-title-action"><?php _e( 'Manage Widget Options', 'widget-options' );?></a>
54
- <a href="<?php echo esc_url( apply_filters( 'widget_options_upgrade_url', 'http://widget-options.com/?utm_source=wordpressadmin&utm_medium=importexport&utm_campaign=titlelink' ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Upgrade', 'widget-options' ); ?></a>
55
  </h1>
56
  <div class="widgetopts-imex">
57
  <?php if( !empty( $this->imported ) ){
46
  );
47
  }
48
 
49
+ function settings_page(){
50
+ $upgrade_url = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=wordpressadmin&utm_medium=importexport&utm_campaign=titlelink');
51
+ ?>
52
  <div class="wrap">
53
  <h1>
54
  <?php _e( 'Import or Export Widgets', 'widget-options' ); ?>
55
  <a href="<?php echo esc_url( admin_url( 'options-general.php?page=widgetopts_plugin_settings' ) );?>" class="page-title-action"><?php _e( 'Manage Widget Options', 'widget-options' );?></a>
56
+ <a href="<?php echo esc_url( apply_filters( 'widget_options_upgrade_url', $upgrade_url ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Upgrade', 'widget-options' ); ?></a>
57
  </h1>
58
  <div class="widgetopts-imex">
59
  <?php if( !empty( $this->imported ) ){
includes/admin/settings/display-settings.php CHANGED
@@ -39,12 +39,13 @@ endif;
39
  if( !function_exists( 'widgetopts_options_page' ) ):
40
  function widgetopts_options_page(){
41
  $view = 'grid'; //define so that we can add more views later on
 
42
  ?>
43
  <div class="wrap">
44
  <h1>
45
  <?php _e( 'Widget Options', 'widget-options' ); ?>
46
  <a href="<?php echo esc_url( apply_filters( 'widget_options_support_url', 'https://wordpress.org/support/plugin/widget-options/' ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Support', 'widget-options' ); ?></a>
47
- <a href="<?php echo esc_url( apply_filters( 'widget_options_upgrade_url', 'http://widget-options.com/?utm_source=wordpressadmin&utm_medium=widget&utm_campaign=widgetoptsproupgrade' ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Upgrade', 'widget-options' ); ?></a>
48
  </h1>
49
 
50
  <div id="widgetopts-settings-messages-container"></div>
39
  if( !function_exists( 'widgetopts_options_page' ) ):
40
  function widgetopts_options_page(){
41
  $view = 'grid'; //define so that we can add more views later on
42
+ $upgrade_url = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=wordpressadmin&utm_medium=widget&utm_campaign=widgetoptsproupgrade');
43
  ?>
44
  <div class="wrap">
45
  <h1>
46
  <?php _e( 'Widget Options', 'widget-options' ); ?>
47
  <a href="<?php echo esc_url( apply_filters( 'widget_options_support_url', 'https://wordpress.org/support/plugin/widget-options/' ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Support', 'widget-options' ); ?></a>
48
+ <a href="<?php echo esc_url( apply_filters( 'widget_options_upgrade_url', $upgrade_url ) ); ?>" target="_blank" class="page-title-action"><?php _e( 'Upgrade', 'widget-options' ); ?></a>
49
  </h1>
50
 
51
  <div id="widgetopts-settings-messages-container"></div>
includes/admin/settings/modules/animation.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_animation' ) ):
20
  function widgetopts_settings_animation(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="animation">
22
  <div class="widgetopts-module-card-content">
23
- <a href="http://widget-options.com/features/wordpress-widget-animations/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Animation', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_animation(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="animation">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/wordpress-widget-animations/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Animation', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/cache.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_cache' ) ):
20
  function widgetopts_settings_cache(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="cache">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/wordpress-widget-cache/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Widget Cache', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_cache(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="cache">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/wordpress-widget-cache/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Widget Cache', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/clone.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_clone' ) ):
20
  function widgetopts_settings_clone(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="clone">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/clone-wordpress-widgets/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Clone Widget', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_clone(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="clone">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/clone-wordpress-widgets/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Clone Widget', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/columns.php CHANGED
@@ -17,10 +17,11 @@ if ( ! defined( 'ABSPATH' ) ) exit;
17
  * @return void
18
  */
19
  if( !function_exists( 'widgetopts_settings_columns' ) ):
20
- function widgetopts_settings_columns(){ ?>
 
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="columns">
22
  <div class="widgetopts-module-card-content">
23
- <a href="http://widget-options.com/features/responsive-wordpress-widget-columns/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Column Display', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
17
  * @return void
18
  */
19
  if( !function_exists( 'widgetopts_settings_columns' ) ):
20
+ function widgetopts_settings_columns(){
21
+ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="columns">
23
  <div class="widgetopts-module-card-content">
24
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/responsive-wordpress-widget-columns/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'Column Display', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/dates.php CHANGED
@@ -21,7 +21,7 @@ if( !function_exists( 'widgetopts_settings_dates' ) ):
21
  function widgetopts_settings_dates(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="dates">
23
  <div class="widgetopts-module-card-content">
24
- <a href="http://widget-options.com/features/restrict-wordpress-widgets-per-days-date-range/" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'Days & Date Range', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
21
  function widgetopts_settings_dates(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="dates">
23
  <div class="widgetopts-module-card-content">
24
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/restrict-wordpress-widgets-per-days-date-range/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'Days & Date Range', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/disable_widgets.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_disable_widgets' ) ):
20
  function widgetopts_settings_disable_widgets(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="disable_widgets">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Disable Widgets', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_disable_widgets(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="disable_widgets">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Disable Widgets', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/fixed.php CHANGED
@@ -21,7 +21,7 @@ if( !function_exists( 'widgetopts_settings_fixed' ) ):
21
  function widgetopts_settings_fixed(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="fixed">
23
  <div class="widgetopts-module-card-content">
24
- <a href="https://widget-options.com/features/sticky-fixed-wordpress-widgets/" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'Fixed Widget', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
21
  function widgetopts_settings_fixed(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="fixed">
23
  <div class="widgetopts-module-card-content">
24
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/sticky-fixed-wordpress-widgets/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'Fixed Widget', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/links.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_links' ) ):
20
  function widgetopts_settings_links(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="links">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/link-wordpress-widgets/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Link Widget', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_links(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="links">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/link-wordpress-widgets/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Link Widget', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/permission.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_permissions' ) ):
20
  function widgetopts_settings_permissions(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="permission">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Permission', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_permissions(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="permission">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Permission', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/roles.php CHANGED
@@ -21,7 +21,7 @@ if( !function_exists( 'widgetopts_settings_roles' ) ):
21
  function widgetopts_settings_roles(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="roles">
23
  <div class="widgetopts-module-card-content">
24
- <a href="https://widget-options.com/features/restrict-wordpress-widgets-per-user-roles/" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'User Roles Restriction', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
21
  function widgetopts_settings_roles(){ ?>
22
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="roles">
23
  <div class="widgetopts-module-card-content">
24
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/restrict-wordpress-widgets-per-user-roles/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
25
  <h2><?php _e( 'User Roles Restriction', 'widget-options' );?></h2>
26
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
27
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/shortcodes.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_shortcodes' ) ):
20
  function widgetopts_settings_shortcodes(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="shortcodes">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/sidebar-widgets-shortcodes/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Shortcodes', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_shortcodes(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="shortcodes">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/sidebar-widgets-shortcodes/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Shortcodes', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/sidebar-opt_in.php CHANGED
@@ -55,6 +55,6 @@ if( !function_exists( 'widgetopts_settings_sidebar_opt_in' ) ):
55
 
56
  <?php
57
  }
58
- add_action( 'widgetopts_module_sidebar', 'widgetopts_settings_sidebar_opt_in', 20 );
59
  endif;
60
  ?>
55
 
56
  <?php
57
  }
58
+ //add_action( 'widgetopts_module_sidebar', 'widgetopts_settings_sidebar_opt_in', 20 );
59
  endif;
60
  ?>
includes/admin/settings/modules/sidebar-support_box.php CHANGED
@@ -31,14 +31,14 @@ if( !function_exists( 'widgetopts_settings_support_box' ) ):
31
  <?php _e( 'Manage your widgets better and get fast professional support by upgrading to Extended Widget Options.', 'widget-options' );?>
32
  </p>
33
  <p>
34
- <a class="button-secondary" href="http://widget-options.com/?utm_source=wordpressadmin&amp;utm_medium=widget&amp;utm_campaign=widgetoptsprocta" target="_blank"><?php _e( 'Get Extended Widget Options', 'widget-options' );?></a>
35
  </p>
36
- <p>
37
- <?php _e( 'You can also join our community via Facebook Group.', 'widget-options' );?>
38
  </p>
39
  <p>
40
- <a class="button-secondary" href="https://www.facebook.com/groups/WPwidgets/" target="_blank"><?php _e( 'Join Facebook Group', 'widget-options' );?></a>
41
- </p>
42
  </div>
43
  </div>
44
 
31
  <?php _e( 'Manage your widgets better and get fast professional support by upgrading to Extended Widget Options.', 'widget-options' );?>
32
  </p>
33
  <p>
34
+ <a class="button-secondary" href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=wordpressadmin&amp;utm_medium=widget&amp;utm_campaign=widgetoptsprocta');?>" target="_blank"><?php _e( 'Get Extended Widget Options', 'widget-options' );?></a>
35
  </p>
36
+ <!--<p>
37
+ <?php //_e( 'You can also join our community via Facebook Group.', 'widget-options' );?>
38
  </p>
39
  <p>
40
+ <a class="button-secondary" href="https://www.facebook.com/groups/WPwidgets/" target="_blank"><?php //_e( 'Join Facebook Group', 'widget-options' );?></a>
41
+ </p>-->
42
  </div>
43
  </div>
44
 
includes/admin/settings/modules/sidebar-upsell_pro.php CHANGED
@@ -22,7 +22,9 @@ if( !function_exists( 'widgetopts_settings_upgrade_pro' ) ):
22
  <h3 class="hndle ui-sortable-handle"><span><?php _e( 'Get Extended Widget Options', 'widget-options' );?></span></h3>
23
  <div class="inside">
24
  <p>
25
- <?php _e( '<strong>Unlock all features!</strong> Get the world\'s most complete widget management and get best out of your widgets with <a href="http://widget-options.com/" target="_blank">Extended Widget Options</a> including: ', 'widget-options' );?>
 
 
26
  </p>
27
  <ul style="list-style: outside; padding-left: 15px;">
28
  <li>
@@ -54,7 +56,7 @@ if( !function_exists( 'widgetopts_settings_upgrade_pro' ) ):
54
  </li>
55
  </ul>
56
  <p>
57
- <a class="button-primary" href="http://widget-options.com/?utm_source=wordpressadmin&amp;utm_medium=widget&amp;utm_campaign=widgetoptsprocta" target="_blank"><?php _e( 'Get Extended Widget Options', 'widget-options' );?></a>
58
  </p>
59
  </div>
60
  </div>
22
  <h3 class="hndle ui-sortable-handle"><span><?php _e( 'Get Extended Widget Options', 'widget-options' );?></span></h3>
23
  <div class="inside">
24
  <p>
25
+ <?php
26
+ $site_url = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE));
27
+ _e( '<strong>Unlock all features!</strong> Get the world\'s most complete widget management and get best out of your widgets with <a href="'.$site_url.'" target="_blank">Extended Widget Options</a> including: ', 'widget-options' );?>
28
  </p>
29
  <ul style="list-style: outside; padding-left: 15px;">
30
  <li>
56
  </li>
57
  </ul>
58
  <p>
59
+ <a class="button-primary" href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=wordpressadmin&amp;utm_medium=widget&amp;utm_campaign=widgetoptsprocta');?>" target="_blank"><?php _e( 'Get Extended Widget Options', 'widget-options' );?></a>
60
  </p>
61
  </div>
62
  </div>
includes/admin/settings/modules/sliding.php CHANGED
@@ -22,7 +22,7 @@ if( !function_exists( 'widgetopts_settings_sliding_addon' ) ):
22
  if( !is_plugin_active( 'sliding-widget-options/plugin.php' ) ){ ?>
23
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="sliding">
24
  <div class="widgetopts-module-card-content" style="border-color: #ffb310;">
25
- <a href="https://widget-options.com/modal-pop-up-and-sliding-widget-options/?utm_source=wordpressadmin&utm_campaign=modulecard" target="_blank" class="widgetopts-pro-upsell"></a>
26
  <h2><?php _e( 'Sliding Widgets Add-on', 'widget-options' );?></h2>
27
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-admin-plugins"></span></div>
28
  <p class="widgetopts-module-desc">
22
  if( !is_plugin_active( 'sliding-widget-options/plugin.php' ) ){ ?>
23
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="sliding">
24
  <div class="widgetopts-module-card-content" style="border-color: #ffb310;">
25
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'modal-pop-up-and-sliding-widget-options/?utm_source=wordpressadmin&utm_campaign=modulecard');?>" target="_blank" class="widgetopts-pro-upsell"></a>
26
  <h2><?php _e( 'Sliding Widgets Add-on', 'widget-options' );?></h2>
27
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-admin-plugins"></span></div>
28
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/styling.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_styling' ) ):
20
  function widgetopts_settings_styling(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="styling">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/wordpress-widgets-styling/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Custom Styling', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_styling(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="styling">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/wordpress-widgets-styling/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Custom Styling', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/taxonomies.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_taxonomies' ) ):
20
  function widgetopts_settings_taxonomies(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="taxonomies">
22
  <div class="widgetopts-module-card-content">
23
- <a href="http://widget-options.com/features/post-types-taxonomies-widget-visibility/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Extended Taxonomy Terms', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_taxonomies(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="taxonomies">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/post-types-taxonomies-widget-visibility/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'Extended Taxonomy Terms', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/settings/modules/urls.php CHANGED
@@ -20,7 +20,7 @@ if( !function_exists( 'widgetopts_settings_urls' ) ):
20
  function widgetopts_settings_urls(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="urls">
22
  <div class="widgetopts-module-card-content">
23
- <a href="https://widget-options.com/features/target-url-wildcards/" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'URL & Wildcards Restrictions', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
20
  function widgetopts_settings_urls(){ ?>
21
  <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="urls">
22
  <div class="widgetopts-module-card-content">
23
+ <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/target-url-wildcards/');?>" target="_blank" class="widgetopts-pro-upsell"></a>
24
  <h2><?php _e( 'URL & Wildcards Restrictions', 'widget-options' );?></h2>
25
  <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div>
26
  <p class="widgetopts-module-desc">
includes/admin/welcome.php CHANGED
@@ -82,7 +82,7 @@ if( !class_exists( 'WIDGETOPS_Welcome' ) ){
82
  <div class="feature-section two-col">
83
  <h3><?php _e( 'Extend Plugin Features', 'widget-options' ); ?></h3>
84
  <p><?php _e( 'Unlock more features by upgrading to Extended Widget Options to get the full plugin functionalities! We have tons of helpful features that will let you fully manage your widgets and extend functionalities.', 'widget-options' ); ?></p>
85
- <p><a href="http://widget-options.com/features/" target="_blank" class="widgetopts-features-button button button-primary"><?php _e( 'See all Features', 'widget-options' ); ?></a></p>
86
  </div>
87
  </div>
88
  <?php }
82
  <div class="feature-section two-col">
83
  <h3><?php _e( 'Extend Plugin Features', 'widget-options' ); ?></h3>
84
  <p><?php _e( 'Unlock more features by upgrading to Extended Widget Options to get the full plugin functionalities! We have tons of helpful features that will let you fully manage your widgets and extend functionalities.', 'widget-options' ); ?></p>
85
+ <p><a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/');?>" target="_blank" class="widgetopts-features-button button button-primary"><?php _e( 'See all Features', 'widget-options' ); ?></a></p>
86
  </div>
87
  </div>
88
  <?php }
includes/install.php CHANGED
@@ -32,7 +32,8 @@ if( !function_exists( 'widgetopts_filter_plugin_actions' ) ){
32
  }
33
 
34
  $links[] = '<a href="'. esc_url( admin_url( 'options-general.php?page=widgetopts_plugin_settings' ) ) .'">' . __( 'Settings', 'widget-options' ) . '</a>';
35
- $links[] = '<a href="'. esc_url( 'https://widget-options.com/pricing/?utm_source=upgradebtn&utm_medium=plugins&utm_campaign=widgetoptspluginlink' ) .'" target="_blank" style="color: #3db634">' . __( 'Upgrade', 'widget-options' ) . '</a>';
 
36
  return $links;
37
  }
38
  }
32
  }
33
 
34
  $links[] = '<a href="'. esc_url( admin_url( 'options-general.php?page=widgetopts_plugin_settings' ) ) .'">' . __( 'Settings', 'widget-options' ) . '</a>';
35
+ $upgrade_link = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'pricing/?utm_source=upgradebtn&utm_medium=plugins&utm_campaign=widgetoptspluginlink');
36
+ $links[] = '<a href="'. esc_url($upgrade_link) .'" target="_blank" style="color: #3db634">' . __( 'Upgrade', 'widget-options' ) . '</a>';
37
  return $links;
38
  }
39
  }
includes/pagebuilders/beaver/beaver.php CHANGED
@@ -465,7 +465,7 @@ class WP_Widget_Options_Beaver {
465
  <span class="dashicons dashicons-lock"></span> <?php _e( 'Beaver Builder Support', 'widget-options' );?>
466
  </li>
467
  </ul>
468
- <p><strong><a href="http://widget-options.com/?utm_source=beaverbuilder&utm_medium=learnmore&utm_campaign=widgetoptsprotab" class="button-primary" target="_blank"><?php _e( 'Learn More', 'widget-options' );?></a></strong></p>
469
  </div>
470
  <?php }
471
 
@@ -804,9 +804,14 @@ class WP_Widget_Options_Beaver {
804
  if ( stristr($display_logic,"return")===false ){
805
  $display_logic="return (" . $display_logic . ");";
806
  }
807
- if ( !eval( $display_logic ) ){
808
- return false;
809
- }
 
 
 
 
 
810
  }
811
  }
812
 
465
  <span class="dashicons dashicons-lock"></span> <?php _e( 'Beaver Builder Support', 'widget-options' );?>
466
  </li>
467
  </ul>
468
+ <p><strong><a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=beaverbuilder&utm_medium=learnmore&utm_campaign=widgetoptsprotab');?>" class="button-primary" target="_blank"><?php _e( 'Learn More', 'widget-options' );?></a></strong></p>
469
  </div>
470
  <?php }
471
 
804
  if ( stristr($display_logic,"return")===false ){
805
  $display_logic="return (" . $display_logic . ");";
806
  }
807
+ $display_logic = htmlspecialchars_decode($display_logic, ENT_QUOTES);
808
+ try {
809
+ if ( !eval( $display_logic ) ){
810
+ return false;
811
+ }
812
+ } catch (ParseError $e) {
813
+ return false;
814
+ }
815
  }
816
  }
817
 
includes/pagebuilders/elementor/elementor.php CHANGED
@@ -102,6 +102,7 @@ if( !function_exists( 'widgetopts_elementor_section' ) ){
102
  'overwrite' => true
103
  ]
104
  );
 
105
  $element->add_control(
106
  'widgetopts_pro',
107
  [
@@ -114,7 +115,7 @@ if( !function_exists( 'widgetopts_elementor_section' ) ){
114
  <div class="elementor-panel-nerd-box-message">' .
115
  __( 'Upgrade to Extended Widget Options to unlock all options to easily control and manage each Elementor widget.', 'widget-options' ) .
116
  '</div>
117
- <a href="http://widget-options.com/?utm_source=elementor&utm_medium=upgrade&utm_campaign=upgradebtn" class="elementor-panel-nerd-box-link elementor-button elementor-button-default elementor-go-pro" target="_blank">' .
118
  __( 'Upgrade Now!', 'widget-options' ) .
119
  '</a>
120
  </div>',
102
  'overwrite' => true
103
  ]
104
  );
105
+ $upgrade_link = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=elementor&utm_medium=upgrade&utm_campaign=upgradebtn');
106
  $element->add_control(
107
  'widgetopts_pro',
108
  [
115
  <div class="elementor-panel-nerd-box-message">' .
116
  __( 'Upgrade to Extended Widget Options to unlock all options to easily control and manage each Elementor widget.', 'widget-options' ) .
117
  '</div>
118
+ <a href="'.$upgrade_link.'" class="elementor-panel-nerd-box-link elementor-button elementor-button-default elementor-go-pro" target="_blank">' .
119
  __( 'Upgrade Now!', 'widget-options' ) .
120
  '</a>
121
  </div>',
includes/pagebuilders/elementor/render.php CHANGED
@@ -370,9 +370,14 @@ if( !function_exists( 'widgetopts_elementor_render' ) ){
370
  if ( stristr($display_logic,"return")===false ){
371
  $display_logic="return (" . $display_logic . ");";
372
  }
373
- if ( !eval( $display_logic ) ){
374
- return $placeholder;
375
- }
 
 
 
 
 
376
  }
377
  }
378
  }
370
  if ( stristr($display_logic,"return")===false ){
371
  $display_logic="return (" . $display_logic . ");";
372
  }
373
+ $display_logic = htmlspecialchars_decode($display_logic, ENT_QUOTES);
374
+ try {
375
+ if ( !eval( $display_logic ) ){
376
+ return $placeholder;
377
+ }
378
+ } catch (ParseError $e) {
379
+ return $placeholder;
380
+ }
381
  }
382
  }
383
  }
includes/pagebuilders/siteorigin.php CHANGED
@@ -36,10 +36,15 @@ if( !function_exists( 'widgetopts_siteorigin_panels_data' ) ){
36
  if ( stristr($display_logic,"return")===false ){
37
  $display_logic="return (" . $display_logic . ");";
38
  }
39
- if ( !eval( $display_logic ) ){
40
- unset( $panels_data['widgets'][$key]);
41
- }
42
- }
 
 
 
 
 
43
  }
44
 
45
  }
36
  if ( stristr($display_logic,"return")===false ){
37
  $display_logic="return (" . $display_logic . ");";
38
  }
39
+ $display_logic = htmlspecialchars_decode($display_logic, ENT_QUOTES);
40
+ try {
41
+ if (!eval($display_logic)) {
42
+ unset($panels_data['widgets'][$key]);
43
+ }
44
+ } catch (ParseError $e) {
45
+ unset($panels_data['widgets'][$key]);
46
+ }
47
+ }
48
  }
49
 
50
  }
includes/widgets/display.php CHANGED
@@ -357,9 +357,14 @@ if( !function_exists( 'widgetopts_display_callback' ) ):
357
  if ( stristr($display_logic,"return")===false ){
358
  $display_logic="return (" . $display_logic . ");";
359
  }
360
- if ( !eval( $display_logic ) ){
361
- return false;
362
- }
 
 
 
 
 
363
  }
364
  }
365
 
357
  if ( stristr($display_logic,"return")===false ){
358
  $display_logic="return (" . $display_logic . ");";
359
  }
360
+ $display_logic = htmlspecialchars_decode($display_logic, ENT_QUOTES);
361
+ try {
362
+ if ( !eval( $display_logic ) ){
363
+ return false;
364
+ }
365
+ } catch (ParseError $e) {
366
+ return false;
367
+ }
368
  }
369
  }
370
 
includes/widgets/option-tabs/alignment.php CHANGED
@@ -39,6 +39,7 @@ function widgetopts_tabcontent_alignment( $args ){
39
  $desktop = $args['params']['alignment']['desktop'];
40
  }
41
  }
 
42
  ?>
43
  <div id="extended-widget-opts-tab-<?php echo $args['id'];?>-alignment" class="extended-widget-opts-tabcontent extended-widget-opts-tabcontent-alignment">
44
  <table class="form-table">
@@ -60,7 +61,7 @@ function widgetopts_tabcontent_alignment( $args ){
60
  </td>
61
  </tr>
62
  <tr valign="top" class="widgetopts-topro">
63
- <td colspan="2"><small><?php _e( '<em>Upgrade to <a href="https://widget-options.com/" target="_blank">Pro Version</a> for Multiple Devices Alignment and Additional Widget Options.</em>', 'widget-options' );?></small></td>
64
  </tr>
65
  </tbody>
66
  </table>
39
  $desktop = $args['params']['alignment']['desktop'];
40
  }
41
  }
42
+ $upgrade_link = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE));
43
  ?>
44
  <div id="extended-widget-opts-tab-<?php echo $args['id'];?>-alignment" class="extended-widget-opts-tabcontent extended-widget-opts-tabcontent-alignment">
45
  <table class="form-table">
61
  </td>
62
  </tr>
63
  <tr valign="top" class="widgetopts-topro">
64
+ <td colspan="2"><small><?php _e( '<em>Upgrade to <a href="'.$upgrade_link.'" target="_blank">Pro Version</a> for Multiple Devices Alignment and Additional Widget Options.</em>', 'widget-options' );?></small></td>
65
  </tr>
66
  </tbody>
67
  </table>
includes/widgets/option-tabs/upsell.php CHANGED
@@ -84,7 +84,7 @@ function widgetopts_tabcontent_gopro( $args ){ ?>
84
  <span class="dashicons dashicons-lock"></span> <?php _e( 'Pagebuilder by SiteOrigin Support', 'widget-options' );?>
85
  </li>
86
  </ul>
87
- <p><strong><a href="http://widget-options.com/?utm_source=wordpressadmin&utm_medium=widgettabs&utm_campaign=widgetoptsprotab" class="button-primary" target="_blank"><?php _e( 'Learn More', 'widget-options' );?></a></strong></p>
88
  </div>
89
  <?php
90
  }
84
  <span class="dashicons dashicons-lock"></span> <?php _e( 'Pagebuilder by SiteOrigin Support', 'widget-options' );?>
85
  </li>
86
  </ul>
87
+ <p><strong><a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'?utm_source=wordpressadmin&utm_medium=widgettabs&utm_campaign=widgetoptsprotab');?>" class="button-primary" target="_blank"><?php _e( 'Learn More', 'widget-options' );?></a></strong></p>
88
  </div>
89
  <?php
90
  }
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
- * Version: 3.7.6
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
@@ -72,7 +72,7 @@ final class WP_Widget_Options {
72
 
73
  // Plugin version.
74
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
75
- define( 'WIDGETOPTS_VERSION', ' 3.7.6' );
76
  }
77
 
78
  // Plugin Folder Path.
@@ -89,6 +89,11 @@ final class WP_Widget_Options {
89
  if ( ! defined( 'WIDGETOPTS_PLUGIN_FILE' ) ) {
90
  define( 'WIDGETOPTS_PLUGIN_FILE', __FILE__ );
91
  }
 
 
 
 
 
92
  }
93
 
94
  /**
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
+ * Version: 3.7.7
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
72
 
73
  // Plugin version.
74
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
75
+ define( 'WIDGETOPTS_VERSION', '3.7.7' );
76
  }
77
 
78
  // Plugin Folder Path.
89
  if ( ! defined( 'WIDGETOPTS_PLUGIN_FILE' ) ) {
90
  define( 'WIDGETOPTS_PLUGIN_FILE', __FILE__ );
91
  }
92
+
93
+ // Plugin Root File.
94
+ if (!defined('WIDGETOPTS_PLUGIN_WEBSITE')) {
95
+ define('WIDGETOPTS_PLUGIN_WEBSITE', 'https://widget-options.com');
96
+ }
97
  }
98
 
99
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: widgets, restrict widgets, display widgets, widget logic, hide widgets, hi
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -21,7 +21,7 @@ With over <strong>1,060,000+ downloads</strong> and an <strong>average rating of
21
 
22
  Built with seamlessly integration with WordPress, Widget Options is the world's most complete widget management plugin solution yet.
23
 
24
- [vimeo https://vimeo.com/190057410]
25
 
26
  <h4>Show or hide widgets on specific WordPress pages</h4>
27
  With Widget Options Plugin, you can easily assign pages visibility and restrict each widgets on different pages, posts, custom post types, categories, tags and custom taxonomies.
@@ -154,6 +154,15 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
154
 
155
  == Changelog ==
156
 
 
 
 
 
 
 
 
 
 
157
  = 3.7.6 =
158
  * Fix blank page issue in admin widget page.
159
 
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 3.7.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
21
 
22
  Built with seamlessly integration with WordPress, Widget Options is the world's most complete widget management plugin solution yet.
23
 
24
+ [youtube https://www.youtube.com/watch?v=GNawoUZ_t18]
25
 
26
  <h4>Show or hide widgets on specific WordPress pages</h4>
27
  With Widget Options Plugin, you can easily assign pages visibility and restrict each widgets on different pages, posts, custom post types, categories, tags and custom taxonomies.
154
 
155
  == Changelog ==
156
 
157
+ = 3.7.7 =
158
+ * Compatible with Latest WordPress.
159
+ * Fixed deprecated jQuery functions.
160
+ * Fixed Logic option issue.
161
+ * Fixed Mobile restrictions issues.
162
+ * Update plugin page descriptions.
163
+ * Updated admin options page details.
164
+ * Added affiliate URL support via hooks.
165
+
166
  = 3.7.6 =
167
  * Fix blank page issue in admin widget page.
168