Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Add support for Font Awesome Pro (#1)
Browse files Browse the repository at this point in the history
* Update external.blade.php

* Update primary.blade.php
  • Loading branch information
Dan Cryer authored Jun 8, 2018
1 parent 57bbecf commit f6393cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions resources/views/layouts/external.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

@yield('content')

<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>
@if(file_exists(public_path('fa/js/fontawesome-all.js')))
<script defer src="/fa/js/fontawesome-all.js"></script>
@else
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
@endif
</body>
</html>
</html>
8 changes: 6 additions & 2 deletions resources/views/layouts/primary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@
</div>

<!-- Scripts -->
<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>
@if(file_exists(public_path('fa/js/fontawesome-all.js')))
<script defer src="/fa/js/fontawesome-all.js"></script>
@else
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
@endif

<script src="/block8/ui/js/jquery.min.js"></script>
<script src="/block8/ui/js/moment.min.js"></script>
Expand Down Expand Up @@ -160,4 +164,4 @@ function initMap() {
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDQanDqoNnzC5kouCf7g3bhRof75qNCOuM&callback=initMap&libraries=drawing,places" async defer></script>

</body>
</html>
</html>

0 comments on commit f6393cd

Please sign in to comment.