IndexJunkie.Com') ));
} return $links; }
add_filter( 'plugin_row_meta', 'set_indexjunkie_atheist_quotes_link', 10, 2 );
// Create Wp Wisdom link
function set_wpwisdom_atheist_quotes_link($links, $file) {
$plugin = plugin_basename(__FILE__);
if ($file == $plugin) {
return array_merge( $links,
array( sprintf( 'WpWisdom.Com') ));
} return $links; }
add_filter( 'plugin_row_meta', 'set_wpwisdom_atheist_quotes_link', 10, 2 );
// This just echoes the chosen line, we'll position it later
function atheist_quotes() {
$chosen = atheist_quotes_get_lyric();
echo "
";
}
// Now we set that function up to execute when the admin_notices action is called
/*add_action( 'admin_notices', 'atheist_quotes' );*/
// We need some CSS to position the paragraph
function atheist_quotes_css() {
// This makes sure that the positioning is also good for right-to-left languages
$x = is_rtl() ? 'right' : 'right';
$y = is_rtl() ? 'left' : 'left';
echo "
";
}
add_action( 'admin_head', 'atheist_quotes_css' );
function atheist_quotes_widget() {
atheist_quotes(); }
function atheist_quotes_admin_widget() {
wp_add_dashboard_widget('atheist_quotes', 'Atheist Quotes', 'atheist_quotes_widget');
}
add_action('wp_dashboard_setup', 'atheist_quotes_admin_widget' );
?>