Skip to content

Commit

Permalink
made custom footer optional, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
4cJan committed Aug 13, 2012
1 parent 4ccfac8 commit 1c78a04
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions functions.php
Expand Up @@ -6,6 +6,7 @@
* 1.1 Enqueue Scripts
* 1.2 Add Theme Support
* 1.3 Register Menus
* 1.3 Bloginfo Shortcode
* 2.0 ADMIN
* 2.1 Remove default screen metaboxes
* 2.2 Cleanup Dashboard
Expand Down Expand Up @@ -122,23 +123,26 @@ function clean_dashboard_widgets() {
// use custom login logo
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_url').'/images/wordpress-logo.png) !important; }
.login h1 a { background-image:url('.get_bloginfo('template_url').'/images/wordpress-logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_login_logo');


//change admin footer text
function remove_footer_admin () { ?>
function custom_admin_footer () { ?>
Webdesign by <a href="http://www.cccc.de/">Werbeagentur 4c media</a> • 0800 2222 633
<?php }
add_filter('admin_footer_text', 'remove_footer_admin');
// add_filter('admin_footer_text', 'custom_admin_footer');


// add own css to admin
function add_admin_css() {
wp_enqueue_style('admin', get_bloginfo('template_directory').'/css/admin.css');
}
add_action('admin_print_styles', 'add_admin_css');


// add own js to admin
function add_admin_js() {
wp_enqueue_script('admin', get_bloginfo('template_directory').'/js/admin.js');
Expand Down Expand Up @@ -229,6 +233,6 @@ function has_attachments( $post_id = null ) {


/***************************************************************
*
* X.X Comment Template
***************************************************************/

0 comments on commit 1c78a04

Please sign in to comment.