-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDigSig.php
More file actions
46 lines (40 loc) · 1.04 KB
/
DigSig.php
File metadata and controls
46 lines (40 loc) · 1.04 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
<?php
/**
* DigSig
*
* @author James K
* @license MIT
* @link https://github.com/tenthpres/digsig
* @package DigSig
*/
/*
Plugin Name: DigSig
Plugin URI: https://github.com/tenthpres/digsig
GitHub Plugin URI: https://github.com/tenthpres/digsig
Description: A WordPress Plugin for Digital Signage
Version: 1.1.0
Author: James K
Author URI: https://github.com/jkrrv
License: MIT
Requires at least: 5.5
Tested up to: 6.6.2
Requires PHP: 7.4
Release Asset: true
*/
// die if called directly.
if ( ! defined('WPINC')) {
die;
}
/*** Load everything **/
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
/** @noinspection PhpIncludeInspection
* @noinspection RedundantSuppression
*/
require_once __DIR__ . '/vendor/autoload.php';
} else {
require_once __DIR__ . "/src/DigSig/DigSig.php";
require_once __DIR__ . "/src/DigSig/DigSig_Settings.php";
}
use tp\DigSig\DigSig;
/*** Load (set action hooks, etc.) ***/
DigSig::load(__FILE__);