-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.php
47 lines (35 loc) · 1.13 KB
/
main.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
37
38
39
40
41
42
43
44
45
46
47
<?php
/*Plugin Name: bs Cookie Settings
Plugin URI: https://bootscore.me/documantation/bs-cookie-settings/
Description: Plugin adds a cookie modal to Bootscore theme.
Version: 5.6.2
Tested up to: 6.6
Requires at least: 5.0
Requires PHP: 7.4
Author: Bootscore
Author URI: https://bootscore.me
License: MIT License
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
/**
* Update checker
*/
require 'update/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
$myUpdateChecker = PucFactory::buildUpdateChecker(
'https://github.com/bootscore/bs-cookie-settings/',
__FILE__,
'bs-cookie-settings'
);
//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('main');
/**
* Register styles and scripts
*/
function bs_cookie_settings() {
wp_enqueue_script( 'cookie-settings-js', plugins_url( '/assets/js/cookie-settings.min.js' , __FILE__ ), array(), false, true );
wp_register_style( 'cookie-settings-css', plugins_url('/assets/css/cookie-settings.min.css', __FILE__) );
wp_enqueue_style( 'cookie-settings-css' );
}
add_action('wp_enqueue_scripts','bs_cookie_settings');