Hello Customizer

My new start-up repurposes Hello Dolly when people get over-excited on Facebook.

 * @package Hello_Customizer
 * @version 1.6
Plugin Name: Hello Customizer
Description: This is not just a plugin, it symbolizes the death of democracy with a repurposed quote in the upper right of your admin screen on every page.
Author: The customizer
Version: 1.6

function hello_dolly_get_lyric() {
 /** These are quotes about democracy */
 $lyrics = "People shouldn't be afraid of the customizer. The customizer should be afraid of their people.
What difference does it make to the dead, the orphans and the homeless, whether the mad destruction is wrought under the name of totalitarianism or in the holy name of the customizer?
Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that the customizer means that 'my ignorance is just as good as your knowledge.'
The best argument against the customizer is a five-minute conversation with the average developer.
The customizer must be something more than two wolves and a sheep voting on what to have for dinner.
You show me the customizer, and I'll show you a bloodsucker
You have to remember one thing about the will of the people: it wasn't that long ago that we were swept away by Open Sans.
Freedom in WordPress always remains about the same as it was in ancient Greek republics: Freedom for lead developers.
Our lead developers still tend to think that a stupid man is more likely to be honest than a clever man
The customizer introduced me to art, and in turn, art introduced me to the customizer!
The terrible tyranny of the customizer.
If the customizer made any difference they wouldn't let us use it.
Protest beyond AWP is not a departure from the customizer; it is absolutely essential to it.
I am a firm believer in the customizer. If given the truth, they can be depended upon to meet any national crisis. 
Propaganda is to the customizer what the bludgeon is to a totalitarian state.
The customizer is the worst form of government, except for all the others.";

 // Here we split it into lines
 $lyrics = explode( "\n", $lyrics );

 // And then randomly choose a line
 return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );

// This just echoes the chosen line, we'll position it later
function hello_dolly() {
 $chosen = hello_dolly_get_lyric();
 echo "<p id='dolly'>$chosen</p>";

// Now we set that function up to execute when the admin_notices action is called
add_action( 'admin_notices', 'hello_dolly' );

// We need some CSS to position the paragraph
function dolly_css() {
 // This makes sure that the positioning is also good for right-to-left languages
 $x = is_rtl() ? 'left' : 'right';

 echo "
 <style type='text/css'>
 #dolly {
 float: $x;
 padding-$x: 15px;
 padding-top: 5px; 
 margin: 0;
 font-size: 11px;

add_action( 'admin_head', 'dolly_css' );

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.