forked from Mizfa-Tech/Rahgozar-Wp-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrahgozar.php
83 lines (69 loc) · 3.17 KB
/
rahgozar.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
<?php
/**
* Plugin Name: Rahgozar
* Plugin URI: https://github.com/Mizfa-Tech
* Description: Making beautiful words and sentences with Rahgozar.
* Version: 1.0.0
* Author: Mizfa-Tech
* Author URI: https://github.com/Mizfa-Tech
* Text Domain: rahgozar
* Domain Path: /languages/
* Requires at least: 5.8
* Requires PHP: 8.0
*
* ██████╗░░█████╗░██╗░░██╗░██████╗░░█████╗░███████╗░█████╗░██████╗░
* ██╔══██╗██╔══██╗██║░░██║██╔════╝░██╔══██╗╚════██║██╔══██╗██╔══██╗
* ██████╔╝███████║███████║██║░░██╗░██║░░██║░░███╔═╝███████║██████╔╝
* ██╔══██╗██╔══██║██╔══██║██║░░╚██╗██║░░██║██╔══╝░░██╔══██║██╔══██╗
* ██║░░██║██║░░██║██║░░██║╚██████╔╝╚█████╔╝███████╗██║░░██║██║░░██║
* ╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝░╚═════╝░░╚════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝
*
* @package Rahgozar
*/
/*
|--------------------------------------------------------------------------
| Prevent direct access
|--------------------------------------------------------------------------
|
| Definitely, the most important file in the theme is functions file, which is
| very important to protect and should be prevented from direct access to it.
|
*/
defined( 'ABSPATH' ) || exit;
/*
|--------------------------------------------------------------------------
| Constants
|--------------------------------------------------------------------------
| Constants have values that are defined for use in different parts of the
| project, and if they are changed, all their references will also change.
|
*/
define( 'RAHGOZAR_PATH', plugin_dir_path( __FILE__ ) );
define( 'RAHGOZAR_URL', plugin_dir_url( __FILE__ ) );
/*
|--------------------------------------------------------------------------
| Composer
|--------------------------------------------------------------------------
|
| The main dependencies of the format are these files, whose presence is very
| important and if they are not there, the project will have problems.
|
*/
if ( ! file_exists( $autoloader = RAHGOZAR_PATH . '/vendor/autoload.php' ) ) {
wp_die( 'Composer Autoloader Required' );
}
require $autoloader;
// Include the main Rahgozar class.
if ( ! class_exists( '\rahgozar\bootstrap\Rahgozar', false ) ) {
require_once RAHGOZAR_PATH . '/bootstrap/Rahgozar.php';
}
/*
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
|
|
*/
$rahgozar = \rahgozar\bootstrap\Rahgozar::instance();
$rahgozar->boot();