Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 034bf81f by Cyrille37

remove wp logo submenu #63

parent 1294c7cb
......@@ -44,22 +44,33 @@ class CommunityProject
add_action( 'init', array( $projectCustomTypeCreator, 'create_status_taxonomy' ) );
add_action( 'init', array( $projectCustomTypeCreator, 'create_default_status_terms' ) );
add_action( 'admin_menu', array( $this, 'remove_meta_boxes' ) );
add_action( 'admin_menu', array( $this, 'redirect_if_not_author' ) );
add_action( 'do_meta_boxes', array( $this, 'remove_edit_flow_metabox' ) );
add_action( 'after_setup_theme', array( $this, 'remove_admin_bar') );
add_action( 'save_post', array( $this, 'set_default_status' ) );
add_action( 'save_post', array( $this, 'save_custom_meta_box' ), 10, 3 );
if( is_admin() )
{
add_action( 'admin_menu', array( $this, 'remove_meta_boxes' ) );
add_action( 'admin_menu', array( $this, 'redirect_if_not_author' ) );
add_action( 'do_meta_boxes', array( $this, 'remove_edit_flow_metabox' ) );
add_filter('screen_options_show_screen', array( $this, 'remove_screen_options_tab' ) );
add_filter('screen_options_show_screen', array( $this, 'remove_screen_options_tab' ) );
add_action( 'save_post', array( $this, 'set_default_status' ) );
add_action( 'save_post', array( $this, 'save_custom_meta_box' ), 10, 3 );
add_action( 'wp_dashboard_setup', array( new DashboardWidget(), 'wp_dashboard_setup' ) );
add_action( 'wp_dashboard_setup', array( new DashboardWidget(), 'wp_dashboard_setup' ) );
}
add_action( 'admin_enqueue_scripts', array( $this, 'wp_admin_enqueue_scripts' ) );
new ShortcodeController();
}
function wp_admin_enqueue_scripts()
{
// remove wp logo submenu
wp_register_script( 'hide_wp_submenu', plugin_dir_url( __FILE__ ) . '/js/hide_wp_submenu.js', array( 'jquery' ) );
wp_enqueue_script( 'hide_wp_submenu' );
}
/**
* A student cannot edit other's projects.
*/
......
/**
*
*/
jQuery(function()
{
// remove wp logo submenu
jQuery('#wp-admin-bar-wp-logo .ab-sub-wrapper').remove();
jQuery('#wp-admin-bar-wp-logo').removeClass('menupop');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment