クラス
Semantic
Enqueues methods for semantic-ui CSS
ソース ソース
ファイル: src/Semantic.php
final class Semantic { const PREFIX = 'wcexwl-'; const BASE_URL = WCEXWL_PLUGIN_URL . '/dist/components'; const SLUG_PREFIX = self::PREFIX . 'semantic-'; /** * Enqueues button CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadButtonCss() { wp_enqueue_style( self::SLUG_PREFIX . 'button', self::BASE_URL . '/button.min.css', [], WCEXWL_VERSION ); } /** * Enqueues loader CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadLoaderCss() { wp_enqueue_style( self::SLUG_PREFIX . 'loader', self::BASE_URL . '/loader.min.css', [], WCEXWL_VERSION ); } /** * Enqueues divider CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadDividerCss() { wp_enqueue_style( self::SLUG_PREFIX . 'divider', self::BASE_URL . '/divider.min.css', [], WCEXWL_VERSION ); } /** * Enqueues checkbox CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadCheckboxCss() { wp_enqueue_style( self::SLUG_PREFIX . 'checkbox', self::BASE_URL . '/checkbox.min.css', [], WCEXWL_VERSION ); } /** * Enqueues image CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadImageCss() { wp_enqueue_style( self::SLUG_PREFIX . 'image', self::BASE_URL . '/image.min.css', [], WCEXWL_VERSION ); } /** * Enqueues icon CSS * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return void */ public static function loadIconCss() { wp_enqueue_style( self::SLUG_PREFIX . 'icon', self::BASE_URL . '/icon.min.css', [], WCEXWL_VERSION ); } }
- loadButtonCss — Enqueues button CSS
- loadCheckboxCss — Enqueues checkbox CSS
- loadDividerCss — Enqueues divider CSS
- loadIconCss — Enqueues icon CSS
- loadImageCss — Enqueues image CSS
- loadLoaderCss — Enqueues loader CSS