From 2c317a24e39d51cd3482dead151e9a0466c7854c Mon Sep 17 00:00:00 2001
From: Laury GvR
This Theme was made by Gaslight Media.
'; + return $text; +} + +add_filter('update_footer', 'right_admin_footer_text_output', 11, true); //right side +function right_admin_footer_text_output($text) { + $text = ''; + return $text; +} + +add_action('admin_enqueue_scripts', 'interface_client_safeguard'); + +function interface_client_safeguard() { + if ( current_user_can( 'manage_options' ) ) { + /* A user with admin privileges */ + + } 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__)); + + } +} + + + +add_filter('login_errors','login_error_message'); + +function login_error_message($error){ + //check if that's the error you are looking for + $pos = strpos($error, 'incorrect'); + if (is_int($pos)) { + //its the right error so you can overwrite it + $error = "Invalid Credentials. Please ensure the username and password you entered are correct."; + } + return $error; +} + + +add_action('admin_bar_menu', 'glm_custom_logo'); + +function glm_custom_logo() { + ?> + + + + +get_node('my-account'); + $newtitle = str_replace( 'Howdy,', 'Welcome back,', $my_account->title . "!" ); + $wp_admin_bar->add_node( array( + 'id' => 'my-account', + 'title' => $newtitle, + ) ); + } + add_filter( 'admin_bar_menu', 'replace_howdy',25 ); +?> diff --git a/css/Gaslightify.css b/css/Gaslightify.css new file mode 100755 index 0000000..03d5b25 --- /dev/null +++ b/css/Gaslightify.css @@ -0,0 +1,25 @@ +#screen-meta-links, +select[name="seo_filter"], +#menu-posts, +#menu-comments, +#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 { + display: none !important; +} +// To delete the dashboard menu option +/*#menu-dashboard { + display: none; +}*/ \ No newline at end of file diff --git a/img/DashboardActivityLogo.png b/img/DashboardActivityLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..ba0957e680b9056276a618924d4ffb3a03cf1d7d GIT binary patch literal 10223 zcmV-HyBLAhtBmHZp=t}
z@xra&2G0fn_^EwELkkovl$*yRA3y%LO!3xkE)~_P(QWJILlDB?VE>|_1 6`sGtBONRq2o5Mq
zGXxTiL^_%|AS^5~Xtbk)r9Ilh35j0864^XHjZFtuY%^uHzhlw=h{fW$0FBS#QaGH5
zl`bHKa`+rxC?^t($Ab-hm}~|ombZJkLf--=09 uD}TpK%iK6xJEs;-~k(;zz^P_$3C2ah9O{q
z0hTzx2?oORi36ZO31hgz9;Sf-DbS$~mWTlgt^fxhB%uojxWWpg;0RXGgANgu!Vw@b
zg=-|?09a5001m(jC2WBowPZySfUpNTIN=KH=mG%hF$G|ZgAS}P!Z@6 Cp7itiVK%kkf$2g4FVW|ivPDq%&!89W6ST3$Q
zi`kzZWjOh)e=Ouz(R;9?1Cf<)!S9IuSP!uFpdjk+pd7Mnf~49&lv{Zj6}|yx_Vs2s
z5KqpQ1J}}Cy71!`*MOXF^*YCOZU6=1dR}EQJD~{iKPzvF@sQz(T9hDD%G=Iq7#Krk
zNTFbQ8S7(mpoeTA_{kN?Pt|Tav5&Ted_+nRj|;!wyiugzxZJqDNeodYfP>iUBN?Q7
z??5mewXlnvVz3WS&})WXgnZ#udn}S|>sZeFvGl3ZRc_e(JxEUNPrq~N?0!7mj4wWn
zQP@fD+lC>%3qZKXqD5}dpKv`#c_|W3Pi9KU6j5w03VLgYkD{X%ag6>!zcG~LjZD6T
zh6JJ%Gec{6%`a4iIjca6TA&3yRFK-HRkYxU
zs`bT-UO92{i#w9AY4&FVUFiE=yT2#V#DM1?h@<0fkF1mE&b3$ufhtM6b{?*7@(f}+YB!X^<{RTRc{ihwEQvH21&
z3K6QhL9n
Pg-VO3=wiG#fgTu^B1#l0U;`e~8Ckcfd*RaoWV
z!{}fEE&~eAqA{>g5IqA2