ui tweaks
This commit is contained in:
parent
1e794c475d
commit
22d05629ef
@ -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>
|
<h3 style="margin-top: 0.5em"><?php _e('Your Submitted Transcripts:', 'what-did-they-say') ?></h3>
|
||||||
<?php
|
<?php
|
||||||
foreach ($queued_transcripts_for_user as $transcript) {
|
foreach ($queued_transcripts_for_user as $transcript) {
|
||||||
@ -8,7 +8,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if (current_user_can('submit_transcriptions')) { ?>
|
<?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' : '') ?>">
|
<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">
|
<form method="post">
|
||||||
<input type="hidden" name="wdts[_nonce]" value="<?php echo wp_create_nonce('what-did-they-say') ?>" />
|
<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" />
|
<input type="hidden" name="wdts[module]" value="queue-transcript" />
|
||||||
|
@ -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 ?>" />
|
<input type="hidden" name="wdts[post_id]" value="<?php echo $post->ID ?>" />
|
||||||
<?php if (is_admin()) { ?>
|
<?php if (is_admin()) { ?>
|
||||||
<input type="hidden" name="wdts[module]" value="manage-post-transcripts" />
|
<input type="hidden" name="wdts[module]" value="manage-post-transcripts" />
|
||||||
@ -18,7 +28,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if (is_array($queued_transcripts) && !empty($queued_transcripts)) { ?>
|
<?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
|
<?php
|
||||||
foreach ($queued_transcripts as $transcript) {
|
foreach ($queued_transcripts as $transcript) {
|
||||||
$user = get_userdata($transcript['user_id']);
|
$user = get_userdata($transcript['user_id']);
|
||||||
@ -28,9 +38,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="wdts-<?php echo $approved_editor_id ?>">
|
<div id="wdts-<?php echo $approved_editor_id ?>">
|
||||||
<?php if (!is_admin()) { ?>
|
<?php wdts_header_wrapper(__('Edit Approved Transcripts:', 'what-did-they-say')) ?>
|
||||||
<h3 class="wdts"><?php _e('Edit Approved Transcripts:', 'what-did-they-say') ?></h3>
|
|
||||||
<?php } ?>
|
|
||||||
<div class="wdts-transcript-editor">
|
<div class="wdts-transcript-editor">
|
||||||
<label>
|
<label>
|
||||||
<?php _e('Language:', 'what-did-they-say') ?>
|
<?php _e('Language:', 'what-did-they-say') ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user