Changeset 808841
- Timestamp:
- 11/22/2013 01:29:27 PM (12 years ago)
- File:
-
- 1 edited
-
ihitro-media/trunk/backend/include.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ihitro-media/trunk/backend/include.php
r808669 r808841 1 1 <?php 2 2 // Custom Login Styles 3 add_action('login_head', ' login_css');4 function login_css() {wp_enqueue_style( 'login_css', plugin_dir_url( __FILE__ ). 'login.css' ); }3 add_action('login_head', 'ihitro_login_css'); 4 function ihitro_login_css() { wp_enqueue_style( 'login_css', plugin_dir_url( __FILE__ ). 'login.css' ); } 5 5 6 6 // Custom cms styles 7 add_action('admin_print_styles', ' admin_css' );8 function admin_css() { wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/dashboard.css' ); }7 add_action('admin_print_styles', 'ihitro_admin_css' ); 8 function ihitro_admin_css() { wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/dashboard.css' ); } 9 9 10 10 // Wijzig footer informatie 11 add_filter( 'admin_footer_text', ' my_footer_text' );12 function my_footer_text() { return 'ihitro:media - © ' . date("Y"); }11 add_filter( 'admin_footer_text', 'ihitro_footer_tekst' ); 12 function ihitro_footer_tekst() { return 'ihitro:media - © ' . date("Y"); } 13 13 14 14 // Verwijder versie informatie uit footer 15 15 if(!is_admin()){ 16 add_filter( 'update_footer', ' my_footer_version', 11 );17 function my_footer_version() { return ''; }16 add_filter( 'update_footer', 'ihitro_footer_versie', 11 ); 17 function ihitro_footer_versie() { return ''; } 18 18 } 19 19 20 20 // Pas de knoppen aan in de top bar 21 add_action( 'admin_bar_menu', ' custom_adminbar_menu', 15 );22 function custom_adminbar_menu( $meta = TRUE ) {21 add_action( 'admin_bar_menu', 'ihitro_custom_adminbar_menu', 15 ); 22 function ihitro_custom_adminbar_menu( $meta = TRUE ) { 23 23 global $wp_admin_bar; 24 24 … … 44 44 45 45 // Verwijder onderdelen bovenin de toolbar 46 add_action( 'wp_before_admin_bar_render', ' wps_admin_bar' );47 function wps_admin_bar() {46 add_action( 'wp_before_admin_bar_render', 'ihitro_wps_admin_bar' ); 47 function ihitro_wps_admin_bar() { 48 48 global $wp_admin_bar; 49 49 $wp_admin_bar->remove_menu('wp-logo'); // Verwijder het WordPress logo … … 55 55 56 56 // Verwijder standaard widgets van dashboad 57 add_action('wp_dashboard_setup', ' remove_dashboard_widgets');58 function remove_dashboard_widgets() {57 add_action('wp_dashboard_setup', 'ihitro_remove_dashboard_widgets'); 58 function ihitro_remove_dashboard_widgets() { 59 59 global $wp_meta_boxes; 60 60 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); … … 71 71 72 72 // Verwijder welkom bericht op dashboard 73 add_action( 'load-index.php', ' remove_welcome_panel' );74 function remove_welcome_panel()73 add_action( 'load-index.php', 'ihitro_remove_welcome_panel' ); 74 function ihitro_remove_welcome_panel() 75 75 { 76 76 remove_action('welcome_panel', 'wp_welcome_panel'); … … 82 82 83 83 // Voeg Ihitro gegevens toe aan dashboard 84 add_action('wp_dashboard_setup', ' wpc_add_dashboard_widgets' );85 function wpc_dashboard_widget_function() {84 add_action('wp_dashboard_setup', 'ihitro_add_dashboard_widgets' ); 85 function ihitro_dashboard_widget_function() { 86 86 echo "<ul> 87 87 <li><strong>ihitro:media</strong></li> … … 95 95 </ul>"; 96 96 } 97 function wpc_add_dashboard_widgets() {98 wp_add_dashboard_widget('wp_dashboard_widget', 'ihitro:media', ' wpc_dashboard_widget_function');97 function ihitro_add_dashboard_widgets() { 98 wp_add_dashboard_widget('wp_dashboard_widget', 'ihitro:media', 'ihitro_dashboard_widget_function'); 99 99 } 100 100
Note: See TracChangeset
for help on using the changeset viewer.