From 180646a3ca74e227e5bfd5abf6d04413b6f41934 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 23 Sep 2009 19:22:59 -0400 Subject: [PATCH] add donate and footer and pretty things up --- classes/WhatDidTheySayAdmin.php | 4 +++- classes/admin.inc | 15 +++++++++++++++ css/wdts-admin.css | 15 +++++++++++++++ what-did-they-say.php | 27 ++++++++++++++++----------- 4 files changed, 49 insertions(+), 12 deletions(-) diff --git a/classes/WhatDidTheySayAdmin.php b/classes/WhatDidTheySayAdmin.php index f8c7249..68189f2 100644 --- a/classes/WhatDidTheySayAdmin.php +++ b/classes/WhatDidTheySayAdmin.php @@ -536,7 +536,7 @@ class WhatDidTheySayAdmin { function admin_menu() { global $plugin_page; - if (current_user_can('submit_transcriptions')) { + if (current_user_can('submit_transcriptions')) { add_options_page( __('What Did They Say?!?', 'what-did-they-say'), __('What Did They Say?!?', 'what-did-they-say'), @@ -548,6 +548,8 @@ class WhatDidTheySayAdmin { if ($plugin_page == "manage-wdts") { $this->read_language_file(); wp_enqueue_style('wdts-admin', plugin_dir_url(dirname(__FILE__)) . 'css/wdts-admin.css'); + + $this->plugin_data = get_plugin_data($this->_parent_file); } wp_enqueue_script('scriptaculous-effects'); diff --git a/classes/admin.inc b/classes/admin.inc index 6c19490..d87c42c 100644 --- a/classes/admin.inc +++ b/classes/admin.inc @@ -6,6 +6,8 @@ 'misc-options' => __('Misc. Options', 'what-did-they-say'), 'shortcodes-info' => __('Shortcodes Info', 'what-did-they-say') ); + + extract($this->plugin_data); ?>

@@ -21,6 +23,19 @@
+ +