From 632df6012d246d0a5e690cd3854b12209f8d5bdc Mon Sep 17 00:00:00 2001 From: agibert Date: Mon, 7 Sep 2015 19:23:56 +0000 Subject: [PATCH] - Add sprite support, - Add hover link effect, - Fix many display position bugs. --- html/lmbrowse.php | 497 ++++++++++++++-------------------------------- 1 file changed, 149 insertions(+), 348 deletions(-) diff --git a/html/lmbrowse.php b/html/lmbrowse.php index 9fb9b8e..65d9a5b 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -1,8 +1,8 @@ \"\"/"; - $logo_tag = "\"\"/"; + $tab_tag = "
"; + + if( $logo_path[0] == "/") + { + $logo_tag = "\"\"/"; + } + else + { + $logo_tag = "
"; + } if( "$tab_side" == "l") { @@ -570,13 +576,12 @@ function lmb_menu( $menu_id, $skin_path) { if( $i == $menu_id) { - echo " \"Home + echo "
"; } else { - - echo " + echo "
"; } break; @@ -586,12 +591,12 @@ function lmb_menu( $menu_id, $skin_path) { if( $i == $menu_id) { - echo " \"About\"/ + echo "
"; } else { - echo " + echo "
"; } break; @@ -601,12 +606,12 @@ function lmb_menu( $menu_id, $skin_path) { if( $i == $menu_id) { - echo " \"Discography\"/ + echo "
"; } else { - echo " + echo "
"; } break; @@ -620,7 +625,7 @@ function lmb_menu( $menu_id, $skin_path) if( $i < 2) { - echo " \"\"/ + echo " "; } } @@ -693,21 +698,17 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, echo " - + - -"; -/* - echo " -"; -*/ - - echo " + "; - echo " + echo " +"; + + echo " - + @@ -719,33 +720,32 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, echo " - - - - - - - + + + - + + +
\"\"/
\"\"/\"Langueur

Langueur Monotone

\"\"/

Langueur Monotone

\"\"/
\"\"/\"\"/
+ - + - + "; lmb_menu( $page_id, $skin_path); - echo " - + echo " +
\"\"/
\"\"/
@@ -787,34 +787,33 @@ function lmb_footer( $skin_path) - + - + - + - + @@ -2079,7 +2085,7 @@ function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path) $height = 220/$size; $file_tag = lmb_track_file_tag_get( "{$play_type}", "{$play_id}", "{$play_priority}", "00"); - $title_tag = ""; +// $title_tag = ""; echo " @@ -2106,14 +2112,15 @@ function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path) echo " "; - echo "{$file_tag} + echo "{$file_tag} "; } $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); +// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo1-96", $data, $skin_path); } @@ -2131,7 +2138,7 @@ function lmb_file_entry_print( $file_tab, $format_css_id, $size_css_id, $entry_t echo " - + "; lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); @@ -2278,7 +2285,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "covers", "covers", "l", "{$logo_path}-2-128.png", $data, $skin_path); + lmb_make_tab( "covers", "covers", "l", "/{$logo_path}-2-128.png", $data, $skin_path); } @@ -2351,7 +2358,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority, $skin_path) if( count($video_tab) == 0 || ( file_exists( "{$video_path}/.hide" ) && ! lmb_admin_is())) { echo " - + "; } @@ -2388,7 +2395,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority, $skin_path) $css_row = $i % 2 + 1; $entry_tag = " - + @@ -2402,7 +2409,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority, $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "videos", "videos", "r", "{$logo_path}-1-128.png", $data, $skin_path); + lmb_make_tab( "videos", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path); } @@ -2479,7 +2486,7 @@ function lmb_extralist( $play_type, $play_id, $play_priority, $skin_path) if( count($format_tab) == 0 || ( file_exists( "{$extra_path}/.hide" ) && ! lmb_admin_is())) { echo " - + "; } @@ -2533,7 +2540,7 @@ ${title_tag} - + @@ -2546,7 +2553,8 @@ ${title_tag} "; @@ -2779,7 +2797,7 @@ function lmb_play_page( $play_type, $play_id, $play_priority) $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority); $play_image = "{$play_type}"; $play_name = lmb_play_type_name_get( $play_type); - $skin_path = "/{$play_path}/skin"; + $skin_path = "{$play_path}/skin"; lmb_header( 3, "Langueur Monotone - {$play_title} Page", "{$play_title}", "Langueur Monotone play page, giving all the information about {$play_info["name"]} {$play_name}", "{$play_type},{$play_info["name"]}", 0, "{$skin_path}"); @@ -2833,14 +2851,15 @@ function lmb_tracklist_body( $skin_path) echo " "; - echo " + echo " "; } $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo2-96.png", $data, $skin_path); +// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo2-96.png", $data, $skin_path); + lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo2-96", $data, $skin_path); } @@ -2903,35 +2922,35 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) - + - + - + - + - + - + - + - + "; @@ -2939,7 +2958,7 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) { echo " - + "; } @@ -2968,7 +2987,7 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; - echo "
\"\"/ \"\"/
\"\"/
- - + - + @@ -917,7 +916,8 @@ function lmb_welcome_tab( $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); + lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm-logo1-border-220.png", $data, $skin_path); +// lmb_make_tab( "welcome", "welcome", "l", "sprite-lm-logo1-border-220", $data, $skin_path); } @@ -1001,10 +1001,11 @@ function lmb_news_tab( $skin_path) if( "{$news_tab[$i]["name"]}" != "") { $height = 110; - $link_tag = ""; - $img_tag = "\"\"/"; - $play_tag=" - "; + $link1_tag = " + "; $colspan_tag = ""; } else @@ -1035,7 +1036,8 @@ function lmb_news_tab( $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "news", "news", "r", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); +// lmb_make_tab( "news", "news", "r", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); + lmb_make_tab( "news", "news", "r", "sprite-lm-logo2-border-220", $data, $skin_path); } @@ -1060,7 +1062,7 @@ function lmb_twitter_tab( $skin_path) @@ -1084,7 +1086,8 @@ function lmb_twitter_tab( $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "twitter", "twitter", "l", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); +// lmb_make_tab( "twitter", "twitter", "l", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); + lmb_make_tab( "twitter", "twitter", "l", "sprite-lm-logo1-border-220", $data, $skin_path); } @@ -1443,7 +1446,8 @@ function lmb_about_tab( $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "about", "about", "l", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); +// lmb_make_tab( "about", "about", "l", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); + lmb_make_tab( "about", "about", "l", "sprite-lm-logo2-border-220", $data, $skin_path); } @@ -1489,7 +1493,8 @@ function lmb_history_tab( $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "history", "history", "r", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); +// lmb_make_tab( "history", "history", "r", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); + lmb_make_tab( "history", "history", "r", "sprite-lm-logo1-border-220", $data, $skin_path); } @@ -1580,7 +1585,7 @@ function lmb_playlist_cur( $play_type, $path, $row, $skin_path) $url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; - echo " + echo " "; } else @@ -1611,11 +1616,11 @@ function lmb_playlist_next( $play_type, $path, $row, $skin_path) if( ( count($tab) > 4 ) && ( "{$tab[4]}" != "")) { - $icon = "{$skin_path}/images/{$tab[4]}"; + $icon_tag = "\"\"/"; } else { - $icon = "{$skin_path}/images/unknown-cover-96.png"; + $icon_tag = "
"; } $css_row = ($row + 1) % 2 + 1; @@ -1629,7 +1634,7 @@ function lmb_playlist_next( $play_type, $path, $row, $skin_path) $comment = ""; } - echo "
+ echo " "; } } @@ -1652,7 +1657,8 @@ function lmb_playlist( $play_type, $side, $skin_path) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "{$play_type}", "play", $side, "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); +// lmb_make_tab( "{$play_type}", "play", $side, "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "{$play_type}", "play", $side, "sprite-lm-logo1-96", $data, $skin_path); } @@ -1722,7 +1728,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
- + - - + "; echo "
+ - - + - + - +
   
   
+ @@ -822,30 +821,30 @@ function lmb_footer( $skin_path) if( lmb_admin_is()) { - echo " - + echo " + - + - + - + - + - + - + - + "; } else @@ -853,8 +852,8 @@ function lmb_footer( $skin_path) echo " @@ -869,18 +868,18 @@ function lmb_footer( $skin_path)
   
   
   
   
   
   
   
- +
- - +
+
Page generated in $time_elaps seconds by {$lmb_myname} V {$lmb_myver}Page generated in $time_elaps seconds by V {$lmb_myver}
\"\"/
\"\"/
{$link_tag}{$news_tab[$i]["name"]}{$link_tag}{$img_tag}{$link1_tag}{$news_tab[$i]["name"]}{$link2_tag}{$img_tag}
  - Tweets by @langueurmon +  
\"\"/{$play_info["name"]} {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]} 
\"\"/ {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]} 
\"\"/{$tab[0]} {$tab[1]} {$tab[2]} {$comment} 
{$icon_tag}{$tab[0]} {$tab[1]} {$tab[2]} {$comment} 
- +
\"\"/\"\"/
@@ -1766,7 +1772,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) - +
\"\"/\"\"/
@@ -1944,7 +1950,7 @@ function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id $size_tab = lmb_size_convert( filesize( "{$file_url}")); } - $file_tag = "{$file_tag}
{$file_type} {$file_subtype}
(${size_tab["size"]} {$size_tab["unit"]})
"; + $file_tag = "{$file_tag}
(${size_tab["size"]} {$size_tab["unit"]})
"; } $file_tag = "{$file_tag}
 \"\"/ \"\"/
 {$track_info["id"]}  {$track_info["title"]}  {$track_info["mix"]}  {$track_info["length"]}  {$track_info["composer"]}  {$track_info["comment"]} 
 {$track_info["id"]}      {$track_info["length"]}  {$track_info["composer"]}  {$track_info["comment"]} 
- +
{$file["format"]}
(${file["size"]} {$file["unit"]})
@@ -2267,7 +2274,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) $css_row = $i % 2 + 1; $entry_tag = "
\"\"/\"\"/  {$sheet_name} 
  
\"\"/ No video found... 
 No video found... 
  
\"\"/\"\"/  {$video_id}   {$video_track_name}   {$video_mix_name} 
  
\"\"/ No extra found... 
 No extra found... 
  
&nbs $css_row = $i % 2 + 1; $entry_tag = "
\"\"/\"\"/  {$extra_type}   {$extra_subid}   {$extra_format} &nbs $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "extras", "extras", "l", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); +// lmb_make_tab( "extras", "extras", "l", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "extras", "extras", "l", "sprite-lm-logo1-96", $data, $skin_path); } @@ -2598,12 +2606,22 @@ function lmb_links_tab( $play_type, $play_id, $play_priority) $attr = ""; } + if( $image[0] == "/") + { + $image_tag = "\"\"/"; + } + else + { + $image_tag = "
"; + } + + echo "
- {$text} + - \"\"/ +
 {$row}  {$track_title}  {$track_mix}  {$track_length}  {$play_type_name}  {$track_album} 
 {$row}      {$track_length}  {$play_type_name}   
Group Name{$track_info["artist"]}
Album{$track_info["album"]}
Track Number{$track_info["id"]}
{$track_info["id"]}
Track Name{$track_info["title"]}
{$track_info["title"]}
Mix Name{$track_info["mix"]}
{$track_info["mix"]}
Composer{$track_info["composer"]}
{$track_info["composer"]}
Comment{$track_info["comment"]}
{$track_info["comment"]}
Length{$track_info["length"]}
{$track_info["length"]}
Safe CreativeLink
+ echo "
@@ -3036,7 +3055,7 @@ function lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id) /* JPlayer Insert */ /*--------------------------------------------------------------------------------------------------------------------*/ -function lmb_jplayer_insert2( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) +function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) { global $lmb_cookie_tab; global $lmb_url_pre; @@ -3071,23 +3090,23 @@ function lmb_jplayer_insert2( $play_type, $play_id, $play_priority, $track_id, $ if( "{$solution_value}" == "html, flash") { - $html_class = "jp-on"; - $flash_class = "jp-off"; - $native_class = "jp-off"; + $html_class = "link-item-disabled"; + $flash_class = "link-item"; + $native_class = "link-item"; } else { if( "{$solution_value}" == "flash, html") { - $html_class = "jp-off"; - $flash_class = "jp-on"; - $native_class = "jp-off"; + $html_class = "link-item"; + $flash_class = "link-item-disabled"; + $native_class = "link-item"; } else { - $html_class = "jp-off"; - $flash_class = "jp-off"; - $native_class = "jp-on"; + $html_class = "link-item"; + $flash_class = "link-item"; + $native_class = "link-item-disabled"; } } @@ -3098,7 +3117,7 @@ function lmb_jplayer_insert2( $play_type, $play_id, $play_priority, $track_id, $ - @@ -3524,7 +3325,7 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac
+ "; - lmb_jplayer_insert2( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); + lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); echo "
-
+ @@ -3545,7 +3346,7 @@ echo "
- +
\"\"/\"\"/
@@ -3588,7 +3389,7 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t - +
\"\"/
@@ -3663,10 +3464,10 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t $css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3; echo " - - + + - + "; } @@ -3719,7 +3520,7 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $skin_path = "/{$play_path}/skin"; + $skin_path = "{$play_path}/skin"; $track_title = lmb_title_get( $play_type, $play_id, $play_priority, $track_id); $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id);
{$mix_tab[$k]["track_name"]}{$hide_flag}{$mix_tab[$k]["mix_name"]} {$mix_tab[$k]["play_type_name"]}{$mix_tab[$k]["play_name"]}