+
+
+
+
+
+ get_error('api') ) ) : ?>
+
+
+ ' . $this->get_error('api')->get_error_code() . ': ' . $this->get_error('api')->get_error_message() . ''
+ );
+ ?>
+
+
+
+
+ get_error('css') ) ) : ?>
+
+
+ ' . $this->get_error('css')->get_error_code() . ': ' . $this->get_error('css')->get_error_message() . '',
+ '
',
+ '' . $this->font_awesome_version . ''
+ );
+ ?>
+
+
+
+
+
Don\'t worry! Better Font Awesome will still render using the included fallback version: ', 'better-font-awesome' ) . '' . $this->fallback_data['version'] . '' ; ?>
+
+
+
+
+ ',
+ ''
+ );
+ ?>
+
+
+ args['minified'] ) ? '.min' : '';
+ }
+
+ /**
+ * Add an error to the $this->errors array.
+ *
+ * @since 1.0.0
+ *
+ * @param string $error_type Type of error (api, css, etc).
+ * @param string $code Error code.
+ * @param string $message Error message.
+ */
+ private function set_error( $error_type, $code, $message ) {
+ $this->errors[ $error_type ] = new WP_Error( $code, $message );
+ }
+
+ /**
+ * Retrieve a library error.
+ *
+ * @since 1.0.0
+ *
+ * @param string $process Slug of the process to check (e.g. 'api').
+ *
+ * @return WP_ERROR The error for the specified process.
+ */
+ public function get_error( $process ) {
+ return isset( $this->errors[ $process ] ) ? $this->errors[ $process ] : '';
+ }
+
+ /**
+ * Check if API version data has been retrieved.
+ *
+ * @since 1.0.0
+ *
+ * @return boolean Whether or not the API version info was successfully fetched.
+ */
+ public function api_data_exists() {
+
+ if ( $this->api_data ) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
+
+ /**
+ * Get a specific API value.
+ *
+ * @since 1.0.0
+ *
+ * @param string $key Array key of the API data to get.
+ *
+ * @return mixed $value Value associated with specified key.
+ */
+ public function get_api_value( $key ) {
+
+ if ( $this->api_data ) {
+ $value = $this->api_data->$key;
+ } else {
+ $value = '';
+ }
+
+ return $value;
+
+ }
+
+ /*----------------------------------------------------------------------------*
+ * Public User Functions
+ *----------------------------------------------------------------------------*/
+
+ /**
+ * Get the version of Font Awesome currently in use.
+ *
+ * @since 1.0.0
+ *
+ * @return string Font Awesome version.
+ */
+ public function get_version() {
+ return $this->font_awesome_version;
+ }
+
+ /**
+ * Get the fallback version of Font Awesome included locally.
+ *
+ * @since 1.0.0
+ *
+ * @return string Font Awesome fallback version.
+ */
+ public function get_fallback_version() {
+ return $this->fallback_data['version'];
+ }
+
+ /**
+ * Get the stylesheet URL.
+ *
+ * @since 1.0.0
+ *
+ * @return string Stylesheet URL.
+ */
+ public function get_stylesheet_url() {
+ return $this->stylesheet_url;
+ }
+
+ /**
+ * Get the array of available icons.
+ *
+ * @since 1.0.0
+ *
+ * @return array Available Font Awesome icons.
+ */
+ public function get_icons() {
+ return $this->icons;
+ }
+
+ /**
+ * Get the icon prefix ('fa' or 'icon').
+ *
+ * @since 1.0.0
+ *
+ * @return string Font Awesome prefix.
+ */
+ public function get_prefix() {
+ return $this->prefix;
+ }
+
+ /**
+ * Get version data for the remote jsDelivr CDN.
+ *
+ * @since 1.0.0
+ *
+ * @return object jsDelivr API data.
+ */
+ public function get_api_data() {
+ return $this->api_data;
+ }
+
+ /**
+ * Get errors.
+ *
+ * @since 1.0.0
+ *
+ * @return array All library errors that have occured.
+ */
+ public function get_errors() {
+ return $this->errors;
+ }
+
+}
+endif;
diff --git a/lib/better-font-awesome-library/css/admin-styles.css b/lib/better-font-awesome-library/css/admin-styles.css
new file mode 100755
index 0000000..92f0bdf
--- /dev/null
+++ b/lib/better-font-awesome-library/css/admin-styles.css
@@ -0,0 +1,60 @@
+/**
+ * Better Font Awesome admin styles
+ *
+ * @package Better Font Awesome Library
+ * @author MIGHTYminnow & Mickey Kay