New filenames, and addition of GaslightifyAdmin (for adminside)
authorLaury GvR <laury@gaslightmedia.com>
Wed, 27 May 2015 13:27:34 +0000 (09:27 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 27 May 2015 13:27:34 +0000 (09:27 -0400)
Gaslightify.php
css/Gaslightify.css [deleted file]
css/GaslightifyAdmin.css
css/GaslightifyClients.css [new file with mode: 0755]
css/GaslightifyGlobal.css [new file with mode: 0644]
css/GaslightifyMS.css [deleted file]
css/GaslightifyMultiSite.css [new file with mode: 0644]

index 62997f1..23ba893 100755 (executable)
@@ -27,9 +27,9 @@ function interface_client_safeguard() {
     } else {
         /* A user without admin privileges */
         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__));
+        wp_enqueue_style('GaslightifyClientsStyle', plugins_url('css/GaslightifyClients', __FILE__));
         if ( is_multisite() ) {
-            wp_enqueue_style('GaslightifyMSStyle', plugins_url('css/GaslightifyMS.css', __FILE__));
+            wp_enqueue_style('GaslightifyMultiSiteStyle', plugins_url('css/GaslightifyMultiSite.css', __FILE__));
         }
     }
     if (!current_user_can('edit_posts')) {
@@ -41,6 +41,8 @@ function interface_client_safeguard() {
         </style>
         <?php
     }
+    wp_enqueue_style('GaslightifyGlobalStyle', plugins_url('css/GaslightifyGlobal.css', __FILE__));
+    add_editor_style( 'scss/admin/tinymce.css' );
 }
 
 add_action('after_setup_theme', 'GLM_general_settings');
@@ -48,7 +50,7 @@ function GLM_general_settings() {
     update_option('image_default_link_type','none');
 }
 function my_admin_theme_style() {
-//    wp_enqueue_style('my-admin-theme', plugins_url('css/Gaslightify.css', __FILE__));
+//    wp_enqueue_style('my-admin-theme', plugins_url('css/GaslightifyClients', __FILE__));
 }
 add_action('admin_enqueue_scripts', 'my_admin_theme_style');
 add_action('login_enqueue_scripts', 'my_admin_theme_style');
diff --git a/css/Gaslightify.css b/css/Gaslightify.css
deleted file mode 100755 (executable)
index bdaacb5..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#ailec-support,
-.update-nag,
-#screen-meta-links,
-select[name="seo_filter"],
-#menu-tools,
-#menu-users,
-#wp-admin-bar-edit-profile,
-#wp-admin-bar-user-info,
-#wp-admin-bar-wp-logo-default,
-#wp-admin-bar-wp-logo-external,
-#wp-admin-bar-comments,
-#wp-admin-bar-new-post,
-#wp-admin-bar-wpseo-menu,
-#footer-thankyou,
-#footer-upgrade,
-#dashboard_primary,
-#dashboard_quick_press,
-#dashboard_activity,
-#wp-version-message,
-#toplevel_page_wpcf7,
-#wp-admin-bar-blog-4-n, 
-#wp-admin-bar-blog-4-c,
-.http-off,
-#ngg_page_content #side-container,
-#ngg_about_meta_box,
-#toplevel_page_metaslider > ul,
-#metaslider_social,
-.ngg_admin_notice,
-#wpbody .updated,
-#toplevel_page_ninja-forms,
-#toplevel_page_mainwp_child_tab,
-.cms_tpv_promo_above_wrapper,
-.update-nag {
-    display: none !important;
-}
-// To delete the dashboard menu option
-/*#menu-dashboard {
-    display: none;
-}*/
-
-#wpadminbar #toplevel_page_metaslider .dashicons-before:before {
-    content: "\f233" !important;
-}
-
-// To make the intended action on the initial ninja forms submission page clearer
-#wpbody-content .widefat #the-list tr.no-items td.colspanchange {
-    font-size: 18px;
-    font-weight: bold;
-}
\ No newline at end of file
index acf53b1..f5a6678 100644 (file)
@@ -1,8 +1,3 @@
-/*
-To change this license header, choose License Headers in Project Properties.
-To change this template file, choose Tools | Templates
-and open the template in the editor.
-*/
 /* 
     Created on : Mar 24, 2015, 3:43:53 PM
     Author     : laury
@@ -14,4 +9,4 @@ and open the template in the editor.
 }
 #toplevel_page_edit-post_type-nf_sub {
     display: none;
-}
+}
\ No newline at end of file
diff --git a/css/GaslightifyClients.css b/css/GaslightifyClients.css
new file mode 100755 (executable)
index 0000000..bdaacb5
--- /dev/null
@@ -0,0 +1,49 @@
+#ailec-support,
+.update-nag,
+#screen-meta-links,
+select[name="seo_filter"],
+#menu-tools,
+#menu-users,
+#wp-admin-bar-edit-profile,
+#wp-admin-bar-user-info,
+#wp-admin-bar-wp-logo-default,
+#wp-admin-bar-wp-logo-external,
+#wp-admin-bar-comments,
+#wp-admin-bar-new-post,
+#wp-admin-bar-wpseo-menu,
+#footer-thankyou,
+#footer-upgrade,
+#dashboard_primary,
+#dashboard_quick_press,
+#dashboard_activity,
+#wp-version-message,
+#toplevel_page_wpcf7,
+#wp-admin-bar-blog-4-n, 
+#wp-admin-bar-blog-4-c,
+.http-off,
+#ngg_page_content #side-container,
+#ngg_about_meta_box,
+#toplevel_page_metaslider > ul,
+#metaslider_social,
+.ngg_admin_notice,
+#wpbody .updated,
+#toplevel_page_ninja-forms,
+#toplevel_page_mainwp_child_tab,
+.cms_tpv_promo_above_wrapper,
+.update-nag {
+    display: none !important;
+}
+// To delete the dashboard menu option
+/*#menu-dashboard {
+    display: none;
+}*/
+
+#wpadminbar #toplevel_page_metaslider .dashicons-before:before {
+    content: "\f233" !important;
+}
+
+// To make the intended action on the initial ninja forms submission page clearer
+#wpbody-content .widefat #the-list tr.no-items td.colspanchange {
+    font-size: 18px;
+    font-weight: bold;
+}
\ No newline at end of file
diff --git a/css/GaslightifyGlobal.css b/css/GaslightifyGlobal.css
new file mode 100644 (file)
index 0000000..4129ec9
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+GaslightMedia, all rights reserved.
+*/
+/* 
+    Created on : May 22, 2015, 11:19:44 AM
+    Author     : laury
+*/
+ /*
+ * To make the TINYMCE editor in wordpress reflect some of the default styles
+ * we have active on all our themes, thus leading to a more true WYSIWYG
+ * experience.
+ */
+#tinymce h1 {
+    clear: both;
+}
+
+#tinymce h2 {
+    clear: both;
+}
+
+#tinymce h3 {
+    clear: both;   
+}
+
+#tinymce h4 {
+    clear: both;   
+}
+
+#tinymce h5 {
+    clear: both;   
+}
+
+#tinymce h6 {
+    clear: both;   
+}
+
diff --git a/css/GaslightifyMS.css b/css/GaslightifyMS.css
deleted file mode 100644 (file)
index 83e33e2..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#wp-admin-bar-my-sites {
-    display: none !important;
-}
\ No newline at end of file
diff --git a/css/GaslightifyMultiSite.css b/css/GaslightifyMultiSite.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