- Add skins directory structure,

- Add skin black example (default.css and sprites css),
- Fix a bug for .hide system for track listing.
This commit is contained in:
agibert 2015-12-16 23:24:12 +00:00
parent a58dfaa33b
commit 8e5a746fc2
2 changed files with 12 additions and 1811 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
<? <?
// $RCSfile: lmbrowse.php,v $ // $RCSfile: lmbrowse.php,v $
// $Revision: 1.17 $ // $Revision: 1.18 $
// $Name: $ // $Name: $
// $Date: 2015/12/04 16:07:30 $ // $Date: 2015/12/16 23:24:12 $
// $Author: agibert $ // $Author: agibert $
/* /*
@ -1866,7 +1866,7 @@ function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id)
$min = intval( $total / 60); $min = intval( $total / 60);
$sec = $total - $min * 60; $sec = $total - $min * 60;
$track_info["length"] = "{$min}' {$sec}\""; $track_info["length"] = sprintf( '%02d\' %02d"', $min, $sec);
$track_info["duration"] = "PT{$min}M{$sec}S"; $track_info["duration"] = "PT{$min}M{$sec}S";
$track_info["safe_creative"] = $tab[10]; $track_info["safe_creative"] = $tab[10];
@ -2831,7 +2831,7 @@ function lmb_tracklist_body( $skin_path)
$size = $track_nb + 1; $size = $track_nb + 1;
$height = 220/$size; $height = 220/$size;
for( $i = 0, $row = 1; $i < $track_nb; $i++, $row++) for( $i = 0, $row = 1; $i < $track_nb; $i++)
{ {
$css_row = ($row+1)%2+1; $css_row = ($row+1)%2+1;
@ -2848,11 +2848,17 @@ function lmb_tracklist_body( $skin_path)
$play_url = "{$lmb_url_post}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}"; $play_url = "{$lmb_url_post}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}";
$track_url = "{$lmb_url_post}?page=track&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}&amp;tid={$track_id}"; $track_url = "{$lmb_url_post}?page=track&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}&amp;tid={$track_id}";
$path = lmb_playtype_path_get( $play_type);
echo " <tr class=\"tracks{$css_row}\" style=\"height: {$height}px;\">"; if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ))
{
echo "<td class=\"tracks1\">&nbsp;{$row}&nbsp;</td><td class=\"tracks2\">&nbsp;<div class=\"link-item\"><a href=\"{$track_url}\">{$track_title}</a></div>&nbsp;</td><td class=\"tracks3\">&nbsp;<div class=\"link-item\"><a href=\"{$track_url}\">{$track_mix}</a></div>&nbsp;</td><td class=\"tracks3\">&nbsp;{$track_length}&nbsp;</td><td class=\"tracks3\">&nbsp;{$play_type_name}&nbsp;</td><td class=\"tracks3\">&nbsp;<div class=\"link-item\"><a href=\"{$play_url}\">{$track_album}</a></div>&nbsp;</td></tr> echo " <tr class=\"tracks{$css_row}\" style=\"height: {$height}px;\">";
echo "<td class=\"tracks1\">&nbsp;{$row}&nbsp;</td><td class=\"tracks2\">&nbsp;<div class=\"link-item\"><a href=\"{$track_url}\">{$track_title}</a></div>&nbsp;</td><td class=\"tracks3\">&nbsp;<div class=\"link-item\"><a href=\"{$track_url}\">{$track_mix}</a></div>&nbsp;</td><td class=\"tracks3\">&nbsp;{$track_length}&nbsp;</td><td class=\"tracks3\">&nbsp;{$play_type_name}&nbsp;</td><td class=\"tracks3\">&nbsp;<div class=\"link-item\"><a href=\"{$play_url}\">{$track_album}</a></div>&nbsp;</td></tr>
"; ";
$row++;
}
} }
$data = ob_get_contents(); $data = ob_get_contents();