mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) )
|
||||
|
||||
@@ -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) )
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -77,8 +77,9 @@ A {
|
||||
A:hover {
|
||||
border-color: #f92;
|
||||
}
|
||||
#content {
|
||||
background-color: #eee;
|
||||
#content, DIV.content {
|
||||
/* All div similar to #content can be classified as content */
|
||||
background-color: #eee;
|
||||
border: 1px solid #69c;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user