Plugin Directory

Changeset 1434483


Ignore:
Timestamp:
06/10/2016 01:22:31 PM (10 years ago)
Author:
wizcoder
Message:

Release 1.0.1, see readme.txt for the changelog.

Location:
wc-simple-waiting-list
Files:
80 added
12 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wc-simple-waiting-list/tags/1.0.1/gitignore

    r1428818 r1434483  
    11!*.zip
     2.DS_Store
  • wc-simple-waiting-list/tags/1.0.1/readme.txt

    r1428818 r1434483  
    1 === Plugin Name ===
     1=== WC Simple Waiting List ===
    22Contributors: wizcoder
    3 Donate link:
     3Donate link: http://imakeplugins.com/
    44Tags: ecommerce
    55Requires at least: 4.5
    66Tested up to: 4.5.2
    7 Stable tag: 1.0.0
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7Stable tag: 1.0.1
     8License: GPLv3 or later
     9License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    1111A woocommerce extension to allow out of sotck products to have a waiting list for registered and non-registered users.
     
    1313== Description ==
    1414
    15 Add a waiting list email box for non-registered users for out-of-stock
    16 Add join waiting list button for all registered users
    17 Automatically email waiting list when stock status is set to in-stock
    18 A waiting list page to list all product and the number of people on waiting list
    19 A dashboard widget display the total product that have a waiting list
     15Allows non-registered and registered users to add their email to a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to waiting list. Includes a waiting list page to list all product and the number of people on waiting list and a dashboard widget display the total number of product that have a waiting list
    2016
    2117
     
    3026
    3127== Screenshots ==
    32 .
    33 
     281. Widget on Dashboard.
     292. Waiting List Page.
     303. Join waiting list for registered user.
     314. Join wating list for unregistered user.
    3432
    3533== Changelog ==
    36 .
     34= 1.0.1 - 29/01/2016 =
     35* Use Wordpress Plugin boilerplate.
     36* Better css table.
     37
     38= 1.0.0=
     39* Initial release.
    3740
    3841== Upgrade Notice ==
  • wc-simple-waiting-list/tags/1.0.1/wc-simple-waiting-list.php

    r1428818 r1434483  
    11<?php
     2
    23/**
    3  * Plugin Name: WC SIMPLE WAITING LIST
    4  * Plugin URI:
    5  * Description: A waiting list plugin for WooCommerce
    6  * Version: 1.0.0
    7  * Author: Bob Ong Swee San
    8  * Author URI:
    9  * License: GPL2
    10  * Requires at least: 4.5
    11  * Tested up to: 4.5.2
     4 * The plugin bootstrap file
     5 *
     6 * This file is read by WordPress to generate the plugin information in the plugin
     7 * admin area. This file also includes all of the dependencies used by the plugin,
     8 * registers the activation and deactivation functions, and defines a function
     9 * that starts the plugin.
     10 *
     11 * @link              http://imakeplugins.com
     12 * @since             1.0.0
     13 * @package           Wc_Simple_Waiting_List
     14 *
     15 * @wordpress-plugin
     16 * Plugin Name:       WC Simple Waiting List
     17 * Plugin URI:        http://imakeplugins.com/wc-simple-waiting-list/
     18 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
     19 * Version:           1.0.1
     20 * Author:            Bob Ong
     21 * Author URI:        http://imakeplugins.com
     22 * License:           GPL-3.0+
     23 * License URI:       http://www.gnu.org/licenses/gpl-3.0.txt
     24 * Text Domain:       wc-simple-waiting-list
     25 * Domain Path:       /languages
    1226 */
    1327
    14 // Exit if accessed directly
    15 if ( ! defined( 'ABSPATH' ) ) exit;
     28// If this file is called directly, abort.
     29if ( ! defined( 'WPINC' ) ) {
     30    die;
     31}
    1632
    17 if( ! class_exists( 'wc_simple_waiting_list' ) ){
     33/**
     34 * The code that runs during plugin activation.
     35 * This action is documented in includes/class-wc-simple-waiting-list-activator.php
     36 */
     37function activate_wc_simple_waiting_list() {
     38    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list-activator.php';
     39    Wc_Simple_Waiting_List_Activator::activate();
     40}
    1841
    19     class wc_simple_waiting_list
    20     {
     42/**
     43 * The code that runs during plugin deactivation.
     44 * This action is documented in includes/class-wc-simple-waiting-list-deactivator.php
     45 */
     46function deactivate_wc_simple_waiting_list() {
     47    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list-deactivator.php';
     48    Wc_Simple_Waiting_List_Deactivator::deactivate();
     49}
    2150
    22         public function __construct() {
    23             define( 'WC_SIMPLE_WAITING_LIST_VERSION', '1.1.0' );
    24             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    25             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_BASENAME', untrailingslashit( plugin_basename( dirname( __FILE__ ) ) ));
    26             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
    27             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_META', 'wc_simple_waiting_list_meta_key' );
     51register_activation_hook( __FILE__, 'activate_wc_simple_waiting_list' );
     52register_deactivation_hook( __FILE__, 'deactivate_wc_simple_waiting_list' );
    2853
    29             add_action( 'init', array( $this, 'wc_simple_waiting_list_init' ) );
    30             add_action( 'woocommerce_init', array( $this, 'wc_simple_waiting_list_mailer' ) );
    31             add_filter( 'woocommerce_email_classes', array( $this, 'wc_simple_waiting_list_class' ) );
    32         }
     54/**
     55 * The core plugin class that is used to define internationalization,
     56 * admin-specific hooks, and public-facing site hooks.
     57 */
     58require plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list.php';
    3359
    34         public function wc_simple_waiting_list_init() {
    35             load_plugin_textdomain( 'wc-simple-waiting-list', false, WC_SIMPLE_WAITING_LIST_PLUGIN_BASENAME . "/languages" );
    36             require_once( 'includes/wc-simple-waiting-list-form.php' );
    37             require_once( 'includes/wc-simple-waiting-list-options.php' );
    38            
    39         }
     60/**
     61 * Begins execution of the plugin.
     62 *
     63 * Since everything within the plugin is registered via hooks,
     64 * then kicking off the plugin from this point in the file does
     65 * not affect the page life cycle.
     66 *
     67 * @since    1.0.0
     68 */
     69function run_wc_simple_waiting_list() {
    4070
    41         public function wc_simple_waiting_list_class( $emails )
    42         {
    43             $emails['wc_simple_waiting_list_email'] = include( 'includes/wc-simple-waiting-list-email.php' );
    44             return $emails;
    45         }
    46    
    47         public function wc_simple_waiting_list_mailer() {
    48             add_action( 'wc_simple_waiting_list_email_send', array( 'WC_Emails', 'send_transactional_email' ), 10, 2 );
    49         }
    50     }
     71    $plugin = new Wc_Simple_Waiting_List();
     72    $plugin->run();
     73
    5174}
    52 new wc_simple_waiting_list();
    53 ?>
     75run_wc_simple_waiting_list();
  • wc-simple-waiting-list/trunk/gitignore

    r1428818 r1434483  
    11!*.zip
     2.DS_Store
  • wc-simple-waiting-list/trunk/readme.txt

    r1428818 r1434483  
    1 === Plugin Name ===
     1=== WC Simple Waiting List ===
    22Contributors: wizcoder
    3 Donate link:
     3Donate link: http://imakeplugins.com/
    44Tags: ecommerce
    55Requires at least: 4.5
    66Tested up to: 4.5.2
    7 Stable tag: 1.0.0
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7Stable tag: 1.0.1
     8License: GPLv3 or later
     9License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    1111A woocommerce extension to allow out of sotck products to have a waiting list for registered and non-registered users.
     
    1313== Description ==
    1414
    15 Add a waiting list email box for non-registered users for out-of-stock
    16 Add join waiting list button for all registered users
    17 Automatically email waiting list when stock status is set to in-stock
    18 A waiting list page to list all product and the number of people on waiting list
    19 A dashboard widget display the total product that have a waiting list
     15Allows non-registered and registered users to add their email to a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to waiting list. Includes a waiting list page to list all product and the number of people on waiting list and a dashboard widget display the total number of product that have a waiting list
    2016
    2117
     
    3026
    3127== Screenshots ==
    32 .
    33 
     281. Widget on Dashboard.
     292. Waiting List Page.
     303. Join waiting list for registered user.
     314. Join wating list for unregistered user.
    3432
    3533== Changelog ==
    36 .
     34= 1.0.1 - 29/01/2016 =
     35* Use Wordpress Plugin boilerplate.
     36* Better css table.
     37
     38= 1.0.0=
     39* Initial release.
    3740
    3841== Upgrade Notice ==
  • wc-simple-waiting-list/trunk/wc-simple-waiting-list.php

    r1428818 r1434483  
    11<?php
     2
    23/**
    3  * Plugin Name: WC SIMPLE WAITING LIST
    4  * Plugin URI:
    5  * Description: A waiting list plugin for WooCommerce
    6  * Version: 1.0.0
    7  * Author: Bob Ong Swee San
    8  * Author URI:
    9  * License: GPL2
    10  * Requires at least: 4.5
    11  * Tested up to: 4.5.2
     4 * The plugin bootstrap file
     5 *
     6 * This file is read by WordPress to generate the plugin information in the plugin
     7 * admin area. This file also includes all of the dependencies used by the plugin,
     8 * registers the activation and deactivation functions, and defines a function
     9 * that starts the plugin.
     10 *
     11 * @link              http://imakeplugins.com
     12 * @since             1.0.0
     13 * @package           Wc_Simple_Waiting_List
     14 *
     15 * @wordpress-plugin
     16 * Plugin Name:       WC Simple Waiting List
     17 * Plugin URI:        http://imakeplugins.com/wc-simple-waiting-list/
     18 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
     19 * Version:           1.0.1
     20 * Author:            Bob Ong
     21 * Author URI:        http://imakeplugins.com
     22 * License:           GPL-3.0+
     23 * License URI:       http://www.gnu.org/licenses/gpl-3.0.txt
     24 * Text Domain:       wc-simple-waiting-list
     25 * Domain Path:       /languages
    1226 */
    1327
    14 // Exit if accessed directly
    15 if ( ! defined( 'ABSPATH' ) ) exit;
     28// If this file is called directly, abort.
     29if ( ! defined( 'WPINC' ) ) {
     30    die;
     31}
    1632
    17 if( ! class_exists( 'wc_simple_waiting_list' ) ){
     33/**
     34 * The code that runs during plugin activation.
     35 * This action is documented in includes/class-wc-simple-waiting-list-activator.php
     36 */
     37function activate_wc_simple_waiting_list() {
     38    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list-activator.php';
     39    Wc_Simple_Waiting_List_Activator::activate();
     40}
    1841
    19     class wc_simple_waiting_list
    20     {
     42/**
     43 * The code that runs during plugin deactivation.
     44 * This action is documented in includes/class-wc-simple-waiting-list-deactivator.php
     45 */
     46function deactivate_wc_simple_waiting_list() {
     47    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list-deactivator.php';
     48    Wc_Simple_Waiting_List_Deactivator::deactivate();
     49}
    2150
    22         public function __construct() {
    23             define( 'WC_SIMPLE_WAITING_LIST_VERSION', '1.1.0' );
    24             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    25             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_BASENAME', untrailingslashit( plugin_basename( dirname( __FILE__ ) ) ));
    26             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
    27             define( 'WC_SIMPLE_WAITING_LIST_PLUGIN_META', 'wc_simple_waiting_list_meta_key' );
     51register_activation_hook( __FILE__, 'activate_wc_simple_waiting_list' );
     52register_deactivation_hook( __FILE__, 'deactivate_wc_simple_waiting_list' );
    2853
    29             add_action( 'init', array( $this, 'wc_simple_waiting_list_init' ) );
    30             add_action( 'woocommerce_init', array( $this, 'wc_simple_waiting_list_mailer' ) );
    31             add_filter( 'woocommerce_email_classes', array( $this, 'wc_simple_waiting_list_class' ) );
    32         }
     54/**
     55 * The core plugin class that is used to define internationalization,
     56 * admin-specific hooks, and public-facing site hooks.
     57 */
     58require plugin_dir_path( __FILE__ ) . 'includes/class-wc-simple-waiting-list.php';
    3359
    34         public function wc_simple_waiting_list_init() {
    35             load_plugin_textdomain( 'wc-simple-waiting-list', false, WC_SIMPLE_WAITING_LIST_PLUGIN_BASENAME . "/languages" );
    36             require_once( 'includes/wc-simple-waiting-list-form.php' );
    37             require_once( 'includes/wc-simple-waiting-list-options.php' );
    38            
    39         }
     60/**
     61 * Begins execution of the plugin.
     62 *
     63 * Since everything within the plugin is registered via hooks,
     64 * then kicking off the plugin from this point in the file does
     65 * not affect the page life cycle.
     66 *
     67 * @since    1.0.0
     68 */
     69function run_wc_simple_waiting_list() {
    4070
    41         public function wc_simple_waiting_list_class( $emails )
    42         {
    43             $emails['wc_simple_waiting_list_email'] = include( 'includes/wc-simple-waiting-list-email.php' );
    44             return $emails;
    45         }
    46    
    47         public function wc_simple_waiting_list_mailer() {
    48             add_action( 'wc_simple_waiting_list_email_send', array( 'WC_Emails', 'send_transactional_email' ), 10, 2 );
    49         }
    50     }
     71    $plugin = new Wc_Simple_Waiting_List();
     72    $plugin->run();
     73
    5174}
    52 new wc_simple_waiting_list();
    53 ?>
     75run_wc_simple_waiting_list();
Note: See TracChangeset for help on using the changeset viewer.