From 5550d10c5a133d47b6ea7133efb0c9e2e5912ce1 Mon Sep 17 00:00:00 2001 From: MickeyKay Date: Fri, 30 Jan 2015 12:21:01 -0800 Subject: [PATCH] Incorporate Better Font Awesome Library in /lib. --- functions.php | 3 +++ includes/functions/theme-functions.php | 28 ++++++++++++++++++++++++++ lib/better-font-awesome-library | 1 + 3 files changed, 32 insertions(+) create mode 160000 lib/better-font-awesome-library diff --git a/functions.php b/functions.php index 20b3121..e143591 100644 --- a/functions.php +++ b/functions.php @@ -27,6 +27,9 @@ require_once dirname( __FILE__ ) . '/includes/widget-areas/widget-areas.php'; // Plugin activation class require_once dirname( __FILE__ ) . '/includes/classes/class-tgm-plugin-activation.php'; +// Better Font Awesome Library +require_once dirname( __FILE__ ) . '/lib/better-font-awesome-library/better-font-awesome-library.php'; + add_action( 'genesis_setup' ,'trestle_theme_setup', 15 ); /** diff --git a/includes/functions/theme-functions.php b/includes/functions/theme-functions.php index 5f4ddfd..cb0936f 100644 --- a/includes/functions/theme-functions.php +++ b/includes/functions/theme-functions.php @@ -9,6 +9,34 @@ * @package Trestle */ +/*=========================================== + * 3rd Party Libraries +===========================================*/ + +add_action( 'init', 'trestle_load_bfa' ); +/** + * Initialize the Better Font Awesome Library. + * + * @since 2.0.0 + */ +function trestle_load_bfa() { + + // Set the library initialization args + $args = array( + 'version' => 'latest', + 'minified' => true, + 'remove_existing_fa' => false, + 'load_styles' => true, + 'load_admin_styles' => true, + 'load_shortcode' => true, + 'load_tinymce_plugin' => true, + ); + + // Initialize the Better Font Awesome Library. + Better_Font_Awesome_Library::get_instance( $args ); + +} + /*=========================================== * Header ===========================================*/ diff --git a/lib/better-font-awesome-library b/lib/better-font-awesome-library new file mode 160000 index 0000000..9d9be10 --- /dev/null +++ b/lib/better-font-awesome-library @@ -0,0 +1 @@ +Subproject commit 9d9be1041dc2e4db0eeec0efabcbde3499abc04a