Permalink
Browse files

made custom footer optional, cleanup

  • Loading branch information...
1 parent 4ccfac8 commit 1c78a0409349785199de1f5a95bd22299edf288a 4cJan committed Aug 13, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 functions.php
View
@@ -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
@@ -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');
@@ -229,6 +233,6 @@ function has_attachments( $post_id = null ) {
/***************************************************************
-*
+* X.X Comment Template
***************************************************************/

0 comments on commit 1c78a04

Please sign in to comment.