Plugin Directory

Changeset 808841


Ignore:
Timestamp:
11/22/2013 01:29:27 PM (12 years ago)
Author:
ihitro
Message:

Functions updates to decrease conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ihitro-media/trunk/backend/include.php

    r808669 r808841  
    11<?php
    22    // 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' ); }
    55   
    66    // 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' ); }
    99   
    1010    // Wijzig footer informatie
    11     add_filter( 'admin_footer_text', 'my_footer_text' );
    12     function my_footer_text()       { return 'ihitro:media - &copy; ' .  date("Y"); }
     11    add_filter( 'admin_footer_text', 'ihitro_footer_tekst' );
     12    function ihitro_footer_tekst()      { return 'ihitro:media - &copy; ' .  date("Y"); }
    1313   
    1414    // Verwijder versie informatie uit footer
    1515    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 '';    }
    1818    }
    1919   
    2020    // 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 ) {
    2323        global $wp_admin_bar;
    2424       
     
    4444   
    4545    // 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() {
    4848        global $wp_admin_bar;
    4949        $wp_admin_bar->remove_menu('wp-logo');          // Verwijder het WordPress logo
     
    5555   
    5656    // 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() {
    5959        global $wp_meta_boxes;
    6060        unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
     
    7171   
    7272    // 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()
    7575    {
    7676        remove_action('welcome_panel', 'wp_welcome_panel');
     
    8282       
    8383    // 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() {
    8686        echo "<ul>
    8787        <li><strong>ihitro:media</strong></li>
     
    9595        </ul>";
    9696    }
    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');
    9999    }
    100100   
Note: See TracChangeset for help on using the changeset viewer.