| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Expanding Archives |
| 4 |
* Plugin URI: https://shop.nosegraze.com/product/expanding-archives/ |
| 5 |
* Description: A widget showing old posts that you can expand by year and month. |
| 6 |
* Version: 2.1.1 |
| 7 |
* Author: Ashley Gibson |
| 8 |
* Author URI: https://www.nosegraze.com |
| 9 |
* License: GPL2 |
| 10 |
* Text Domain: expanding-archives |
| 11 |
* Domain Path: lang |
| 12 |
* |
| 13 |
* Requires at least: 3.0 |
| 14 |
* Requires PHP: 7.4 |
| 15 |
* |
| 16 |
* @package expanding-archives |
| 17 |
* @copyright Copyright (c) 2026, Ashley Gibson |
| 18 |
* @license GPL2+ |
| 19 |
* |
| 20 |
* This program is free software; you can redistribute it and/or modify |
| 21 |
* it under the terms of the GNU General Public License, version 2, as |
| 22 |
* published by the Free Software Foundation. |
| 23 |
* |
| 24 |
* This program is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* You should have received a copy of the GNU General Public License |
| 30 |
* along with this program; if not, write to the Free Software |
| 31 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 32 |
*/ |
| 33 |
|
| 34 |
use Ashleyfae\ExpandingArchives\Plugin; |
| 35 |
|
| 36 |
if (version_compare(phpversion(), '7.4', '<')) { |
| 37 |
return; |
| 38 |
} |
| 39 |
|
| 40 |
const EXPANDING_ARCHIVES_FILE = __FILE__; |
| 41 |
const EXPANDING_ARCHIVES_VERSION = '2.1.1'; |
| 42 |
|
| 43 |
require_once dirname(__FILE__).'/vendor/autoload.php'; |
| 44 |
|
| 45 |
/** |
| 46 |
* Loads the whole plugin. |
| 47 |
* |
| 48 |
* @since 1.0.0 |
| 49 |
* @return Plugin |
| 50 |
*/ |
| 51 |
function NG_Expanding_Archives() { |
| 52 |
return Plugin::instance(); |
| 53 |
} |
| 54 |
|
| 55 |
NG_Expanding_Archives()->boot(); |
| 56 |
|