Skip to content

Commit

Permalink
fixes #1763
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 20, 2018
1 parent e9703c4 commit 313c70f
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 5,013 deletions.
2,337 changes: 0 additions & 2,337 deletions assets/vendor/fontawesome/css/font-awesome.css

This file was deleted.

4 changes: 0 additions & 4 deletions assets/vendor/fontawesome/css/font-awesome.min.css

This file was deleted.

Binary file removed assets/vendor/fontawesome/fonts/FontAwesome.otf
Binary file not shown.
Binary file not shown.
2,671 changes: 0 additions & 2,671 deletions assets/vendor/fontawesome/fonts/fontawesome-webfont.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion controls/php/class-kirki-control-fontawesome.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Kirki_Control_FontAwesome extends Kirki_Control_Base {
public function enqueue() {
parent::enqueue();

wp_enqueue_style( 'kirki-fontawesome-font-css', trailingslashit( Kirki::$url ) . 'assets/vendor/fontawesome/css/font-awesome.min.css', array(), KIRKI_VERSION );
wp_enqueue_script( 'kirki-fontawesome-font', 'https://use.fontawesome.com/30858dc40a.js', array(), '4.0.7' );

ob_start();
$json_path = wp_normalize_path( Kirki::$path . '/assets/vendor/fontawesome/fontawesome.json' );
Expand Down
3 changes: 3 additions & 0 deletions modules/css/class-kirki-modules-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ public function inline_dynamic_css() {
}
$this->processed = true;
}
if ( apply_filters( 'kirki_load_fontawesome', true ) ) {
wp_enqueue_script( 'kirki-fontawesome-font', 'https://use.fontawesome.com/30858dc40a.js', array(), '4.0.7', true );
}
}

/**
Expand Down

0 comments on commit 313c70f

Please sign in to comment.