";
$thought=rand(0,16);
if ($thought==0) echo "You should always go to other people's funerals, otherwise, they won't come to yours. ";
if ($thought==1) echo "You got to be very careful if you don't know where you're going, because you might not get there. ";
if ($thought==2) echo "If you can't imitate him, don't copy him.";
if ($thought==3) echo "You can observe a lot by just watching.";
if ($thought==4) echo "When you arrive at a fork in the road, take it. ";
if ($thought==5) echo "We made too many wrong mistakes. ";
if ($thought==6) echo "The towels were so thick there I could hardly close my suitcase. ";
if ($thought==7) echo "The future ain't what it used to be. ";
if ($thought==8) echo "Nobody goes there anymore. It's too crowded. ";
if ($thought==9) echo "It was impossible to get a conversation going, everybody was talking too much. ";
if ($thought==10) echo "It gets late early out there. ";
if ($thought==11) echo "If you come to a fork in the road, take it. ";
if ($thought==12) echo "I wish I had an answer to that because I'm tired of answering that question. ";
if ($thought==13) echo "He hits from both sides of the plate. He's amphibious. ";
if ($thought==14) echo "Baseball is ninety percent mental and the other half is physical. ";
if ($thought==15) echo "Always go to other people's funerals, otherwise they won't come to yours. ";
if ($thought==16) echo "A nickel ain't worth a dime anymore. ";
echo " - Yogi Berra ";
}
// This is the function that outputs the form to let the users edit
// the widget's title. It's an optional feature that users cry for.
//function widget_gsearch_control() {
// Get our options and see if we're handling a form submission.
//$options = get_option('widget_gsearch');
//if ( !is_array($options) )
//$options = array('title'=>'', 'buttontext'=>__('Google Search', 'widgets'));
//if ( $_POST['gsearch-submit'] ) {
// Remember to sanitize and format use input appropriately.
//$options['title'] = strip_tags(stripslashes($_POST['gsearch-title']));
//$options['buttontext'] = strip_tags(stripslashes($_POST['gsearch-buttontext']));
//update_option('widget_gsearch', $options);
//}
// Be sure you format your options to be valid HTML attributes.
//$title = htmlspecialchars($options['title'], ENT_QUOTES);
//$buttontext = htmlspecialchars($options['buttontext'], ENT_QUOTES);
// Here is our little form segment. Notice that we don't need a
// complete form. This will be embedded into the existing form.
//echo '';
//echo '';
//echo '';
//}
// This registers our widget so it appears with the other available
// widgets and can be dragged and dropped into any active sidebars.
register_sidebar_widget(array('Yogiisms', 'widgets'), 'widget_yogiisms');
// This registers our optional widget control form. Because of this
// our widget will have a button that reveals a 300x100 pixel form.
register_widget_control(array('Yogiisms', 'widgets'), 'widget_yogiisms_control', 300, 100);
}
// Run our code later in case this loads prior to any required plugins.
add_action('widgets_init', 'widget_yogiisms_init');
?>