-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
27 lines (24 loc) · 809 Bytes
/
Copy pathplugin.php
File metadata and controls
27 lines (24 loc) · 809 Bytes
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
<?php
/**
* Plugin Name: Oxy-Grid-Layout
* Description: Description
* Version: 1.0.0
* Author: Rados
* Author URI: purr.cz
* License: GNU General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
add_action( 'ct_before_builder', 'oxyGridLayout' );
/**
* Add stuff immediately after opening body tag (in both the Oxygen editor and the front end).
*/
function oxyGridLayout() {
if ( defined( 'SHOW_CT_BUILDER') ) {
wp_enqueue_style( 'oxy-grid-layout-css', plugin_dir_url( __FILE__ ) . 'assets/css/main.css' );
wp_enqueue_script( 'oxy-grid-layout-js', plugin_dir_url( __FILE__ ) . 'assets/js/grid.js', '', '1.0.0', false );
}
}