My Sites gone for MS
authorLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 18:56:22 +0000 (14:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 18:56:22 +0000 (14:56 -0400)
Gaslightify.php
css/GaslightifyMS.css [new file with mode: 0644]

index 45763ad..de0842f 100755 (executable)
@@ -4,7 +4,7 @@
 Plugin Name: Gaslightify
 Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 Description: A gasline to a Wordpress website.
-Version: 1.31
+Version: 1.32
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 License: Gaslight Media
@@ -48,10 +48,11 @@ function interface_client_safeguard() {
         
     } else {
         /* A user without admin privileges */
-       wp_enqueue_style('GaslightifyStyle');
        wp_enqueue_script('GaslightifyJs', plugins_url('js/Gaslightify.js', __FILE__),array(),'1.0.0', true);
         wp_enqueue_style('GaslightifyStyle', plugins_url('css/Gaslightify.css', __FILE__));
-        
+        if ( is_multisite() ) {
+            wp_enqueue_style('GaslightifyMSStyle', plugins_url('css/GaslightifyMS.css', __FILE__));
+        }
     }
 }
 
@@ -85,6 +86,9 @@ function glm_custom_logo() {
         #wp-admin-bar-wp-logo > .ab-item .ab-icon:before, #header-logo {
             content: url(<?php echo plugins_url(); ?>/Gaslightify/img/GLM_flame_none_trans_32x32.png) !important;
         }
+        #wpadminbar .quicklinks li .blavatar:before {
+            content: url(<?php echo plugins_url(); ?>/Gaslightify/img/GLM_flame_box_inverted_16x16b.png) !important; 
+        }
     </style>
     <?php
     
diff --git a/css/GaslightifyMS.css b/css/GaslightifyMS.css
new file mode 100644 (file)
index 0000000..83e33e2
--- /dev/null
@@ -0,0 +1,3 @@
+#wp-admin-bar-my-sites {
+    display: none !important;
+}
\ No newline at end of file