forked from devgeniem/dustpress-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
executable file
·41 lines (37 loc) · 1.02 KB
/
plugin.php
File metadata and controls
executable file
·41 lines (37 loc) · 1.02 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
36
37
38
39
40
41
<?php
/**
* Plugin Name: DustPress.JS
* Plugin URI: https://github.com/devgeniem/dustpress-js
* Description: DustPress JavaScript library. Provides a front-end interface for interacting with the backend functions.
* Version: 1.1.2
* Author: Geniem Oy / Miika Arponen & Ville Siltala
* Author URI: http://www.geniem.com
*/
class DustPressJs {
/**
* Initalizes the plugin
*
* @type function
* @date 24/05/2016
* @since 0.1.0
*
* @return void
*/
public function __construct() {
add_action( 'init', array( $this, 'enqueue_scripts' ) );
}
/**
* This function enqueues front end scripts.
*
* @type function
* @date 17/12/2015
* @since 0.1.0
*
* @return boolean
*/
public function enqueue_scripts() {
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'dustpress', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/dustpress-min.js', array('jquery'), '1.1.1', false );
}
}
new DustPressJs();