File: /home/workshopbrain/public_html/wp-content/themes/halfcreative/functions.php
<?php
define("PE_THEME_NAME",'Halfcreative');
// bootstrap the framework
define("PE_THEME_PATH",dirname( __FILE__));
require("framework/php/boot.php");
//removing that stuff from the dashboard
function remove_dashboard_meta() {
remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
//remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );
//remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
//remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
}
add_action( 'admin_init', 'remove_dashboard_meta' );
//removing that stuff from the dashboard end
//more hides of the wordpress stuff
function b3m_login_logo_url_title() {
return 'MDIS Development by work.shop';
}
add_filter( 'login_headertitle', 'b3m_login_logo_url_title' );
function b3m_modify_footer_admin () {
echo '<span id="footer-thankyou">MDIS Development by <a href="http://www.workshop-mg.com" target="_blank">work.shop</a></span>';
}
add_filter('admin_footer_text', 'b3m_modify_footer_admin');
//more hides of the wordpress stuff end
//this changes the logo on the login page
function my_login_logo() { ?>
<style type="text/css">
body.login div#login h1 a {
background-image: url(http://workshop-mg.com/wp-content/uploads/2014/12/work.shop-logo-750.png);
padding-bottom: 2px;
width:300px;
background-size: 300px;
height: 140px;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );
//this changes the logo on the login page - end
//this changes the link for the login logo on the login page
function loginpage_custom_link() {
return 'http://workshop-mg.com';
}
add_filter('login_headerurl','loginpage_custom_link');
//this changes the link for the login logo on the login page - end
//this changes the title tag on the logo image of the login page
function change_title_on_logo() {
return 'work.shop';
}
add_filter('login_headertitle', 'change_title_on_logo');
//this changes the title tag on the logo image of the login page - end
?>