Astra_Admin_Settings::styles_scripts()
Enqueues the needed CSS/JS for the builder’s admin settings page.
Description
Source
File: inc/core/class-astra-admin-settings.php
public static function styles_scripts() {
// Styles.
if ( is_rtl() ) {
wp_enqueue_style( 'astra-admin-settings-rtl', ASTRA_THEME_URI . 'inc/assets/css/astra-admin-menu-settings-rtl.css', array(), ASTRA_THEME_VERSION );
} else {
wp_enqueue_style( 'astra-admin-settings', ASTRA_THEME_URI . 'inc/assets/css/astra-admin-menu-settings.css', array(), ASTRA_THEME_VERSION );
}
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
if ( ! file_exists( WP_PLUGIN_DIR . '/astra-sites/astra-sites.php' ) && is_plugin_inactive( 'astra-pro-sites/astra-pro-sites.php' ) ) {
// For starter site plugin popup detail "Details »" on Astra Options page.
wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'thickbox' );
wp_enqueue_style( 'thickbox' );
}
// Script.
wp_enqueue_script( 'astra-admin-settings' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |