Repository navigation
Expand file tree
/
Copy pathplugin.php
More file actions
48 lines (32 loc) · 1.44 KB
/
Copy pathplugin.php
File metadata and controls
48 lines (32 loc) · 1.44 KB
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
<?php
/*
* Plugin Name: Marco Di Bella — License Management
* Plugin URI: https://github.com/mdibella-dev/mdb-license-management
* Description: Adds functions to the WordPress media library for managing copyright licenses and creating and querying corresponding credits.
* Author: Marco Di Bella
* Author URI: https://www.marcodibella.de
* License: MIT License
* Version: 1.1.0
* Text Domain: mdb-license-management
*
* @author Marco Di Bella
* @package mdb-license-management
*/
namespace mdb_license_management;
/** Prevent direct access */
defined( 'ABSPATH' ) or exit;
/** Variables and definitions */
define( __NAMESPACE__ . '\PLUGIN_VERSION', '1.1.0' );
define( __NAMESPACE__ . '\PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_URL', plugin_dir_url( __FILE__ ) );
const TABLE_LICENSES = 'mdb_lv_licenses';
const TABLE_MEDIA = 'mdb_lv_media';
/** Include files */
require_once PLUGIN_DIR . 'includes/definitions/media-states.php';
require_once PLUGIN_DIR . 'includes/definitions/licenses.php';
require_once PLUGIN_DIR . 'includes/classes/class-media-record.php';
require_once PLUGIN_DIR . 'includes/media-library/upload.php';
require_once PLUGIN_DIR . 'includes/media-library/attachment.php';
require_once PLUGIN_DIR . 'includes/theme-integration.php';
require_once PLUGIN_DIR . 'includes/backend.php';
require_once PLUGIN_DIR . 'includes/setup.php';