2009-09-24 02:38:11 +00:00
< ? php if ( current_user_can ( 'submit_transcriptions' )) { ?>
< h3 >< ? php _e ( 'Introduction' , 'what-did-they-say' ) ?> </h3>
< p >
< ? php _e ( '<strong>What Did They Say?!?</strong> gives you great control over adding and managing transcripts for your comics, videos, or audio.' , 'what-did-they-say' ) ?>
< ? php _e ( 'Adding transcripts to your posts gives you better search engine visibility and helps disabled users enjoy your content.' , 'what-did-they-say' ) ?>
</ p >
2009-09-25 03:24:20 +00:00
< form method = " post " >
< input type = " hidden " name = " wdts[_nonce] " value = " <?php echo $nonce ?> " />
< input type = " hidden " name = " wdts[module] " value = " core-features " />
2009-09-24 02:38:11 +00:00
2009-09-25 03:24:20 +00:00
< h3 >< ? php _e ( 'Getting Started' , 'what-did-they-say' ) ?> </h3>
< p >
< ? php if ( current_user_can ( 'manage_options' )) { ?>
< ? php _e ( '<strong>What Did They Say?!?</strong> can attempt to embed excerpts into your posts automatically:' , 'what-did-they-say' ) ?>
2009-09-25 12:22:24 +00:00
< fieldset >
< label >
< input type = " checkbox "
name = " wdts[automatic_embedding] "
value = " yes "
< ? php echo $options [ 'automatic_embedding' ] ? 'checked="checked"' : '' ?> />
< ? php _e ( 'Enable automatic transcript embedding' , 'what-did-they-say' ) ?>
</ label >
< input type = " submit " class = " button " value = " <?php _e('Submit', 'what-did-they-say') ?> " />
</ fieldset >
2009-09-24 11:29:33 +00:00
< ? php } else { ?>
2009-09-25 03:24:20 +00:00
< ? php if ( $options [ 'automatic_embedding' ]) { ?>
< ? php _e ( '<strong>What Did They Say?!?</strong> is set to attempt to embed excerpts into your posts automatically.' , 'what-did-they-say' ) ?>
< ? php } else { ?>
< ? php _e ( '<strong>What Did They Say?!?</strong> will not attempt to embed excerpts into your posts automatically.' , 'what-did-they-say' ) ?>
< ? php } ?>
2009-09-24 11:29:33 +00:00
< ? php } ?>
2009-09-25 03:24:20 +00:00
</ p >
2009-09-24 02:38:11 +00:00
2009-09-25 03:24:20 +00:00
< p >
< ? php _e ( '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:' , 'what-did-they-say' ) ?>
</ p >
2009-09-24 02:38:11 +00:00
< pre >
& lt ; ? php
if ( function_exists ( 'transcripts_display' ) &&
function_exists ( 'the_media_transcript_queue_editor' )) {
transcripts_display (); the_media_transcript_queue_editor ();
} ? & gt ; </ pre >
2009-09-25 03:24:20 +00:00
< h3 >< ? php _e ( 'Search Results' , 'what-did-they-say' ) ?> </h3>
2009-09-24 02:38:11 +00:00
2009-09-25 03:24:20 +00:00
< p >
< ? php _e ( 'When someone searches your site, <strong>What Did They Say?!?</strong> can search your transcripts, too.' , 'what-did-they-say' ) ?>
2009-09-24 11:29:33 +00:00
2009-09-25 03:24:20 +00:00
< ? php if ( current_user_can ( 'manage_options' )) { ?>
2009-09-25 12:22:24 +00:00
< fieldset >
< label >
< input type = " checkbox "
name = " wdts[search_integration] "
value = " yes "
< ? php echo $options [ 'search_integration' ] ? 'checked="checked"' : '' ?> />
< ? php _e ( 'Enable transcript search integration' , 'what-did-they-say' ) ?>
</ label >
< input type = " submit " class = " button " value = " <?php _e('Submit', 'what-did-they-say') ?> " />
</ fieldset >
2009-09-24 11:29:33 +00:00
< ? php } else { ?>
2009-09-25 03:24:20 +00:00
< ? php if ( $options [ 'search_integration' ]) { ?>
< ? php _e ( '<strong>What Did They Say?!?</strong> is set to search transcripts when your site is searched.' , 'what-did-they-say' ) ?>
< ? php } else { ?>
< ? php _e ( '<strong>What Did They Say?!?</strong> will not search transcripts when your site is searched.' , 'what-did-they-say' ) ?>
< ? php } ?>
2009-09-24 11:29:33 +00:00
< ? php } ?>
2009-09-25 03:38:02 +00:00
</ p >
2009-09-24 11:29:33 +00:00
2009-09-25 03:38:02 +00:00
< p >
2009-09-25 03:24:20 +00:00
< ? php _e ( 'If you want transcript excerpts to appear in your search results, add the following Template Tag to your search results Loop:' , 'what-did-they-say' ) ?>
</ p >
2009-09-24 02:38:11 +00:00
< pre >
& lt ; php if ( function_exists ( 'the_matching_transcript_excerpts' )) {
the_matching_transcript_excerpts ();
} ? & gt ; </ pre >
2009-09-25 03:24:20 +00:00
< p >
< ? php
$link = '<a href="#" onclick="make_active($(\'wdts-tab-default-styles\')); return false;">' . __ ( 'Styles' , 'what-did-they-say' ) . '</a>' ;
printf ( __ ( 'You can set the number of characters to show in context in search results on the %s page.' , 'what-did-they-say' ), $link );
?>
</ p >
</ form >
2009-09-24 02:38:11 +00:00
< ? php } ?>