From: Laury GvR Date: Wed, 27 May 2015 13:27:34 +0000 (-0400) Subject: New filenames, and addition of GaslightifyAdmin (for adminside) X-Git-Tag: v1.5.0^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4c70b00d89a568ccd3e5553e36d4376fe2dec576;p=WP-Plugins%2FGaslightify.git New filenames, and addition of GaslightifyAdmin (for adminside) --- diff --git a/Gaslightify.php b/Gaslightify.php index 62997f1..23ba893 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -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() { 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/GaslightifyAdmin.css b/css/GaslightifyAdmin.css index acf53b1..f5a6678 100644 --- a/css/GaslightifyAdmin.css +++ b/css/GaslightifyAdmin.css @@ -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 index 0000000..bdaacb5 --- /dev/null +++ b/css/GaslightifyClients.css @@ -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 index 0000000..4129ec9 --- /dev/null +++ b/css/GaslightifyGlobal.css @@ -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 index 83e33e2..0000000 --- a/css/GaslightifyMS.css +++ /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 index 0000000..83e33e2 --- /dev/null +++ b/css/GaslightifyMultiSite.css @@ -0,0 +1,3 @@ +#wp-admin-bar-my-sites { + display: none !important; +} \ No newline at end of file