+ $css_row = ( $i + 1) % 2 + 1;
+
+ if( "{$news_tab[$i]["name"]}" != "")
+ {
+ $height = 110;
+ $link1_tag = "
";
+ $link2_tag = " ";
+ $img_tag = " ";
+ $play_tag=" {$link1_tag}{$news_tab[$i]["name"]}
{$link2_tag}{$img_tag} ";
- $colspan_tag = "";
- }
- else
- {
- $play_tag = "";
- $cover_tag = "";
- $colspan_tag = "colspan=\"3\"";
- }
+ $colspan_tag = "";
+ }
+ else
+ {
+ $play_tag = "";
+ $cover_tag = "";
+ $colspan_tag = "colspan=\"3\"";
+ }
- if( $news_tab[$i]["news"] != "")
- {
- $news = "
{$news_tab[$i]["title"]}
{$news_tab[$i]["news"]}
";
- }
- else
- {
- $news = "
{$news_tab[$i]["title"]}
";
- }
+ if( $news_tab[$i]["news"] != "")
+ {
+ $news = "
{$news_tab[$i]["title"]}
{$news_tab[$i]["news"]}
";
+ }
+ else
+ {
+ $news = "
{$news_tab[$i]["title"]}
";
+ }
- echo "
+ echo "
{$news_tab[$i]["date"]}
".lmb_html_text_format( "{$news}")."
{$play_tag}
-";
- }
+ ";
+ }
- $data = ob_get_contents();
- ob_end_clean();
+ $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", "sprite-lm-logo2-border-220", $data, $skin_path);
-}
-
-
-
-/*--------------------------------------------------------------------------------------------------------------------*/
-/* Twitter Tab */
-/*--------------------------------------------------------------------------------------------------------------------*/
-
-function lmb_twitter_tab( $skin_path)
-{
- global $lmb_url_post;
-
-
- ob_start();
-
-
-
- echo "
-
-
-";
-
-/*
-
-
-
-
- echo "
-";
- */
-
- $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", "sprite-lm-logo1-border-220", $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);
}
@@ -1164,15 +1101,11 @@ function lmb_twitter_tab( $skin_path)
function lmb_main_body( $skin_path)
{
- lmb_welcome_tab( $skin_path);
+ lmb_welcome_tab( $skin_path);
- lmb_spacer(4);
+ lmb_spacer(4);
- lmb_news_tab( $skin_path);
-
- lmb_spacer(4);
-
- lmb_twitter_tab( $skin_path);
+ lmb_news_tab( $skin_path);
}
@@ -1183,13 +1116,13 @@ function lmb_main_body( $skin_path)
function lmb_main_page()
{
- global $lmb_tab;
+ global $lmb_tab;
- $skin_path = "/skin";
+ $skin_path = "/skin";
- lmb_header( 0, "Langueur Monotone - Home Page", "Home Page", "Langueur Monotone home page, entry point to information, news and links", "home page", 0, "{$skin_path}");
- lmb_main_body( $skin_path);
- lmb_footer( $skin_path);
+ lmb_header( 0, "Langueur Monotone - Home Page", "Home Page", "Langueur Monotone home page, entry point to information, news and links", "home page", 0, "{$skin_path}");
+ lmb_main_body( $skin_path);
+ lmb_footer( $skin_path);
}
@@ -1200,33 +1133,33 @@ function lmb_main_page()
function lmb_sitemap_item( $item_type, $page_url, $img_tab)
{
- global $lmb_url_pre;
- global $lmb_url_post;
+ global $lmb_url_pre;
+ global $lmb_url_post;
- echo "
-";
+ echo "
+ ";
- echo " http://{$lmb_url_pre}{$lmb_url_post}${page_url}
+ echo " http://{$lmb_url_pre}{$lmb_url_post}${page_url}
2013-08-20
weekly
0.5
-";
+ ";
- if( isset( $img_tab))
- {
- foreach( $img_tab as $img)
+ if( isset( $img_tab))
{
- echo "
+ foreach( $img_tab as $img)
+ {
+ echo "
http://{$lmb_url_pre}/{$img["url"]}
{$img["title"]}
-";
+ ";
+ }
}
- }
- echo "
-";
+ echo "
+ ";
}
@@ -1237,12 +1170,12 @@ function lmb_sitemap_item( $item_type, $page_url, $img_tab)
function lmb_sitemap_track( $play_type, $play_id, $play_priority, $track_id)
{
- $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
- $url = "?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}";
- $img_tab = array();
- $size = 1024;
+ $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
+ $url = "?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}";
+ $img_tab = array();
+ $size = 1024;
- lmb_sitemap_item( "track", "{$url}", $img_tab);
+ lmb_sitemap_item( "track", "{$url}", $img_tab);
}
@@ -1253,67 +1186,67 @@ function lmb_sitemap_track( $play_type, $play_id, $play_priority, $track_id)
function lmb_sitemap_play( $play_type, $play_id, $play_priority)
{
- $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
- $cover_path = "{$play_path}/covers";
- $extra_path = "{$play_path}/extras";
- $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority);
- $url = "?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}";
- $img_tab = array();
- $img_idx = 0;
+ $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
+ $cover_path = "{$play_path}/covers";
+ $extra_path = "{$play_path}/extras";
+ $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority);
+ $url = "?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}";
+ $img_tab = array();
+ $img_idx = 0;
- $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority);
+ $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority);
- $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-1-128.png";
- $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 1";
- $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-2-128.png";
- $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 2";
+ $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-1-128.png";
+ $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 1";
+ $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-2-128.png";
+ $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 2";
- /* Cover Dump */
+ /* Cover Dump */
- $cmd = "ls {$cover_path}/{$play_id}-cover-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort ";
- exec( $cmd, $cover_tab);
+ $cmd = "ls {$cover_path}/{$play_id}-cover-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort ";
+ exec( $cmd, $cover_tab);
- for( $i = 0, $j = 1; $i < count($cover_tab); $i++, $j++)
- {
- $cover_info_tab = explode( "-", $cover_tab[$i]);
- $nb = $cover_info_tab[1];
- $size = str_replace( ".png", "", $cover_info_tab[2]);
-
- $img_tab[$img_idx ]["url"] = "{$cover_path}/{$play_id}-{$cover_tab[$i]}";
- $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Cover {$nb} ({$size})";
- }
-
-
- /* Extra Dump */
-
- if( ! file_exists( "{$extra_path}/.hide" ))
- {
- $cmd = "ls {$extra_path}/{$play_id}-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort ";
- exec($cmd, $extra_tab);
-
- for( $i = 0, $j = 1; $i < count($extra_tab); $i++, $j++)
+ for( $i = 0, $j = 1; $i < count($cover_tab); $i++, $j++)
{
- $extra_info_tab = explode( "-", $extra_tab[$i]);
- $type = ucfirst( $extra_info_tab[0]);
- $nb = $extra_info_tab[1];
- $format = str_replace( "_", "/", $extra_info_tab[2]);
- $size = str_replace( ".png", "", $extra_info_tab[3]);
+ $cover_info_tab = explode( "-", $cover_tab[$i]);
+ $nb = $cover_info_tab[1];
+ $size = str_replace( ".png", "", $cover_info_tab[2]);
- $img_tab[$img_idx ]["url"] = "{$extra_path}/{$play_id}-{$extra_tab[$i]}";
- $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Extra - {$type} {$nb} ({$format}-{$size})";
+ $img_tab[$img_idx ]["url"] = "{$cover_path}/{$play_id}-{$cover_tab[$i]}";
+ $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Cover {$nb} ({$size})";
+ }
+
+
+ /* Extra Dump */
+
+ if( ! file_exists( "{$extra_path}/.hide" ))
+ {
+ $cmd = "ls {$extra_path}/{$play_id}-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort ";
+ exec($cmd, $extra_tab);
+
+ for( $i = 0, $j = 1; $i < count($extra_tab); $i++, $j++)
+ {
+ $extra_info_tab = explode( "-", $extra_tab[$i]);
+ $type = ucfirst( $extra_info_tab[0]);
+ $nb = $extra_info_tab[1];
+ $format = str_replace( "_", "/", $extra_info_tab[2]);
+ $size = str_replace( ".png", "", $extra_info_tab[3]);
+
+ $img_tab[$img_idx ]["url"] = "{$extra_path}/{$play_id}-{$extra_tab[$i]}";
+ $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Extra - {$type} {$nb} ({$format}-{$size})";
+ }
}
- }
- lmb_sitemap_item( "play", "{$url}", $img_tab);
+ lmb_sitemap_item( "play", "{$url}", $img_tab);
- $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority);
+ $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority);
- foreach( $track_list_info as $track_info)
- {
- lmb_sitemap_track( $play_type, $play_id, $play_priority, str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT));
- }
+ foreach( $track_list_info as $track_info)
+ {
+ lmb_sitemap_track( $play_type, $play_id, $play_priority, str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT));
+ }
}
@@ -1324,23 +1257,23 @@ function lmb_sitemap_play( $play_type, $play_id, $play_priority)
function lmb_sitemap_play_type( $play_type)
{
- $path = lmb_playtype_path_get( $play_type);
- $line = array();
- $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'";
+ $path = lmb_playtype_path_get( $play_type);
+ $line = array();
+ $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'";
- exec($cmd, $line);
+ exec($cmd, $line);
- for( $i = 0; $i < count($line); $i++)
- {
- $play_tab = explode( "-", $line[$i]);
- $play_priority = $play_tab[0];
- $play_id = $play_tab[1];
-
- if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ))
+ for( $i = 0; $i < count($line); $i++)
{
- lmb_sitemap_play( $play_type, $play_id, $play_priority);
- }
- }
+ $play_tab = explode( "-", $line[$i]);
+ $play_priority = $play_tab[0];
+ $play_id = $play_tab[1];
+
+ if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ))
+ {
+ lmb_sitemap_play( $play_type, $play_id, $play_priority);
+ }
+ }
}
@@ -1351,47 +1284,47 @@ function lmb_sitemap_play_type( $play_type)
function lmb_sitemap_page()
{
- global $lmb_myname;
- global $lmb_myver;
- global $time_start;
+ global $lmb_myname;
+ global $lmb_myver;
+ global $time_start;
- header( 'Content-Type: application/xml');
+ header( 'Content-Type: application/xml');
- echo "
+ echo "
-";
+ ";
- $img_tab = array();
- $size = 220;
- $img_tab[0]["url"] = "{$play_path}/images/lm_logo1-border-{$size}.png";
- $img_tab[0]["title"] = "Langueur Monotone - Logo 1 ({$size})";
+ $img_tab = array();
+ $size = 220;
+ $img_tab[0]["url"] = "{$play_path}/images/lm_logo1-border-{$size}.png";
+ $img_tab[0]["title"] = "Langueur Monotone - Logo 1 ({$size})";
- lmb_sitemap_item( "top", "", $img_tab);
+ lmb_sitemap_item( "top", "", $img_tab);
-// $img_tab = array();
-// lmb_sitemap_item( "page", "?page=rss", $img_tab);
+ // $img_tab = array();
+ // lmb_sitemap_item( "page", "?page=rss", $img_tab);
- $img_tab = array();
- $size = 220;
- $img_tab[0]["url"] = "{$play_path}/images/lm_logo2-border-{$size}.png";
- $img_tab[0]["title"] = "Langueur Monotone - Logo 2 ({$size})";
+ $img_tab = array();
+ $size = 220;
+ $img_tab[0]["url"] = "{$play_path}/images/lm_logo2-border-{$size}.png";
+ $img_tab[0]["title"] = "Langueur Monotone - Logo 2 ({$size})";
- lmb_sitemap_item( "page", "?page=about", $img_tab);
+ lmb_sitemap_item( "page", "?page=about", $img_tab);
- $img_tab = array();
- lmb_sitemap_item( "page", "?page=discography", $img_tab);
-
- lmb_sitemap_play_type( "ep", $img_tab);
- lmb_sitemap_play_type( "lp", $img_tab);
- lmb_sitemap_play_type( "oldies", $img_tab);
+ $img_tab = array();
+ lmb_sitemap_item( "page", "?page=discography", $img_tab);
+
+ lmb_sitemap_play_type( "ep", $img_tab);
+ lmb_sitemap_play_type( "lp", $img_tab);
+ lmb_sitemap_play_type( "oldies", $img_tab);
- $time_stop = microtime_float();
- $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000;
+ $time_stop = microtime_float();
+ $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000;
- echo "
+ echo "
";
}
@@ -1404,15 +1337,15 @@ function lmb_sitemap_page()
function lmb_rss_page()
{
- global $lmb_url_pre;
- global $lmb_myname;
- global $lmb_myver;
- global $time_start;
+ global $lmb_url_pre;
+ global $lmb_myname;
+ global $lmb_myver;
+ global $time_start;
- header( 'Content-Type: application/rss+xml');
+ header( 'Content-Type: application/rss+xml');
- echo "
+ echo "
@@ -1425,65 +1358,65 @@ function lmb_rss_page()
Langueur Monotone News Page
http://{$lmb_url_pre}/
-";
+ ";
$news_tab = lmb_news_tab_get();
for( $i=0; $i < count($news_tab); $i++)
{
- $news = lmb_xml_text_format( $news_tab[$i]["news"]);
- $pubdate = date("r", strtotime($news_tab[$i]["date"]));
+ $news = lmb_xml_text_format( $news_tab[$i]["news"]);
+ $pubdate = date("r", strtotime($news_tab[$i]["date"]));
- echo " -
-";
+ echo "
-
+ ";
- if( "{$news_tab[$i]["name"]}" != "")
- {
- echo "
{$news_tab[$i]["title"]}: {$news_tab[$i]["name"]}
-";
- }
- else
- {
- echo " {$news_tab[$i]["title"]}
-";
- }
+ if( "{$news_tab[$i]["name"]}" != "")
+ {
+ echo " {$news_tab[$i]["title"]}: {$news_tab[$i]["name"]}
+ ";
+ }
+ else
+ {
+ echo " {$news_tab[$i]["title"]}
+ ";
+ }
- echo " {$pubdate}
+ echo " {$pubdate}
Langueur Monotone
http://{$lmb_url_pre}/#$i
-";
+ ";
- if( "{$news_tab[$i]["name"]}" != "")
- {
- echo "
+ if( "{$news_tab[$i]["name"]}" != "")
+ {
+ echo "
{$news_tab[$i]["alink"]}";
- $data = "";
- }
- else
- {
- $data = "";
- }
+ $data = "";
+ }
+ else
+ {
+ $data = "";
+ }
- echo '
+ echo '
';
- echo "{$data}";
- echo ']]>
-';
- echo "
-";
- }
+ echo "{$data}";
+ echo '