Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
85ab9d41fe
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (21 sloc) 802 Bytes
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'hale2015-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_print_styles', 'deregister_cs_styles', 100 );
function deregister_cs_styles() {
wp_deregister_style( 'cs-megamenu' );
}
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$maxMegaMenuActive = is_plugin_active('megamenu/megamenu.php');
if ($maxMegaMenuActive){
wp_enqueue_style( 'hale2015-megamenu', get_stylesheet_directory_uri(). '/css/megamenu-hale2015.css', array( 'hale2015-style' ));
};
function my_deactivate_plugins(){
if ( is_plugin_active('uup/uup.php') ) {
deactivate_plugins('uup/uup.php');
}
};
add_action( 'admin_init', 'my_deactivate_plugins' );
?>
You can’t perform that action at this time.