diff --git a/classes/WhatDidTheySayAdmin.inc b/classes/WhatDidTheySayAdmin.inc index f128262..912cc35 100644 --- a/classes/WhatDidTheySayAdmin.inc +++ b/classes/WhatDidTheySayAdmin.inc @@ -78,9 +78,9 @@ class WhatDidTheySayAdmin { add_filter('the_matching_transcript_excerpts', array(&$this, 'the_matching_transcript_excerpts'), 10, 3); add_filter('the_transcript_language_name', array(&$this, 'the_transcript_language_name'), 10, 3); add_filter('the_transcript_format_string', array(&$this, 'the_transcript_format_string')); - add_filter('the_transcript_opener', array(&$this, 'the_transcript_opener')); - + add_filter('the_transcript_transition_effect', array(&$this, 'the_transcript_transition_effect'), 10, 2); + add_filter('template_redirect', array(&$this, 'template_redirect')); if ($options['search_integration']) { @@ -144,6 +144,9 @@ class WhatDidTheySayAdmin { return $content . ob_get_clean(); } + /** + * Build the opener/closer for transcripts. + */ function the_transcript_opener($content = '') { ob_start(); ?>
the_transcript_format_string($content)
Transcript: %s
.', 'what-did-they-say') ?>the_transcript_opener($content)
diff --git a/classes/partials/_editor-script.inc b/classes/partials/_editor-script.inc
index c77232a..5003d88 100644
--- a/classes/partials/_editor-script.inc
+++ b/classes/partials/_editor-script.inc
@@ -38,4 +38,9 @@ WhatDidTheySay.languages = { };
WhatDidTheySay.default_language = 'get_default_language() ?>';
-WhatDidTheySay.use_transcript_effects = ;
\ No newline at end of file
+WhatDidTheySay.use_transcript_effects = ;
+
+WhatDidTheySay.transcript_effects = {
+ open: ,
+ close:
+};
\ No newline at end of file
diff --git a/js/toggle-transcript.js b/js/toggle-transcript.js
index cc5155d..8239614 100644
--- a/js/toggle-transcript.js
+++ b/js/toggle-transcript.js
@@ -21,13 +21,13 @@ WhatDidTheySay.build_bundle_header = function(bundle) {
transcript_holders.each(function(t) {
if (t.hasClassName(code)) {
if (WhatDidTheySay.use_transcript_effects) {
- new Effect.BlindDown(t, { duration: 0.25 });
+ WhatDidTheySay.transcript_effects.open(t);
} else {
t.show();
}
} else {
if (WhatDidTheySay.use_transcript_effects) {
- new Effect.BlindUp(t, { duration: 0.25 });
+ WhatDidTheySay.transcript_effects.close(t);
} else {
t.hide();
}
diff --git a/screenshot-1.png b/screenshot-1.png
new file mode 100644
index 0000000..f165902
Binary files /dev/null and b/screenshot-1.png differ
diff --git a/what-did-they-say.php b/what-did-they-say.php
index d5a7d58..726943e 100644
--- a/what-did-they-say.php
+++ b/what-did-they-say.php
@@ -6,6 +6,7 @@ Description: Manage and display text transcriptions of comics, videos, or other
Version: 0.1
Author: John Bintz
Author URI: http://www.coswellproductions.com/wordpress/
+Text Domain: what-did-they-say
Copyright 2009 John Bintz (email : john@coswellproductions.com)
diff --git a/what-did-they-say.pot b/what-did-they-say.pot
new file mode 100644
index 0000000..a8248d4
--- /dev/null
+++ b/what-did-they-say.pot
@@ -0,0 +1,706 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR $content
containing the filter output."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:92
+msgid "Output $content
contains the HTML for dialog blocks."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:95
+msgid "Output $content
contains the HTML for scene action blocks."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:98
+msgid ""
+"Ouptut $content
contains the HTML for scene heading blocks."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:101
+msgid "Output $content
contains the HTML for a single transcript."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:104
+msgid "Output $content
contains the HTML for a language name."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:107
+msgid ""
+"Output $content
contains the HTML for all the provided "
+"$transcripts
that match $search_string
."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:110
+#, php-format
+msgid ""
+"Output $content
contains the sprintf() format string for how "
+"transcript headers will be spelled. The default is Transcript: %s"
+"code>."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:113
+msgid ""
+"Output
$content
contains three elements: a container (.wdts-"
+"transcript-opener), and an opener & closer in the container (.wdts-"
+"opener and .wdts-container)."
+msgstr ""
+
+#: classes/partials/_default-styles.inc:117
+msgid ""
+"A filter in your theme that would change the display of langauge names would "
+"look like the following:"
+msgstr ""
+
+#: classes/partials/_introduction.inc:2 classes/partials/admin.inc:3
+msgid "Introduction"
+msgstr ""
+
+#: classes/partials/_introduction.inc:5
+msgid ""
+"What Did They Say?!? gives you great control over adding "
+"and managing transcripts for your comics, videos, or audio."
+msgstr ""
+
+#: classes/partials/_introduction.inc:6
+msgid ""
+"Adding transcripts to your posts gives you better search engine visibility "
+"and helps disabled users enjoy your content."
+msgstr ""
+
+#: classes/partials/_introduction.inc:13
+msgid "Getting Started"
+msgstr ""
+
+#: classes/partials/_introduction.inc:17
+msgid ""
+"What Did They Say?!? can attempt to embed excerpts into "
+"your posts automatically:"
+msgstr ""
+
+#: classes/partials/_introduction.inc:24
+msgid "Enable automatic transcript embedding"
+msgstr ""
+
+#: classes/partials/_introduction.inc:26 classes/partials/_introduction.inc:62
+msgid "Submit"
+msgstr ""
+
+#: classes/partials/_introduction.inc:30
+msgid ""
+"What Did They Say?!? is set to attempt to embed excerpts "
+"into your posts automatically."
+msgstr ""
+
+#: classes/partials/_introduction.inc:32
+msgid ""
+"What Did They Say?!? will not attempt to embed excerpts "
+"into your posts automatically."
+msgstr ""
+
+#: classes/partials/_introduction.inc:38
+msgid ""
+"If the automatic embedding method doesn't work or you desire more control, "
+"you can add the following Template Tags to the appropriate location in your "
+"posts Loop:"
+msgstr ""
+
+#: classes/partials/_introduction.inc:48
+msgid "Search Results"
+msgstr ""
+
+#: classes/partials/_introduction.inc:51
+msgid ""
+"When someone searches your site, What Did They Say?!? can "
+"search your transcripts, too."
+msgstr ""
+
+#: classes/partials/_introduction.inc:60
+msgid "Enable transcript search integration"
+msgstr ""
+
+#: classes/partials/_introduction.inc:66
+msgid ""
+"What Did They Say?!? is set to search transcripts when your "
+"site is searched."
+msgstr ""
+
+#: classes/partials/_introduction.inc:68
+msgid ""
+"What Did They Say?!? will not search transcripts when your "
+"site is searched."
+msgstr ""
+
+#: classes/partials/_introduction.inc:74
+msgid ""
+"If you want transcript excerpts to appear in your search results, add the "
+"following Template Tag to your search results Loop:"
+msgstr ""
+
+#: classes/partials/_introduction.inc:84 classes/partials/admin.inc:5
+msgid "Styles"
+msgstr ""
+
+#: classes/partials/_introduction.inc:85
+#, php-format
+msgid ""
+"You can set the number of characters to show in context in search results on "
+"the %s page."
+msgstr ""
+
+#: classes/partials/_change-languages.inc:3 classes/partials/admin.inc:6
+msgid "Languages"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:7
+msgid "Language"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:8
+msgid "Rename?"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:9
+msgid "Make default?"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:10
+msgid "Delete?"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:19
+msgid "(default)"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:30
+msgid "Rename"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:42
+msgid "Default"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:57
+msgid "Add new:"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:69
+msgid "Add New Language"
+msgstr ""
+
+#: classes/partials/_change-languages.inc:80
+msgid ""
+"You are about to delete this language from the available list. Continue?"
+msgstr ""
+
+#: classes/partials/admin.inc:4 classes/partials/_capabilities.inc:5
+msgid "Capabilities"
+msgstr ""
+
+#: classes/partials/admin.inc:7 classes/partials/_shortcodes-info.inc:2
+msgid "Shortcodes Info"
+msgstr ""
+
+#: classes/partials/admin.inc:8
+msgid "Misc. Options"
+msgstr ""
+
+#: classes/partials/admin.inc:14 classes/partials/admin.inc:47
+#: classes/WhatDidTheySayAdmin.inc:775 classes/WhatDidTheySayAdmin.inc:776
+msgid "What Did They Say?!?"
+msgstr ""
+
+#: classes/partials/admin.inc:48
+#, php-format
+msgid "Might I suggest a $%0.2f donation?"
+msgstr ""
+
+#: classes/partials/_manage-queued-transcripts.inc:2
+msgid "Your Submitted Transcripts:"
+msgstr ""
+
+#: classes/partials/_manage-queued-transcripts.inc:11
+msgid "Submit a New Transcript:"
+msgstr ""
+
+#: classes/partials/_manage-queued-transcripts.inc:30
+msgid "Submit For Approval"
+msgstr ""
+
+#: classes/partials/_capabilities.inc:7
+msgid ""
+"Determine who can do what with transcripts by setting the minimum role "
+"requirements below."
+msgstr ""
+
+#: classes/partials/_capabilities.inc:11
+msgid "Capability"
+msgstr ""
+
+#: classes/partials/_capabilities.inc:12
+msgid "Role Needed"
+msgstr ""
+
+#: classes/partials/_capabilities.inc:27
+msgid "Change capabilities"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:5
+msgid ""
+"you can easily use these shortcodes with the appropriate buttons above all "
+"transcript editors"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:8
+msgid "Sample Transcript"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:25
+msgid "Shortcode Details"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:27
+msgid ""
+"Transcripts can be entered either using straight HTML or by using shortcodes "
+"built for What Did They Say?!?"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:28
+msgid "Using shortcodes will make your transcripts easier to style."
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:29
+msgid ""
+"The default styles that come with What Did They Say?!? make "
+"your transcripts look like a screenplay."
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:31
+msgid "Available Shortcodes"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:33
+msgid "[scene-heading]"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:34
+msgid "The text that indicates a new scene:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:36
+msgid ""
+"[scene-heading]Ext. The Old Man's House[/scene-heading]
becomes:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:37
+msgid "Ext. The Old Man's House"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:40
+msgid "[scene-action]"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:41
+msgid ""
+"The text that indicates action taking place in a scene. One usually occurs "
+"underneath of a scene heading:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:43
+msgid ""
+"[scene-action]John is walking down to the car parked in the driveway.[/"
+"scene-action]
becomes:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:44
+msgid "John is walking down to the car parked in the driveway."
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:47
+msgid "[dialog]"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:48
+msgid "The text for when a character is speaking in a scene:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:50
+msgid ""
+"[dialog name=\"John\" direction=\"(towards the house)\"]Hey, where are "
+"the keys?[/dialog]
becomes:"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:53
+msgid "John"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:54
+msgid "(towards the house)"
+msgstr ""
+
+#: classes/partials/_shortcodes-info.inc:55
+msgid "Hey, where are the keys?"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:54
+msgid "Submit transcriptions to a post"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:55
+msgid "Approve transcriptions to a post"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:56
+msgid "Change the available languages"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:310
+#, php-format
+msgid "Transcript: %s"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:328
+#, php-format
+msgid "%s transcript excerpt:"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:426
+msgid "Transcript added to queue."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:428
+msgid "Transcript not added to queue."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:499
+msgid "Transcripts updated."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:582
+msgid "Default styles option updated."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:598
+msgid "Insertion level updated."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:616
+#, php-format
+msgid "%s deleted."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:618
+msgid "Language not deleted!"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:625
+#, php-format
+msgid "%s added."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:627
+msgid "Language not added!"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:633
+#, php-format
+msgid "%s set as default."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:635
+msgid "Language not set as default!"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:641
+#, php-format
+msgid "%1$s renamed to %2$s."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:643
+msgid "Language not renamed!"
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:666
+msgid "User capabilities updated."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:685
+msgid "What Did They Say?!? options reset."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:704
+msgid "What Did They Say?!? core options changed."
+msgstr ""
+
+#: classes/WhatDidTheySayAdmin.inc:799
+msgid "Manage Transcripts"
+msgstr ""