diff options
author | vdigital <vdigital@piwigo.org> | 2007-01-10 21:26:23 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2007-01-10 21:26:23 +0000 |
commit | 2a9c48225dc8e065de71a9b077b1e935e10aa077 (patch) | |
tree | 8083993eb2126ae59d12d0a26598565b888a684a /plugins/admin_advices/main.inc.php | |
parent | 6e6e9615c75bdbe5a3a118625f43411cd8542801 (diff) |
Admin Advices now is p0w0 compliant (other themes as well coming).
Admin Advices random thumbnail is partly check (Name, Description, Author, creation date and metadata) well updated or not.
Tags relation will be checked asap for the thumbnail.
More : Thumbnail is directly linked to Modify picture Admin function to make it accurate.
git-svn-id: http://piwigo.org/svn/trunk@1709 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/admin_advices/main.inc.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/plugins/admin_advices/main.inc.php b/plugins/admin_advices/main.inc.php index 172cdf489..4e574424b 100644 --- a/plugins/admin_advices/main.inc.php +++ b/plugins/admin_advices/main.inc.php @@ -39,7 +39,7 @@ function set_admin_advice() // Random Thumbnail
$query = '
SELECT *
- FROM '.IMAGES_TABLE.'
+ FROM '.IMAGES_TABLE.'
ORDER BY RAND(NOW())
LIMIT 0, 1
;';
@@ -47,12 +47,28 @@ SELECT * $row = mysql_fetch_assoc($result);
if ( is_array($row) )
{
+ $url_modify = get_root_url().'admin.php?page=picture_modify'
+ .'&image_id='.$row['id'];
+ $url_check = get_themeconf('icon_dir').'/';
+ $url_uncheck = $url_check . 'uncheck';
+ $url_check .= 'check';
$template->assign_block_vars(
'thumbnail',
array(
'IMAGE' => get_thumbnail_url($row),
'IMAGE_ALT' => $row['file'],
'IMAGE_TITLE' => $row['name'],
+ 'METADATA' => (empty($row['date_metadata_update'])) ?
+ $url_uncheck : $url_check,
+ 'NAME' => (empty($row['name'])) ?
+ $url_uncheck : $url_check,
+ 'COMMENT' => (empty($row['comment'])) ?
+ $url_uncheck : $url_check,
+ 'AUTHOR' => (empty($row['author'])) ?
+ $url_uncheck : $url_check,
+ 'CREATE_DATE' => (empty($row['date_creation'])) ?
+ $url_uncheck : $url_check,
+ 'U_MODIFY' => $url_modify,
)
);
}
|