-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-menu.php
executable file
·40 lines (33 loc) · 3.27 KB
/
sidebar-menu.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
<?php
/*
* @wordpress-plugin
* Plugin Name: _ANDYP - Sidebar menu
* Plugin URI: https://londonparkour.com
* Description: <strong>Sidebar</strong> | Create a custom sidebar explorer
* Version: 0.1.0
* Author: Andy Pearson
* Author URI: https://londonparkour.com
* Domain Path: /languages
*/
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ CONFIGURATION │
// └─────────────────────────────────────────────────────────────────────────┘
$config = [];
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Register CONSTANTS │
// └─────────────────────────────────────────────────────────────────────────┘
define( 'ANDYP_SIDEBAR_PATH', __DIR__ );
define( 'ANDYP_SIDEBAR_URL', plugins_url( '/', __FILE__ ) );
define( 'ANDYP_SIDEBAR_FILE', __FILE__ );
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Register with ANDYP Plugins │
// └─────────────────────────────────────────────────────────────────────────┘
require __DIR__.'/src/acf/andyp_plugin_register.php';
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Use composer autoloader │
// └─────────────────────────────────────────────────────────────────────────┘
require __DIR__.'/vendor/autoload.php';
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Initialise │
// └─────────────────────────────────────────────────────────────────────────┘
new andyp\sidebarmenu\initialise;