Plugin Directory

Changeset 2817170


Ignore:
Timestamp:
11/13/2022 06:30:19 AM (3 years ago)
Author:
wppool
Message:

Tagging version 2.0.1

Location:
stock-notifier-for-woocommerce
Files:
12 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stock-notifier-for-woocommerce/tags/2.0.1/assets/admin/admin.css

    r2727954 r2817170  
    99  margin-left: 6px !important;
    1010}
     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  }
    1121.stock_notifier_ult_link {
    1222  background: #fff;
     
    8393    overflow: hidden;
    8494    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;
    88101  }
    89102 
     
    91104    opacity: 1;
    92105    visibility: visible;
    93     z-index: 9992;
     106    z-index: 10;
    94107  }
    95108  .stock_notifier_popup_container .popup_head_and_content {
    96     max-width: 375px;
    97109    display: -webkit-box;
    98110    display: -ms-flexbox;
     
    120132 
    121133  .stock_notifier_popup_container .popup_head_and_content .popupContent {
    122     max-width: 500px;
     134    width: 500px;
    123135    display: -webkit-box;
    124136    display: -ms-flexbox;
     
    138150    overflow: hidden;
    139151  }
    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  }
    141191  .stock_notifier_popup_container .popup_head_and_content .popupContent .top_bg {
    142192    max-width: 500px;
  • stock-notifier-for-woocommerce/tags/2.0.1/readme.txt

    r2813151 r2817170  
    55Tested up to: 6.1
    66Requires PHP: 5.6
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140== Changelog ==
    141141
     142= 2.0.1 - 13 Nov 2022 =
     143- Add WooCommerce validation
     144- Updated and optimize user friendly and organized readme
     145
    142146= 2.0.0 - 07 Nov 2022 =
    143147- Checked and fixed compatibility with WordPress 6.1
     
    145149- Updated and optimize user friendly and organized readme
    146150
     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
    147164= 1.2.6 - 06 Oct 2022 =
    148165- Updated and optimize user friendly and organized readme
     166
    149167
    150168= 1.2.5 - 06 Sep 2022 =
  • stock-notifier-for-woocommerce/tags/2.0.1/stock-notifier-for-woocommerce.php

    r2813131 r2817170  
    44 * Plugin URI:  https://wppool.dev/
    55 * 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.0
     6 * Version:     2.0.1
    77 * Author:      WPPOOL
    88 * Author URI:  http://wppool.dev
     
    2222// define constants.
    2323if ( ! defined( 'STOCKNOTIFIER_VERSION' ) ) {
    24     define( 'STOCKNOTIFIER_VERSION', '2.0.0' );
     24    define( 'STOCKNOTIFIER_VERSION', '2.0.1' );
    2525    define( 'STOCKNOTIFIER_PATH', plugin_dir_path( __FILE__ ) );
    2626    define( 'STOCKNOTIFIER_INCLUDES', STOCKNOTIFIER_PATH . 'includes' );
     
    7474                add_action( 'activated_plugin', [ $this, 'activation_redirect' ] );
    7575                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       
    78125        /**
    79126         * Show dokan Multivendor page premium popup
  • stock-notifier-for-woocommerce/trunk/assets/admin/admin.css

    r2727954 r2817170  
    99  margin-left: 6px !important;
    1010}
     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  }
    1121.stock_notifier_ult_link {
    1222  background: #fff;
     
    8393    overflow: hidden;
    8494    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;
    88101  }
    89102 
     
    91104    opacity: 1;
    92105    visibility: visible;
    93     z-index: 9992;
     106    z-index: 10;
    94107  }
    95108  .stock_notifier_popup_container .popup_head_and_content {
    96     max-width: 375px;
    97109    display: -webkit-box;
    98110    display: -ms-flexbox;
     
    120132 
    121133  .stock_notifier_popup_container .popup_head_and_content .popupContent {
    122     max-width: 500px;
     134    width: 500px;
    123135    display: -webkit-box;
    124136    display: -ms-flexbox;
     
    138150    overflow: hidden;
    139151  }
    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  }
    141191  .stock_notifier_popup_container .popup_head_and_content .popupContent .top_bg {
    142192    max-width: 500px;
  • stock-notifier-for-woocommerce/trunk/readme.txt

    r2813151 r2817170  
    55Tested up to: 6.1
    66Requires PHP: 5.6
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140== Changelog ==
    141141
     142= 2.0.1 - 13 Nov 2022 =
     143- Add WooCommerce validation
     144- Updated and optimize user friendly and organized readme
     145
    142146= 2.0.0 - 07 Nov 2022 =
    143147- Checked and fixed compatibility with WordPress 6.1
     
    145149- Updated and optimize user friendly and organized readme
    146150
     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
    147164= 1.2.6 - 06 Oct 2022 =
    148165- Updated and optimize user friendly and organized readme
     166
    149167
    150168= 1.2.5 - 06 Sep 2022 =
  • stock-notifier-for-woocommerce/trunk/stock-notifier-for-woocommerce.php

    r2813131 r2817170  
    44 * Plugin URI:  https://wppool.dev/
    55 * 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.0
     6 * Version:     2.0.1
    77 * Author:      WPPOOL
    88 * Author URI:  http://wppool.dev
     
    2222// define constants.
    2323if ( ! defined( 'STOCKNOTIFIER_VERSION' ) ) {
    24     define( 'STOCKNOTIFIER_VERSION', '2.0.0' );
     24    define( 'STOCKNOTIFIER_VERSION', '2.0.1' );
    2525    define( 'STOCKNOTIFIER_PATH', plugin_dir_path( __FILE__ ) );
    2626    define( 'STOCKNOTIFIER_INCLUDES', STOCKNOTIFIER_PATH . 'includes' );
     
    7474                add_action( 'activated_plugin', [ $this, 'activation_redirect' ] );
    7575                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       
    78125        /**
    79126         * Show dokan Multivendor page premium popup
Note: See TracChangeset for help on using the changeset viewer.