aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/admin_advices/admin_advices.tpl22
-rw-r--r--plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php2
-rw-r--r--plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php2
-rw-r--r--plugins/admin_advices/main.inc.php18
4 files changed, 40 insertions, 4 deletions
diff --git a/plugins/admin_advices/admin_advices.tpl b/plugins/admin_advices/admin_advices.tpl
index 0122663ec..f6e9d98c9 100644
--- a/plugins/admin_advices/admin_advices.tpl
+++ b/plugins/admin_advices/admin_advices.tpl
@@ -1,6 +1,6 @@
<!-- $Id: admin_advices.tpl 939 2005-11-17 20:13:36Z VDigital $ -->
-<div style="list-style-type:none; margin: 0 1em 0 14.5em; border: 1px solid;">
+<div class="content" style="list-style-type:none; margin: 0 1em 0 14.5em; border: 1px solid;">
<h2 style="font-weight: bold; padding-left: 2em;">{lang:About}: {ADVICE_ABOUT}</h2>
<h3 style="text-align: left; padding-left: 3em;">{ADVICE_TEXT}</h3>
<table>
@@ -8,10 +8,26 @@
<!-- BEGIN More -->
{More.ADVICE} <br />
<!-- END More -->
- </td><td style="text-align: left; width:30%;">
+ </td><td style="text-align: left; width:15%;">
<!-- BEGIN thumbnail -->
+ <a href="{thumbnail.U_MODIFY}" alt="{lang:link_info_image}">
<img class="thumbnail" src="{thumbnail.IMAGE}"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"></a>
+ </td><td style="text-align: left; width:15%;">
+ <img src="{thumbnail.NAME}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Name}<br />
+ <img src="{thumbnail.COMMENT}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Description}<br />
+ <img src="{thumbnail.AUTHOR}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Author}<br />
+ <img src="{thumbnail.CREATE_DATE}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Creation date}<br />
+ <img src="{thumbnail.METADATA}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Metadata}<br />
+<!-- DEGING miss_Tags
+ <img src="{thumbnail.TAGS}.png"
+ alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Tags}
+ END miss_Tags -->
<!-- END thumbnail -->
</td></tr>
</table>
diff --git a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php b/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php
index 0e78a6c6c..4c8adf87e 100644
--- a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php
+++ b/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php
@@ -29,6 +29,8 @@
//$lang_info['charset'] = 'iso-8859-1';
//$lang_info['direction'] = 'ltr';
//$lang_info['code'] = 'en';
+global $lang;
+$lang['Metadata'] = 'Metadata';
foreach ($conf as $key => $value)
{
if ( is_string($value) )
diff --git a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php b/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php
index d8b4d5ee3..4b824f91f 100644
--- a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php
+++ b/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php
@@ -29,6 +29,8 @@
//$lang_info['charset'] = 'iso-8859-1';
//$lang_info['direction'] = 'ltr';
//$lang_info['code'] = 'fr';
+global $lang;
+$lang['Metadata'] = 'Méta-données';
foreach ($conf as $key => $value)
{
if ( is_string($value) )
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'
+ .'&amp;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,
)
);
}