Version Description
- Fixed JS error which was breaking conditional field select boxes
Download this release
Release Info
Developer | mattkeys |
Plugin | Advanced Custom Fields: Font Awesome Field |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- acf-font-awesome.php +1 -1
- font-awesome-v4.php +11 -39
- js/create_input.js +0 -0
- js/edit_input.js +0 -0
- readme.txt +12 -1
acf-font-awesome.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Advanced Custom Fields: Font Awesome
|
4 |
Description: Add a Font Awesome field type to Advanced Custom Fields
|
5 |
-
Version: 1.1.
|
6 |
Author: Matt Keys
|
7 |
Author URI: http://mattkeys.me/
|
8 |
License: GPLv2 or later
|
2 |
/*
|
3 |
Plugin Name: Advanced Custom Fields: Font Awesome
|
4 |
Description: Add a Font Awesome field type to Advanced Custom Fields
|
5 |
+
Version: 1.1.1
|
6 |
Author: Matt Keys
|
7 |
Author URI: http://mattkeys.me/
|
8 |
License: GPLv2 or later
|
font-awesome-v4.php
CHANGED
@@ -401,7 +401,7 @@ class acf_field_font_awesome extends acf_field
|
|
401 |
$this->settings = array(
|
402 |
'path' => apply_filters('acf/helpers/get_path', __FILE__),
|
403 |
'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
|
404 |
-
'version' => '1.
|
405 |
);
|
406 |
|
407 |
add_filter('acf/load_field', array( $this, 'maybe_enqueue_font_awesome' ) );
|
@@ -632,25 +632,11 @@ class acf_field_font_awesome extends acf_field
|
|
632 |
function input_admin_enqueue_scripts()
|
633 |
{
|
634 |
// register acf scripts
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
// scripts
|
643 |
-
wp_enqueue_script(array(
|
644 |
-
'acf-input-font-awesome-edit-input',
|
645 |
-
'acf-input-font-awesome-select2'
|
646 |
-
));
|
647 |
-
|
648 |
-
// styles
|
649 |
-
wp_enqueue_style(array(
|
650 |
-
'acf-input-font-awesome-input',
|
651 |
-
'acf-input-font-awesome-fa',
|
652 |
-
'acf-input-font-awesome-select2-css'
|
653 |
-
));
|
654 |
}
|
655 |
|
656 |
/*
|
@@ -668,25 +654,11 @@ class acf_field_font_awesome extends acf_field
|
|
668 |
function field_group_admin_enqueue_scripts()
|
669 |
{
|
670 |
// register acf scripts
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
// scripts
|
679 |
-
wp_enqueue_script(array(
|
680 |
-
'acf-input-font-awesome-select2',
|
681 |
-
'acf-input-font-awesome-create-input'
|
682 |
-
));
|
683 |
-
|
684 |
-
// styles
|
685 |
-
wp_enqueue_style(array(
|
686 |
-
'acf-input-font-awesome-input',
|
687 |
-
'acf-input-font-awesome-fa',
|
688 |
-
'acf-input-font-awesome-select2-css'
|
689 |
-
));
|
690 |
}
|
691 |
|
692 |
/*
|
401 |
$this->settings = array(
|
402 |
'path' => apply_filters('acf/helpers/get_path', __FILE__),
|
403 |
'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
|
404 |
+
'version' => '1.1.1'
|
405 |
);
|
406 |
|
407 |
add_filter('acf/load_field', array( $this, 'maybe_enqueue_font_awesome' ) );
|
632 |
function input_admin_enqueue_scripts()
|
633 |
{
|
634 |
// register acf scripts
|
635 |
+
wp_enqueue_script('acf-input-font-awesome-select2', $this->settings['dir'] . 'js/select2/select2.min.js', array(), $this->settings['version']);
|
636 |
+
wp_enqueue_script('acf-input-font-awesome-edit-input', $this->settings['dir'] . 'js/edit_input.js', array(), $this->settings['version']);
|
637 |
+
wp_enqueue_style('acf-input-font-awesome-input', $this->settings['dir'] . 'css/input.css', array(), $this->settings['version']);
|
638 |
+
wp_enqueue_style('acf-input-font-awesome-fa', $this->settings['dir'] . 'css/fontawesome.css', array(), $this->settings['version']);
|
639 |
+
wp_enqueue_style('acf-input-font-awesome-select2-css', $this->settings['dir'] . 'css/select2.css', array(), $this->settings['version']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
}
|
641 |
|
642 |
/*
|
654 |
function field_group_admin_enqueue_scripts()
|
655 |
{
|
656 |
// register acf scripts
|
657 |
+
wp_enqueue_script('font-awesome-select2', $this->settings['dir'] . 'js/select2/select2.min.js', array(), $this->settings['version']);
|
658 |
+
wp_enqueue_script('font-awesome-create-input', $this->settings['dir'] . 'js/create_input.js', array(), $this->settings['version']);
|
659 |
+
wp_enqueue_style('acf-input-font-awesome-input', $this->settings['dir'] . 'css/input.css', array(), $this->settings['version']);
|
660 |
+
wp_enqueue_style('acf-input-font-awesome-fa', $this->settings['dir'] . 'css/fontawesome.css', array(), $this->settings['version']);
|
661 |
+
wp_enqueue_style('acf-input-font-awesome-select2-css', $this->settings['dir'] . 'css/select2.css', array(), $this->settings['version']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
}
|
663 |
|
664 |
/*
|
js/create_input.js
CHANGED
File without changes
|
js/edit_input.js
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
=== Advanced Custom Fields: Font Awesome
|
2 |
Contributors: mattkeys
|
3 |
Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
|
4 |
Requires at least: 3.5
|
@@ -44,8 +44,16 @@ function my_register_fields()
|
|
44 |
}
|
45 |
`
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
49 |
= 1.1.0 =
|
50 |
* Added support for use in repeater fields
|
51 |
* Added support for use in flexible content fields
|
@@ -57,6 +65,9 @@ function my_register_fields()
|
|
57 |
|
58 |
== Upgrade Notice ==
|
59 |
|
|
|
|
|
|
|
60 |
= 1.1.0 =
|
61 |
This version adds support for use in repeater fields and flexible content fields, and also fixes some small bugs.
|
62 |
|
1 |
+
=== Advanced Custom Fields: Font Awesome ===
|
2 |
Contributors: mattkeys
|
3 |
Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
|
4 |
Requires at least: 3.5
|
44 |
}
|
45 |
`
|
46 |
|
47 |
+
== Screenshots ==
|
48 |
+
|
49 |
+
1. Set a default icon, and choose how you want icon data to be returned.
|
50 |
+
2. Searchable list of all icons, including large live preview
|
51 |
+
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.1.1 =
|
55 |
+
* Fixed JS error which was breaking conditional field select boxes
|
56 |
+
|
57 |
= 1.1.0 =
|
58 |
* Added support for use in repeater fields
|
59 |
* Added support for use in flexible content fields
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
+
= 1.1.1 =
|
69 |
+
This version fixes a JS error caused by 1.1.0 that was causing issues with conditional field select boxes.
|
70 |
+
|
71 |
= 1.1.0 =
|
72 |
This version adds support for use in repeater fields and flexible content fields, and also fixes some small bugs.
|
73 |
|