![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/essential-grid/ |
<?php /* Essential Grid support functions ------------------------------------------------------------------------------- */ // Theme init priorities: // 9 - register other filters (for installer, etc.) if ( ! function_exists( 'bugster_essential_grid_theme_setup9' ) ) { add_action( 'after_setup_theme', 'bugster_essential_grid_theme_setup9', 9 ); function bugster_essential_grid_theme_setup9() { if ( bugster_exists_essential_grid() ) { add_action( 'wp_enqueue_scripts', 'bugster_essential_grid_frontend_scripts', 1100 ); add_filter( 'bugster_filter_merge_styles', 'bugster_essential_grid_merge_styles' ); } if ( is_admin() ) { add_filter( 'bugster_filter_tgmpa_required_plugins', 'bugster_essential_grid_tgmpa_required_plugins' ); } } } // Filter to add in the required plugins list if ( ! function_exists( 'bugster_essential_grid_tgmpa_required_plugins' ) ) { function bugster_essential_grid_tgmpa_required_plugins( $list = array() ) { if ( bugster_storage_isset( 'required_plugins', 'essential-grid' ) && bugster_storage_get_array( 'required_plugins', 'essential-grid', 'install' ) !== false && bugster_is_theme_activated() ) { $path = bugster_get_plugin_source_path( 'plugins/essential-grid/essential-grid.zip' ); if ( ! empty( $path ) || bugster_get_theme_setting( 'tgmpa_upload' ) ) { $list[] = array( 'name' => bugster_storage_get_array( 'required_plugins', 'essential-grid', 'title' ), 'slug' => 'essential-grid', 'source' => ! empty( $path ) ? $path : 'upload://essential-grid.zip', 'version' => '3.1.1', 'required' => false, ); } } return $list; } } // Check if plugin installed and activated if ( ! function_exists( 'bugster_exists_essential_grid' ) ) { function bugster_exists_essential_grid() { return defined('EG_PLUGIN_PATH') || defined( 'ESG_PLUGIN_PATH' ); } } // Enqueue styles for frontend if ( ! function_exists( 'bugster_essential_grid_frontend_scripts' ) ) { function bugster_essential_grid_frontend_scripts() { if ( bugster_is_on( bugster_get_theme_option( 'debug_mode' ) ) ) { $bugster_url = bugster_get_file_url( 'plugins/essential-grid/essential-grid.css' ); if ( '' != $bugster_url ) { wp_enqueue_style( 'bugster-essential-grid', $bugster_url, array(), null ); } } } } // Merge custom styles if ( ! function_exists( 'bugster_essential_grid_merge_styles' ) ) { function bugster_essential_grid_merge_styles( $list ) { $list[] = 'plugins/essential-grid/essential-grid.css'; return $list; } }