Plugin Directory

Changeset 776236


Ignore:
Timestamp:
09/21/2013 03:04:47 AM (13 years ago)
Author:
lessbloat
Message:

Added dynamic header which rotates out different greetings and idioms.

Location:
dashboard/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • dashboard/trunk/dashboard.php

    r767440 r776236  
    1717
    1818        private $active_modules = array(
     19            'dashboard',
    1920            //'combinednews',
    2021            'quickdraft',
     
    2526            self::$instance = $this;
    2627           
    27             //add_action( 'admin_menu', array( $this , 'dash_add_menu' ) );
     28            add_action( 'admin_menu', array( $this , 'dash_add_menu' ) );
    2829            add_action( 'admin_enqueue_scripts', array( $this , 'enqueue_scripts' ) );
    2930           
     
    4445        }
    4546       
    46         /*
    4747        function dash_add_menu() {
    4848            $this->screen = add_dashboard_page( 'Dash', 'Dash', 'read', 'dash-dash', array( __CLASS__, 'dash_page' ) );
     
    5353        <div class="wrap">
    5454
    55             <?php screen_icon(); ?>
    56 
    57             <h2><?php esc_html_e( 'Dash' ); ?></h2>
     55            <h2><?php $words = array( 'Hola', 'Bonjour', 'Aloha', 'Ahoy There', "G'day", 'Hi There Beautiful', "It's Go Time", 'Break a Leg', 'Go For Broke', 'Keep Your Chin Up' ); echo esc_html( $words[ mt_rand( 0, count( $words) -1 ) ] ); ?></h2>
    5856
    5957        </div><!-- .wrap -->
    6058        <?php
    6159        }
    62         */
    6360    }
    6461    new Plugin_Dashboard;
Note: See TracChangeset for help on using the changeset viewer.