PluginProbe
Mark Posts / 1.0.4
Mark Posts v1.0.4
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 All 28 releases
mark-posts / mark-posts.php

mark-posts.php in Mark Posts 1.0.4, at mark-posts.php

82 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Mark Posts
4 *
5 * @package Mark_Posts
6 * @author Michael Schoenrock <hello@michaelschoenrock.com>, Sven Hofmann <info@hofmannsven.com>
7 * @license GPL-2.0+
8 * @link http://flymke.github.io/mark-posts/
9 * @copyright 2014 Michael Schoenrock
10 *
11 * @wordpress-plugin
12 * Plugin Name: Mark Posts
13 * Plugin URI: http://flymke.github.io/mark-posts/
14 * Description: Simply mark and highlight posts, pages and posts of custom post types within the posts view overview.
15 * Version: 1.0.4
16 * Author: <a href="http://www.aliquit.de" target="_blank">Michael Schoenrock</a>, <a href="http://hofmannsven.com" target="_blank">Sven Hofmann</a>
17 * Author URI: http://www.aliquit.de
18 * Contributor: Sven Hofmann
19 * Contributor URI: http://hofmannsven.com
20 * Text Domain: mark-posts
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Domain Path: /languages
24 * GitHub Plugin URI: https://github.com/flymke/mark-posts
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /*----------------------------------------------------------------------------*
33 * Public-Facing Functionality
34 *----------------------------------------------------------------------------*/
35
36 /*
37 * plugin version
38 *
39 */
40 if ( ! defined( 'WP_MARK_POSTS_VERSION' ) ) {
41 define( 'WP_MARK_POSTS_VERSION', '1.0.4' );
42 }
43
44 /*
45 * plugin dir path
46 *
47 */
48 if ( ! defined( 'WP_MARK_POSTS_PATH' ) ) {
49 define( 'WP_MARK_POSTS_PATH', plugin_dir_path( __FILE__ ) );
50 }
51
52 /*
53 * plugin's class file
54 *
55 */
56 require_once( plugin_dir_path( __FILE__ ) . 'public/class-mark-posts.php' );
57
58 /*
59 * Register hooks that are fired when the plugin is activated or deactivated.
60 * When the plugin is deleted, the uninstall.php file is loaded.
61 *
62 */
63 register_activation_hook( __FILE__, array( 'Mark_Posts', 'activate' ) );
64 register_deactivation_hook( __FILE__, array( 'Mark_Posts', 'deactivate' ) );
65
66 /*
67 * Add action plugins_loaded
68 *
69 */
70 add_action( 'plugins_loaded', array( 'Mark_Posts', 'get_instance' ) );
71
72 /*----------------------------------------------------------------------------*
73 * Dashboard and Administrative Functionality
74 *----------------------------------------------------------------------------*/
75
76 if ( is_admin() ) {
77
78 require_once( plugin_dir_path( __FILE__ ) . 'admin/class-mark-posts-marker.php' );
79 require_once( plugin_dir_path( __FILE__ ) . 'admin/class-mark-posts-admin.php' );
80 add_action( 'plugins_loaded', array( 'Mark_Posts_Admin', 'get_instance' ) );
81
82 }