Skip to content

Commit 78a6923

Browse files
committed
fdbdf
1 parent 72ae4c9 commit 78a6923

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

skins/ui_elements.class.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ public static function albumTrack($data, $bookmarks) {
108108
print '<div class="playable '.$class.' ninesix draggable indent containerbox vertical-centre" name="'.rawurlencode($data['uri']).'">';
109109
}
110110

111+
if ($data['lm'] != null && $data['lastplayed'] == 0) {
112+
// Add a "new" icon if Last-Modified is less than a month ago and it hasn't been played
113+
if (is_numeric($data['lm'])) {
114+
$age = time() - $data['lm'];
115+
} else {
116+
$age = time() - strtotime($data['lm']);
117+
}
118+
if ($age < 2592000) {
119+
print '<i class="inline-icon fixed icon-sun"></i>';
120+
}
121+
}
122+
111123
print domainIcon($d, 'inline-icon');
112124

113125
print '<div class="tracknumber fixed '.$data['trackno_width'].'">';

0 commit comments

Comments
 (0)