css
2 months ago
fonts
2 months ago
icons
2 months ago
plugin-icons
2 months ago
templates
4 years ago
README.md
2 months ago
fantasticonrc.js
2 months ago
icons-overview.html
2 months ago
loader.php
4 weeks ago
otgs-icons.php
4 weeks ago
register.php
4 weeks ago
loader.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! isset( $vendor_root_url ) ) { |
| 4 | return; |
| 5 | } |
| 6 | |
| 7 | $otg_icons_version = 108; |
| 8 | |
| 9 | |
| 10 | global $otg_icons_versions; |
| 11 | if ( ! isset( $otg_icons_versions ) ) { |
| 12 | $otg_icons_versions = array(); |
| 13 | } |
| 14 | $otg_icons_versions[ $otg_icons_version ] = array( |
| 15 | 'url' => $vendor_root_url . '/otgs/icons', |
| 16 | 'path' => dirname( __FILE__ ) |
| 17 | ); |
| 18 | |
| 19 | if ( ! has_action( 'init', 'otgs_icons_register' ) ) { |
| 20 | add_action( 'init', 'otgs_icons_register' ); |
| 21 | } |
| 22 | |
| 23 | if ( ! function_exists( 'otgs_icons_register' ) ) { |
| 24 | function otgs_icons_register() { |
| 25 | global $otg_icons_versions; |
| 26 | $latest = 0; |
| 27 | |
| 28 | foreach ( $otg_icons_versions as $version => $root_utl ) { |
| 29 | if ( $version > $latest ) { |
| 30 | $latest = $version; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | require_once( $otg_icons_versions[ $latest ]['path'] . '/register.php' ); |
| 35 | otgs_icons_register_assets( $otg_icons_versions[ $latest ], $latest ); |
| 36 | } |
| 37 | } |
| 38 |