| Server IP : 162.215.171.210 / Your IP : 216.73.216.193 Web Server : Apache System : Linux 162-215-171-210.bluehost.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : swansondentalgro ( 1070) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/swansondentalgro/public_html/wp-content/plugins/genesis-blocks/ |
Upload File : |
<?php
/**
* Plugin Name: Genesis Blocks
* Plugin URI: https://studiopress.com/genesis-pro/
* Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
* Author: StudioPress
* Author URI: https://www.studiopress.com/
* Version: 3.1.10
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* @package Genesis\Blocks
*/
// Include Composer Autoloader.
require __DIR__ . '/vendor/autoload.php';
/**
* Instantiate Genesis Blocks Plugin.
*
* @since 1.0.0
*/
function genesis_blocks_load(): void {
$context = [
'url' => plugin_dir_url( __FILE__ ),
'path' => plugin_dir_path( __FILE__ ),
'version' => get_file_data( __FILE__, [ 'Version' ] )[0],
'theme' => sanitize_title( get_stylesheet() ),
];
( new Genesis\Blocks\PluginLoader( $context ) )->init();
}
add_action( 'plugins_loaded', 'genesis_blocks_load' );
function genesis_blocks_main_plugin_file(): string {
return __FILE__;
}
/**
* Load the plugin textdomain
*/
function genesis_blocks_text_domain() {
load_plugin_textdomain( 'genesis-blocks', false, basename( __DIR__ ) . '/languages' );
}
add_action( 'init', 'genesis_blocks_text_domain' );
/**
* Check for Pro version.
*/
function genesis_blocks_is_pro() {
return function_exists( 'AtomicBlocksPro\atomic_blocks_pro_main_plugin_file' ) || function_exists( 'Genesis\PageBuilder\main_plugin_file' );
}
/**
* Set up plugin updates from WP Engine.
*
* Only if the lib/PluginUpdater.php file exists. This file is not present in
* the version released to the WordPress.org repository or in the Pro version,
* "Genesis Page Builder" https://github.com/studiopress/genesis-page-builder/.
*/
function genesis_blocks_check_for_upgrades() {
if ( ! file_exists( __DIR__ . '/lib/PluginUpdater.php' ) ) {
return;
}
$properties = array(
'plugin_slug' => 'genesis-blocks',
'plugin_basename' => plugin_basename( __FILE__ ),
);
require_once __DIR__ . '/lib/PluginUpdater.php';
new \Genesis\Blocks\PluginUpdater( $properties );
}
add_action( 'admin_init', 'genesis_blocks_check_for_upgrades' );