| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugins List |
| 4 |
* |
| 5 |
* @package plugins-list |
| 6 |
* @author David Artiss |
| 7 |
* @license GPL-2.0-or-later |
| 8 |
* |
| 9 |
* Plugin Name: Plugins List |
| 10 |
* Plugin URI: https://wordpress.org/plugins/plugins-list/ |
| 11 |
* Description: Allows you to insert a list of the WordPress plugins you are using into any post/page. |
| 12 |
* Version: 2.7 |
| 13 |
* Requires at least: 4.6 |
| 14 |
* Requires PHP: 7.4 |
| 15 |
* Author: David Artiss |
| 16 |
* Author URI: https://artiss.blog |
| 17 |
* Text Domain: plugins-list |
| 18 |
* License: GPL v2 or later |
| 19 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 20 |
* |
| 21 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
| 22 |
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume |
| 23 |
* that you can use any other version of the GPL. |
| 24 |
* |
| 25 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without |
| 26 |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 27 |
*/ |
| 28 |
|
| 29 |
// Make sure the functions that provides us with the plugin data is available. |
| 30 |
|
| 31 |
if ( ! function_exists( 'get_plugins' ) ) { |
| 32 |
require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 33 |
} |
| 34 |
|
| 35 |
// Define globals to hold the plugin base file name as well as the default output format. |
| 36 |
|
| 37 |
if ( ! defined( 'PLUGINS_LIST_PLUGIN_BASE' ) ) { |
| 38 |
define( 'PLUGINS_LIST_PLUGIN_BASE', plugin_basename( __FILE__ ) ); |
| 39 |
} |
| 40 |
if ( ! defined( 'DEFAULT_PLUGIN_LIST_FORMAT' ) ) { |
| 41 |
define( 'DEFAULT_PLUGIN_LIST_FORMAT', '<li>{{LinkedTitle}} by {{LinkedAuthor}}.</li>' ); |
| 42 |
} |
| 43 |
|
| 44 |
// Include the shared functions. |
| 45 |
|
| 46 |
require_once plugin_dir_path( __FILE__ ) . 'inc/shared.php'; |
| 47 |
|
| 48 |
require_once plugin_dir_path( __FILE__ ) . 'inc/shortcodes.php'; |
| 49 |
|
| 50 |
require_once plugin_dir_path( __FILE__ ) . 'inc/generate-plugin-data.php'; |
| 51 |
|