-
Notifications
You must be signed in to change notification settings - Fork 1
/
zealpush.php
93 lines (75 loc) · 2.51 KB
/
zealpush.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* Plugin Name: Push Notifications For Web
* Plugin URL: https://wordpress.org/plugin-url/
* Description: Best platform for sending web push notifications.
* Version: 1.5
* Author: ZealousWeb
* Author URI: https://www.zealousweb.com
* Developer: The Zealousweb Team
* Developer E-Mail: [email protected]
* Text Domain: push-notifications-for-web
* Domain Path: /languages
*
* Copyright: © 2009-2022 ZealousWeb.
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/**
* Basic plugin definitions
*
* @package Web Push Notification
* @since 1.1
*/
if ( !defined( 'ZPN_VERSION' ) ) {
define( 'ZPN_VERSION', '1.5' ); // Version of plugin
}
if ( !defined( 'ZPN_FILE' ) ) {
define( 'ZPN_FILE', __FILE__ ); // Plugin File
}
if ( !defined( 'ZPN_DIR' ) ) {
define( 'ZPN_DIR', dirname( __FILE__ ) ); // Plugin dir
}
if ( !defined( 'ZPN_URL' ) ) {
define( 'ZPN_URL', plugin_dir_url( __FILE__ ) ); // Plugin url
}
if ( !defined( 'ZPN_PLUGIN_BASENAME' ) ) {
define( 'ZPN_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); // Plugin base name
}
if ( !defined( 'ZPN_META_PREFIX' ) ) {
define( 'ZPN_META_PREFIX', 'zpn_' ); // Plugin metabox prefix
}
if ( !defined( 'ZPN_PREFIX' ) ) {
define( 'ZPN_PREFIX', 'zpn' ); // Plugin prefix
}
if ( !defined( 'ZPN_POST_TYPE' ) ) {
define( 'ZPN_POST_TYPE', 'zpn_data' ); // Plugin post type
}
if ( !defined( 'ZPN_SUPPORT' ) ) {
define( 'ZPN_SUPPORT', 'https://zealousweb.com/support/' ); // Plugin Support Link
}
if ( !defined( 'ZPN_DOCUMENT' ) ) {
define( 'ZPN_DOCUMENT', '#' ); // Plugin Document Link
}
if ( !defined( 'ZPN_PRODUCT_LINK' ) ) {
define( 'ZPN_PRODUCT_LINK', '#' ); // Plugin Product Link
}
/**
* Initialize the main class
*/
if ( !function_exists( 'ZPN' ) ) {
if ( is_admin() ) {
require_once( ZPN_DIR . '/inc/admin/class.' . ZPN_PREFIX . '.admin.php' );
require_once( ZPN_DIR . '/inc/admin/class.' . ZPN_PREFIX . '.admin.action.php' );
require_once( ZPN_DIR . '/inc/admin/class.' . ZPN_PREFIX . '.admin.filter.php' );
} else {
require_once( ZPN_DIR . '/inc/front/class.' . ZPN_PREFIX . '.front.php' );
require_once( ZPN_DIR . '/inc/front/class.' . ZPN_PREFIX . '.front.action.php' );
require_once( ZPN_DIR . '/inc/front/class.' . ZPN_PREFIX . '.front.filter.php' );
}
require_once( ZPN_DIR . '/inc/lib/class.' . ZPN_PREFIX . '.lib.php' );
//Initialize all the things.
require_once( ZPN_DIR . '/inc/class.' . ZPN_PREFIX . '.php' );
}