This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
102 lines (83 loc) · 2.41 KB
/
plugin.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
94
95
96
97
98
99
100
<?php
/**
* Plugin Name: Medula-P
* Plugin URI: https://github.com/andamira/medula/
* Description: A minimal starter plugin, and optional companion for Medula T starter theme
* Version 0.5.2
* Author: andamira
* Author URI: http://andamira.net
* Text Domain: medulap
* Tags: medula, boilerplate, starter, simple, minimal, developer, code, procedural, programming, functional
* License: MIT
* License URI: http://opensource.org/licenses/MIT
*
* >------------------>
*
* 1 Globals
*
* 1.1 Plugin Resources URI
*
* 2 Plugin Functionality
*
* 2.1 » Load Plugin Functionality
*
* 3 After Setup Plugin
*
* 3.1 Language Support
* 3.2 Load Base Scripts & Styles
*
* 4 External Libraries (#)
*
* 5 Custom Functions, Actions & Filters
*
* <------------------<
*
* Documentation: https://github.com/andamira/medula/wiki/Plugin
*
* NOTE: This minimal plugin framework is simple and procedural. It is intended mainly for
* holding the extra functionality of your custom theme. If you really need something more
* complex or object oriented, please use another more serious boilerplate. For example:
*
* - https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate
* - https://github.com/getherbert/herbert/
*/
/**
* 1 GLOBALS
* ************************************************************
*/
/**
* 1.1 Returns the plugin resources URI, with an optional $subpath parameter
* NOTE: This should match the PLUGIN_RESOURCES global in /gulpfile.js
*/
function medula_get_plugin_resources_uri( $subpath = '' ){
return plugins_url( '/res/' . $subpath );
}
/**
* 2 PLUGIN FUNCTIONALITY
* ************************************************************
*/
require_once( 'lib/main.php' );
/**
* 3 AFTER SETUP PLUGIN
* ************************************************************
*/
/**
* 3.1 TODO: Language Support
*/
/**
* 3.2 TODO: Load Base Scripts & Styles
*/
/**
* 4 EXTERNAL LIBRARIES & PLUGINS
* ************************************************************
*/
# include_once( 'lib/vendor/main.php' );
/**
* 5 CUSTOM FUNCTIONS, ACTIONS & FILTERS
* ************************************************************
*
* Here you could put some quick & dirty custom functions, but
* before doing that it would be better to take a look at the
* indexed sections above, and try to find a better place.
*
*/