Merged in feature/plugins-update (pull request #9)

wp plugin updates from pantheon

* wp plugin updates from pantheon
This commit is contained in:
Tony Volpe
2023-12-15 18:08:21 +00:00
parent 28c21bf9b1
commit 779393381f
577 changed files with 154305 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?php
/*
Plugin Name: FacetWP
Description: Advanced Filtering for WordPress
Version: 4.1.5
Author: FacetWP, LLC
Author URI: https://facetwp.com/
Copyright 2023 FacetWP, LLC
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
defined( 'ABSPATH' ) or exit;
class FacetWP
{
private static $instance;
function __construct() {
// php check
if ( version_compare( phpversion(), '7.0', '<' ) ) {
add_action( 'admin_notices', array( $this, 'upgrade_notice' ) );
return;
}
// setup variables
define( 'FACETWP_VERSION', '4.1.5' );
define( 'FACETWP_DIR', dirname( __FILE__ ) );
define( 'FACETWP_URL', plugins_url( '', __FILE__ ) );
define( 'FACETWP_BASENAME', plugin_basename( __FILE__ ) );
// get the gears turning
include( FACETWP_DIR . '/includes/class-init.php' );
}
/**
* Singleton
*/
public static function instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self;
}
return self::$instance;
}
/**
* Require PHP 7.0+
*/
function upgrade_notice() {
$message = __( 'FacetWP requires PHP %s or above. Please contact your host and request a PHP upgrade.', 'fwp' );
echo '<div class="error"><p>' . sprintf( $message, '7.0' ) . '</p></div>';
}
}
function FWP() {
return FacetWP::instance();
}
FWP();