Changeset 2916319
- Timestamp:
- 05/23/2023 11:17:54 AM (3 years ago)
- Location:
- salert
- Files:
-
- 40 added
- 4 edited
-
tags/1.2.3 (added)
-
tags/1.2.3/assets (added)
-
tags/1.2.3/assets/backend (added)
-
tags/1.2.3/assets/backend/css (added)
-
tags/1.2.3/assets/backend/css/animate.css (added)
-
tags/1.2.3/assets/backend/css/images (added)
-
tags/1.2.3/assets/backend/css/images/placeholder.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_444444_256x240.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_555555_256x240.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_777620_256x240.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_777777_256x240.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_cc0000_256x240.png (added)
-
tags/1.2.3/assets/backend/css/images/ui-icons_ffffff_256x240.png (added)
-
tags/1.2.3/assets/backend/css/salert-admin.css (added)
-
tags/1.2.3/assets/backend/css/sweetalert2.min.css (added)
-
tags/1.2.3/assets/backend/js (added)
-
tags/1.2.3/assets/backend/js/core.js (added)
-
tags/1.2.3/assets/backend/js/custom.js (added)
-
tags/1.2.3/assets/backend/js/salert-admin.js (added)
-
tags/1.2.3/assets/backend/js/sweetalert2.min.js (added)
-
tags/1.2.3/assets/close-icon.png (added)
-
tags/1.2.3/assets/frontend (added)
-
tags/1.2.3/assets/frontend/css (added)
-
tags/1.2.3/assets/frontend/css/style.css (added)
-
tags/1.2.3/assets/frontend/js (added)
-
tags/1.2.3/assets/frontend/js/main.js (added)
-
tags/1.2.3/inc (added)
-
tags/1.2.3/inc/display.php (added)
-
tags/1.2.3/inc/dynamic-styles.php (added)
-
tags/1.2.3/inc/how-to-use.php (added)
-
tags/1.2.3/inc/images (added)
-
tags/1.2.3/inc/images/100.png (added)
-
tags/1.2.3/inc/images/alert-old.png (added)
-
tags/1.2.3/inc/images/alert.png (added)
-
tags/1.2.3/inc/images/desktop.png (added)
-
tags/1.2.3/inc/settings.php (added)
-
tags/1.2.3/languages (added)
-
tags/1.2.3/languages/salert.pot (added)
-
tags/1.2.3/readme.txt (added)
-
tags/1.2.3/salert.php (added)
-
trunk/assets/backend/js/custom.js (modified) (1 diff)
-
trunk/inc/settings.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/salert.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
salert/trunk/assets/backend/js/custom.js
r2909012 r2916319 8 8 $('.save-notice').slideDown(); 9 9 }); 10 10 console.log(admin_settings.ajax_nonce); 11 11 // Saving Data With Ajax Request 12 12 $('form#salert-settings-form').on('submit', function(e) { -
salert/trunk/inc/settings.php
r2909012 r2916319 620 620 <div><?php echo esc_html__('Our support team is always waiting for your questings.','salert');?></div> 621 621 <br> 622 <a href="https://wpoperation.com/ support" target="_blank" class="button button-secondary"><?php echo esc_html__('Create Ticket','salert');?></a>622 <a href="https://wpoperation.com/contact" target="_blank" class="button button-secondary"><?php echo esc_html__('Create Ticket','salert');?></a> 623 623 </div> 624 624 </div> … … 660 660 } 661 661 662 /** 663 * @since 1.2.3 664 * Sanitize array or string 665 * 666 * */ 667 public function sanitize_form_setting_array($input){ 668 669 if( is_string($input) ){ 670 $input = sanitize_text_field($input); 671 }elseif( is_array($input) ){ 672 foreach ( $input as $key => $value ) { 673 if ( is_array($value) ) { 674 $value = self::sanitize_form_setting_array($value); 675 } 676 else { 677 $value = sanitize_text_field($value); 678 } 679 } 680 } 681 return $input; 682 } 683 662 684 public function salert_save_settings_with_ajax(){ 663 685 if( isset( $_POST['fields'] ) ) { … … 691 713 'popup-timeperiod' => sanitize_text_field($settings['popup-timeperiod']), 692 714 'popup-timeago' => sanitize_text_field($settings['popup-timeago']), 693 'popup-products' => s anitize_text_field($settings['popup-products']),715 'popup-products' => self::sanitize_form_setting_array($settings['popup-products']), 694 716 'product-count' => sanitize_text_field($settings['product-count']), 695 717 'popup-contents' => sanitize_text_field($settings['popup-contents']), -
salert/trunk/readme.txt
r2909012 r2916319 3 3 License: GPLv2 or later 4 4 License URI: http://www.gnu.org/licenses/gpl-2.0.html 5 Tested up to: 6.2 5 Tested up to: 6.2.2 6 6 Tags: woocommerce, notification, fake notification, sales notification 7 Stable tag: 1.2. 27 Stable tag: 1.2.3 8 8 9 9 … … 38 38 39 39 == Changelog == 40 41 = 1.2.3 = 42 - Fixed custom product saving issue 40 43 41 44 = 1.2.2 = -
salert/trunk/salert.php
r2909012 r2916319 5 5 Plugin URI: https://wpoperation.com/plugins/salert/ 6 6 Description: The plugin will generate fake sales notifications, which will help to boost your sales.Also works without WooCommerce Plugin. 7 Version: 1.2. 27 Version: 1.2.3 8 8 Author: WPoperation 9 9 Author URI: https://wpoperation.com/ … … 20 20 defined('SALERT_PATH') or define('SALERT_PATH',plugin_dir_path(__FILE__)); 21 21 defined('SALERT_DIR') or define('SALERT_DIR',plugin_dir_url(__FILE__)); 22 defined('SALERT_VERSION') or define('SALERT_VERSION','1.2. 2');22 defined('SALERT_VERSION') or define('SALERT_VERSION','1.2.3'); 23 23 /* 24 24 **Require File Directories
Note: See TracChangeset
for help on using the changeset viewer.