add widget

This commit is contained in:
John Bintz 2009-10-08 21:18:24 -04:00
parent 30028e919f
commit 3bb9516f87
4 changed files with 32 additions and 23 deletions

View File

@ -155,6 +155,9 @@ class WhatDidTheySayAdmin {
add_action('wp_footer', array(&$this, 'wp_footer')); add_action('wp_footer', array(&$this, 'wp_footer'));
} }
// sidebar widget
wp_register_sidebar_widget('what-did-they-say', __('What Did They Say?!? Transcript', 'what-did-they-say'), array(&$this, 'transcript_sidebar_widget'), array('description' => __('Show the transcript for the current post.', 'what-did-they-say')));
// handle form submission // handle form submission
if (isset($_REQUEST['wdts'])) { if (isset($_REQUEST['wdts'])) {
if (isset($_REQUEST['wdts']['script'])) { if (isset($_REQUEST['wdts']['script'])) {
@ -174,6 +177,12 @@ class WhatDidTheySayAdmin {
} }
} }
/** Widget **/
function transcript_sidebar_widget() {
transcripts_display();
}
/** Actions **/ /** Actions **/
function wp_footer() { function wp_footer() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: what-did-they-say 0.9\n" "Project-Id-Version: what-did-they-say 0.9\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-07 12:43-0400\n" "POT-Creation-Date: 2009-10-08 11:44-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -531,104 +531,104 @@ msgstr ""
msgid "Change capabilities" msgid "Change capabilities"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:2 #: classes/partials/_shortcodes-info.inc:10
msgid "Shortcodes Info" msgid "Shortcodes Info"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:5 #: classes/partials/_shortcodes-info.inc:13
msgid "" msgid ""
"you can easily use these shortcodes with the appropriate buttons above all " "you can easily use these shortcodes with the appropriate buttons above all "
"transcript editors" "transcript editors"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:8 #: classes/partials/_shortcodes-info.inc:16
msgid "Sample Transcript" msgid "Sample Transcript"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:25 #: classes/partials/_shortcodes-info.inc:23
msgid "Shortcode Details" msgid "Shortcode Details"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:27 #: classes/partials/_shortcodes-info.inc:25
msgid "" msgid ""
"Transcripts can be entered either using straight HTML or by using shortcodes " "Transcripts can be entered either using straight HTML or by using shortcodes "
"built for <strong>What Did They Say?!?</strong>" "built for <strong>What Did They Say?!?</strong>"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:28 #: classes/partials/_shortcodes-info.inc:26
msgid "Using shortcodes will make your transcripts easier to style." msgid "Using shortcodes will make your transcripts easier to style."
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:29 #: classes/partials/_shortcodes-info.inc:27
msgid "" msgid ""
"The default styles that come with <strong>What Did They Say?!?</strong> make " "The default styles that come with <strong>What Did They Say?!?</strong> make "
"your transcripts look like a screenplay." "your transcripts look like a screenplay."
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:31 #: classes/partials/_shortcodes-info.inc:29
msgid "Available Shortcodes" msgid "Available Shortcodes"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:33 #: classes/partials/_shortcodes-info.inc:31
msgid "[scene-heading]" msgid "[scene-heading]"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:34 #: classes/partials/_shortcodes-info.inc:32
msgid "The text that indicates a new scene:" msgid "The text that indicates a new scene:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:36 #: classes/partials/_shortcodes-info.inc:34
msgid "" msgid ""
"<code>[scene-heading]Ext. The Old Man's House[/scene-heading]</code> becomes:" "<code>[scene-heading]Ext. The Old Man's House[/scene-heading]</code> becomes:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:37 #: classes/partials/_shortcodes-info.inc:35
msgid "Ext. The Old Man's House" msgid "Ext. The Old Man's House"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:40 #: classes/partials/_shortcodes-info.inc:38
msgid "[scene-action]" msgid "[scene-action]"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:41 #: classes/partials/_shortcodes-info.inc:39
msgid "" msgid ""
"The text that indicates action taking place in a scene. One usually occurs " "The text that indicates action taking place in a scene. One usually occurs "
"underneath of a scene heading:" "underneath of a scene heading:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:43 #: classes/partials/_shortcodes-info.inc:41
msgid "" msgid ""
"<code>[scene-action]John is walking down to the car parked in the driveway.[/" "<code>[scene-action]John is walking down to the car parked in the driveway.[/"
"scene-action]</code> becomes:" "scene-action]</code> becomes:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:44 #: classes/partials/_shortcodes-info.inc:42
msgid "John is walking down to the car parked in the driveway." msgid "John is walking down to the car parked in the driveway."
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:47 #: classes/partials/_shortcodes-info.inc:45
msgid "[dialog]" msgid "[dialog]"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:48 #: classes/partials/_shortcodes-info.inc:46
msgid "The text for when a character is speaking in a scene:" msgid "The text for when a character is speaking in a scene:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:50 #: classes/partials/_shortcodes-info.inc:48
msgid "" msgid ""
"<code>[dialog name=\"John\" direction=\"(towards the house)\"]Hey, where are " "<code>[dialog name=\"John\" direction=\"(towards the house)\"]Hey, where are "
"the keys?[/dialog]</code> becomes:" "the keys?[/dialog]</code> becomes:"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:53 #: classes/partials/_shortcodes-info.inc:51
msgid "John" msgid "John"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:54 #: classes/partials/_shortcodes-info.inc:52
msgid "(towards the house)" msgid "(towards the house)"
msgstr "" msgstr ""
#: classes/partials/_shortcodes-info.inc:55 #: classes/partials/_shortcodes-info.inc:53
msgid "Hey, where are the keys?" msgid "Hey, where are the keys?"
msgstr "" msgstr ""