Changeset 2284239
- Timestamp:
- 04/15/2020 03:27:18 PM (6 years ago)
- Location:
- popup-maker-wp/trunk
- Files:
-
- 8 edited
-
com/classes/SGPMApi.php (modified) (1 diff)
-
com/classes/SGPMBase.php (modified) (2 diffs)
-
com/classes/SGPMCondition.php (modified) (1 diff)
-
com/classes/SGPMNotificationEngine.php (modified) (1 diff)
-
config.php (modified) (1 diff)
-
popup-maker-api.php (modified) (1 diff)
-
public/assets/js/main.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
popup-maker-wp/trunk/com/classes/SGPMApi.php
r1906381 r2284239 82 82 } 83 83 } 84 else { 85 // disable popups from refreshed list 86 foreach ($options['popups'] as $popupId => $popup) { 87 if (isset($options['popupsSettings'][$popupId])) continue; 88 89 $options['popupsSettings'][$popupId]['status'] = 'disabled'; 90 $options['popupsSettings'][$popupId]['displayTarget'] = $SGPM_DATA_CONFIG_ARRAY['displayTarget']['initialData']; 91 } 92 } 93 84 94 85 95 update_option('sgpm_popup_maker_api_option', $options); -
popup-maker-wp/trunk/com/classes/SGPMBase.php
r2266611 r2284239 78 78 add_action('admin_enqueue_scripts', array($this, 'adminStyles')); 79 79 80 add_action('wp_ajax_sgpm_remove_all_notification', array($this, 'removeAllNotifications')); 80 // ajax call endpoint for all "Clear all Notiifcations" Button 81 add_action('wp_ajax_sgpm_clear_all_notifications', array($this, 'clearAllNotifications')); 81 82 add_action('wp_ajax_sgpm_remove_notification', array($this, 'removeNotification')); 83 84 /* temprory fix : Delete old crons */ 85 wp_clear_scheduled_hook("sgpm_fetch_new_notifications"); 86 wp_unschedule_event(time(), 'sgpm_check_for_new_notifications_every_6_hours'); 82 87 } 83 88 … … 106 111 } 107 112 108 public function removeAllNotifications()109 { 110 $this->notificationEngine-> removeAllNotifications();113 public function clearAllNotifications() 114 { 115 $this->notificationEngine->clearAllNotifications(); 111 116 } 112 117 -
popup-maker-wp/trunk/com/classes/SGPMCondition.php
r1776151 r2284239 27 27 $lastRuleId = key($conditions); 28 28 foreach ($conditions as $ruleId => $condition) { 29 if (isset($condition['condition_type'])) continue; 30 29 31 $separator = ''; 30 32 $view .= self::createConditionRuleRow($condition, $ruleId, $lastRuleId); -
popup-maker-wp/trunk/com/classes/SGPMNotificationEngine.php
r2266611 r2284239 116 116 } 117 117 118 public function removeAllNotifications()118 public function clearAllNotifications() 119 119 { 120 120 $hashArray = array(); -
popup-maker-wp/trunk/config.php
r2266611 r2284239 10 10 define('SGPM_CLASSES', SGPM_PATH.'com'.SGPM_DS.'classes'.SGPM_DS); 11 11 define('SGPM_NOTIFICATIONS_SOURCE', SGPM_PATH.'public'.SGPM_DS.'notifications'.SGPM_DS); 12 define('SGPM_VERSION', '1.23 2');12 define('SGPM_VERSION', '1.233'); 13 13 define('SGPM_SERVICE_URL', 'https://popupmaker.com/'); 14 14 define('SGPM_NOTIFICATIONS_API_URL', SGPM_SERVICE_URL.'api/v1/notificationsPublic/'); -
popup-maker-wp/trunk/popup-maker-api.php
r2266611 r2284239 4 4 * Plugin URI: https://popupmaker.com/wordpress 5 5 * Description: Popup Maker is the ultimate tool that will help you run a cleverer and more effective marketing popups for your website. Create the most optimal popups to boost your sales. 6 * Version: 1.2.3. 26 * Version: 1.2.3.3 7 7 * Author: Popup Maker 8 8 * Author URI: https://popupmaker.com/ -
popup-maker-wp/trunk/public/assets/js/main.js
r2254231 r2284239 53 53 54 54 var data = { 55 action: 'sgpm_ remove_all_notification',55 action: 'sgpm_clear_all_notifications', 56 56 }; 57 57 -
popup-maker-wp/trunk/readme.txt
r2266611 r2284239 166 166 == Changelog == 167 167 168 = 1.2.3.3 = 169 * Bug fixes. 170 * Delete old crons on plugin init. 171 168 172 = 1.2.3.2 = 169 173 * Bug fixes.
Note: See TracChangeset
for help on using the changeset viewer.