-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsimple-qr-code-generator.php
82 lines (72 loc) · 2.53 KB
/
simple-qr-code-generator.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
<?php
/**
* Simple QR Code Generator
*
* @package SIMPLEQRCO
* @author El Mehdi Mouhajer
* @license gplv2
* @version 1.0.1
*
* @wordpress-plugin
* Plugin Name: Simple QR Code Generator
* Plugin URI: https://github.com/elmehdimouhajer/simpleQrCodeGenrerator
* Description: A simple WordPress plugin to generate QR codes for your posts and pages using QR Code Monkey API.
* Version: 1.0.1
* Author: El Mehdi Mouhajer
* Author URI: https://linkedin.com/in/elmehdimouhajer
* Text Domain: simple-qr-code-generator
* Domain Path: /languages
* License: GPLv2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* You should have received a copy of the GNU General Public License
* along with Simple QR Code Generator. If not, see <https://www.gnu.org/licenses/gpl-2.0.html/>.
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* HELPER COMMENT START
*
* This file contains the main information about the plugin.
* It is used to register all components necessary to run the plugin.
*
* The comment above contains all information about the plugin
* that are used by WordPress to differenciate the plugin and register it properly.
* It also contains further PHPDocs parameter for a better documentation
*
* The function SIMPLEQRCO() is the main function that you will be able to
* use throughout your plugin to extend the logic. Further information
* about that is available within the sub classes.
*
* HELPER COMMENT END
*/
// Plugin name
define( 'SIMPLEQRCO_NAME', 'Simple QR Code Generator' );
// Plugin version
define('SIMPLEQRCO_VERSION', '1.0.1');
// Plugin Root File
define( 'SIMPLEQRCO_PLUGIN_FILE', __FILE__ );
// Plugin base
define( 'SIMPLEQRCO_PLUGIN_BASE', plugin_basename( SIMPLEQRCO_PLUGIN_FILE ) );
// Plugin Folder Path
define( 'SIMPLEQRCO_PLUGIN_DIR', plugin_dir_path( SIMPLEQRCO_PLUGIN_FILE ) );
// Plugin Folder URL
define( 'SIMPLEQRCO_PLUGIN_URL', plugin_dir_url( SIMPLEQRCO_PLUGIN_FILE ) );
/**
* Load the main class for the core functionality
*/
require_once SIMPLEQRCO_PLUGIN_DIR . 'core/class-simple-qr-code-generator.php';
require_once SIMPLEQRCO_PLUGIN_DIR . 'vendor/autoload.php';
require_once SIMPLEQRCO_PLUGIN_DIR . 'admin/class-simple-qr-code-generator-admin.php';
/**
* The main function to load the only instance
* of our master class.
*
* @author El Mehdi Mouhajer
* @since 1.0.0
* @return object|Simple_Qr_Code_Generator
*/
function SIMPLEQRCO() {
return Simple_Qr_Code_Generator::instance();
}
SIMPLEQRCO();