| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Gutenify - Gutenberg Fullsite Editing Template Kits - Advanced Blocks |
| 4 |
* Description: Gutenify is a World’s First True Gutenberg (Block) Template Kit pluigin that is compatible with WordPress Full Site Editing to help you create the website you always wanted. Gutenify is a free WordPress plugin which allows you to add different block effortlessly in your site. |
| 5 |
* Author: Gutenify |
| 6 |
* Author URI: https://www.gutenify.com |
| 7 |
* Version: 1.1.1 |
| 8 |
* Text Domain: gutenify |
| 9 |
* Domain Path: /languages |
| 10 |
* Tested up to: 5.6 |
| 11 |
* |
| 12 |
* Gutenify is free software: you can redistribute it and/or modify |
| 13 |
* it under the terms of the GNU General Public License as published by |
| 14 |
* the Free Software Foundation, either version 2 of the License, or |
| 15 |
* any later version. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with Gutenify. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
* |
| 20 |
* @package Gutenify |
| 21 |
*/ |
| 22 |
|
| 23 |
// Exit if accessed directly. |
| 24 |
if ( ! defined( 'ABSPATH' ) ) { |
| 25 |
exit; |
| 26 |
} |
| 27 |
|
| 28 |
// Define constants. |
| 29 |
define( 'GUTENIFY_VERSION', '1.1.1' ); |
| 30 |
define( 'GUTENIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 31 |
define( 'GUTENIFY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 32 |
define( 'GUTENIFY_PLUGIN_FILE', __FILE__ ); |
| 33 |
define( 'GUTENIFY_PLUGIN_BASE', plugin_basename( __FILE__ ) ); |
| 34 |
|
| 35 |
function gutenify() { |
| 36 |
require 'inc/bootstrap.php'; |
| 37 |
} |
| 38 |
|
| 39 |
gutenify(); |
| 40 |
|
| 41 |
function gutenify_activation_redirect( $plugin ) { |
| 42 |
$screen = get_current_screen(); |
| 43 |
if ( ! empty( $screen->id ) && 'appearance_page_tgmpa-install-plugins' === $screen->id ) { |
| 44 |
return false; |
| 45 |
} |
| 46 |
|
| 47 |
if ( $plugin == plugin_basename( __FILE__ ) ) { |
| 48 |
wp_safe_redirect( admin_url( 'admin.php?page=gutenify' ) ); |
| 49 |
exit; |
| 50 |
} |
| 51 |
} |
| 52 |
add_action( 'activated_plugin', 'gutenify_activation_redirect' ); |
| 53 |
|