-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid-overlay.php
More file actions
35 lines (31 loc) · 1.34 KB
/
Copy pathgrid-overlay.php
File metadata and controls
35 lines (31 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Plugin Name: Grid Overlay
* Plugin URI: https://themeist.com/plugins/wordpress/grid-overlay/#utm_source=wp-plugin&utm_medium=grid-overlay&utm_campaign=plugins-page
* Description: Add a Figma-style visual grid overlay to the frontend to test alignment and spacing in real time. Configure values for different screen sizes from the admin.
* Version: 1.1.0
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Themeist
* Author URI: https://themeist.com/
* Author Email: support@themeist.com/
* License: GPL-3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: grid-overlay
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Plugin version and path constants.
define( 'GRIDOVERLAY_PLUGIN_VERSION', '1.1.0' );
define( 'GRIDOVERLAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'GRIDOVERLAY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
// Include core plugin files.
require_once GRIDOVERLAY_PLUGIN_DIR . 'includes/settings.php';
require_once GRIDOVERLAY_PLUGIN_DIR . 'includes/enqueue.php';
require_once GRIDOVERLAY_PLUGIN_DIR . 'admin/settings-page.php';
/**
* Set default plugin options on activation.
*/
register_activation_hook( __FILE__, 'gridoverlay_set_default_options' );