forked from houke/acf-icon-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acf-icon-picker.php
executable file
·43 lines (31 loc) · 960 Bytes
/
acf-icon-picker.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
<?php
/*
Plugin Name: Advanced Custom Fields: Icon Picker
Plugin URI: https://github.com/houke/acf-icon-picker
Description: Allows you to pick an icon from a predefined list
Version: 1.9.1
Author: Houke de Kwant
Author URI: https://github.com/houke/
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
GitHub Plugin URI: https://github.com/houke/acf-icon-picker
GitHub Branch: master
*/
if( ! defined( 'ABSPATH' ) ) exit;
if( !class_exists('acf_plugin_icon_picker') ) :
class acf_plugin_icon_picker {
public $settings = array();
function __construct() {
$this->settings = array(
'version' => '1.9.1',
'url' => plugin_dir_url( __FILE__ ),
'path' => plugin_dir_path( __FILE__ )
);
add_action('acf/include_field_types', array($this, 'include_field_types'));
}
function include_field_types( $version = false ) {
include_once('fields/acf-icon-picker-v5.php');
}
}
new acf_plugin_icon_picker();
endif;