Plugin Directory

Changeset 2712631


Ignore:
Timestamp:
04/21/2022 08:42:12 AM (4 years ago)
Author:
Sygnoos
Message:

New version 4.1.6 released

Location:
popup-builder
Files:
359 added
10 edited

Legend:

Unmodified
Added
Removed
  • popup-builder/trunk/com/classes/MediaButton.php

    r2466445 r2712631  
    9898
    9999        $showCurrentUser = AdminHelper::showMenuForCurrentUser();
    100 
    101         if (!$showCurrentUser) {
     100        $screen = get_current_screen();
     101        $hideInNewsletter = isset($screen) ? $screen->id === 'popupbuilder_page_sgpbNewsletter' : false;
     102        if (!$showCurrentUser || $hideInNewsletter) {
    102103            return '';
    103104        }
     105
    104106        $buttonTitle = __('Insert popup', SG_POPUP_TEXT_DOMAIN);
    105107
  • popup-builder/trunk/com/classes/PopupLoader.php

    r2704875 r2712631  
    7676                $defaultEvent = array();
    7777                $customDelay = $popupFromUrl->getOptionValue('sgpb-popup-delay');
    78                 $defaultEvent[] = \SgpbDataConfig::websiteDefaultConfigs()[0];
     78                $defaultEvent[] = \SgpbDataConfig::websiteDefaultConfigs()['events'][0];
    7979                $defaultEvent[0]['value'] = 0;
    8080                if ($customDelay) {
  • popup-builder/trunk/com/classes/popups/SGPopup.php

    r2704875 r2712631  
    308308        $savedData = apply_filters('sgpbPopupSavedData', $savedData);
    309309
    310         if (empty($savedData)) {
     310        if (empty($savedData) && $currentPostStatus !== 'trash') {
    311311            return false;
    312312        }
  • popup-builder/trunk/com/config/configPackage.php

    r2704875 r2712631  
    44}
    55
    6 define('SG_POPUP_VERSION', '4.1.5');
     6define('SG_POPUP_VERSION', '4.1.6');
    77define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
    88define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
  • popup-builder/trunk/com/config/dataConfig.php

    r2704875 r2712631  
    908908        $options[] = array('name' => 'sgpb-overlay-custom-class', 'type' => 'text', 'defaultValue' => 'sgpb-popup-overlay');
    909909        $options[] = array('name' => 'sgpb-overlay-color', 'type' => 'text', 'defaultValue' => '');
    910         $options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '');
     910        $options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
    911911        $options[] = array('name' => 'sgpb-overlay-opacity', 'type' => 'text', 'defaultValue' => 0.8);
    912912        $options[] = array('name' => 'sgpb-content-opacity', 'type' => 'text', 'defaultValue' => 0.8);
  • popup-builder/trunk/popup-builder.php

    r2704875 r2712631  
    44* Plugin URI: https://popup-builder.com
    55* Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
    6 * Version: 4.1.5
     6* Version: 4.1.6
    77* Author: Sygnoos
    88* Author URI: https://sygnoos.com
  • popup-builder/trunk/public/js/Backend.js

    r2664345 r2712631  
    1313{jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','none');var i,tabContent,tabLinks;tabContent=jQuery('.sgpb-editor-options-tab-content-wrapper');tabContent.each(function(){jQuery(this).css('display','none');});tabLinks=jQuery('.sgpb-tab-link');tabLinks.each(function(){jQuery(this).removeClass('sgpb-tab-active');});jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','block');jQuery('.sgpb-tab-'+tab).addClass('sgpb-tab-active');this.rangeSlider();};SGPBBackend.prototype.downloadSystemInfoFile=function(){if(!jQuery('.sgpb-download-system-info').length){return false;}
    1414jQuery('.sgpb-download-system-info').bind('click',function(){window.location.href=SGPB_JS_PARAMS.postUrl+'?action=sgpb_system_info';});};SGPBBackend.prototype.popupBuilderButton=function()
    15 {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if(editor.settings.toolbar1.indexOf('popupBuilderHtmlButton')!==-1){return;}
     15{var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
     16if(editor.settings.toolbar1.indexOf('popupBuilderHtmlButton')!==-1){return;}
    1617editor.settings.toolbar1+=', popupBuilderHtmlButton';editor.addButton('popupBuilderHtmlButton',{text:'Popup Builder Button',tooltip:'Popup Builder Custom HTML Button',icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb-button',onclick:function(){that.mediaButtonPopup('sgpb-custom-button-wrapper');}});});};SGPBBackend.popups=[];SGPBBackend.prototype.mediaButtonPopup=function(hiddenDivId)
    1718{var select2Init=1;var that=this;var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setScrollingEnabled',true);popupConfigObj.magicCall('setContentBorderWidth',5);popupConfigObj.magicCall('setContentBorderColor','#506274');popupConfigObj.magicCall('setShadowSpread',1);popupConfigObj.magicCall('setContentShadowBlur',4);popupConfigObj.magicCall('setContentShadowColor','#cccccc');popupConfigObj.magicCall('setMinWidth',400);popupConfigObj.magicCall('contents',document.getElementById(hiddenDivId));popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);if(!SGPBBackend.popups.length){SGPBBackend.popups.push(popup);}
  • popup-builder/trunk/public/js/MediaButton.js

    r2578665 r2712631  
    22SGPBMediaButton.prototype.init=function()
    33{this.tinymceButton();this.openMediaButtonPopup();};SGPBMediaButton.prototype.tinymceButton=function()
    4 {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
     4{var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
     5if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
    56editor.settings.toolbar1+=', popupBuilderEditorButton';editor.addButton('popupBuilderEditorButton',{icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb sgpb-tinymce-button',onclick:function(){that.mediaButtonPopup();}});});};SGPBMediaButton.prototype.openMediaButtonPopup=function()
    67{var that=this;jQuery('.sgpb-tinymce-button, .sgpb-insert-media-button-js, .sgpb-insert-js-variable').unbind('click').bind('click',function(e){e.preventDefault();that.mediaButtonPopup(jQuery(this));});};SGPBMediaButton.prototype.mediaButtonPopup=function(currentTag)
  • popup-builder/trunk/public/views/popupDesignView.php

    r2686454 r2712631  
    157157        </div>
    158158        <?php if (empty($removedOptions['sgpb-show-background'])) :?>
    159             <div class="formItem formItem_itemsCentered">
    160                 <span class="formItem__title"><?php esc_html_e('Background options', SG_POPUP_TEXT_DOMAIN)?>:</span>
    161             </div>
    162159            <div class="formItem formItem_lessMargin">
    163                 <span class="formItem__title"><?php esc_html_e('Show background', SG_POPUP_TEXT_DOMAIN)?>:</span>
     160                <span class="formItem__title"><?php esc_html_e('Background settings', SG_POPUP_TEXT_DOMAIN)?>:</span>
    164161                <div class="sgpb-onOffSwitch sgpb-onOffSwitch_smallLeftMargin">
    165162                    <input type="checkbox" class="sgpb-onOffSwitch-checkbox js-checkbox-accordion" id="sgpb-show-background" name="sgpb-show-background" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-show-background')); ?>>
  • popup-builder/trunk/readme.txt

    r2704875 r2712631  
    99Tested up to: 5.9
    1010Requires PHP: 5.3.3
    11 Stable tag: 4.1.5
     11Stable tag: 4.1.6
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    147147== Changelog ==
    148148
     149= Version 4.1.6 =
     150* Bug fixed related to draft popups that were not visible in trash
     151* Bug fixed related to Popup Builder's button that was visible in Newsletter
     152* Improvement of popup's background settings
     153
    149154= Version 4.1.5 =
    150155* Improvement of code, some queries are optimized
     
    526531== Upgrade Notice ==
    527532
    528 Current Version of Popup Builder is 4.1.5
     533Current Version of Popup Builder is 4.1.6
Note: See TracChangeset for help on using the changeset viewer.