aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-11-07 18:48:38 +0000
committervdigital <vdigital@piwigo.org>2008-11-07 18:48:38 +0000
commitee8b8bb9cc645fc00d01cba62073776fdbd963ec (patch)
treefa3992b1f30fc3330910e0c8dda004d323e68c70
parent2f586c6791ee2d07e71245d308e2c7f1158b2b7d (diff)
New: Extend of available fields within a category page for a template-extension simple usage.
Refer to topic: "Smoothgallery plugin" where no plugin is requested to do it. git-svn-id: http://piwigo.org/svn/branches/2.0@2840 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php17
-rw-r--r--template/yoga/theme/Sylvia/theme.css26
2 files changed, 30 insertions, 13 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 5ee88a275..b46b8465c 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -112,6 +112,23 @@ foreach ($pictures as $row)
'TN_TITLE' => get_thumbnail_title($row),
'ICON_TS' => get_icon($row['date_available']),
'URL' => $url,
+
+ /* Fields for template-extension usage */
+ 'FILE_PATH' => $row['path'],
+ 'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'),
+ 'FILE_CREATED' => (empty($row['date_creation'])) ?
+ '-': format_date($row['date_creation'], 'mysql_datetime'),
+ 'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'],
+ 'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'],
+ 'FILE_HIT' => $row['hit'],
+ 'FILE_SIZE' => (empty($row['filesize'])) ? '-' : $row['filesize'],
+ 'FILE_WIDTH' => (empty($row['width'])) ? '-' : $row['width'],
+ 'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'],
+ 'FILE_METADATE' => (empty($row['date_metadata_update'])) ?
+ '-': format_date($row['date_metadata_update'], 'mysql_datetime'),
+ 'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'],
+ 'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
+ true:false, /* lack of include/functions_picture.inc.php */
);
if ($user['show_nb_hits'])
diff --git a/template/yoga/theme/Sylvia/theme.css b/template/yoga/theme/Sylvia/theme.css
index 75e28a00a..63b05e741 100644
--- a/template/yoga/theme/Sylvia/theme.css
+++ b/template/yoga/theme/Sylvia/theme.css
@@ -38,7 +38,7 @@ BODY {
min-width: 100%;
}
#mbIdentification p, .totalImages {
- color: #333;
+ color:#333;
}
.header_msgs {
background:transparent url(images/header_msgs-bg.gif) repeat scroll right top;
@@ -102,7 +102,7 @@ BODY {
font-size: 100%;
}
#menubar UL {
- color: #333;
+ color:#333;
font-size: 16px;
line-height: 15px;
}
@@ -227,7 +227,7 @@ BODY {
background-color:#111;
}
.infos {
- color: #f70;
+ color:#f70;
border:0;
background-color: transparent;
margin-left:125px;
@@ -239,7 +239,7 @@ BODY {
list-style-type:none;
}
.errors {
- color: #f30;
+ color:#f30;
border:0;
background-color: transparent;
margin-left:125px;
@@ -257,8 +257,8 @@ H2 {
border-bottom: 1px solid #000000;
}
#qsearchInput {
- border-color: #222;
- color: #222;
+ border-color:#222;
+ color:#222;
}
FIELDSET, INPUT, SELECT, TEXTAREA {
border: 1px solid #666;
@@ -269,22 +269,22 @@ input[type="text"], input[type="password"], input[type="button"], input[type="su
} /* stupid Line but needed due to inpact on other themes and deadline of Piwigo 2.0 */
INPUT, select, textarea {
color:#999;
- background-color: #444;
+ background-color:#444;
}
input[type="radio"], input[type="checkbox"], input[type="button"].rateButtonStarEmpty, input[type="button"].rateButtonStarFull {
background-color: transparent;
}
#qsearchInput:focus, input:focus, select:focus, textarea:focus, input.focus, form .focus {
background-color:#444;
- color: #999;
+ color:#999;
}
.content UL.thumbnails SPAN.wrap2 {
border: 1px solid #666; /* thumbnails border color and style */
border-radius: 4px 4px; /* round corners with CSS3 compliant browsers */
}
.content UL.thumbnails SPAN.wrap2:hover {
- color: #666;
- background-color: #111;
+ color:#666;
+ background-color:#111;
border:1px solid #ff3363; /* thumbnails border color when mouse cursor is over it */
}
#comments ul.actions li, #comments ul.actions li:hover {
@@ -298,7 +298,7 @@ A, INPUT.rateButton {
border-width: 0;
}
A:hover, A:active {
- color: #f33;
+ color:#f33;
border-bottom: 1px solid #f33;
cursor: pointer;
}
@@ -333,9 +333,9 @@ A:hover, A:active {
input[type="button"], input[type="submit"], input[type="reset"] {
color:#ff3363;
background-color:#222;
- border-color: #ff3363;
+ border-color:#ff3363;
}
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
color:#999;
- border-color: #666;
+ border-color:#666;
} \ No newline at end of file