From 3eb37a79b59bf93b7eef17b77086fb61eac5891e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 1 Dec 2014 17:03:04 -0500 Subject: [PATCH] Metaslider whitelabeling. Still need icon --- Gaslightify.php | 1 + css/Gaslightify.css | 10 ++++++++-- js/Gaslightify.js | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Gaslightify.php b/Gaslightify.php index 2a4f0b4..d0bd701 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -90,6 +90,7 @@ function glm_custom_logo() { #wpadminbar .quicklinks li .blavatar:before { content: url(/Gaslightify/img/GLM_flame_none_trans_16x16.png) !important; } + ul, +#metaslider_social, #metaslider_advanced_settings, #metaslider_configuration .inside { display: none !important; } // To delete the dashboard menu option /*#menu-dashboard { display: none; -}*/ \ No newline at end of file +}*/ + +#toplevel_page_metaslider .dashicons-before:before { + content: "\f233" !important; +} \ No newline at end of file diff --git a/js/Gaslightify.js b/js/Gaslightify.js index bcb9297..5c00194 100755 --- a/js/Gaslightify.js +++ b/js/Gaslightify.js @@ -11,12 +11,19 @@ jQuery(document).ready(function(){ jQuery("#wp-admin-bar-wp-logo").hover(function() { return false; }); + + /* Nextgen */ jQuery("#ngg_page_content .wrap h2").text("GLM Photo Gallery"); jQuery("#ngg_page_content #dashboard_right_now .hndle span").text("Welcome to the gallery!"); jQuery('#toplevel_page_nextgen-gallery ul li:contains("Gallery Settings")').css('display', 'none'); jQuery('#toplevel_page_nextgen-gallery ul li:contains("Other Options")').css('display', 'none'); jQuery('#toplevel_page_nextgen-gallery ul li:contains("Upgrade to Pro")').css('display', 'none'); + /* MetaSlider */ + jQuery('#toplevel_page_metaslider .wp-menu-name').text("Slideshow"); + jQuery('#toplevel_page_metaslider img').attr("src",""); + + /* General WP */ jQuery("#wp-admin-bar-wp-logo > .ab-item").attr("href","#").attr("title",""); jQuery('#wp-admin-bar-my-account > a').attr("href","#").attr("title",""); jQuery('#wp-admin-bar-user-info > a').attr("href","#"); -- 2.17.1