forked from SuperPWA/Super-Progressive-Web-Apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
superpwa.php
52 lines (48 loc) · 2.24 KB
/
superpwa.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
<?php
/**
* Plugin Name: Super Progressive Web Apps
* Plugin URI: https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=plugin-uri
* Description: Convert your WordPress website into a Progressive Web App
* Author: SuperPWA
* Author URI: https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri
* Contributors: Arun Basil Lal, Jose Varghese
* Version: 1.9
* Text Domain: super-progressive-web-apps
* Domain Path: /languages
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/**
* ~ Directory Structure ~
*
* Based on the WordPress starter plugin template
* @link https://github.com/arunbasillal/WordPress-Starter-Plugin
*
* /3rd-party/ - Functions for compatibility with 3rd party plugins and hosts.
* /addons/ - Bundled add-ons
* /admin/ - Plugin backend.
* /functions/ - Functions and utilites.
* /includes/ - External third party classes and libraries.
* /languages/ - Translation files go here.
* /public/ - Front end files go here.
* index.php - Dummy file.
* license.txt - GPL v2
* loader.php - Loads everything.
* superpwa.php - Main plugin file.
* README.MD - Readme for GitHub.
* readme.txt - Readme for WordPress plugin repository.
* uninstall.php - Fired when the plugin is uninstalled.
*/
// Exit if accessed directly
if ( ! defined('ABSPATH') ) exit;
/**
* Define constants
*
* @since 1.0
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_MANIFEST_FILENAME, SUPERPWA_MANIFEST_ABS, SUPERPWA_MANIFEST_SRC
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_SW_FILENAME, SUPERPWA_SW_ABS, SUPERPWA_SW_SRC
*/
if ( ! defined( 'SUPERPWA_VERSION' ) ) define( 'SUPERPWA_VERSION' , '1.9' ); // SuperPWA current version
if ( ! defined( 'SUPERPWA_PATH_ABS' ) ) define( 'SUPERPWA_PATH_ABS' , plugin_dir_path( __FILE__ ) ); // Absolute path to the plugin directory. eg - /var/www/html/wp-content/plugins/super-progressive-web-apps/
if ( ! defined( 'SUPERPWA_PATH_SRC' ) ) define( 'SUPERPWA_PATH_SRC' , plugin_dir_url( __FILE__ ) ); // Link to the plugin folder. eg - https://example.com/wp-content/plugins/super-progressive-web-apps/
// Load everything
require_once( SUPERPWA_PATH_ABS . 'loader.php' );