diff --git a/docs/classes/FortAwesome.FontAwesome.html b/docs/classes/FortAwesome.FontAwesome.html index 026fb6cf8..764238f1b 100644 --- a/docs/classes/FortAwesome.FontAwesome.html +++ b/docs/classes/FortAwesome.FontAwesome.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -253,7 +253,9 @@

Summary

unregistered_clients()
load_spec()
using_pro()
+ fa_method()
version()
+ v4shim()
using_pseudo_elements()
register()
@@ -1339,6 +1341,41 @@

Tags

+ +
+

fa_method()

+ +
fa_method() : string|null
+

Indicates which Font Awesome method is being loaded: 'webfont' or 'svg'.

+

Its result is valid only after the font_awesome_enqueued has been triggered.

+ + + +

Returns

+ string|null + +
+
+ +
+ +
+

version()

@@ -1384,6 +1421,41 @@

Tags

+ +
+

v4shim()

+ +
v4shim() : boolean
+

Indicates whether Font Awesome is being loaded with a version 4 shim.

+

Its result is valid only after the font_awesome_enqueued has been triggered.

+ + + +

Returns

+ boolean + +
+
+ +
+ +
+

using_pseudo_elements()

@@ -1696,7 +1768,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/classes/FortAwesome.FontAwesome_Config_Controller.html b/docs/classes/FortAwesome.FontAwesome_Config_Controller.html index e7c9a91c5..bced7306e 100644 --- a/docs/classes/FortAwesome.FontAwesome_Config_Controller.html +++ b/docs/classes/FortAwesome.FontAwesome_Config_Controller.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -400,7 +400,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/classes/FortAwesome.FontAwesome_Release_Provider.html b/docs/classes/FortAwesome.FontAwesome_Release_Provider.html index cf0242713..75a23bcf9 100644 --- a/docs/classes/FortAwesome.FontAwesome_Release_Provider.html +++ b/docs/classes/FortAwesome.FontAwesome_Release_Provider.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -658,7 +658,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/files/font-awesome.html b/docs/files/font-awesome.html index 97cfedf82..cc1e89174 100644 --- a/docs/files/font-awesome.html +++ b/docs/files/font-awesome.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -300,7 +300,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/files/includes.class-fontawesome-config-controller.html b/docs/files/includes.class-fontawesome-config-controller.html index fae2b0f67..c0fc0b5d6 100644 --- a/docs/files/includes.class-fontawesome-config-controller.html +++ b/docs/files/includes.class-fontawesome-config-controller.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -270,7 +270,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/files/includes.class-fontawesome-release-provider.html b/docs/files/includes.class-fontawesome-release-provider.html index e1308f09e..3aa3f0cdc 100644 --- a/docs/files/includes.class-fontawesome-release-provider.html +++ b/docs/files/includes.class-fontawesome-release-provider.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -316,7 +316,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/files/includes.class-fontawesome.html b/docs/files/includes.class-fontawesome.html index 2251507aa..434934c92 100644 --- a/docs/files/includes.class-fontawesome.html +++ b/docs/files/includes.class-fontawesome.html @@ -144,19 +144,19 @@
- + \
-
+
-
+
@@ -330,7 +330,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/files/includes/class-fontawesome.php.txt b/docs/files/includes/class-fontawesome.php.txt index bc9ea83d5..72ee2c7c4 100644 --- a/docs/files/includes/class-fontawesome.php.txt +++ b/docs/files/includes/class-fontawesome.php.txt @@ -14,7 +14,6 @@ use \Exception, \Error, \InvalidArgumentException; * @ignore */ require_once trailingslashit( __DIR__ ) . '../defines.php'; -require_once trailingslashit( FONTAWESOME_VENDOR_DIR ) . 'autoload.php'; require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-release-provider.php'; require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-resource.php'; require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-config-controller.php'; @@ -1187,6 +1186,19 @@ if ( ! class_exists( 'FortAwesome\FontAwesome' ) ) : return $this->is_pro_configured(); } + /** + * Indicates which Font Awesome method is being loaded: 'webfont' or 'svg'. + * + * Its result is valid only after the `font_awesome_enqueued` has been triggered. + * + * @since 4.0.0 + * + * @return string|null + */ + public function fa_method() { + return isset( $this->load_spec['method'] ) ? $this->load_spec['method'] : null; + } + /** * Reports the version of Font Awesome assets being loaded. * @@ -1212,6 +1224,19 @@ if ( ! class_exists( 'FortAwesome\FontAwesome' ) ) : } } + /** + * Indicates whether Font Awesome is being loaded with a version 4 shim. + * + * Its result is valid only after the `font_awesome_enqueued` has been triggered. + * + * @since 4.0.0 + * + * @return boolean + */ + public function v4shim() { + return isset( $this->load_spec['v4shim'] ) ? boolval( $this->load_spec['v4shim'] ) : false; + } + /** * Indicates whether Font Awesome is being loaded with support for CSS pseudo-elements. * diff --git a/docs/graphs/class.html b/docs/graphs/class.html index 361288e5b..c94ee5fbb 100644 --- a/docs/graphs/class.html +++ b/docs/graphs/class.html @@ -161,7 +161,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/graphs/classes.svg b/docs/graphs/classes.svg index e2ccd22c1..3d66a52fb 100644 --- a/docs/graphs/classes.svg +++ b/docs/graphs/classes.svg @@ -19,35 +19,35 @@ FortAwesome - - -\\FortAwesome\\FontAwesome_Release_Provider - -FontAwesome_Release_Provider - - + \\FortAwesome\\FontAwesome - -FontAwesome + +FontAwesome - + \\FortAwesome\\FontAwesome_Config_Controller - -FontAwesome_Config_Controller + +FontAwesome_Config_Controller \\WP_REST_Controller - -\WP_REST_Controller + +\WP_REST_Controller \\FortAwesome\\FontAwesome_Config_Controller->\\WP_REST_Controller - - + + + + + +\\FortAwesome\\FontAwesome_Release_Provider + +FontAwesome_Release_Provider diff --git a/docs/index.html b/docs/index.html index 0e041c415..0df03f8a3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -96,19 +96,19 @@
- + \
-
+
-
+
@@ -241,7 +241,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/namespaces/FortAwesome.html b/docs/namespaces/FortAwesome.html index 3b0815c9b..68e2ae968 100644 --- a/docs/namespaces/FortAwesome.html +++ b/docs/namespaces/FortAwesome.html @@ -96,19 +96,19 @@
- + \
-
+
-
+
@@ -314,7 +314,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/namespaces/default.html b/docs/namespaces/default.html index 05811fbc2..7fd10bd80 100644 --- a/docs/namespaces/default.html +++ b/docs/namespaces/default.html @@ -96,19 +96,19 @@
- + \
-
+
-
+
@@ -241,7 +241,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/reports/deprecated.html b/docs/reports/deprecated.html index 14a977512..4cfdf13ae 100644 --- a/docs/reports/deprecated.html +++ b/docs/reports/deprecated.html @@ -123,7 +123,7 @@

\FortAwesome\FontAwesome::load_spec() - 1020 + 1019 @@ -169,7 +169,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/reports/errors.html b/docs/reports/errors.html index adca6c004..0a4d432ba 100644 --- a/docs/reports/errors.html +++ b/docs/reports/errors.html @@ -97,10 +97,10 @@
@@ -112,11 +112,11 @@
- +

- includes/class-fontawesome-release-provider.php - 2 + font-awesome.php + 1

@@ -132,21 +132,16 @@

- - - - -
error 0 No summary was found for this file
error148No summary for method load_releases()
- +

- font-awesome.php + includes/class-fontawesome.php 1

@@ -169,10 +164,10 @@

- +

- includes/class-fontawesome.php + includes/class-fontawesome-config-controller.php 1

@@ -195,11 +190,11 @@

- +

- includes/class-fontawesome-config-controller.php - 1 + includes/class-fontawesome-release-provider.php + 2

@@ -215,6 +210,11 @@

+ + + + +
error 0 No summary was found for this file
error148No summary for method load_releases()
@@ -260,7 +260,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.
diff --git a/docs/reports/markers.html b/docs/reports/markers.html index 2969b48c9..2cd3647d3 100644 --- a/docs/reports/markers.html +++ b/docs/reports/markers.html @@ -96,9 +96,9 @@ @@ -111,29 +111,7 @@
-
- -

- - includes/class-fontawesome-release-provider.php - 1 -

-
- - - - - - - - - - - -
TypeLineDescription
TODO279consider adding retry logic for loading Font Awesome releases.
-
-
-
+

@@ -149,17 +127,17 @@

TODO - 781 + 780 add test coverage for this case. TODO - 1152 + 1151 propagate this warning up to the admin UI instead of error_log. TODO - 1632 + 1657 consider using a mechanism other than debug_backtrace() to track the calling module, since phpcs complains. @@ -191,6 +169,28 @@

+
+
+ +

+ + includes/class-fontawesome-release-provider.php + 1 +

+
+ + + + + + + + + + + +
TypeLineDescription
TODO279consider adding retry logic for loading Font Awesome releases.
+
@@ -233,7 +233,7 @@


Documentation is powered by phpDocumentor and authored - on March 20th, 2019 at 23:24. + on March 21st, 2019 at 14:26.