Changeset 2817170
- Timestamp:
- 11/13/2022 06:30:19 AM (3 years ago)
- Location:
- stock-notifier-for-woocommerce
- Files:
-
- 12 added
- 6 edited
- 1 copied
-
tags/2.0.1 (copied) (copied from stock-notifier-for-woocommerce/trunk)
-
tags/2.0.1/assets/admin/admin.css (modified) (5 diffs)
-
tags/2.0.1/assets/admin/popup.js (added)
-
tags/2.0.1/assets/img/settings.PNG (added)
-
tags/2.0.1/assets/img/woo.svg (added)
-
tags/2.0.1/includes/class-popup-ajax.php (added)
-
tags/2.0.1/readme.txt (modified) (3 diffs)
-
tags/2.0.1/stock-notifier-for-woocommerce.php (modified) (3 diffs)
-
tags/2.0.1/templates (added)
-
tags/2.0.1/templates/woocommerce_popup.php (added)
-
trunk/assets/admin/admin.css (modified) (5 diffs)
-
trunk/assets/admin/popup.js (added)
-
trunk/assets/img/settings.PNG (added)
-
trunk/assets/img/woo.svg (added)
-
trunk/includes/class-popup-ajax.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/stock-notifier-for-woocommerce.php (modified) (3 diffs)
-
trunk/templates (added)
-
trunk/templates/woocommerce_popup.php (added)
Legend:
- Unmodified
- Added
- Removed
-
stock-notifier-for-woocommerce/tags/2.0.1/assets/admin/admin.css
r2727954 r2817170 9 9 margin-left: 6px !important; 10 10 } 11 .toplevel_page_stock_notifier_settings .wp-menu-image { 12 display: flex; 13 align-items: center; 14 } 15 16 .toplevel_page_stock_notifier_settings .wp-menu-image img { 17 max-width: 60%; 18 padding-top: 0 !important; 19 margin-left: 6px !important; 20 } 11 21 .stock_notifier_ult_link { 12 22 background: #fff; … … 83 93 overflow: hidden; 84 94 background-color: rgba(0, 0, 0, 0.6); 85 opacity: 0; 86 visibility: hidden; 87 z-index: -2; 95 } 96 .stock_notifier_bg img{ 97 width: 100%; 98 } 99 .stock_notifier_button{ 100 margin-bottom: 40px; 88 101 } 89 102 … … 91 104 opacity: 1; 92 105 visibility: visible; 93 z-index: 9992;106 z-index: 10; 94 107 } 95 108 .stock_notifier_popup_container .popup_head_and_content { 96 max-width: 375px;97 109 display: -webkit-box; 98 110 display: -ms-flexbox; … … 120 132 121 133 .stock_notifier_popup_container .popup_head_and_content .popupContent { 122 max-width: 500px;134 width: 500px; 123 135 display: -webkit-box; 124 136 display: -ms-flexbox; … … 138 150 overflow: hidden; 139 151 } 140 152 .stock_notifier_top_bg { 153 /* margin-top: 100px; */ 154 padding: 20px; 155 margin-top: 46px; 156 } 157 158 .stock_notifier_bottom_bg { 159 outline: 0; 160 color: #f8f9fa !important; 161 font-size: 16px; 162 cursor: pointer; 163 font-weight: 500; 164 line-height: 20px; 165 background: #005ae0 !important; 166 box-shadow: none; 167 padding: 9px 20px; 168 border-radius: 4px; 169 font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; 170 display: inline-flex; 171 align-items: center; 172 justify-content: center; 173 gap: 5px; 174 text-decoration: none; 175 border: 1px solid #005ae0; 176 -webkit-transition: all .3s ease; 177 -moz-transition: all .3s ease; 178 -ms-transition: all .3s ease; 179 -o-transition: all .3s ease; 180 transition: all .3s ease; 181 } 182 183 .stock_notifier_popup_heading{ 184 text-align: center; 185 } 186 @media only screen and (max-width: 575px) { 187 .stock_notifier_popup_container .popup_head_and_content .popupContent { 188 width: 300px; 189 } 190 } 141 191 .stock_notifier_popup_container .popup_head_and_content .popupContent .top_bg { 142 192 max-width: 500px; -
stock-notifier-for-woocommerce/tags/2.0.1/readme.txt
r2813151 r2817170 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.6 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 140 140 == Changelog == 141 141 142 = 2.0.1 - 13 Nov 2022 = 143 - Add WooCommerce validation 144 - Updated and optimize user friendly and organized readme 145 142 146 = 2.0.0 - 07 Nov 2022 = 143 147 - Checked and fixed compatibility with WordPress 6.1 … … 145 149 - Updated and optimize user friendly and organized readme 146 150 151 = 1.2.9 - 03 Nov 2022 = 152 - Checked and fixed compatibility with WordPress 6.1 153 - Update the UTM link on plugins popup 154 - Updated and optimize user friendly and organized readme 155 156 = 1.2.8 - 26 Oct 2022 = 157 - Update the UTM link on plugins popup 158 - Updated and optimize user friendly and organized readme 159 160 = 1.2.7 - 26 Oct 2022 = 161 - Update the UTM link on plugins popup 162 - Updated and optimize user friendly and organized readme 163 147 164 = 1.2.6 - 06 Oct 2022 = 148 165 - Updated and optimize user friendly and organized readme 166 149 167 150 168 = 1.2.5 - 06 Sep 2022 = -
stock-notifier-for-woocommerce/tags/2.0.1/stock-notifier-for-woocommerce.php
r2813131 r2817170 4 4 * Plugin URI: https://wppool.dev/ 5 5 * Description: Woocommerce plugin using which a customer can subscribe for interest on an out of stock product. When the product becomes available, subscribed customer will get an alert Whatsapp. 6 * Version: 2.0. 06 * Version: 2.0.1 7 7 * Author: WPPOOL 8 8 * Author URI: http://wppool.dev … … 22 22 // define constants. 23 23 if ( ! defined( 'STOCKNOTIFIER_VERSION' ) ) { 24 define( 'STOCKNOTIFIER_VERSION', '2.0. 0' );24 define( 'STOCKNOTIFIER_VERSION', '2.0.1' ); 25 25 define( 'STOCKNOTIFIER_PATH', plugin_dir_path( __FILE__ ) ); 26 26 define( 'STOCKNOTIFIER_INCLUDES', STOCKNOTIFIER_PATH . 'includes' ); … … 74 74 add_action( 'activated_plugin', [ $this, 'activation_redirect' ] ); 75 75 add_action( 'stock_notifier_popup_dokan', [ $this, 'show_popup_dokan' ] ); 76 } 77 } 76 } else { 77 $this->include_woocommerce_popup_file(); 78 add_action('admin_menu',[ $this, 'register_stock_notifer_menu' ] ); 79 add_action('admin_enqueue_scripts',[$this,'css_for_woocommerce_popup']); 80 add_action( 'activated_plugin', [ $this, 'activation_redirect' ] ); 81 } 82 } 83 84 public function include_woocommerce_popup_file(){ 85 require_once STOCKNOTIFIER_INCLUDES . '/class-popup-ajax.php'; 86 } 87 /** 88 * Woocommerce inactive popup css 89 * 90 * @return void 91 */ 92 public function css_for_woocommerce_popup($hook) { 93 wp_enqueue_style( 'stock_notifier_admin_css', STOCKNOTIFIER_URL . 'assets/admin/admin.css' ); 94 if ( $hook == 'toplevel_page_stock_notifier_settings' ) { 95 wp_enqueue_script( 'stock_notifier_popup', STOCKNOTIFIER_URL . 'assets/admin/popup.js', [ 'jquery'], STOCKNOTIFIER_VERSION, true ); 96 wp_localize_script( 'stock_notifier_popup', 'stock_notifier_popup', [ 97 'ajax_url' => admin_url( 'admin-ajax.php' ), 98 'nonce' => wp_create_nonce( 'stock_notifier_popup_ajax' ), 99 ] ); 100 } 101 102 } 103 /** 104 * Register Stock Notifier -> Woocommerce inactive Menu 105 * 106 * @return void 107 * @version 2.0.1 108 */ 109 public function register_stock_notifer_menu() { 110 add_menu_page( __( 'Stock Notifier','stock-notifier' ), __('Stock Notifier','stock-notifier'), 'manage_options', 'stock_notifier_settings', [ $this,'stock_notifier_setting' ],STOCKNOTIFIER_URL . 'assets/img/svg.svg', 40 ); 111 } 112 /** 113 * Woocommerce inactive Setting page 114 * 115 * @return void 116 * @version 2.0.1 117 */ 118 public function stock_notifier_setting() { 119 $template = __DIR__ . '/templates/woocommerce_popup.php'; 120 if ( file_exists( $template ) ) { 121 include $template; 122 } 123 } 124 78 125 /** 79 126 * Show dokan Multivendor page premium popup -
stock-notifier-for-woocommerce/trunk/assets/admin/admin.css
r2727954 r2817170 9 9 margin-left: 6px !important; 10 10 } 11 .toplevel_page_stock_notifier_settings .wp-menu-image { 12 display: flex; 13 align-items: center; 14 } 15 16 .toplevel_page_stock_notifier_settings .wp-menu-image img { 17 max-width: 60%; 18 padding-top: 0 !important; 19 margin-left: 6px !important; 20 } 11 21 .stock_notifier_ult_link { 12 22 background: #fff; … … 83 93 overflow: hidden; 84 94 background-color: rgba(0, 0, 0, 0.6); 85 opacity: 0; 86 visibility: hidden; 87 z-index: -2; 95 } 96 .stock_notifier_bg img{ 97 width: 100%; 98 } 99 .stock_notifier_button{ 100 margin-bottom: 40px; 88 101 } 89 102 … … 91 104 opacity: 1; 92 105 visibility: visible; 93 z-index: 9992;106 z-index: 10; 94 107 } 95 108 .stock_notifier_popup_container .popup_head_and_content { 96 max-width: 375px;97 109 display: -webkit-box; 98 110 display: -ms-flexbox; … … 120 132 121 133 .stock_notifier_popup_container .popup_head_and_content .popupContent { 122 max-width: 500px;134 width: 500px; 123 135 display: -webkit-box; 124 136 display: -ms-flexbox; … … 138 150 overflow: hidden; 139 151 } 140 152 .stock_notifier_top_bg { 153 /* margin-top: 100px; */ 154 padding: 20px; 155 margin-top: 46px; 156 } 157 158 .stock_notifier_bottom_bg { 159 outline: 0; 160 color: #f8f9fa !important; 161 font-size: 16px; 162 cursor: pointer; 163 font-weight: 500; 164 line-height: 20px; 165 background: #005ae0 !important; 166 box-shadow: none; 167 padding: 9px 20px; 168 border-radius: 4px; 169 font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; 170 display: inline-flex; 171 align-items: center; 172 justify-content: center; 173 gap: 5px; 174 text-decoration: none; 175 border: 1px solid #005ae0; 176 -webkit-transition: all .3s ease; 177 -moz-transition: all .3s ease; 178 -ms-transition: all .3s ease; 179 -o-transition: all .3s ease; 180 transition: all .3s ease; 181 } 182 183 .stock_notifier_popup_heading{ 184 text-align: center; 185 } 186 @media only screen and (max-width: 575px) { 187 .stock_notifier_popup_container .popup_head_and_content .popupContent { 188 width: 300px; 189 } 190 } 141 191 .stock_notifier_popup_container .popup_head_and_content .popupContent .top_bg { 142 192 max-width: 500px; -
stock-notifier-for-woocommerce/trunk/readme.txt
r2813151 r2817170 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.6 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 140 140 == Changelog == 141 141 142 = 2.0.1 - 13 Nov 2022 = 143 - Add WooCommerce validation 144 - Updated and optimize user friendly and organized readme 145 142 146 = 2.0.0 - 07 Nov 2022 = 143 147 - Checked and fixed compatibility with WordPress 6.1 … … 145 149 - Updated and optimize user friendly and organized readme 146 150 151 = 1.2.9 - 03 Nov 2022 = 152 - Checked and fixed compatibility with WordPress 6.1 153 - Update the UTM link on plugins popup 154 - Updated and optimize user friendly and organized readme 155 156 = 1.2.8 - 26 Oct 2022 = 157 - Update the UTM link on plugins popup 158 - Updated and optimize user friendly and organized readme 159 160 = 1.2.7 - 26 Oct 2022 = 161 - Update the UTM link on plugins popup 162 - Updated and optimize user friendly and organized readme 163 147 164 = 1.2.6 - 06 Oct 2022 = 148 165 - Updated and optimize user friendly and organized readme 166 149 167 150 168 = 1.2.5 - 06 Sep 2022 = -
stock-notifier-for-woocommerce/trunk/stock-notifier-for-woocommerce.php
r2813131 r2817170 4 4 * Plugin URI: https://wppool.dev/ 5 5 * Description: Woocommerce plugin using which a customer can subscribe for interest on an out of stock product. When the product becomes available, subscribed customer will get an alert Whatsapp. 6 * Version: 2.0. 06 * Version: 2.0.1 7 7 * Author: WPPOOL 8 8 * Author URI: http://wppool.dev … … 22 22 // define constants. 23 23 if ( ! defined( 'STOCKNOTIFIER_VERSION' ) ) { 24 define( 'STOCKNOTIFIER_VERSION', '2.0. 0' );24 define( 'STOCKNOTIFIER_VERSION', '2.0.1' ); 25 25 define( 'STOCKNOTIFIER_PATH', plugin_dir_path( __FILE__ ) ); 26 26 define( 'STOCKNOTIFIER_INCLUDES', STOCKNOTIFIER_PATH . 'includes' ); … … 74 74 add_action( 'activated_plugin', [ $this, 'activation_redirect' ] ); 75 75 add_action( 'stock_notifier_popup_dokan', [ $this, 'show_popup_dokan' ] ); 76 } 77 } 76 } else { 77 $this->include_woocommerce_popup_file(); 78 add_action('admin_menu',[ $this, 'register_stock_notifer_menu' ] ); 79 add_action('admin_enqueue_scripts',[$this,'css_for_woocommerce_popup']); 80 add_action( 'activated_plugin', [ $this, 'activation_redirect' ] ); 81 } 82 } 83 84 public function include_woocommerce_popup_file(){ 85 require_once STOCKNOTIFIER_INCLUDES . '/class-popup-ajax.php'; 86 } 87 /** 88 * Woocommerce inactive popup css 89 * 90 * @return void 91 */ 92 public function css_for_woocommerce_popup($hook) { 93 wp_enqueue_style( 'stock_notifier_admin_css', STOCKNOTIFIER_URL . 'assets/admin/admin.css' ); 94 if ( $hook == 'toplevel_page_stock_notifier_settings' ) { 95 wp_enqueue_script( 'stock_notifier_popup', STOCKNOTIFIER_URL . 'assets/admin/popup.js', [ 'jquery'], STOCKNOTIFIER_VERSION, true ); 96 wp_localize_script( 'stock_notifier_popup', 'stock_notifier_popup', [ 97 'ajax_url' => admin_url( 'admin-ajax.php' ), 98 'nonce' => wp_create_nonce( 'stock_notifier_popup_ajax' ), 99 ] ); 100 } 101 102 } 103 /** 104 * Register Stock Notifier -> Woocommerce inactive Menu 105 * 106 * @return void 107 * @version 2.0.1 108 */ 109 public function register_stock_notifer_menu() { 110 add_menu_page( __( 'Stock Notifier','stock-notifier' ), __('Stock Notifier','stock-notifier'), 'manage_options', 'stock_notifier_settings', [ $this,'stock_notifier_setting' ],STOCKNOTIFIER_URL . 'assets/img/svg.svg', 40 ); 111 } 112 /** 113 * Woocommerce inactive Setting page 114 * 115 * @return void 116 * @version 2.0.1 117 */ 118 public function stock_notifier_setting() { 119 $template = __DIR__ . '/templates/woocommerce_popup.php'; 120 if ( file_exists( $template ) ) { 121 include $template; 122 } 123 } 124 78 125 /** 79 126 * Show dokan Multivendor page premium popup
Note: See TracChangeset
for help on using the changeset viewer.