Plugin Directory


Ignore:
Timestamp:
07/03/2017 11:53:17 PM (9 years ago)
Author:
datainterlock
Message:

Wordpress 0.1.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • note-press/trunk/Note_Press.php

    r1689102 r1690167  
    11<?php
    22
    3 
    4 
    53/**
    6 
    74 * The WordPress Plugin Boilerplate.
    8 
    95 *
    10 
    116 * A foundation off of which to build well-documented WordPress plugins that
    12 
    137 * also follow WordPress Coding Standards and PHP best practices.
    14 
    158 *
    16 
    179 * @package   Note_Press
    18 
    1910 * @author    datainterlock <postmaster@datainterlock.com>
    20 
    2111 * @license   GPL-3.0+
    22 
    2312 * @link      http://www.datainterlock.com
    24 
    2513 * @Copyright (C) 2015 Rod Kinnison postmaster@datainterlock.com
    26 
    2714 *
    28 
    2915 * @wordpress-plugin
    30 
    3116 * Plugin Name:       Note Press
    32 
    3317 * Plugin URI:        http://www.datainterlock.com
    34 
    3518 * Description:       Add, edit and delete multiple notes and display them with icons on the Admin page or dashboard.
    36 
    37  * Version:           0.1.5
    38 
     19 * Version:           0.1.6
    3920 * Author:            datainterlock
    40 
    4121 * Author URI:        http://www.datainterlock.com
    42 
    4322 * Text Domain:       Note_Press
    44 
    4523 * License:           -3.0+
    46 
    4724 * License URI:       http://www.gnu.org/licenses/gpl-3.0.html
    48 
    4925 * Domain Path:       /languages
    50 
    5126 * WordPress-Plugin-Boilerplate: v2.6.1
    5227
    5328
    54 
    55 
    56 
    5729This program is free software: you can redistribute it and/or modify
    58 
    5930it under the terms of the GNU General Public License as published by
    60 
    6131the Free Software Foundation, either version 3 of the License.
    6232
    63 
    64 
    6533This program is distributed in the hope that it will be useful,
    66 
    6734but WITHOUT ANY WARRANTY; without even the implied warranty of
    68 
    6935MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    70 
    7136GNU General Public License for more details.
    7237
    73 
    74 
    7538You should have received a copy of the GNU General Public License
    76 
    7739along with this program.  If not, see <http://www.gnu.org/licenses/>.
    7840
    79 
    80 
    8141The basic structure of this plugin was cloned from the [WordPress-Plugin-Boilerplate]
    82 
    8342(https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate) project. Thanks Tom!
    8443
    85 
    86 
    8744Many of the features of the Boilerplate, such as the admin settings, css and js are included
    88 
    8945in this plugin yet are not used in this version. I've went ahead and included them as I do have
    90 
    9146plans to use them in the future.
    92 
    9347*/
    94 
    9548// If this file is called directly, abort.
    9649
     50if ( ! defined( 'WPINC' ) ) {
     51    die;
     52}
    9753
     54/**
     55 * The code that runs during plugin activation.
     56 * This action is documented in includes/class-Note_Press-activator.php
     57 */
     58function activate_Note_Press() {
     59    require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-activator.php';
     60    Note_Press_Activator::activate();
     61}
    9862
    99 if ( ! defined( 'WPINC' ) ) {
     63/**
     64 * The code that runs during plugin deactivation.
     65 * This action is documented in includes/class-Note_Press-deactivator.php
     66 */
     67function deactivate_Note_Press() {
     68    require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-deactivator.php';
     69    Note_Press_Deactivator::deactivate();
     70}
    10071
    101     die;
     72register_activation_hook( __FILE__, 'activate_Note_Press' );
     73register_deactivation_hook( __FILE__, 'deactivate_Note_Press' );
     74
     75/**
     76 * The core plugin class that is used to define internationalization,
     77 * admin-specific hooks, and public-facing site hooks.
     78 */
     79require plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press.php';
     80
     81/**
     82 * Begins execution of the plugin.
     83 *
     84 * Since everything within the plugin is registered via hooks,
     85 * then kicking off the plugin from this point in the file does
     86 * not affect the page life cycle.
     87 *
     88 * @since    1.0.0
     89 */
     90function run_Note_Press() {
     91
     92    $plugin = new Note_Press();
     93    $plugin->run();
    10294
    10395}
    104 
    105 
    106 
    107 /**
    108 
    109  * The code that runs during plugin activation.
    110 
    111  * This action is documented in includes/class-Note_Press-activator.php
    112 
    113  */
    114 
    115 function activate_Note_Press() {
    116 
    117     require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-activator.php';
    118 
    119     Note_Press_Activator::activate();
    120 
    121 }
    122 
    123 
    124 
    125 /**
    126 
    127  * The code that runs during plugin deactivation.
    128 
    129  * This action is documented in includes/class-Note_Press-deactivator.php
    130 
    131  */
    132 
    133 function deactivate_Note_Press() {
    134 
    135     require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-deactivator.php';
    136 
    137     Note_Press_Deactivator::deactivate();
    138 
    139 }
    140 
    141 
    142 
    143 register_activation_hook( __FILE__, 'activate_Note_Press' );
    144 
    145 register_deactivation_hook( __FILE__, 'deactivate_Note_Press' );
    146 
    147 
    148 
    149 /**
    150 
    151  * The core plugin class that is used to define internationalization,
    152 
    153  * admin-specific hooks, and public-facing site hooks.
    154 
    155  */
    156 
    157 require plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press.php';
    158 
    159 
    160 
    161 /**
    162 
    163  * Begins execution of the plugin.
    164 
    165  *
    166 
    167  * Since everything within the plugin is registered via hooks,
    168 
    169  * then kicking off the plugin from this point in the file does
    170 
    171  * not affect the page life cycle.
    172 
    173  *
    174 
    175  * @since    1.0.0
    176 
    177  */
    178 
    179 function run_Note_Press() {
    180 
    181 
    182 
    183     $plugin = new Note_Press();
    184 
    185     $plugin->run();
    186 
    187 
    188 
    189 }
    190 
    19196run_Note_Press();
    192 
    193 
    194 
    195 
    196 
Note: See TracChangeset for help on using the changeset viewer.