enqueues.php
1 year ago
health-check.php
1 year ago
helpers.php
1 year ago
scripts.php
1 year ago
styles.php
1 year ago
styles.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * AlphaListing Styles |
| 4 | * |
| 5 | * @package alphalisting |
| 6 | */ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace eslin87\AlphaListing; |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Enqueue A-Z default styling |
| 18 | * |
| 19 | * @since 0.7 |
| 20 | * @since 4.0.0 Don't conditionally load to alleviate issues with not loading. |
| 21 | * @param bool $unused Not used. |
| 22 | * @return void |
| 23 | */ |
| 24 | function alphalisting_enqueue_styles( bool $unused = false ) { |
| 25 | wp_enqueue_style( 'alphalisting' ); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Enqueue A-Z customizer styles. |
| 30 | * |
| 31 | * @since 2.1.0 |
| 32 | * @return void |
| 33 | */ |
| 34 | function alphalisting_customize_enqueue_styles() { |
| 35 | wp_enqueue_style( 'alphalisting-admin' ); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Forcibly enqueue styling. This is a helper function which can be hooked in-place of the default hook added in `alphalisting_add_styling` |
| 40 | * |
| 41 | * @since 1.3.0 |
| 42 | * @since 4.0.0 deprecated |
| 43 | * @deprecated |
| 44 | * @return void |
| 45 | */ |
| 46 | function alphalisting_force_enqueue_styles() { |
| 47 | // no-op. |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Replace the default styling enqueue function with `alphalisting_force_enqueue_styles` to always add the styling to pages |
| 52 | * |
| 53 | * @since 1.3.0 |
| 54 | * @since 4.0.0 deprecated |
| 55 | * @deprecated |
| 56 | * @return void |
| 57 | */ |
| 58 | function alphalisting_force_enable_styles() { |
| 59 | // no-op. |
| 60 | } |
| 61 |