-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodularity-posts-extensions.php
More file actions
37 lines (30 loc) · 1.12 KB
/
Copy pathmodularity-posts-extensions.php
File metadata and controls
37 lines (30 loc) · 1.12 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
<?php
/**
* Plugin Name: Modularity Posts Extensions
* Description: Adds focused Posts module display modes to modern Municipio.
* Version: 1.0.0
* Requires PHP: 8.2
* Author: Whitespace
* License: MIT
* Text Domain: modularity-posts-extensions
* Domain Path: /languages
*/
declare(strict_types=1);
if (!defined('ABSPATH')) {
exit();
}
define('MODULARITY_POSTS_EXTENSIONS_FILE', __FILE__);
/**
* Composer's installer-name is the production path contract. Resolving the fixed slug through
* WordPress also keeps plugin-owned views and assets valid when the local package is symlinked.
*/
define('MODULARITY_POSTS_EXTENSIONS_PATH', trailingslashit(WP_PLUGIN_DIR) . 'modularity-posts-extensions/');
define('MODULARITY_POSTS_EXTENSIONS_URL', trailingslashit(plugins_url('modularity-posts-extensions')));
define('MODULARITY_POSTS_EXTENSIONS_VERSION', '1.0.0');
$autoload = MODULARITY_POSTS_EXTENSIONS_PATH . 'vendor/autoload.php';
if (is_readable($autoload)) {
require_once $autoload;
}
if (class_exists(\MunicipioModularityPostsExtensions\Plugin::class)) {
(new \MunicipioModularityPostsExtensions\Plugin())->register();
}