<?php
/**
 * Plugin Name:       Gridpress - Grid Layout Design
 * Plugin URI:        https://gridlib.codestap.com/gridpress/
 * Description:       Gridpress is a flexible and powerful WordPress grid plugin that lets you display any WordPress post type posts, pages, products, portfolios, team members, testimonials, and more in beautiful, responsive grid layouts. Whether you're building a blog, a WooCommerce store, a portfolio site, or a company website, Gridpress gives you the tools to present your content in a visually compelling, mobile-friendly grid layout — without writing a single line of code.
 * Version:           1.0.0
 * Author:            CodeStap
 * Author URI:        https://codestap.com/
 * Contributors:      muhammadfarhanatif
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       gridpress-grid-layout-design
 * Domain Path:       /languages
 */

defined('ABSPATH') || exit;

if (!defined('GRIDPRESS_PLUGIN_FILE')) {
	define('GRIDPRESS_PLUGIN_FILE', __FILE__);
}

if( ! function_exists( 'gridpress_activate_plugin' ) ) {
	function gridpress_activate_plugin() {
		require_once plugin_dir_path(__FILE__) . 'includes/classes/class-system-requirements.php';
		require_once plugin_dir_path(__FILE__) . 'includes/classes/class-user-capabilities.php';

		Gridpress_System_Requirements::gridpress_check_php_version();
		Gridpress_System_Requirements::gridpress_check_db_version();
		Gridpress_User_Capabilities::gridpress_add_role_caps();
	}
}

register_activation_hook(__FILE__, 'gridpress_activate_plugin');

include_once dirname(GRIDPRESS_PLUGIN_FILE) . '/includes/class-gridpress-plugin.php';
