Changeset 1690167 for note-press/trunk/Note_Press.php
- Timestamp:
- 07/03/2017 11:53:17 PM (9 years ago)
- File:
-
- 1 edited
-
note-press/trunk/Note_Press.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
note-press/trunk/Note_Press.php
r1689102 r1690167 1 1 <?php 2 2 3 4 5 3 /** 6 7 4 * The WordPress Plugin Boilerplate. 8 9 5 * 10 11 6 * A foundation off of which to build well-documented WordPress plugins that 12 13 7 * also follow WordPress Coding Standards and PHP best practices. 14 15 8 * 16 17 9 * @package Note_Press 18 19 10 * @author datainterlock <postmaster@datainterlock.com> 20 21 11 * @license GPL-3.0+ 22 23 12 * @link http://www.datainterlock.com 24 25 13 * @Copyright (C) 2015 Rod Kinnison postmaster@datainterlock.com 26 27 14 * 28 29 15 * @wordpress-plugin 30 31 16 * Plugin Name: Note Press 32 33 17 * Plugin URI: http://www.datainterlock.com 34 35 18 * 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 39 20 * Author: datainterlock 40 41 21 * Author URI: http://www.datainterlock.com 42 43 22 * Text Domain: Note_Press 44 45 23 * License: -3.0+ 46 47 24 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 48 49 25 * Domain Path: /languages 50 51 26 * WordPress-Plugin-Boilerplate: v2.6.1 52 27 53 28 54 55 56 57 29 This program is free software: you can redistribute it and/or modify 58 59 30 it under the terms of the GNU General Public License as published by 60 61 31 the Free Software Foundation, either version 3 of the License. 62 32 63 64 65 33 This program is distributed in the hope that it will be useful, 66 67 34 but WITHOUT ANY WARRANTY; without even the implied warranty of 68 69 35 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 70 71 36 GNU General Public License for more details. 72 37 73 74 75 38 You should have received a copy of the GNU General Public License 76 77 39 along with this program. If not, see <http://www.gnu.org/licenses/>. 78 40 79 80 81 41 The basic structure of this plugin was cloned from the [WordPress-Plugin-Boilerplate] 82 83 42 (https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate) project. Thanks Tom! 84 43 85 86 87 44 Many of the features of the Boilerplate, such as the admin settings, css and js are included 88 89 45 in this plugin yet are not used in this version. I've went ahead and included them as I do have 90 91 46 plans to use them in the future. 92 93 47 */ 94 95 48 // If this file is called directly, abort. 96 49 50 if ( ! defined( 'WPINC' ) ) { 51 die; 52 } 97 53 54 /** 55 * The code that runs during plugin activation. 56 * This action is documented in includes/class-Note_Press-activator.php 57 */ 58 function activate_Note_Press() { 59 require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-activator.php'; 60 Note_Press_Activator::activate(); 61 } 98 62 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 */ 67 function deactivate_Note_Press() { 68 require_once plugin_dir_path( __FILE__ ) . 'includes/class-Note_Press-deactivator.php'; 69 Note_Press_Deactivator::deactivate(); 70 } 100 71 101 die; 72 register_activation_hook( __FILE__, 'activate_Note_Press' ); 73 register_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 */ 79 require 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 */ 90 function run_Note_Press() { 91 92 $plugin = new Note_Press(); 93 $plugin->run(); 102 94 103 95 } 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.php112 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.php130 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 does170 171 * not affect the page life cycle.172 173 *174 175 * @since 1.0.0176 177 */178 179 function run_Note_Press() {180 181 182 183 $plugin = new Note_Press();184 185 $plugin->run();186 187 188 189 }190 191 96 run_Note_Press(); 192 193 194 195 196
Note: See TracChangeset
for help on using the changeset viewer.