-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti-column-slider.php
36 lines (29 loc) · 1.22 KB
/
multi-column-slider.php
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
36
<?php
/**
* Plugin Name: Multi Column Slider V2
* Plugin URI: https://shaunmilo.com
* Description: Custom modules for the Beaver Builder Plugin.
* Version: 1.0
* Author: Shaun MIlosevich
* Author URI: https://shaunmilo.com
*/
define( 'MY_MODULES_DIR', plugin_dir_path( __FILE__ ) );
define( 'MY_MODULES_URL', plugins_url( '/', __FILE__ ) );
// Register and load the custom module
function load_module() {
if ( class_exists( 'FLBuilder' ) ) {
require_once 'module/bb-module.php';
}
}
add_action( 'init', 'load_module' );
function enqueue_slick_slider() {
wp_enqueue_style( 'slick', 'https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css' );
wp_enqueue_script( 'slick', 'https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js', array( 'jquery' ), '', true );
wp_enqueue_script( 'fl-builder' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_slick_slider' );
function enqueue_custom_styles() {
wp_enqueue_style('multi-column-front-end', plugins_url('/module/includes/frontend.css.php', __FILE__));
wp_enqueue_style('multi-column-settings', plugins_url('/module/css/settings.css'));
}
add_action('wp_enqueue_scripts', 'enqueue_custom_styles');