From e0711ef912c97b8c5cb5e27d5e395c98804a464b Mon Sep 17 00:00:00 2001
From: Nigel Osborne
Date: Sat, 1 Jan 2011 23:13:59 +0000
Subject: Add "Help for this page" link
---
admin_media.php | 8 +++++---
themes/_administration/images/help.jpg | Bin 731 -> 0 bytes
themes/_administration/images/help.png | Bin 0 -> 1049 bytes
themes/_administration/style.css | 2 ++
themes/_administration/theme.php | 2 +-
5 files changed, 8 insertions(+), 4 deletions(-)
delete mode 100644 themes/_administration/images/help.jpg
create mode 100644 themes/_administration/images/help.png
diff --git a/admin_media.php b/admin_media.php
index d017bdc45b..e0dd891a43 100644
--- a/admin_media.php
+++ b/admin_media.php
@@ -306,13 +306,13 @@ if (check_media_structure()) {
// Check if Media Directory is writeable or if Media features are enabled
// If one of these is not true then do not continue
if (!dir_is_writable($MEDIA_DIRECTORY) || !$MULTI_MEDIA) {
- echo "";
+ echo "";
echo WT_I18N::translate('Uploading media files is not allowed because multi-media items have been disabled or because the media directory is not writable.');
- echo "
";
+ echo "
";
} else {
show_mediaUpload_form(WT_SCRIPT_NAME, $showthumb); // We have the green light to upload media, echo the form
}
- echo "
";
+ echo "";
ob_start(); // Save output until action table has been printed
@@ -764,6 +764,8 @@ if (check_media_structure()) {
$savedOutput = ob_get_clean();
+ // "Help for this page" link
+ echo '', help_link('manage_media'), '
';
?>