$string['parent'] = 'Show parent';
$string['parentofthispost'] = 'Parent of this post';
$string['postadded'] = '<p>Your post was successfully added.</p> <p>You have $a to edit it if you want to make any changes.</p>';
+$string['postaddedsuccess'] = 'Your post was successfully added.';
+$string['postaddedtimeleft'] = 'You have $a to edit it if you want to make any changes.';
$string['postincontext'] = 'See this post in context';
$string['postmailinfo'] = 'This is a copy of a message posted on the $a website.
* @return string
*/
function get_errors() {
- return '<p class="notifyproblem">'. $this->notify .'</p>';
+ if (!empty($this->notify)) {
+ return '<p class="notifyproblem">'. $this->notify .'</p>';
+ } else {
+ return null;
+ }
}
}
} else {
print_container_end_all(false, $THEME->open_header_containers);
}
- echo '<div style="text-align:center">';
- echo '<div>'. $message .'</div>';
- echo '<div>( <a href="'. $encodedurl .'">'. get_string('continue') .'</a> )</div>';
+ echo '<div id="redirect">';
+ echo '<div id="message">' . $message . '</div>';
+ echo '<div id="continue">( <a href="'. $encodedurl .'">'. get_string('continue') .'</a> )</div>';
echo '</div>';
if (!$errorprinted) {
$message .= get_string("postmailnow", "forum");
$timemessage = 4;
} else {
- $message .= '<br />'.get_string("postadded", "forum", format_time($CFG->maxeditingtime));
+ $message .= '<p>'.get_string("postaddedsuccess", "forum") . '</p>';
+ $message .= '<p>'.get_string("postaddedtimeleft", "forum", format_time($CFG->maxeditingtime)) . '</p>';
}
if ($forum->type == 'single') {
$message .= get_string("postmailnow", "forum");
$timemessage = 4;
} else {
- $message .= '<br />'.get_string("postadded", "forum", format_time($CFG->maxeditingtime));
+ $message .= '<p>'.get_string("postaddedsuccess", "forum") . '</p>';
+ $message .= '<p>'.get_string("postaddedtimeleft", "forum", format_time($CFG->maxeditingtime)) . '</p>';
}
if ($subscribemessage = forum_post_subscription($discussion)) {
visibility: hidden;
}
+#redirect {
+ text-align: center;
+}
+
+#redirect #message {
+
+}
+
+#redirect #continue {
+
+}
+
/* .clearfix {display: inline-table;} */
/* Hides from IE-mac \*/
background: #eee;
border: 1px dashed #ddd;
padding: 3px;
-}
\ No newline at end of file
+}