diff --git a/classes/WhatDidTheySayAdmin.inc b/classes/WhatDidTheySayAdmin.inc index 0e7baca..bc22c77 100644 --- a/classes/WhatDidTheySayAdmin.inc +++ b/classes/WhatDidTheySayAdmin.inc @@ -76,7 +76,9 @@ class WhatDidTheySayAdmin { add_filter('the_language_name', array(&$this, 'the_language_name'), 10, 2); 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'), 10); + add_filter('the_transcript_format_string', array(&$this, 'the_transcript_format_string')); + + add_filter('the_transcript_opener', array(&$this, 'the_transcript_opener')); add_filter('template_redirect', array(&$this, 'template_redirect')); @@ -141,6 +143,15 @@ class WhatDidTheySayAdmin { return $content . ob_get_clean(); } + function the_transcript_opener($content = '') { + ob_start(); ?> +
[ + + + ]
+ '; + $output[] = '
'; + $output[] = apply_filters('the_transcript_opener', ''); - foreach ($transcripts as $code => $transcript) { - $transcript = end(apply_filters('the_media_transcript', $transcript)); + $output[] = '
'; - $output[] = end(apply_filters('the_transcript_language_name', $language_format, $code, '')); + foreach ($transcripts as $code => $transcript) { + $transcript = end(apply_filters('the_media_transcript', $transcript)); - $output[] = '
' . $transcript . '
'; - } + $output[] = end(apply_filters('the_transcript_language_name', $language_format, $code, '')); + + $output[] = '
' . $transcript . '
'; + } + $output[] = '
'; $output[] = '
'; - } }