diff --git a/README.md b/README.md index 7cf55d6..aa65e6e 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ Here are some of Trestle's many features, check out the [Trestle Demo](http://de * Switch to customizer for theme options instead of Genesis panel (pros? cons?) * Remove custom background CSS that doesn't make sense (different max-widths, etc) * Weird extra icons on accordions on demo site. +* Add checkbox to control author box (along with post info/meta) output (see ES: esw-custom.php) * Mobile menu button setting - either: * Remove (currently controlled from JS), or * Pass icon/text as params to jQuery diff --git a/functions.php b/functions.php index aae0238..b8512c1 100644 --- a/functions.php +++ b/functions.php @@ -30,6 +30,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/admin/admin.php b/includes/admin/admin.php index 7fafbff..af75721 100644 --- a/includes/admin/admin.php +++ b/includes/admin/admin.php @@ -35,6 +35,7 @@ function trestle_custom_defaults( $defaults ) { 'trestle_layout' => 'solid', 'trestle_logo_url' => '', 'trestle_logo_url_mobile' => '', + 'trestle_favicon_url' => '', 'trestle_nav_primary_location' => 'full', 'trestle_read_more_text' => __( 'Read More »', 'trestle' ), 'trestle_revisions_number' => 3, @@ -94,6 +95,12 @@ function trestle_register_required_plugins() { 'required' => false, ), + array( + 'name' => 'Equal Height Columns', + 'slug' => 'equal-height-columns', + 'required' => false, + ), + array( 'name' => 'Events Manager', 'slug' => 'events-manager', @@ -113,8 +120,8 @@ function trestle_register_required_plugins() { ), array( - 'name' => 'FancyBox for WordPress', - 'slug' => 'fancybox-for-wordpress', + 'name' => 'Easy FancyBox', + 'slug' => 'easy-fancybox', 'required' => false, ), @@ -257,4 +264,4 @@ function trestle_register_required_plugins() { ); tgmpa( $plugins, $config ); -} +} \ No newline at end of file diff --git a/includes/admin/customizer.js b/includes/admin/customizer.js index b6fb4ea..7a44eb4 100644 --- a/includes/admin/customizer.js +++ b/includes/admin/customizer.js @@ -42,6 +42,16 @@ }); }); + // Favicon + wp.customize( 'genesis-settings[trestle_favicon_url]', function( value ) { + value.bind( function( url ) { + + var $faviconElem = $( 'link[rel="Shortcut Icon"]' ); + $faviconElem.attr( 'href', url ); + + }); + }); + // Primary Nav Location wp.customize( 'genesis-settings[trestle_nav_primary_location]', function( value ) { value.bind( function( value ) { @@ -69,7 +79,7 @@ wp.customize( 'genesis-settings[trestle_read_more_text]', function( value ) { value.bind( function( value ) { - $( 'a.more-link' ).text( value ); + $( 'a.more-link' ).html( value ); }); }); diff --git a/includes/admin/customizer.php b/includes/admin/customizer.php index 39e7526..93df40a 100644 --- a/includes/admin/customizer.php +++ b/includes/admin/customizer.php @@ -108,13 +108,35 @@ function trestle_customizer_controls( $wp_customize ) { $wp_customize, 'trestle_mobile_logo_control', array( - 'label' => __( 'Upload a logo for mobile', 'trestle' ), + 'label' => __( 'Upload a mobile logo', 'trestle' ), 'section' => 'trestle_settings_section', 'settings' => 'genesis-settings[trestle_logo_url_mobile]', ) ) ); + // Upload a mobile logo + $wp_customize->add_setting( + 'genesis-settings[trestle_favicon_url]', + array( + 'default' => genesis_get_option( 'trestle_favicon_url' ), + 'type' => 'option', + 'transport' => 'postMessage', + 'capability' => 'edit_theme_options', + ) + ); + $wp_customize->add_control( + new WP_Customize_Image_Control( + $wp_customize, + 'trestle_favicon_control', + array( + 'label' => __( 'Upload a favicon', 'trestle' ), + 'section' => 'trestle_settings_section', + 'settings' => 'genesis-settings[trestle_favicon_url]', + ) + ) + ); + // Primary nav style $wp_customize->add_setting( 'genesis-settings[trestle_nav_primary_location]', @@ -139,6 +161,26 @@ function trestle_customizer_controls( $wp_customize ) { ) ); + // Primary nav extras + $wp_customize->add_setting( + 'genesis-settings[trestle_custom_nav_extras_text]', + array( + 'default' => genesis_get_option( 'trestle_custom_nav_extras_text' ), + 'type' => 'option', + 'transport' => 'postMessage', + 'capability' => 'edit_theme_options', + ) + ); + $wp_customize->add_control( + 'trestle_custom_nav_extras_text_control', + array( + 'section' => 'trestle_settings_section', + 'settings' => 'genesis-settings[trestle_custom_nav_extras_text]', + 'label' => __( 'Add search to mobile navigation', 'trestle' ), + 'type' => 'checkbox', + ) + ); + // Blog post custom read more link text $wp_customize->add_setting( 'genesis-settings[trestle_read_more_text]', diff --git a/includes/functions/theme-functions.php b/includes/functions/theme-functions.php index 40309e6..0946233 100644 --- a/includes/functions/theme-functions.php +++ b/includes/functions/theme-functions.php @@ -10,7 +10,35 @@ */ /*=========================================== - * Head Styles & Scripts + * 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 ===========================================*/ add_action( 'wp_enqueue_scripts', 'trestle_header_actions' ); @@ -44,6 +72,20 @@ function trestle_header_actions() { } +add_filter( 'genesis_pre_load_favicon', 'trestle_do_custom_favicon' ); +/** + * Output custom favicon if specified in the theme options. + * + * @since 1.0.0 + * + * @param string $favicon_url Default favicon URL. + * + * @return string Custom favicon URL (if specified), or the default URL. + */ +function trestle_do_custom_favicon( $favicon_url ) { + return genesis_get_option( 'trestle_favicon_url' ) ? genesis_get_option( 'trestle_favicon_url' ) : $favicon_url; +} + /*=========================================== * Body Classes ===========================================*/ @@ -164,42 +206,6 @@ function trestle_do_logos( $title, $inside, $wrap ) { * Navigation ===========================================*/ -add_action( 'init', 'trestle_nav_modifications' ); -/** - * Performs modifications to the primary navigation menu - * - * @since 1.0.0 - * - * @see trestle_add_mobile_nav() - * @see trestle_auto_nav_items() - * @see trestle_custom_nav_extras() - * @see trestle_nav_placeholder() - */ -function trestle_nav_modifications() { - - global $trestle_nav_title; - - // Set title for Trestle placeholder navigation menu - $trestle_nav_title = __( 'Trestle Auto Nav Placeholder', 'trestle' ); - - // Auto-generate nav if Genesis theme setting is checked - if ( 1 == genesis_get_option( 'trestle_auto_nav' ) ) { - add_filter( 'wp_nav_menu_items', 'trestle_auto_nav_items', 9, 2 ); - } - - // Do custom nav extras - if ( 1 == genesis_get_option( 'trestle_custom_nav_extras' ) ) { - // Remove default nav extras - remove_filter( 'wp_nav_menu_items', 'genesis_nav_right' ); - - // Add custom nav extras - add_filter( 'wp_nav_menu_items', 'trestle_custom_nav_extras', 10, 2 ); - } - - // Create placeholder navigation menu object if needed - trestle_nav_placeholder(); -} - add_action( 'init', 'trestle_nav_primary_location' ); /** * Move primary navigation into the header if need be. @@ -215,94 +221,25 @@ function trestle_nav_primary_location() { } +add_filter( 'wp_nav_menu_items', 'trestle_custom_nav_extras', 10, 2 ); /** - * Auto-generates list of pages for use in the primary navigation menu. + * Add custom nav extras. * * @since 1.0.0 * - * @param string $nav_items
  • list of navigation menu items. - * @param stdClass $menu_args Arguments for the menu. - * @return string
  • list of (modified) navigation menu items. - */ -function trestle_auto_nav_items( $nav_items, stdClass $menu_args ) { - - if ( 'primary' == $menu_args->theme_location ) { - $args = array( - 'depth' => genesis_get_option( 'trestle_auto_nav_depth' ) ? genesis_get_option( 'trestle_auto_nav_depth' ) : 0, - 'echo' => false, - 'show_home' => ( genesis_get_option( 'trestle_include_home_link' ) && genesis_get_option( 'trestle_home_link_text' ) ) ? do_shortcode( genesis_get_option( 'trestle_home_link_text' ) ): genesis_get_option( 'trestle_include_home_link' ), - 'menu_class' => 'auto-menu' - ); - - $ul_class = 'menu genesis-nav-menu menu-primary'; - - $menu_args = new stdClass(); - - $menu_args->theme_location = 'primary'; - - $nav_items = wp_page_menu( $args ); - - // Remove opening
    - $nav_items = preg_replace( '/<\/ul>\s*<\/div>/', '', $nav_items ); - } - - return $nav_items; -} - -/** - * Replaces standard Genesis navigation extras with custom input navigation extras. - * - * @since 1.0.0 - * - * @param string $nav_items
  • list of menu items. - * @param stdClass $menu_args Arguments for the menu. + * @param string $nav_items
  • list of menu items. + * @param stdClass $menu_args Arguments for the menu. * @return string
  • list of menu items with custom navigation extras
  • appended. */ function trestle_custom_nav_extras( $nav_items, stdClass $menu_args ) { - if ( 'primary' == $menu_args->theme_location ) { - $custom_text = esc_attr( genesis_get_option( 'trestle_custom_nav_extras_text' ) ); - return $nav_items . '
  • ' . do_shortcode( genesis_get_option( 'trestle_custom_nav_extras_text' ) ) . '
  • '; + if ( 'primary' == $menu_args->theme_location && genesis_get_option( 'trestle_custom_nav_extras_text' ) ) { + return $nav_items . '
  • ' . get_search_form( false ) . '
  • '; } return $nav_items; } -/** - * Generates a placeholder navigation menu object. - * - * When using Trestle's auto-generated navigation feature, - * it is necessary to ensure that some nav menu object is - * selected as primary otherwise no navigation will be generated. - * - * @since 1.0.0 - */ -function trestle_nav_placeholder() { - - global $trestle_nav_title; - - // Create placeholder menu for 'primary' spot if auto-nav is selected - this ensures that nav extras can be used even when no custom menu is formally set to primary - if ( 1 == genesis_get_option( 'trestle_auto_nav' ) && ! wp_get_nav_menu_object( $trestle_nav_title ) ) { - wp_create_nav_menu( $trestle_nav_title ); - } - - // Assign placeholder menu to 'primary' if auto-nav is selected and there is no current primary menu - if ( 1 == genesis_get_option( 'trestle_auto_nav' ) && ! wp_get_nav_menu_object( $trestle_nav_title ) && ! has_nav_menu( 'primary' ) ) { - $menu_locations = get_theme_mod( 'nav_menu_locations' ); - $menu_locations['primary'] = wp_get_nav_menu_object( $trestle_nav_title )->term_id; - set_theme_mod( 'nav_menu_locations', $menu_locations ); - } - - // Remove placeholder menu if auto-nav is disabled - $menus = get_registered_nav_menus(); - - if ( 1 != genesis_get_option( 'trestle_auto_nav' ) && wp_get_nav_menu_object( $trestle_nav_title ) && $trestle_nav_title != $menus['primary'] ) - wp_delete_nav_menu( $trestle_nav_title ); -} - /*=========================================== * Posts & Pages @@ -420,8 +357,9 @@ function trestle_read_more_link( $default_text ) { // Get Trestle custom "read more" link text $custom_text = esc_attr( genesis_get_option( 'trestle_read_more_text' ) ); - if ( $custom_text ) + if ( $custom_text ) { return '… ' . $custom_text . ''; - else + } else { return $default_text; + } } diff --git a/includes/js/theme-jquery.js b/includes/js/theme-jquery.js index 514b840..f51aa81 100644 --- a/includes/js/theme-jquery.js +++ b/includes/js/theme-jquery.js @@ -27,7 +27,7 @@ jQuery( document ).ready( function( $ ) { $( 'li:first-child' ).addClass( 'first' ); $( 'ul, ol' ).parent( 'li' ).addClass( 'parent' ); - // Mobile header toggle buttons + // Create mobile header toggle buttons $( '.site-header .title-area' ).after( '
    ' ); $( '.site-header .widget-area, .nav-primary' ).each( function( i ) { @@ -58,7 +58,7 @@ jQuery( document ).ready( function( $ ) { $target.addClass( 'toggle-target-' + i ); }); - // Toggle widget areas and primary nav + // A widget areas and primary nav mobile toggle functionality $( '.site-header .toggle-button' ).click( function( event ) { // Prevent default behavior @@ -70,11 +70,9 @@ jQuery( document ).ready( function( $ ) { // Get toggle button that was clicked $button = $( this ); - //Remove focus - $button.blur(); - // Match the button to the right target $target = $( '.toggle-target-' + $button.attr( 'id' ).match( /\d+/ ) ); + console.log( 'Target: ' + $target.attr('class')); // Toggle buttons $button.toggleClass( 'open' ); @@ -82,7 +80,11 @@ jQuery( document ).ready( function( $ ) { // Toggle targets $target.toggleClass( 'open' ); - $( '[class^="toggle-target"]' ).not( $target ).removeClass( 'open' ); + $( '[class*="toggle-target"]' ).not( $target ).removeClass( 'open' ); + + // Remove focus + $button.blur(); + }); // Mobile navigation icons @@ -137,4 +139,4 @@ jQuery( document ).ready( function( $ ) { }); -}); /* end of page load scripts */ +}); /* end of page load scripts */ \ No newline at end of file diff --git a/includes/shortcodes/shortcodes.php b/includes/shortcodes/shortcodes.php index b5cbad2..68a6398 100644 --- a/includes/shortcodes/shortcodes.php +++ b/includes/shortcodes/shortcodes.php @@ -102,7 +102,7 @@ function trestle_date( $atts ) { return date( $format ); } -add_shortcode( 'blockquote', 'igg_blockquote_shortcode' ); +add_shortcode( 'blockquote', 'trestle_blockquote_shortcode' ); /** * Blockquote * @@ -114,7 +114,7 @@ add_shortcode( 'blockquote', 'igg_blockquote_shortcode' ); * * @return string Shortcode output. */ -function igg_blockquote_shortcode( $atts, $content = null ) { +function trestle_blockquote_shortcode( $atts, $content = null ) { $atts = shortcode_atts( array( 'citation' => '', diff --git a/lib/better-font-awesome-library/README.md b/lib/better-font-awesome-library/README.md new file mode 100644 index 0000000..fe57314 --- /dev/null +++ b/lib/better-font-awesome-library/README.md @@ -0,0 +1,294 @@ +Better Font Awesome Library +=========================== + +*The easiest way to integrate Font Awesome into your WordPress project.* + +## Table of contents ## +1. [Introduction](https://github.com/MickeyKay/better-font-awesome-library#introduction) +1. [Features](https://github.com/MickeyKay/better-font-awesome-library#features) +1. [Installation](https://github.com/MickeyKay/better-font-awesome-library#installation) +1. [Usage](https://github.com/MickeyKay/better-font-awesome-library#usage) +1. [Initialization Parameters](https://github.com/MickeyKay/better-font-awesome-library#initialization-parameters-args) +1. [Shortcode](https://github.com/MickeyKay/better-font-awesome-library#shortcode) +1. [The Better Font Awesome Library Object](https://github.com/MickeyKay/better-font-awesome-library#the-better-font-awesome-library-object) +1. [Filters](https://github.com/MickeyKay/better-font-awesome-library#filters) +1. [To Do](https://github.com/MickeyKay/better-font-awesome-library#to-do) +1. [Credits](https://github.com/MickeyKay/better-font-awesome-library#credits) + +## Introduction ## +The Better Font Awesome Library allows you to automatically integrate the latest available version of [Font Awesome](http://fontawesome.io/) into your WordPress project, along with accompanying CSS, shortcode, and TinyMCE icon shortcode generator. Furthermore, it generates all the data you need to create new functionality of your own. + +## Features ## +* Automatically fetches the most recent available version of Font Awesome, meaning you no longer need to manually update the version included in your theme/plugin. +* Generates an easy-to-use [PHP object](#the-better-font-awesome-library-object) that contains all relevant info for the version of Font Awesome you're using, including: version, stylesheet URL, array of available icons, and prefix used (`icon` or `fa`). +* CDN speeds - Font Awesome CSS is pulled from the super-fast and reliable [jsDelivr CDN](http://www.jsdelivr.com/#!fontawesome). +* Includes a TinyMCE drop-down shortcode generator. +* Includes a local copy of Font Awesome to use as a fallback in case the remote fetch fails (or you can specify your own with the [`bfa_fallback_directory_path`](https://github.com/MickeyKay/better-font-awesome-library#bfa_fallback_directory_path) filter). +* Utilizes transients to optimize for speed and performance. + +## Installation ## +The Better Font Awesome Library contains a [Git submodule](http://git-scm.com/book/en/Git-Tools-Submodules) which will require you to recursively clone this repo: +``` +git clone --recursive https://github.com/MickeyKay/better-font-awesome-library.git +``` + +Alternately, if you've already cloned the repo and need to add the submodules, you can run the following commands: +``` +// Initialize all submodules. +git submodule init + +// Pull in updated copies of all submodules. +git submodule update +``` + +## Usage ## +1. Copy the /better-font-awesome-library folder into your project. + +2. Add the following code to your main plugin file or your theme's functions.php file. + ``` + // Include the main library file. Make sure to modify the path to match your directory structure. + require_once ( dirname( __FILE__ ) . '/better-font-awesome-library/better-font-awesome-library.php' ); + + add_action( 'plugins_loaded', 'my_prefix_load_bfa' ); + /** + * Initialize the Better Font Awesome Library. + * + * (see usage notes below on proper hook priority) + */ + function my_prefix_load_bfa() { + + // Set the library initialization args (defaults shown). + $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 ); + + } +``` + +3. If desired, use the [Better Font Awesome Library object](#the-better-font-awesome-library-object) to manually include Font Awesome CSS, output lists of available icons, create your own shortcodes, and much more. + +#### Usage Notes #### +The Better Font Awesome Library is designed to work in conjunction with the [Better Font Awesome](https://wordpress.org/plugins/better-font-awesome/) WordPress plugin. The plugin initializes this library (with its initialization args) on the `plugins_loaded` hook, priority `5`. When using the Better Font Awesome Library in your project, you have two options: + +1. Initialize later, to ensure that any Better Font Awesome plugin settings override yours. +1. Initialize earlier, to "take over" and prevent Better Font Awesome settings from having an effect. + +## Initialization Parameters ($args) ## +The following arguments can be used to initialize the library using `Better_Font_Awesome_Library::get_instance( $args )`: + +#### $args['version'] #### +(string) Which version of Font Awesome you want to use. +* `'latest'` (default) - always use the latest available version. +* `'3.2.1'` - any existing Font Awesome version number. + +#### $args['minified'] #### +(boolean) Use minified Font Awesome CSS. +* `true` (default) - uses minifed CSS. +* `false` - uses unminified CSS. + +#### $args['remove_existing_fa'] #### +(boolean) Attempts to remove existing Font Awesome styles and shortcodes. This can be useful to prevent conflicts with other themes/plugins, but is no guarantee. +* `true` +* `false` (default) + +#### $args['load_styles'] #### +(boolean) Automatically loads Font Awesome CSS on the **front-end** of your site using `wp_enqueue_scripts()`. +* `true` (default) +* `false` - use this if you don't want to load the Font Awesome CSS on the front-end, or wish to do it yourself. + +#### $args['load_admin_styles'] #### +(boolean) Automatically loads Font Awesome CSS on the **admin** of your site using `admin_enqueue_scripts()`. +* `true` (default) +* `false` - use this if you don't want to load the Font Awesome CSS in the admin, or wish to do it yourself. + +#### $args['load_shortcode'] #### +(boolean) Loads the included `[icon]` [shortcode](https://github.com/MickeyKay/better-font-awesome-library#shortcode). +* `true` (default) +* `false` + +#### load_tinymce_plugin #### +(boolean) Loads a TinyMCE drop-down list of available icons (based on the active Font Awesome version), which generates an `[icon]` shortcode. +* `true` (default) +* `false` + +## Shortcode ## +If either the `$args['load_shortcode']` or `$args['load_tinymce_plugin']` initialization arg is set to `true`, then the Better Font Awesome Library will include an icon shortcode that can be used as follows: +``` +[icon name="star" class="2x spin" unprefixed_class="my-custom-class"] +``` + +**name** +The unprefixed icon name (e.g. star). The version-specific prefix will be automatically prepended. + +**class** +Unprefixed [Font Awesome icon classes](http://fortawesome.github.io/Font-Awesome/examples/). The version-specific prefix will be automatically prepended to each class. + +**unprefixed_class** +Any additional classes that you wish to remain unprefixed (e.g. my-custom-class). + +#### Shortcode Output #### +The example shortcode above would output the following depending on which version of Font Awesome you've selected: + +**Version 4+** +``` + +``` +**Version 3** +``` + +``` + +## The Better Font Awesome Library Object ## +The Better Font Awesome Library object can be accessed with the following code: +`Better_Font_Awesome_Library::get_instance();` + +The object has the following public methods: +#### get_version() #### +(string) Returns the active version of Font Awesome being used. + +#### get_stylesheet_url() #### +(string) Returns the active Font Awesome stylesheet URL. + +#### get_icons() #### +(array) Returns an associative array of icon hex values (index, e.g. \f000) and unprefixed icon names (values, e.g. rocket) for all available icons in the active Font Awesome version. + +#### get_prefix() #### +(string) Returns the version-dependent prefix ('fa' or 'icon') that is used in the icons' CSS classes. + +#### get_api_data() #### +(object) Returns version data for the remote jsDelivr CDN (uses [jsDelivr API](https://github.com/jsdelivr/api)). Includes all available versions and latest version. + +#### get_errors() #### +(array) Returns all library errors, including API and CDN fetch failures. + +#### Example: #### +``` +// Initialize the library with custom args. +Better_Font_Awesome_Library::get_instance( $args ); + +// Get the active Better Font Awesome Library Object. +$my_bfa = Better_Font_Awesome_Library::get_instance(); + +// Get info on the Better Font Awesome Library object. +$version = $my_bfa->get_version(); +$stylesheet_url = $my_bfa->get_stylesheet_url(); +$prefix = $my_bfa->get_prefix(); +$icons = $my_bfa->get_icons(); + +// Output all available icons. +foreach ( $icons as $icon ) { + echo $icon . '
    '; +} +``` + +## Filters ## +The Better Font Awesome Library applies the following filters: + +#### bfa_init_args #### +Applied to the initialization arguments after they have been parsed with default args, but before they are used to fetch any Font Awesome data. + +**Parameters** + +* `$init_args` (array) + +#### bfa_wp_remote_get_args #### +Applied to arguments passed to all `wp_remote_get()` calls (useful for adjusting the timeout if needed). + +**Parameters** + +* `$wp_remote_get_args` (array) + +#### bfa_fallback_directory_path #### +Applied to the fallback directory path before setting up any fallback CSS info. Can be used to specify an alternate fallback directory to replace the default fallback directory. + +*The path must be to a local, non-remote, directory.* + +**Parameters** + +* `$path` (string) + +#### bfa_api_transient_expiration #### +Applied to the API (version information) transient [expiration](http://codex.wordpress.org/Transients_API#Using_Transients). Can be used to increase/decrease the expiration as desired. + +**Parameters** + +* `$api_expiration` (int) + +#### bfa_css_transient_expiration #### +Applied to the CSS stylesheet data transient [expiration](http://codex.wordpress.org/Transients_API#Using_Transients). Can be used to increase/decrease the expiration as desired. + +**Parameters** + +* `$css_expiration` (int) + +#### bfa_icon_list #### +Applied to the icon array after it has been generated from the Font Awesome stylesheet, and before it is assigned to the Better Font Awesome Library object's `$icons` property. + +**Parameters** + +* `$icons` (array) + +#### bfa_prefix #### +Applied to the Font Awesome prefix ('fa' or 'icon') before it is assigned to the Better Font Awesome Library object's `$prefix` property. + +**Parameters** + +* `$prefix` (string) + +#### bfa_icon_class #### +Applied to the classes that are output on each icon's `` element. + +**Parameters** + +* `$class` (string) + +#### bfa_icon #### +Applied to the entire `` element that is output for each icon. + +**Parameters** + +* `$output` (string) + +#### bfa_force_fallback #### +Applied to the boolean that determines whether or not to force the included fallback version of Font Awesome to load. This can be useful if you're having trouble with delays or timeouts. + +**Parameters** + +* `$force_fallback` (false) + +#### bfa_show_errors #### +Applied to the boolean that determines whether or not to suppress all Font Awesome warnings that normally display in the admin. + +**Parameters** + +* `$show_errors` (true) + + +## To Do ## +Ideas? File an issue or add a pull request! +* Add README section on manually updating the fallback version. +* Remove existing FA? - move to later hook so that it works for styles enqueued via shortcode (= wp_footer basically) + +## Credits ## +Special thanks to the following folks and their plugins for inspiration and support: +* [Font Awesome Icons](http://wordpress.org/plugins/font-awesome/ "Font Awesome Icons") by [Rachel Baker](http://rachelbaker.me/ "Rachel Baker") +* [Font Awesome More Icons](https://wordpress.org/plugins/font-awesome-more-icons/ "Font Awesome More Icons") by [Web Guys](http://webguysaz.com/ "Web Guys") +* [Font Awesome Shortcodes](https://wordpress.org/plugins/font-awesome-shortcodes/) by [FoolsRun](https://profiles.wordpress.org/foolsrun/ "FoolsRun") +* Dmitriy Akulov and the awesome folks at [jsDelivr](http://www.jsdelivr.com/) + +And many thanks to the following folks who helped with testing and QA: +* [Jeffrey Dubinksy](http://vanishingforests.org/) +* [Neil Gee](https://twitter.com/_neilgee) +* [Michael Beil](https://twitter.com/MichaelBeil) +* [Rob Neue](https://twitter.com/rob_neu) +* [Gary Jones](https://twitter.com/GaryJ) +* [Jan Hoek](https://twitter.com/JanHoekdotCom) diff --git a/lib/better-font-awesome-library/better-font-awesome-library.php b/lib/better-font-awesome-library/better-font-awesome-library.php new file mode 100644 index 0000000..79c4658 --- /dev/null +++ b/lib/better-font-awesome-library/better-font-awesome-library.php @@ -0,0 +1,1258 @@ + 'latest', + 'minified' => true, + 'remove_existing_fa' => false, + 'load_styles' => true, + 'load_admin_styles' => true, + 'load_shortcode' => true, + 'load_tinymce_plugin' => true, + ); + + /** + * Args for wp_remote_get() calls. + * + * @since 1.0.0 + * + * @var array + */ + private $wp_remote_get_args = array( + 'timeout' => 10 + ); + + /** + * Array to hold the jsDelivr API data. + * + * @since 1.0.0 + * + * @var string + */ + private $api_data = array(); + + /** + * Version of Font Awesome being used. + * + * @since 1.0.0 + * + * @var string + */ + private $font_awesome_version; + + /** + * Font Awesome stylesheet URL. + * + * @since 1.0.0 + * + * @var string + */ + private $stylesheet_url; + + /** + * Font Awesome CSS. + * + * @since 1.0.0 + * + * @var string + */ + private $css; + + /** + * Data associated with the local fallback version of Font Awesome. + * + * @since 1.0.0 + * + * @var string + */ + private $fallback_data = array( + 'directory' => 'lib/fallback-font-awesome/', + 'path' => '', + 'url' => '', + 'version' => '', + 'css' => '', + ); + + /** + * Array of available Font Awesome icon slugs. + * + * @since 1.0.0 + * + * @var string + */ + private $icons = array(); + + /** + * Font Awesome prefix to be used ('icon' or 'fa'). + * + * @since 1.0.0 + * + * @var string + */ + private $prefix; + + /** + * Array to track errors and wp_remote_get() failures. + * + * @since 1.0.0 + * + * @var array + */ + private $errors = array(); + + /** + * Instance of this class. + * + * @since 1.0.0 + * + * @var Better_Font_Awesome_Library + */ + private static $instance = null; + + /** + * Returns the instance of this class, and initializes + * the instance if it doesn't already exist. + * + * @since 1.0.0 + * + * @return Better_Font_Awesome_Library The BFAL object. + */ + public static function get_instance( $args = array() ) { + + // If the single instance hasn't been set, set it now. + if ( null == self::$instance ) { + self::$instance = new self( $args ); + } + + return self::$instance; + + } + + /** + * Better Font Awesome Library constructor. + * + * @since 1.0.0 + * + * @param array $args Initialization arguments. + */ + private function __construct( $args = array() ) { + + // Get initialization args. + $this->args = $args; + + // Load the library functionality. + $this->load(); + + } + + /** + * Set up all plugin library functionality. + * + * @since 1.0.0 + */ + public function load() { + + // Initialize library properties and actions as needed. + $this->initialize( $this->args ); + + // Use the jsDelivr API to fetch info on the jsDelivr Font Awesome CDN. + $this->setup_api_data(); + + // Set the version of Font Awesome to be used. + $this->set_active_version(); + + // Set the URL for the Font Awesome stylesheet. + $this->set_stylesheet_url( $this->font_awesome_version ); + + // Get stylesheet and generate list of available icons in Font Awesome stylesheet. + $this->setup_stylesheet_data(); + + /** + * Remove existing Font Awesome CSS and shortcodes if needed. + * + * Use priority 15 to ensure this is done after other plugin + * CSS/shortcodes are loaded. This must run before any other + * style/script/shortcode actions so it doesn't accidentally + * remove them. + */ + if ( $this->args['remove_existing_fa'] ) { + + add_action( 'wp_enqueue_scripts', array( $this, 'remove_font_awesome_css' ), 15 ); + add_action( 'init', array( $this, 'remove_icon_shortcode' ), 15 ); + + } + + /** + * Load front-end scripts and styles. + * + * Use priority 15 to make sure styles/scripts load after other plugins. + */ + if ( $this->args['load_styles'] || $this->args['remove_existing_fa'] ) { + add_action( 'wp_enqueue_scripts', array( $this, 'register_font_awesome_css' ), 15 ); + } + + /** + * Load admin scripts and styles. + * + * Use priority 15 to make sure styles/scripts load after other plugins. + */ + if ( $this->args['load_admin_styles'] || $this->args['load_tinymce_plugin'] ) { + add_action( 'admin_enqueue_scripts', array( $this, 'register_font_awesome_css' ), 15 ); + } + + /** + * Add [icon] shortcode. + * + * Use priority 15 to ensure this is done after removing existing Font + * Awesome CSS and shortcodes. + */ + if ( $this->args['load_shortcode'] || $this->args['load_tinymce_plugin'] ) { + add_action( 'init', array( $this, 'add_icon_shortcode' ), 15 ); + } + + // Add Font Awesome and/or custom CSS to the editor. + add_action( 'init', array( $this, 'add_editor_styles' ) ); + + // Load TinyMCE functionality. + if ( $this->args['load_tinymce_plugin'] ) { + + add_action( 'admin_init', array( $this, 'add_tinymce_components' ) ); + add_action( 'admin_head', array( $this, 'output_admin_head_variables' ) ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_custom_admin_css' ), 15 ); + + } + + // Output any necessary admin notices. + add_action( 'admin_notices', array( $this, 'do_admin_notice' ) ); + + } + + /** + * Do necessary initialization actions. + * + * @since 1.0.0 + */ + private function initialize( $args ) { + + // Parse the initialization args with the defaults. + $this->parse_args( $args ); + + // Set fallback stylesheet directory URL and path. + $this->setup_fallback_data(); + + } + + /** + * Parse the initialization args with the defaults and apply bfa_args filter. + * + * @since 1.0.0 + * + * @param array $args Args used to initialize BFAL. + */ + private function parse_args( $args = array() ) { + + // Parse initialization args with defaults. + $this->args = wp_parse_args( $args, $this->default_args ); + + /** + * Filter the initialization args. + * + * @since 1.0.0 + * + * @param array $this->args BFAL initialization args. + */ + $this->args = apply_filters( 'bfa_init_args', $this->args ); + + /** + * Filter the wp_remote_get args. + * + * @since 1.0.0 + * + * @param array $this->wp_remote_get_args BFAL wp_remote_get_args args. + */ + $this->wp_remote_get_args = apply_filters( 'bfa_wp_remote_get_args', $this->wp_remote_get_args ); + + } + + /** + * Set up data for the local fallback version of Font Awesome. + * + * @since 1.0.0 + */ + private function setup_fallback_data() { + + // Set fallback directory path. + $directory_path = plugin_dir_path( __FILE__ ) . $this->fallback_data['directory']; + + /** + * Filter directory path. + * + * @since 1.0.0 + * + * @param string $directory_path The path to the fallback Font Awesome directory. + */ + $directory_path = trailingslashit( apply_filters( 'bfa_fallback_directory_path', $directory_path ) ); + + // Set fallback path and URL. + $this->fallback_data['path'] = $directory_path . 'css/font-awesome' . $this->get_min_suffix() . '.css'; + $this->fallback_data['url'] = plugins_url( $this->fallback_data['directory'] . 'css/font-awesome' . $this->get_min_suffix() . '.css', dirname( $directory_path ) ); + + // Get the fallback version based on package.json. + $fallback_json_file_path = $directory_path . 'package.json'; + $fallback_data = json_decode( $this->get_local_file_contents( $fallback_json_file_path ) ); + $this->fallback_data['version'] = $fallback_data->version; + + // Get the fallback CSS. + $this->fallback_data['css'] = $this->get_fallback_css(); + + } + + /** + * Set up data for all versions of Font Awesome available on the jsDelivr + * CDN. + * + * Uses the jsDelivr API. + * + * @since 1.0.0 + */ + private function setup_api_data() { + $this->api_data = $this->fetch_api_data( self::JSDELIVR_API_URL ); + } + + /** + * Fetch the jsDelivr API data. + * + * First check to see if the api-versions transient is set, and if not use + * the jsDelivr API to retrieve all available versions of Font Awesome. + * + * @since 1.0.0 + * + * @return array|WP_ERROR Available CDN Font Awesome versions, or a + * WP_ERROR if the fetch fails. + */ + private function fetch_api_data( $url ) { + + if ( false === ( $response = get_transient( self::SLUG . '-api-versions' ) ) ) { + + $response = wp_remote_get( $url, $this->wp_remote_get_args ); + + if ( 200 == wp_remote_retrieve_response_code( $response ) ) { + + // Decode the API data and grab the versions info. + $json_data = json_decode( wp_remote_retrieve_body( $response ) ); + $response = $json_data[0]; + + /** + * Filter the API transient expiration. + * + * @since 1.0.0 + * + * @param int Expiration for API transient. + */ + $transient_expiration = apply_filters( 'bfa_api_transient_expiration', 12 * HOUR_IN_SECONDS ); + + // Set the API transient. + set_transient( self::SLUG . '-api-versions', $response, $transient_expiration ); + + } elseif ( is_wp_error( $response ) ) { // Check for faulty wp_remote_get() + + $this->set_error( 'api', $response->get_error_code(), $response->get_error_message() . " (URL: $url)" ); + $response = ''; + + } elseif ( isset( $response['response'] ) ) { // Check for 404 and other non-WP_ERROR codes + + $this->set_error( 'api', $response['response']['code'], $response['response']['message'] . " (URL: $url)" ); + $response = ''; + + } else { // Total failsafe + + $this->set_error( 'api', 'Unknown', __( 'The jsDelivr API servers appear to be temporarily unavailable.', 'better-font-awesome' ) . " (URL: $url)" ); + $response = ''; + + } + + } + + return $response; + + } + + /** + * Set the version of Font Awesome to use. + * + * @since 1.0.0 + */ + private function set_active_version() { + + if ( 'latest' == $this->args['version'] ) { + $this->font_awesome_version = $this->get_latest_version(); + } else { + $this->font_awesome_version = $this->args['version']; + } + + } + + /** + * Get the latest available Font Awesome version. + * + * @since 1.0.0 + * + * @return string Latest available Font Awesome version, either via the + * jsDelivr API data (if available), or a best guess based on transient and + * fallback version data. + */ + private function get_latest_version() { + + if ( $this->api_data_exists() ) { + return $this->get_api_value( 'lastversion' ); + } else { + return $this->guess_latest_version(); + } + + } + + /** + * Guess the latest Font Awesome version. + * + * Check both the transient Font Awesome CSS array and the locally-hosted + * version of Font Awesome to determine the latest listed version. + * + * @since 1.0.0 + * + * @return string Latest transient or fallback version of Font Awesome CSS. + */ + private function guess_latest_version() { + + $css_transient_latest_version = $this->get_css_transient_latest_version(); + + if ( version_compare( $css_transient_latest_version, $this->fallback_data['version'], '>' ) ) { + return $css_transient_latest_version; + } else { + return $this->fallback_data['version']; + } + + } + + /** + * Get the latest version saved in the CSS transient. + * + * @since 1.0.0 + * + * @return string Latest version key in the CSS transient array. + * Return '0' if the CSS transient isn't set. + */ + private function get_css_transient_latest_version() { + + $transient_css_array = get_transient( self::SLUG . '-css' ); + + if ( ! empty( $transient_css_array ) ) { + return max( array_keys( $transient_css_array ) ); + } else { + return '0'; + } + + } + + /** + * Determine the remote Font Awesome stylesheet URL based on the selected + * version. + * + * @since 1.0.0 + * + * @param string $version Version of Font Awesome to use. + */ + private function set_stylesheet_url( $version ) { + $this->stylesheet_url = '//cdn.jsdelivr.net/fontawesome/' . $version . '/css/font-awesome' . $this->get_min_suffix() . '.css'; + } + + /** + * Get stylesheet CSS and populate icons array. + * + * @since 1.0.0 + */ + private function setup_stylesheet_data() { + + // Get the Font Awesome CSS. + $this->css = $this->get_css( $this->stylesheet_url, $this->font_awesome_version ); + + // Get the list of available icons from the Font Awesome CSS. + $this->icons = $this->setup_icon_array( $this->css ); + + // Set up prefix based on version ('fa' or 'icon'). + $this->prefix = $this->setup_prefix( $this->font_awesome_version ); + + } + + /** + * Get the Font Awesome CSS. + * + * @since 1.0.0 + * + * @param string $url URL of the remote stylesheet. + * @param string $version Version of Font Awesome to fetch. + * + * @return string $response Font Awesome CSS, from either: + * 1. transient, + * 2. wp_remote_get(), or + * 3. fallback CSS. + */ + private function get_css( $url, $version ) { + + // First try getting the transient CSS. + $response = $this->get_transient_css( $version ); + + // Next, try fetching the CSS from the remote jsDelivr CDN. + if ( ! $response ) { + $response = $this->get_remote_css( $url, $version ); + } + + /** + * Filter the force fallback flag. + * + * @since 1.0.4 + * + * @param bool Whether or not to force the fallback CSS. + */ + $force_fallback = apply_filters( 'bfa_force_fallback', false ); + + /** + * Use the local fallback if both the transient and wp_remote_get() + * methods fail, or if fallback is forced with bfa_force_fallback filter. + */ + if ( is_wp_error( $response ) || $force_fallback ) { + + // Log the CSS fetch error. + if ( ! $force_fallback ) { + $this->set_error( 'css', $response->get_error_code(), $response->get_error_message() . " (URL: $url)" ); + } + + // Use the local fallback CSS. + $response = $this->fallback_data['css']; + + // Update the version string to match the fallback version. + $this->font_awesome_version = $this->fallback_data['version']; + + // Update the stylesheet URL to match the fallback version. + $this->stylesheet_url = $this->fallback_data['url']; + } + + return $response; + + } + + /** + * Get the transient copy of the CSS for the specified version. + * + * @since 1.0.0 + * + * @param string $version Font Awesome version to check. + * + * @return string Transient CSS if it exists, otherwise null. + */ + private function get_transient_css( $version ) { + + $transient_css_array = get_transient( self::SLUG . '-css' ); + return isset( $transient_css_array[ $version ] ) ? $transient_css_array[ $version ] : ''; + + } + + /** + * Get the CSS from the remote jsDelivr CDN. + * + * @since 1.0.0 + * + * @param string $url URL for the remote stylesheet. + * @param string $version Font Awesome version to fetch. + * + * @return string|WP_ERROR $response Remote CSS, or WP_ERROR if + * wp_remote_get() fails. + */ + private function get_remote_css( $url, $version ) { + + // Get the remote Font Awesome CSS. + $url = set_url_scheme( $url ); + $response = wp_remote_get( $url, $this->wp_remote_get_args ); + + /** + * If fetch was successful, return the remote CSS, and set the CSS + * transient for this version. Otherwise, return a WP_Error object. + */ + if ( 200 == wp_remote_retrieve_response_code( $response ) ) { + + $response = wp_remote_retrieve_body( $response ); + $this->set_css_transient( $version, $response ); + + } elseif ( is_wp_error( $response ) ) { // Check for faulty wp_remote_get() + $response = $response; + } elseif ( isset( $response['response'] ) ) { // Check for 404 and other non-WP_ERROR codes + $response = new WP_Error( $response['response']['code'], $response['response']['message'] . " (URL: $url)" ); + } else { // Total failsafe + $response = ''; + } + + return $response; + + } + + /** + * Set the CSS transient array. + * + * @since 1.0.0 + * + * @param string $version Version of Font Awesome for which to set the + * transient. + * @param string $value CSS for corresponding version of Font Awesome. + */ + private function set_css_transient( $version, $value ) { + + /** + * Get the transient array, which contains data for multiple Font + * Awesome version. + */ + $transient_css_array = get_transient( self::SLUG . '-css' ); + + // Set the new value for the specified Font Awesome version. + $transient_css_array[ $version ] = $value; + + /** + * Filter the CSS transient expiration. + * + * @since 1.0.0 + * + * @param int Expiration for the CSS transient. + */ + $transient_expiration = apply_filters( 'bfa_css_transient_expiration', 30 * DAY_IN_SECONDS ); + + // Set the new CSS array transient. + set_transient( self::SLUG . '-css', $transient_css_array, $transient_expiration ); + + } + + /** + * Get the CSS of the local fallback Font Awesome version. + * + * @since 1.0.0 + * + * @return string Contents of the local fallback Font Awesome stylesheet. + */ + private function get_fallback_css() { + return $this->get_local_file_contents( $this->fallback_data['path'] ); + } + + /** + * Get array of icons from the Font Awesome CSS. + * + * @since 1.0.0 + * + * @param string $css The Font Awesome CSS. + * + * @return array All available icon names (e.g. adjust, car, pencil). + */ + private function setup_icon_array( $css ) { + + $icons = array(); + $hex_codes = array(); + + /** + * Get all CSS selectors that have a "content:" pseudo-element rule, + * as well as all associated hex codes. + */ + preg_match_all( '/\.(icon-|fa-)([^,}]*)\s*:before\s*{\s*(content:)\s*"(\\\\[^"]+)"/s', $css, $matches ); + $icons = $matches[2]; + $hex_codes = $matches[4]; + + // Add hex codes as icon array index. + $icons = array_combine( $hex_codes, $icons ); + + // Alphabetize the icons array by icon name. + asort( $icons ); + + /** + * Filter the array of available icons. + * + * @since 1.0.0 + * + * @param array $icons Array of all available icons. + */ + $icons = apply_filters( 'bfa_icon_list', $icons ); + + return $icons; + + } + + /** + * Get the Font Awesosome prefix ('fa' or 'icon'). + * + * @since 1.0.0 + * + * @param string $version Font Awesome version being used. + * + * @return string $prefix 'fa' or 'icon', depending on the version. + */ + private function setup_prefix( $version ) { + + if ( 0 <= version_compare( $version, '4' ) ) { + $prefix = 'fa'; + } else { + $prefix = 'icon'; + } + + /** + * Filter the Font Awesome prefix. + * + * @since 1.0.0 + * + * @param string $prefix Font Awesome prefix ('icon' or 'fa'). + */ + $prefix = apply_filters( 'bfa_prefix', $prefix ); + + return $prefix; + + } + + /** + * Remove styles that include 'fontawesome' or 'font-awesome' in their slug. + * + * @since 1.0.0 + */ + public function remove_font_awesome_css() { + + global $wp_styles; + + // Loop through all registered styles and remove any that appear to be Font Awesome. + foreach ( $wp_styles->registered as $script => $details ) { + + if ( false !== strpos( $script, 'fontawesome' ) || false !== strpos( $script, 'font-awesome' ) ) { + wp_dequeue_style( $script ); + } + + } + + } + + /** + * Remove [icon] shortcode. + * + * @since 1.0.0 + */ + public function remove_icon_shortcode() { + remove_shortcode( 'icon' ); + } + + /** + * Add [icon] shortcode. + * + * Usage: + * [icon name="flag" class="fw 2x spin" unprefixed_class="custom_class"] + * + * @since 1.0.0 + */ + public function add_icon_shortcode() { + add_shortcode( 'icon', array( $this, 'render_shortcode' ) ); + } + + /** + * Render [icon] shortcode. + * + * Usage: + * [icon name="flag" class="fw 2x spin" unprefixed_class="custom_class"] + * + * @param array $atts Shortcode attributes. + * @return string $output Icon HTML (e.g. ). + */ + public function render_shortcode( $atts ) { + + extract( shortcode_atts( array( + 'name' => '', + 'class' => '', + 'unprefixed_class' => '', + 'title' => '', /* For compatibility with other plugins */ + 'size' => '', /* For compatibility with other plugins */ + 'space' => '', + ), $atts ) + ); + + /** + * Include for backwards compatibility with Font Awesome More Icons plugin. + * + * @see https://wordpress.org/plugins/font-awesome-more-icons/ + */ + $title = $title ? 'title="' . $title . '" ' : ''; + $space = 'true' == $space ? ' ' : ''; + $size = $size ? ' '. $this->prefix . '-' . $size : ''; + + // Remove "icon-" and "fa-" from name + // This helps both: + // 1. Incorrect shortcodes (when user includes full class name including prefix) + // 2. Old shortcodes from other plugins that required prefixes + + /** + * Strip 'icon-' and 'fa-' from $name. + * + * This corrects for: + * 1. Incorrect shortcodes (when user includes full class name including prefix) + * 2. Old shortcodes from other plugins that required prefixes + */ + $name = str_replace( 'icon-', '', $name ); + $name = str_replace( 'fa-', '', $name ); + + // Add the version-specific prefix back on to $name. + $icon_name = $this->prefix . '-' . $name; + + // Remove "icon-" and "fa-" from the icon class. + $class = str_replace( 'icon-', '', $class ); + $class = str_replace( 'fa-', '', $class ); + + // Remove extra spaces from the icon class. + $class = trim( $class ); + $class = preg_replace( '/\s{3,}/', ' ', $class ); + + // Add the version-specific prefix back on to each class. + $class = $class ? ' ' . $this->prefix . '-' . str_replace( ' ', ' ' . $this->prefix . '-', $class ) : ''; + + // Add unprefixed classes. + $class .= $unprefixed_class ? ' ' . $unprefixed_class : ''; + + /** + * Filter the icon class. + * + * @since 1.0.0 + * + * @param string $class Classes attached to the icon. + */ + $class = apply_filters( 'bfa_icon_class', $class, $name ); + + // Generate the HTML icon element output. + $output = sprintf( '%s', + $this->prefix, + $icon_name . $class . $size, + $title, + $space + ); + + /** + * Filter the icon output. + * + * @since 1.0.0 + * + * @param string $output Icon output. + */ + return apply_filters( 'bfa_icon', $output ); + + } + + /** + * Register and enqueue Font Awesome CSS. + */ + public function register_font_awesome_css() { + + wp_register_style( self::SLUG . '-font-awesome', $this->stylesheet_url, '', $this->font_awesome_version ); + wp_enqueue_style( self::SLUG . '-font-awesome' ); + + } + + /** + * Add Font Awesome CSS to TinyMCE. + * + * @since 1.0.0 + */ + public function add_editor_styles() { + add_editor_style( $this->stylesheet_url ); + } + + /** + * Add TinyMCE button functionality. + * + * @since 1.0.0 + */ + function add_tinymce_components() { + + if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) { + return; + } + + if ( get_user_option( 'rich_editing' ) == 'true' ) { + + add_filter( 'mce_external_plugins', array( $this, 'register_tinymce_plugin' ) ); + add_filter( 'mce_buttons', array( $this, 'add_tinymce_buttons' ) ); + + } + + } + + /** + * Load TinyMCE Font Awesome dropdown plugin. + * + * @since 1.0.0 + */ + function register_tinymce_plugin( $plugin_array ) { + + global $tinymce_version; + + /** + * Register the correct TinyMCE plugin based on the version of TinyMCE + * being used. + */ + if ( version_compare( $tinymce_version, '4000', '>=' ) ) { + $plugin_array['bfa_plugin'] = plugins_url( 'js/tinymce-icons.js', __FILE__ ); + } else { + $plugin_array['bfa_plugin'] = plugins_url( 'js/tinymce-icons-old.js', __FILE__ ); + } + + return $plugin_array; + + } + + /** + * Add the TinyMCE button(s). + * + * @since 1.0.0 + */ + function add_tinymce_buttons( $buttons ) { + + array_push( $buttons, 'bfaSelect' ); + return $buttons; + + } + + /** + * Add PHP variables in HTML for use by TinyMCE JavaScript. + * + * @since 1.0.0 + */ + function output_admin_head_variables() { + + $icon_list = implode( ",", $this->icons ); + ?> + + + + errors ) && apply_filters( 'bfa_show_errors', true ) ) : + ?> +
    +

    + +

    + + + 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 100644 index 0000000..ae72c46 --- /dev/null +++ b/lib/better-font-awesome-library/css/admin-styles.css @@ -0,0 +1,56 @@ +/** + * Better Font Awesome admin styles + * + * @package Better Font Awesome Library + * @author MIGHTYminnow & Mickey Kay + * @license GPL-2.0+ + * @link https://github.com/MickeyKay/better-font-awesome-library + * @copyright 2014 MIGHTYminnow & Mickey Kay + */ + +/** + * TinyMCE + */ + +/* Override TinyMCE rules blocking these native Font Awesome styles */ +#menu_content_content_bfaSelect_menu .icon-fw, +#menu_content_content_bfaSelect_menu .fa-fw, +.mce-stack-layout-item .icon-fw, +.mce-stack-layout-item .fa-fw { + display: inline-block; + width: 1.2857142857142858em; + text-align: center; +} + +/* Override TinyMCE icon font family */ +.fa { + font-family: FontAwesome !important; +} + +/* BFA select icon (for versions < TinyMCE 4) */ +[id*="bfaSelect_text"]:before { + content: "\f024"; + margin-right: .5em; + font-family: FontAwesome; +} + +/** + * Settings page + */ + +.bfa-usage-text { + padding: 20px; + background-color: #fff; + border: 1px solid #efefef; +} + +.bfa-usage-text h3 { + margin-top: 0; +} + +.bfa-usage-text .fa, +.bfa-usage-text .icon { + width: 40px; + text-align: center; + box-sizing: border-box; +} \ No newline at end of file diff --git a/lib/better-font-awesome-library/js/tinymce-icons-old.js b/lib/better-font-awesome-library/js/tinymce-icons-old.js new file mode 100644 index 0000000..b4e60e6 --- /dev/null +++ b/lib/better-font-awesome-library/js/tinymce-icons-old.js @@ -0,0 +1,43 @@ +(function() { + + if( typeof bfa_vars != 'undefined' ) { + var icons = bfa_vars.fa_icons.split(','); + var prefix = bfa_vars.fa_prefix; + + var icon_i = function(id) { + return ''; + } + + var icon_shortcode = function(id) { + return '[icon name="' + id + '" class=""]'; + } + + var createControl = function(name, controlManager) { + if (name != 'bfaSelect') return null; + var listBox = controlManager.createListBox('bfaSelect', { + title: 'Icons', + onselect: function(v) { + var editor = this.control_manager.editor; + if (v) { + editor.selection.setContent(icon_shortcode(v)); + } + return false; + } + }); + + for (var i = 0; i < icons.length; i++) { + var _id = icons[i]; + listBox.add(icon_i(_id) + ' ' + _id, _id); + } + + return listBox; + }; + + tinymce.create('tinymce.plugins.bfa_plugin', { + createControl: createControl + }); + + tinymce.PluginManager.add('bfa_plugin', tinymce.plugins.bfa_plugin); + + } +})(); \ No newline at end of file diff --git a/lib/better-font-awesome-library/js/tinymce-icons.js b/lib/better-font-awesome-library/js/tinymce-icons.js new file mode 100644 index 0000000..2bd0a53 --- /dev/null +++ b/lib/better-font-awesome-library/js/tinymce-icons.js @@ -0,0 +1,48 @@ +( function() { + "use strict"; + + var icons = bfa_vars.fa_icons.split(','); + var prefix = bfa_vars.fa_prefix; + + var icon_shortcode = function(id) { + return '[icon name="' + id + '" class=""]'; + } + + var bfaSelect = function( editor, url ) { + editor.addButton('bfaSelect', function() { + var values = []; + + for (var i = 0; i < icons.length; i++) { + var _id = icons[i]; + values.push({text: _id, value: _id, icon: ' fa fa-fw icon-fw fa-' + _id + ' icon-' + _id }); + } + + return { + type: 'listbox', + name: 'bfaSelect', + tooltip: 'Better Font Awesome Icons', + icon: ' fa fa-flag icon-flag', + text: 'Icons', + label: 'Select :', + fixedWidth: true, + values: values, + onselect: function(e) { + if (e) { + editor.insertContent(icon_shortcode(e.control.settings.value)); + } + + // Reset back to inital "Icons" text + this.value(null); + + return false; + }, + onPostRender: function() { + this.addClass('bfaSelect'); + } + + }; + }); + + }; + tinymce.PluginManager.add( 'bfa_plugin', bfaSelect ); +} )(); \ No newline at end of file diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/.npmignore b/lib/better-font-awesome-library/lib/fallback-font-awesome/.npmignore new file mode 100644 index 0000000..54a691f --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/.npmignore @@ -0,0 +1,42 @@ +*.pyc +*.egg-info +*.db +*.db.old +*.swp +*.db-journal + +.coverage +.DS_Store +.installed.cfg +_gh_pages/* + +.idea/* +.svn/* +src/website/static/* +src/website/media/* + +bin +cfcache +develop-eggs +dist +downloads +eggs +parts +tmp +.sass-cache +node_modules + +src/website/settingslocal.py +stunnel.log + +.ruby-version + +# don't need these in the npm package. +src/ +_config.yml +bower.json +component.json +composer.json +CONTRIBUTING.md +Gemfile +Gemfile.lock diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/README.md b/lib/better-font-awesome-library/lib/fallback-font-awesome/README.md new file mode 100644 index 0000000..bc7b1e9 --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/README.md @@ -0,0 +1,7 @@ +# Font Awesome # +This is a custom version of the Font Awesome repo pared down to only include: +* package.json +* /css +* /fonts + +It is intended to be as small as possible while still including all of the necessary components to embed Font Awesome in a project. \ No newline at end of file diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.css b/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.css new file mode 100755 index 0000000..4040b3c --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.css @@ -0,0 +1,1672 @@ +/*! + * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */ +/* FONT PATH + * -------------------------- */ +@font-face { + font-family: 'FontAwesome'; + src: url('../fonts/fontawesome-webfont.eot?v=4.2.0'); + src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg'); + font-weight: normal; + font-style: normal; +} +.fa { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* makes the font 33% larger relative to the icon container */ +.fa-lg { + font-size: 1.33333333em; + line-height: 0.75em; + vertical-align: -15%; +} +.fa-2x { + font-size: 2em; +} +.fa-3x { + font-size: 3em; +} +.fa-4x { + font-size: 4em; +} +.fa-5x { + font-size: 5em; +} +.fa-fw { + width: 1.28571429em; + text-align: center; +} +.fa-ul { + padding-left: 0; + margin-left: 2.14285714em; + list-style-type: none; +} +.fa-ul > li { + position: relative; +} +.fa-li { + position: absolute; + left: -2.14285714em; + width: 2.14285714em; + top: 0.14285714em; + text-align: center; +} +.fa-li.fa-lg { + left: -1.85714286em; +} +.fa-border { + padding: .2em .25em .15em; + border: solid 0.08em #eeeeee; + border-radius: .1em; +} +.pull-right { + float: right; +} +.pull-left { + float: left; +} +.fa.pull-left { + margin-right: .3em; +} +.fa.pull-right { + margin-left: .3em; +} +.fa-spin { + -webkit-animation: fa-spin 2s infinite linear; + animation: fa-spin 2s infinite linear; +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +.fa-rotate-90 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); + -webkit-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); +} +.fa-rotate-180 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); + -webkit-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); +} +.fa-rotate-270 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); + -webkit-transform: rotate(270deg); + -ms-transform: rotate(270deg); + transform: rotate(270deg); +} +.fa-flip-horizontal { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); + -webkit-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + transform: scale(-1, 1); +} +.fa-flip-vertical { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); + -webkit-transform: scale(1, -1); + -ms-transform: scale(1, -1); + transform: scale(1, -1); +} +:root .fa-rotate-90, +:root .fa-rotate-180, +:root .fa-rotate-270, +:root .fa-flip-horizontal, +:root .fa-flip-vertical { + filter: none; +} +.fa-stack { + position: relative; + display: inline-block; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: middle; +} +.fa-stack-1x, +.fa-stack-2x { + position: absolute; + left: 0; + width: 100%; + text-align: center; +} +.fa-stack-1x { + line-height: inherit; +} +.fa-stack-2x { + font-size: 2em; +} +.fa-inverse { + color: #ffffff; +} +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ +.fa-glass:before { + content: "\f000"; +} +.fa-music:before { + content: "\f001"; +} +.fa-search:before { + content: "\f002"; +} +.fa-envelope-o:before { + content: "\f003"; +} +.fa-heart:before { + content: "\f004"; +} +.fa-star:before { + content: "\f005"; +} +.fa-star-o:before { + content: "\f006"; +} +.fa-user:before { + content: "\f007"; +} +.fa-film:before { + content: "\f008"; +} +.fa-th-large:before { + content: "\f009"; +} +.fa-th:before { + content: "\f00a"; +} +.fa-th-list:before { + content: "\f00b"; +} +.fa-check:before { + content: "\f00c"; +} +.fa-remove:before, +.fa-close:before, +.fa-times:before { + content: "\f00d"; +} +.fa-search-plus:before { + content: "\f00e"; +} +.fa-search-minus:before { + content: "\f010"; +} +.fa-power-off:before { + content: "\f011"; +} +.fa-signal:before { + content: "\f012"; +} +.fa-gear:before, +.fa-cog:before { + content: "\f013"; +} +.fa-trash-o:before { + content: "\f014"; +} +.fa-home:before { + content: "\f015"; +} +.fa-file-o:before { + content: "\f016"; +} +.fa-clock-o:before { + content: "\f017"; +} +.fa-road:before { + content: "\f018"; +} +.fa-download:before { + content: "\f019"; +} +.fa-arrow-circle-o-down:before { + content: "\f01a"; +} +.fa-arrow-circle-o-up:before { + content: "\f01b"; +} +.fa-inbox:before { + content: "\f01c"; +} +.fa-play-circle-o:before { + content: "\f01d"; +} +.fa-rotate-right:before, +.fa-repeat:before { + content: "\f01e"; +} +.fa-refresh:before { + content: "\f021"; +} +.fa-list-alt:before { + content: "\f022"; +} +.fa-lock:before { + content: "\f023"; +} +.fa-flag:before { + content: "\f024"; +} +.fa-headphones:before { + content: "\f025"; +} +.fa-volume-off:before { + content: "\f026"; +} +.fa-volume-down:before { + content: "\f027"; +} +.fa-volume-up:before { + content: "\f028"; +} +.fa-qrcode:before { + content: "\f029"; +} +.fa-barcode:before { + content: "\f02a"; +} +.fa-tag:before { + content: "\f02b"; +} +.fa-tags:before { + content: "\f02c"; +} +.fa-book:before { + content: "\f02d"; +} +.fa-bookmark:before { + content: "\f02e"; +} +.fa-print:before { + content: "\f02f"; +} +.fa-camera:before { + content: "\f030"; +} +.fa-font:before { + content: "\f031"; +} +.fa-bold:before { + content: "\f032"; +} +.fa-italic:before { + content: "\f033"; +} +.fa-text-height:before { + content: "\f034"; +} +.fa-text-width:before { + content: "\f035"; +} +.fa-align-left:before { + content: "\f036"; +} +.fa-align-center:before { + content: "\f037"; +} +.fa-align-right:before { + content: "\f038"; +} +.fa-align-justify:before { + content: "\f039"; +} +.fa-list:before { + content: "\f03a"; +} +.fa-dedent:before, +.fa-outdent:before { + content: "\f03b"; +} +.fa-indent:before { + content: "\f03c"; +} +.fa-video-camera:before { + content: "\f03d"; +} +.fa-photo:before, +.fa-image:before, +.fa-picture-o:before { + content: "\f03e"; +} +.fa-pencil:before { + content: "\f040"; +} +.fa-map-marker:before { + content: "\f041"; +} +.fa-adjust:before { + content: "\f042"; +} +.fa-tint:before { + content: "\f043"; +} +.fa-edit:before, +.fa-pencil-square-o:before { + content: "\f044"; +} +.fa-share-square-o:before { + content: "\f045"; +} +.fa-check-square-o:before { + content: "\f046"; +} +.fa-arrows:before { + content: "\f047"; +} +.fa-step-backward:before { + content: "\f048"; +} +.fa-fast-backward:before { + content: "\f049"; +} +.fa-backward:before { + content: "\f04a"; +} +.fa-play:before { + content: "\f04b"; +} +.fa-pause:before { + content: "\f04c"; +} +.fa-stop:before { + content: "\f04d"; +} +.fa-forward:before { + content: "\f04e"; +} +.fa-fast-forward:before { + content: "\f050"; +} +.fa-step-forward:before { + content: "\f051"; +} +.fa-eject:before { + content: "\f052"; +} +.fa-chevron-left:before { + content: "\f053"; +} +.fa-chevron-right:before { + content: "\f054"; +} +.fa-plus-circle:before { + content: "\f055"; +} +.fa-minus-circle:before { + content: "\f056"; +} +.fa-times-circle:before { + content: "\f057"; +} +.fa-check-circle:before { + content: "\f058"; +} +.fa-question-circle:before { + content: "\f059"; +} +.fa-info-circle:before { + content: "\f05a"; +} +.fa-crosshairs:before { + content: "\f05b"; +} +.fa-times-circle-o:before { + content: "\f05c"; +} +.fa-check-circle-o:before { + content: "\f05d"; +} +.fa-ban:before { + content: "\f05e"; +} +.fa-arrow-left:before { + content: "\f060"; +} +.fa-arrow-right:before { + content: "\f061"; +} +.fa-arrow-up:before { + content: "\f062"; +} +.fa-arrow-down:before { + content: "\f063"; +} +.fa-mail-forward:before, +.fa-share:before { + content: "\f064"; +} +.fa-expand:before { + content: "\f065"; +} +.fa-compress:before { + content: "\f066"; +} +.fa-plus:before { + content: "\f067"; +} +.fa-minus:before { + content: "\f068"; +} +.fa-asterisk:before { + content: "\f069"; +} +.fa-exclamation-circle:before { + content: "\f06a"; +} +.fa-gift:before { + content: "\f06b"; +} +.fa-leaf:before { + content: "\f06c"; +} +.fa-fire:before { + content: "\f06d"; +} +.fa-eye:before { + content: "\f06e"; +} +.fa-eye-slash:before { + content: "\f070"; +} +.fa-warning:before, +.fa-exclamation-triangle:before { + content: "\f071"; +} +.fa-plane:before { + content: "\f072"; +} +.fa-calendar:before { + content: "\f073"; +} +.fa-random:before { + content: "\f074"; +} +.fa-comment:before { + content: "\f075"; +} +.fa-magnet:before { + content: "\f076"; +} +.fa-chevron-up:before { + content: "\f077"; +} +.fa-chevron-down:before { + content: "\f078"; +} +.fa-retweet:before { + content: "\f079"; +} +.fa-shopping-cart:before { + content: "\f07a"; +} +.fa-folder:before { + content: "\f07b"; +} +.fa-folder-open:before { + content: "\f07c"; +} +.fa-arrows-v:before { + content: "\f07d"; +} +.fa-arrows-h:before { + content: "\f07e"; +} +.fa-bar-chart-o:before, +.fa-bar-chart:before { + content: "\f080"; +} +.fa-twitter-square:before { + content: "\f081"; +} +.fa-facebook-square:before { + content: "\f082"; +} +.fa-camera-retro:before { + content: "\f083"; +} +.fa-key:before { + content: "\f084"; +} +.fa-gears:before, +.fa-cogs:before { + content: "\f085"; +} +.fa-comments:before { + content: "\f086"; +} +.fa-thumbs-o-up:before { + content: "\f087"; +} +.fa-thumbs-o-down:before { + content: "\f088"; +} +.fa-star-half:before { + content: "\f089"; +} +.fa-heart-o:before { + content: "\f08a"; +} +.fa-sign-out:before { + content: "\f08b"; +} +.fa-linkedin-square:before { + content: "\f08c"; +} +.fa-thumb-tack:before { + content: "\f08d"; +} +.fa-external-link:before { + content: "\f08e"; +} +.fa-sign-in:before { + content: "\f090"; +} +.fa-trophy:before { + content: "\f091"; +} +.fa-github-square:before { + content: "\f092"; +} +.fa-upload:before { + content: "\f093"; +} +.fa-lemon-o:before { + content: "\f094"; +} +.fa-phone:before { + content: "\f095"; +} +.fa-square-o:before { + content: "\f096"; +} +.fa-bookmark-o:before { + content: "\f097"; +} +.fa-phone-square:before { + content: "\f098"; +} +.fa-twitter:before { + content: "\f099"; +} +.fa-facebook:before { + content: "\f09a"; +} +.fa-github:before { + content: "\f09b"; +} +.fa-unlock:before { + content: "\f09c"; +} +.fa-credit-card:before { + content: "\f09d"; +} +.fa-rss:before { + content: "\f09e"; +} +.fa-hdd-o:before { + content: "\f0a0"; +} +.fa-bullhorn:before { + content: "\f0a1"; +} +.fa-bell:before { + content: "\f0f3"; +} +.fa-certificate:before { + content: "\f0a3"; +} +.fa-hand-o-right:before { + content: "\f0a4"; +} +.fa-hand-o-left:before { + content: "\f0a5"; +} +.fa-hand-o-up:before { + content: "\f0a6"; +} +.fa-hand-o-down:before { + content: "\f0a7"; +} +.fa-arrow-circle-left:before { + content: "\f0a8"; +} +.fa-arrow-circle-right:before { + content: "\f0a9"; +} +.fa-arrow-circle-up:before { + content: "\f0aa"; +} +.fa-arrow-circle-down:before { + content: "\f0ab"; +} +.fa-globe:before { + content: "\f0ac"; +} +.fa-wrench:before { + content: "\f0ad"; +} +.fa-tasks:before { + content: "\f0ae"; +} +.fa-filter:before { + content: "\f0b0"; +} +.fa-briefcase:before { + content: "\f0b1"; +} +.fa-arrows-alt:before { + content: "\f0b2"; +} +.fa-group:before, +.fa-users:before { + content: "\f0c0"; +} +.fa-chain:before, +.fa-link:before { + content: "\f0c1"; +} +.fa-cloud:before { + content: "\f0c2"; +} +.fa-flask:before { + content: "\f0c3"; +} +.fa-cut:before, +.fa-scissors:before { + content: "\f0c4"; +} +.fa-copy:before, +.fa-files-o:before { + content: "\f0c5"; +} +.fa-paperclip:before { + content: "\f0c6"; +} +.fa-save:before, +.fa-floppy-o:before { + content: "\f0c7"; +} +.fa-square:before { + content: "\f0c8"; +} +.fa-navicon:before, +.fa-reorder:before, +.fa-bars:before { + content: "\f0c9"; +} +.fa-list-ul:before { + content: "\f0ca"; +} +.fa-list-ol:before { + content: "\f0cb"; +} +.fa-strikethrough:before { + content: "\f0cc"; +} +.fa-underline:before { + content: "\f0cd"; +} +.fa-table:before { + content: "\f0ce"; +} +.fa-magic:before { + content: "\f0d0"; +} +.fa-truck:before { + content: "\f0d1"; +} +.fa-pinterest:before { + content: "\f0d2"; +} +.fa-pinterest-square:before { + content: "\f0d3"; +} +.fa-google-plus-square:before { + content: "\f0d4"; +} +.fa-google-plus:before { + content: "\f0d5"; +} +.fa-money:before { + content: "\f0d6"; +} +.fa-caret-down:before { + content: "\f0d7"; +} +.fa-caret-up:before { + content: "\f0d8"; +} +.fa-caret-left:before { + content: "\f0d9"; +} +.fa-caret-right:before { + content: "\f0da"; +} +.fa-columns:before { + content: "\f0db"; +} +.fa-unsorted:before, +.fa-sort:before { + content: "\f0dc"; +} +.fa-sort-down:before, +.fa-sort-desc:before { + content: "\f0dd"; +} +.fa-sort-up:before, +.fa-sort-asc:before { + content: "\f0de"; +} +.fa-envelope:before { + content: "\f0e0"; +} +.fa-linkedin:before { + content: "\f0e1"; +} +.fa-rotate-left:before, +.fa-undo:before { + content: "\f0e2"; +} +.fa-legal:before, +.fa-gavel:before { + content: "\f0e3"; +} +.fa-dashboard:before, +.fa-tachometer:before { + content: "\f0e4"; +} +.fa-comment-o:before { + content: "\f0e5"; +} +.fa-comments-o:before { + content: "\f0e6"; +} +.fa-flash:before, +.fa-bolt:before { + content: "\f0e7"; +} +.fa-sitemap:before { + content: "\f0e8"; +} +.fa-umbrella:before { + content: "\f0e9"; +} +.fa-paste:before, +.fa-clipboard:before { + content: "\f0ea"; +} +.fa-lightbulb-o:before { + content: "\f0eb"; +} +.fa-exchange:before { + content: "\f0ec"; +} +.fa-cloud-download:before { + content: "\f0ed"; +} +.fa-cloud-upload:before { + content: "\f0ee"; +} +.fa-user-md:before { + content: "\f0f0"; +} +.fa-stethoscope:before { + content: "\f0f1"; +} +.fa-suitcase:before { + content: "\f0f2"; +} +.fa-bell-o:before { + content: "\f0a2"; +} +.fa-coffee:before { + content: "\f0f4"; +} +.fa-cutlery:before { + content: "\f0f5"; +} +.fa-file-text-o:before { + content: "\f0f6"; +} +.fa-building-o:before { + content: "\f0f7"; +} +.fa-hospital-o:before { + content: "\f0f8"; +} +.fa-ambulance:before { + content: "\f0f9"; +} +.fa-medkit:before { + content: "\f0fa"; +} +.fa-fighter-jet:before { + content: "\f0fb"; +} +.fa-beer:before { + content: "\f0fc"; +} +.fa-h-square:before { + content: "\f0fd"; +} +.fa-plus-square:before { + content: "\f0fe"; +} +.fa-angle-double-left:before { + content: "\f100"; +} +.fa-angle-double-right:before { + content: "\f101"; +} +.fa-angle-double-up:before { + content: "\f102"; +} +.fa-angle-double-down:before { + content: "\f103"; +} +.fa-angle-left:before { + content: "\f104"; +} +.fa-angle-right:before { + content: "\f105"; +} +.fa-angle-up:before { + content: "\f106"; +} +.fa-angle-down:before { + content: "\f107"; +} +.fa-desktop:before { + content: "\f108"; +} +.fa-laptop:before { + content: "\f109"; +} +.fa-tablet:before { + content: "\f10a"; +} +.fa-mobile-phone:before, +.fa-mobile:before { + content: "\f10b"; +} +.fa-circle-o:before { + content: "\f10c"; +} +.fa-quote-left:before { + content: "\f10d"; +} +.fa-quote-right:before { + content: "\f10e"; +} +.fa-spinner:before { + content: "\f110"; +} +.fa-circle:before { + content: "\f111"; +} +.fa-mail-reply:before, +.fa-reply:before { + content: "\f112"; +} +.fa-github-alt:before { + content: "\f113"; +} +.fa-folder-o:before { + content: "\f114"; +} +.fa-folder-open-o:before { + content: "\f115"; +} +.fa-smile-o:before { + content: "\f118"; +} +.fa-frown-o:before { + content: "\f119"; +} +.fa-meh-o:before { + content: "\f11a"; +} +.fa-gamepad:before { + content: "\f11b"; +} +.fa-keyboard-o:before { + content: "\f11c"; +} +.fa-flag-o:before { + content: "\f11d"; +} +.fa-flag-checkered:before { + content: "\f11e"; +} +.fa-terminal:before { + content: "\f120"; +} +.fa-code:before { + content: "\f121"; +} +.fa-mail-reply-all:before, +.fa-reply-all:before { + content: "\f122"; +} +.fa-star-half-empty:before, +.fa-star-half-full:before, +.fa-star-half-o:before { + content: "\f123"; +} +.fa-location-arrow:before { + content: "\f124"; +} +.fa-crop:before { + content: "\f125"; +} +.fa-code-fork:before { + content: "\f126"; +} +.fa-unlink:before, +.fa-chain-broken:before { + content: "\f127"; +} +.fa-question:before { + content: "\f128"; +} +.fa-info:before { + content: "\f129"; +} +.fa-exclamation:before { + content: "\f12a"; +} +.fa-superscript:before { + content: "\f12b"; +} +.fa-subscript:before { + content: "\f12c"; +} +.fa-eraser:before { + content: "\f12d"; +} +.fa-puzzle-piece:before { + content: "\f12e"; +} +.fa-microphone:before { + content: "\f130"; +} +.fa-microphone-slash:before { + content: "\f131"; +} +.fa-shield:before { + content: "\f132"; +} +.fa-calendar-o:before { + content: "\f133"; +} +.fa-fire-extinguisher:before { + content: "\f134"; +} +.fa-rocket:before { + content: "\f135"; +} +.fa-maxcdn:before { + content: "\f136"; +} +.fa-chevron-circle-left:before { + content: "\f137"; +} +.fa-chevron-circle-right:before { + content: "\f138"; +} +.fa-chevron-circle-up:before { + content: "\f139"; +} +.fa-chevron-circle-down:before { + content: "\f13a"; +} +.fa-html5:before { + content: "\f13b"; +} +.fa-css3:before { + content: "\f13c"; +} +.fa-anchor:before { + content: "\f13d"; +} +.fa-unlock-alt:before { + content: "\f13e"; +} +.fa-bullseye:before { + content: "\f140"; +} +.fa-ellipsis-h:before { + content: "\f141"; +} +.fa-ellipsis-v:before { + content: "\f142"; +} +.fa-rss-square:before { + content: "\f143"; +} +.fa-play-circle:before { + content: "\f144"; +} +.fa-ticket:before { + content: "\f145"; +} +.fa-minus-square:before { + content: "\f146"; +} +.fa-minus-square-o:before { + content: "\f147"; +} +.fa-level-up:before { + content: "\f148"; +} +.fa-level-down:before { + content: "\f149"; +} +.fa-check-square:before { + content: "\f14a"; +} +.fa-pencil-square:before { + content: "\f14b"; +} +.fa-external-link-square:before { + content: "\f14c"; +} +.fa-share-square:before { + content: "\f14d"; +} +.fa-compass:before { + content: "\f14e"; +} +.fa-toggle-down:before, +.fa-caret-square-o-down:before { + content: "\f150"; +} +.fa-toggle-up:before, +.fa-caret-square-o-up:before { + content: "\f151"; +} +.fa-toggle-right:before, +.fa-caret-square-o-right:before { + content: "\f152"; +} +.fa-euro:before, +.fa-eur:before { + content: "\f153"; +} +.fa-gbp:before { + content: "\f154"; +} +.fa-dollar:before, +.fa-usd:before { + content: "\f155"; +} +.fa-rupee:before, +.fa-inr:before { + content: "\f156"; +} +.fa-cny:before, +.fa-rmb:before, +.fa-yen:before, +.fa-jpy:before { + content: "\f157"; +} +.fa-ruble:before, +.fa-rouble:before, +.fa-rub:before { + content: "\f158"; +} +.fa-won:before, +.fa-krw:before { + content: "\f159"; +} +.fa-bitcoin:before, +.fa-btc:before { + content: "\f15a"; +} +.fa-file:before { + content: "\f15b"; +} +.fa-file-text:before { + content: "\f15c"; +} +.fa-sort-alpha-asc:before { + content: "\f15d"; +} +.fa-sort-alpha-desc:before { + content: "\f15e"; +} +.fa-sort-amount-asc:before { + content: "\f160"; +} +.fa-sort-amount-desc:before { + content: "\f161"; +} +.fa-sort-numeric-asc:before { + content: "\f162"; +} +.fa-sort-numeric-desc:before { + content: "\f163"; +} +.fa-thumbs-up:before { + content: "\f164"; +} +.fa-thumbs-down:before { + content: "\f165"; +} +.fa-youtube-square:before { + content: "\f166"; +} +.fa-youtube:before { + content: "\f167"; +} +.fa-xing:before { + content: "\f168"; +} +.fa-xing-square:before { + content: "\f169"; +} +.fa-youtube-play:before { + content: "\f16a"; +} +.fa-dropbox:before { + content: "\f16b"; +} +.fa-stack-overflow:before { + content: "\f16c"; +} +.fa-instagram:before { + content: "\f16d"; +} +.fa-flickr:before { + content: "\f16e"; +} +.fa-adn:before { + content: "\f170"; +} +.fa-bitbucket:before { + content: "\f171"; +} +.fa-bitbucket-square:before { + content: "\f172"; +} +.fa-tumblr:before { + content: "\f173"; +} +.fa-tumblr-square:before { + content: "\f174"; +} +.fa-long-arrow-down:before { + content: "\f175"; +} +.fa-long-arrow-up:before { + content: "\f176"; +} +.fa-long-arrow-left:before { + content: "\f177"; +} +.fa-long-arrow-right:before { + content: "\f178"; +} +.fa-apple:before { + content: "\f179"; +} +.fa-windows:before { + content: "\f17a"; +} +.fa-android:before { + content: "\f17b"; +} +.fa-linux:before { + content: "\f17c"; +} +.fa-dribbble:before { + content: "\f17d"; +} +.fa-skype:before { + content: "\f17e"; +} +.fa-foursquare:before { + content: "\f180"; +} +.fa-trello:before { + content: "\f181"; +} +.fa-female:before { + content: "\f182"; +} +.fa-male:before { + content: "\f183"; +} +.fa-gittip:before { + content: "\f184"; +} +.fa-sun-o:before { + content: "\f185"; +} +.fa-moon-o:before { + content: "\f186"; +} +.fa-archive:before { + content: "\f187"; +} +.fa-bug:before { + content: "\f188"; +} +.fa-vk:before { + content: "\f189"; +} +.fa-weibo:before { + content: "\f18a"; +} +.fa-renren:before { + content: "\f18b"; +} +.fa-pagelines:before { + content: "\f18c"; +} +.fa-stack-exchange:before { + content: "\f18d"; +} +.fa-arrow-circle-o-right:before { + content: "\f18e"; +} +.fa-arrow-circle-o-left:before { + content: "\f190"; +} +.fa-toggle-left:before, +.fa-caret-square-o-left:before { + content: "\f191"; +} +.fa-dot-circle-o:before { + content: "\f192"; +} +.fa-wheelchair:before { + content: "\f193"; +} +.fa-vimeo-square:before { + content: "\f194"; +} +.fa-turkish-lira:before, +.fa-try:before { + content: "\f195"; +} +.fa-plus-square-o:before { + content: "\f196"; +} +.fa-space-shuttle:before { + content: "\f197"; +} +.fa-slack:before { + content: "\f198"; +} +.fa-envelope-square:before { + content: "\f199"; +} +.fa-wordpress:before { + content: "\f19a"; +} +.fa-openid:before { + content: "\f19b"; +} +.fa-institution:before, +.fa-bank:before, +.fa-university:before { + content: "\f19c"; +} +.fa-mortar-board:before, +.fa-graduation-cap:before { + content: "\f19d"; +} +.fa-yahoo:before { + content: "\f19e"; +} +.fa-google:before { + content: "\f1a0"; +} +.fa-reddit:before { + content: "\f1a1"; +} +.fa-reddit-square:before { + content: "\f1a2"; +} +.fa-stumbleupon-circle:before { + content: "\f1a3"; +} +.fa-stumbleupon:before { + content: "\f1a4"; +} +.fa-delicious:before { + content: "\f1a5"; +} +.fa-digg:before { + content: "\f1a6"; +} +.fa-pied-piper:before { + content: "\f1a7"; +} +.fa-pied-piper-alt:before { + content: "\f1a8"; +} +.fa-drupal:before { + content: "\f1a9"; +} +.fa-joomla:before { + content: "\f1aa"; +} +.fa-language:before { + content: "\f1ab"; +} +.fa-fax:before { + content: "\f1ac"; +} +.fa-building:before { + content: "\f1ad"; +} +.fa-child:before { + content: "\f1ae"; +} +.fa-paw:before { + content: "\f1b0"; +} +.fa-spoon:before { + content: "\f1b1"; +} +.fa-cube:before { + content: "\f1b2"; +} +.fa-cubes:before { + content: "\f1b3"; +} +.fa-behance:before { + content: "\f1b4"; +} +.fa-behance-square:before { + content: "\f1b5"; +} +.fa-steam:before { + content: "\f1b6"; +} +.fa-steam-square:before { + content: "\f1b7"; +} +.fa-recycle:before { + content: "\f1b8"; +} +.fa-automobile:before, +.fa-car:before { + content: "\f1b9"; +} +.fa-cab:before, +.fa-taxi:before { + content: "\f1ba"; +} +.fa-tree:before { + content: "\f1bb"; +} +.fa-spotify:before { + content: "\f1bc"; +} +.fa-deviantart:before { + content: "\f1bd"; +} +.fa-soundcloud:before { + content: "\f1be"; +} +.fa-database:before { + content: "\f1c0"; +} +.fa-file-pdf-o:before { + content: "\f1c1"; +} +.fa-file-word-o:before { + content: "\f1c2"; +} +.fa-file-excel-o:before { + content: "\f1c3"; +} +.fa-file-powerpoint-o:before { + content: "\f1c4"; +} +.fa-file-photo-o:before, +.fa-file-picture-o:before, +.fa-file-image-o:before { + content: "\f1c5"; +} +.fa-file-zip-o:before, +.fa-file-archive-o:before { + content: "\f1c6"; +} +.fa-file-sound-o:before, +.fa-file-audio-o:before { + content: "\f1c7"; +} +.fa-file-movie-o:before, +.fa-file-video-o:before { + content: "\f1c8"; +} +.fa-file-code-o:before { + content: "\f1c9"; +} +.fa-vine:before { + content: "\f1ca"; +} +.fa-codepen:before { + content: "\f1cb"; +} +.fa-jsfiddle:before { + content: "\f1cc"; +} +.fa-life-bouy:before, +.fa-life-buoy:before, +.fa-life-saver:before, +.fa-support:before, +.fa-life-ring:before { + content: "\f1cd"; +} +.fa-circle-o-notch:before { + content: "\f1ce"; +} +.fa-ra:before, +.fa-rebel:before { + content: "\f1d0"; +} +.fa-ge:before, +.fa-empire:before { + content: "\f1d1"; +} +.fa-git-square:before { + content: "\f1d2"; +} +.fa-git:before { + content: "\f1d3"; +} +.fa-hacker-news:before { + content: "\f1d4"; +} +.fa-tencent-weibo:before { + content: "\f1d5"; +} +.fa-qq:before { + content: "\f1d6"; +} +.fa-wechat:before, +.fa-weixin:before { + content: "\f1d7"; +} +.fa-send:before, +.fa-paper-plane:before { + content: "\f1d8"; +} +.fa-send-o:before, +.fa-paper-plane-o:before { + content: "\f1d9"; +} +.fa-history:before { + content: "\f1da"; +} +.fa-circle-thin:before { + content: "\f1db"; +} +.fa-header:before { + content: "\f1dc"; +} +.fa-paragraph:before { + content: "\f1dd"; +} +.fa-sliders:before { + content: "\f1de"; +} +.fa-share-alt:before { + content: "\f1e0"; +} +.fa-share-alt-square:before { + content: "\f1e1"; +} +.fa-bomb:before { + content: "\f1e2"; +} +.fa-soccer-ball-o:before, +.fa-futbol-o:before { + content: "\f1e3"; +} +.fa-tty:before { + content: "\f1e4"; +} +.fa-binoculars:before { + content: "\f1e5"; +} +.fa-plug:before { + content: "\f1e6"; +} +.fa-slideshare:before { + content: "\f1e7"; +} +.fa-twitch:before { + content: "\f1e8"; +} +.fa-yelp:before { + content: "\f1e9"; +} +.fa-newspaper-o:before { + content: "\f1ea"; +} +.fa-wifi:before { + content: "\f1eb"; +} +.fa-calculator:before { + content: "\f1ec"; +} +.fa-paypal:before { + content: "\f1ed"; +} +.fa-google-wallet:before { + content: "\f1ee"; +} +.fa-cc-visa:before { + content: "\f1f0"; +} +.fa-cc-mastercard:before { + content: "\f1f1"; +} +.fa-cc-discover:before { + content: "\f1f2"; +} +.fa-cc-amex:before { + content: "\f1f3"; +} +.fa-cc-paypal:before { + content: "\f1f4"; +} +.fa-cc-stripe:before { + content: "\f1f5"; +} +.fa-bell-slash:before { + content: "\f1f6"; +} +.fa-bell-slash-o:before { + content: "\f1f7"; +} +.fa-trash:before { + content: "\f1f8"; +} +.fa-copyright:before { + content: "\f1f9"; +} +.fa-at:before { + content: "\f1fa"; +} +.fa-eyedropper:before { + content: "\f1fb"; +} +.fa-paint-brush:before { + content: "\f1fc"; +} +.fa-birthday-cake:before { + content: "\f1fd"; +} +.fa-area-chart:before { + content: "\f1fe"; +} +.fa-pie-chart:before { + content: "\f200"; +} +.fa-line-chart:before { + content: "\f201"; +} +.fa-lastfm:before { + content: "\f202"; +} +.fa-lastfm-square:before { + content: "\f203"; +} +.fa-toggle-off:before { + content: "\f204"; +} +.fa-toggle-on:before { + content: "\f205"; +} +.fa-bicycle:before { + content: "\f206"; +} +.fa-bus:before { + content: "\f207"; +} +.fa-ioxhost:before { + content: "\f208"; +} +.fa-angellist:before { + content: "\f209"; +} +.fa-cc:before { + content: "\f20a"; +} +.fa-shekel:before, +.fa-sheqel:before, +.fa-ils:before { + content: "\f20b"; +} +.fa-meanpath:before { + content: "\f20c"; +} diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.min.css b/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.min.css new file mode 100755 index 0000000..ec53d4d --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/css/font-awesome.min.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.2.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"} \ No newline at end of file diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/FontAwesome.otf b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/FontAwesome.otf new file mode 100755 index 0000000..81c9ad9 Binary files /dev/null and b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/FontAwesome.otf differ diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.eot b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.eot new file mode 100755 index 0000000..84677bc Binary files /dev/null and b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.svg b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.svg new file mode 100755 index 0000000..d907b25 --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,520 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.ttf b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.ttf new file mode 100755 index 0000000..96a3639 Binary files /dev/null and b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.woff b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.woff new file mode 100755 index 0000000..628b6a5 Binary files /dev/null and b/lib/better-font-awesome-library/lib/fallback-font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/lib/better-font-awesome-library/lib/fallback-font-awesome/package.json b/lib/better-font-awesome-library/lib/fallback-font-awesome/package.json new file mode 100755 index 0000000..e7c8233 --- /dev/null +++ b/lib/better-font-awesome-library/lib/fallback-font-awesome/package.json @@ -0,0 +1,48 @@ +{ + "name": "font-awesome", + "description": "The iconic font and CSS framework", + "version": "4.2.0", + "keywords": ["font", "awesome", "fontawesome", "icon", "font", "bootstrap"], + "homepage": "http://fontawesome.io/", + "bugs": { + "url" : "http://github.com/FortAwesome/Font-Awesome/issues" + }, + "author": { + "name": "Dave Gandy", + "email": "dave@fontawesome.io", + "web": "http://twitter.com/davegandy" + }, + "repository": { + "type": "git", + "url": "https://github.com/FortAwesome/Font-Awesome.git" + }, + "contributors": [ + { + "name": "Rob Madole", + "web": "http://twitter.com/robmadole" + }, + { + "name": "Geremia Taglialatela", + "web": "http://twitter.com/gtagliala" + }, + { + "name": "Travis Chase", + "web": "http://twitter.com/supercodepoet" + } + ], + "licenses": [ + { + "type": "OFL-1.1", + "url": "http://scripts.sil.org/OFL" + }, + { + "type": "MIT", + "url": "http://opensource.org/licenses/mit-license.html" + } + ], + "dependencies": { + }, + "engines" : { + "node" : ">=0.10.3" + } +} diff --git a/style.css b/style.css index 3aaf97d..8c5cdc8 100644 --- a/style.css +++ b/style.css @@ -1368,15 +1368,11 @@ Site Header .site-header .widget-area { width: 100%; + padding: 20px; background-color: #eee; border: 1px solid #ddd; - border-width: 0; - overflow: hidden; -} - -.site-header .widget-area.open { - padding: 20px; border-width: 1px 0; + overflow: hidden; } .site-header .search-form { @@ -1414,23 +1410,21 @@ Site Header content: "\f0c9"; } - .nav-primary, -/*.site-header .nav-primary,*/ .site-header .widget-area { position: absolute; + z-index: -999; top: 100%; left: 0; right: 0; - max-height: 0; opacity: 0; + filter: alpha(opacity=0); box-shadow: 0 4px 8px 1px rgba(0,0,0,0.4); - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transition: all .5s ease, padding 0s .5s; - -moz-transition: all .5s ease, padding 0s .5s; - -ms-transition: all .5s ease, padding 0s .5s; - -o-transition: all .5s ease, padding 0s .5s; - transition: all .5s ease, padding 0s .5s; + -webkit-transition: opacity 0.25s ease, z-index 0s 0.25s; + -moz-transition: opacity 0.25s ease, z-index 0s 0.25s; + -ms-transition: opacity 0.25s ease, z-index 0s 0.25s; + -o-transition: opacity 0.25s ease, z-index 0s 0.25s; + transition: opacity 0.25s ease, z-index 0s 0.25s; } .site-container > .nav-primary { @@ -1440,14 +1434,13 @@ Site Header .nav-primary.open, .widget-area.open { z-index: 50; - max-height: 9999px; opacity: 1; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transition: opacity .5s ease, padding 0s 0s; - -moz-transition: opacity .5s ease, padding 0s 0s; - -ms-transition: opacity .5s ease, padding 0s 0s; - -o-transition: opacity .5s ease, padding 0s 0s; - transition: opacity .5s ease, padding 0s 0s; + filter: alpha(opacity=100); + -webkit-transition: z-index 0s ease, opacity 0.25s 0s; + -moz-transition: z-index 0s ease, opacity 0.25s 0s; + -ms-transition: z-index 0s ease, opacity 0.25s 0s; + -o-transition: z-index 0s ease, opacity 0.25s 0s; + transition: z-index 0s ease, opacity 0.25s 0s; } @@ -1623,7 +1616,7 @@ Site Navigation .genesis-nav-menu > .right .search-form { display: inline-block; - padding: 0; + padding: 8px 0; } .genesis-nav-menu > .right input[type="submit"] { @@ -1682,12 +1675,6 @@ Site Navigation padding: 0; } -.site-header .nav-primary a:hover, -.site-header .nav-primary [class*="current-"] > a, -.site-header .nav-primary [class*="current_"] > a { - color: #333; -} - .site-header .right { padding-right: 0; } @@ -2481,7 +2468,7 @@ Media Queries --------------------------------------------- */ .genesis-nav-menu > .right { - display: inline-block; + display: none; float: right; border-top: none; } @@ -2491,10 +2478,6 @@ Media Queries margin: 0 0 0 2rem; } - .genesis-nav-menu > .search form { - padding-right: 0; - } - .genesis-nav-menu > .right input[type="submit"] { display: inline-block; } @@ -2570,6 +2553,16 @@ Media Queries padding: 0.6em 1.2em; } + .site-header .nav-primary .menu > li:last-of-type:not(.right) { + padding-right: 0; + } + + .site-header .nav-primary a:hover, + .site-header .nav-primary [class*="current-"] > a, + .site-header .nav-primary [class*="current_"] > a { + color: #333; + } + /* Plugins --------------------------------------------- */