-
Notifications
You must be signed in to change notification settings - Fork 0
/
smntcs-themes-list-view.php
33 lines (29 loc) · 1.16 KB
/
smntcs-themes-list-view.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
<?php
/**
* Plugin Name: SMNTCS Theme List View
* Plugin URI: https://github.com/nielslange/smntcs-theme-list-view
* Description: Display installed themes in a list view.
* Author: Niels Lange
* Author URI: https://nielslange.de/
* Text Domain: smntcs-theme-list-view
* Version: 1.3
* Requires at least: 5.0
* Requires PHP: 7.4
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* @package SMNTCS_Theme_List_View
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
// Define plugin constants.
if ( ! defined( 'SMNTCS_THEME_LIST_VIEW_FILE' ) ) {
define( 'SMNTCS_THEME_LIST_VIEW_FILE', __FILE__ );
}
// Initialize the plugin.
if ( file_exists( plugin_dir_path( __FILE__ ) . '/includes/class-smntcs-themes-list-view.php' ) ) {
require_once plugin_dir_path( __FILE__ ) . '/includes/class-smntcs-themes-list-view.php';
}
if ( file_exists( plugin_dir_path( __FILE__ ) . '/includes/class-smntcs-themes-list-screen-options.php' ) ) {
require_once plugin_dir_path( __FILE__ ) . '/includes/class-smntcs-themes-list-screen-options.php';
}