wp/wp-content/plugins/hello.php
changeset 7 cf61fcea0001
parent 0 d970ebf37754
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * @package Hello_Dolly
     3  * @package Hello_Dolly
     4  * @version 1.6
     4  * @version 1.7
     5  */
     5  */
     6 /*
     6 /*
     7 Plugin Name: Hello Dolly
     7 Plugin Name: Hello Dolly
     8 Plugin URI: http://wordpress.org/plugins/hello-dolly/
     8 Plugin URI: http://wordpress.org/plugins/hello-dolly/
     9 Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
     9 Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
    10 Author: Matt Mullenweg
    10 Author: Matt Mullenweg
    11 Version: 1.6
    11 Version: 1.7
    12 Author URI: http://ma.tt/
    12 Author URI: http://ma.tt/
    13 */
    13 */
    14 
    14 
    15 function hello_dolly_get_lyric() {
    15 function hello_dolly_get_lyric() {
    16 	/** These are the lyrics to Hello Dolly */
    16 	/** These are the lyrics to Hello Dolly */
    19 It's so nice to have you back where you belong
    19 It's so nice to have you back where you belong
    20 You're lookin' swell, Dolly
    20 You're lookin' swell, Dolly
    21 I can tell, Dolly
    21 I can tell, Dolly
    22 You're still glowin', you're still crowin'
    22 You're still glowin', you're still crowin'
    23 You're still goin' strong
    23 You're still goin' strong
    24 We feel the room swayin'
    24 I feel the room swayin'
    25 While the band's playin'
    25 While the band's playin'
    26 One of your old favourite songs from way back when
    26 One of our old favorite songs from way back when
    27 So, take her wrap, fellas
    27 So, take her wrap, fellas
    28 Find her an empty lap, fellas
    28 Dolly, never go away again 
    29 Dolly'll never go away again
       
    30 Hello, Dolly
    29 Hello, Dolly
    31 Well, hello, Dolly
    30 Well, hello, Dolly
    32 It's so nice to have you back where you belong
    31 It's so nice to have you back where you belong
    33 You're lookin' swell, Dolly
    32 You're lookin' swell, Dolly
    34 I can tell, Dolly
    33 I can tell, Dolly
    35 You're still glowin', you're still crowin'
    34 You're still glowin', you're still crowin'
    36 You're still goin' strong
    35 You're still goin' strong
    37 We feel the room swayin'
    36 I feel the room swayin'
    38 While the band's playin'
    37 While the band's playin'
    39 One of your old favourite songs from way back when
    38 One of our old favorite songs from way back when
    40 Golly, gee, fellas
    39 So, golly, gee, fellas
    41 Find her a vacant knee, fellas
    40 Have a little faith in me, fellas
    42 Dolly'll never go away
    41 Dolly, never go away
    43 Dolly'll never go away
    42 Promise, you'll never go away
    44 Dolly'll never go away again";
    43 Dolly'll never go away again";
    45 
    44 
    46 	// Here we split it into lines
    45 	// Here we split it into lines
    47 	$lyrics = explode( "\n", $lyrics );
    46 	$lyrics = explode( "\n", $lyrics );
    48 
    47