ui tweaks

This commit is contained in:
John Bintz 2009-10-01 22:15:40 -04:00
parent 1e794c475d
commit 22d05629ef
2 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<?php if ((count($queued_transcripts_for_user) > 0) && !current_user_can('approve_transcriptions')) { ?>
<?php if ((count($queued_transcripts_for_user) > 0) && !current_user_can('approve_transcriptions') && !is_admin()) { ?>
<h3 style="margin-top: 0.5em"><?php _e('Your Submitted Transcripts:', 'what-did-they-say') ?></h3>
<?php
foreach ($queued_transcripts_for_user as $transcript) {
@ -8,7 +8,7 @@
<?php } ?>
<?php if (current_user_can('submit_transcriptions')) { ?>
<div id="wdts-<?php echo $new_transcript_id ?>" style="zoom:1<?php echo (!$transcript_options->are_new_transcripts_allowed() ? ';display:none' : '') ?>">
<h3 class="wdts"><?php _e('Submit a New Transcript:', 'what-did-they-say') ?></h3>
<?php wdts_hedaer_wrapper(__('Submit a New Transcript:', 'what-did-they-say')) ?>
<form method="post">
<input type="hidden" name="wdts[_nonce]" value="<?php echo wp_create_nonce('what-did-they-say') ?>" />
<input type="hidden" name="wdts[module]" value="queue-transcript" />

View File

@ -1,3 +1,13 @@
<?php
function wdts_header_wrapper($text) {
if (is_admin()) {
echo '<p><strong>' . $text . '</strong></p>';
} else {
echo '<h3 class="wdts">' . $text . '</h3>';
}
}
?>
<input type="hidden" name="wdts[post_id]" value="<?php echo $post->ID ?>" />
<?php if (is_admin()) { ?>
<input type="hidden" name="wdts[module]" value="manage-post-transcripts" />
@ -18,7 +28,7 @@
<?php } ?>
<?php if (is_array($queued_transcripts) && !empty($queued_transcripts)) { ?>
<h3 class="wdts"><?php _e('Manage Queued Transcripts:', 'what-did-they-say') ?></h3>
<?php wdts_header_wrapper(__('Manage Queued Transcripts:', 'what-did-they-say')) ?>
<?php
foreach ($queued_transcripts as $transcript) {
$user = get_userdata($transcript['user_id']);
@ -28,9 +38,7 @@
<?php } ?>
<div id="wdts-<?php echo $approved_editor_id ?>">
<?php if (!is_admin()) { ?>
<h3 class="wdts"><?php _e('Edit Approved Transcripts:', 'what-did-they-say') ?></h3>
<?php } ?>
<?php wdts_header_wrapper(__('Edit Approved Transcripts:', 'what-did-they-say')) ?>
<div class="wdts-transcript-editor">
<label>
<?php _e('Language:', 'what-did-they-say') ?>