3 Commits

Author SHA1 Message Date
6c119a448f - Update Twiter code. 2022-06-21 11:48:00 +02:00
6516ba3a7a - Update Google Analytics code. 2021-12-01 14:55:10 +01:00
8ebd42e83e - Now use 400px cover size instead of 256px. 2021-06-07 11:53:44 +02:00

View File

@@ -1,13 +1,13 @@
<? <?
// $RCSfile: lmbrowse.php,v $ // $RCSfile: lmbrowse.php,v $
// $Revision: 1.17 $ // $Revision: 1.17 $
// $Name: lmbrowse-1_7_1-1 $ // $Name: lmbrowse-1_7_2-1 $
// $Date: 2016/03/21 16:07:30 $ // $Date: 2016/03/21 16:07:30 $
// $Author: agibert $ // $Author: agibert $
/* /*
* LMBrowse - Langueur Monotone Browser * LMBrowse - Langueur Monotone Browser
* Copyright (C) 2012-2020 Arnaud G. GIBERT * Copyright (C) 2012-2022 Arnaud G. GIBERT
* mailto:arnaud@rx3.net * mailto:arnaud@rx3.net
* http://www.rx3.org/dvp/lmbrowse * http://www.rx3.org/dvp/lmbrowse
* *
@@ -41,7 +41,7 @@ $time_start = microtime_float();
include "lmbrowse_config.inc"; include "lmbrowse_config.inc";
$lmb_myname="LMBrowse"; $lmb_myname="LMBrowse";
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_1-1 $"); $lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_4-1 $");
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]); $lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
$lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", "."); $lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", ".");
@@ -668,15 +668,11 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skin_path}/default.css\"/> <link rel=\"stylesheet\" type=\"text/css\" href=\"{$skin_path}/default.css\"/>
<link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.css\"/> <link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.css\"/>
<title>$page_name</title> <title>$page_name</title>
</head>
"; ";
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
";
if( $lmb_ga_enable == true) if( $lmb_ga_enable == true)
{ {
/*
echo "<script> echo "<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -687,9 +683,28 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
ga('send', 'pageview'); ga('send', 'pageview');
</script> </script>
";
*/
echo " <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-37642754-1\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-37642754-1');
</script>
"; ";
} }
echo " </head>
";
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\"> echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\">
<tbody> <tbody>
<tr> <tr>
@@ -1098,6 +1113,7 @@ function lmb_twitter_tab( $skin_path)
ob_start(); ob_start();
echo " <tr class=\"twitter1\"> echo " <tr class=\"twitter1\">
<td class=\"twitter01\"></td> <td class=\"twitter01\"></td>
<td class=\"twitter0\"></td> <td class=\"twitter0\"></td>
@@ -1106,8 +1122,10 @@ function lmb_twitter_tab( $skin_path)
<tr class=\"twitter1\"> <tr class=\"twitter1\">
<td class=\"twitter01\">&nbsp;</td> <td class=\"twitter01\">&nbsp;</td>
<td class=\"twitter0\"> <td class=\"twitter0\">
<div class=\"button-item\" style=\"display: inline-block; border-radius: 5px;\"><a class=\"twitter-timeline\" href=\"https://twitter.com/langueurmon\" data-widget-id=\"544258336741670912\">Tweets by @langueurmon</a></div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script> <a class=\"twitter-timeline\" data-width=\"640\" data-height=\"900\" data-theme=\"dark\" href=\"https://twitter.com/langueurmon?ref_src=twsrc%5Etfw\">Tweets by langueurmon</a>
<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>
</td> </td>
<td class=\"twitter01\">&nbsp;</td> <td class=\"twitter01\">&nbsp;</td>
</tr> </tr>
@@ -1119,6 +1137,10 @@ function lmb_twitter_tab( $skin_path)
"; ";
/* /*
<div class=\"button-item\" style=\"display: inline-block; border-radius: 5px;\"><a class=\"twitter-timeline\" href=\"https://twitter.com/langueurmon\" data-widget-id=\"544258336741670912\">Tweets by @langueurmon</a></div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script>
echo " <tr class=\"twitter1\"> echo " <tr class=\"twitter1\">
<td class=\"twitter01\"></td> <td class=\"twitter01\"></td>
<td class=\"twitter1\">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</td> <td class=\"twitter1\">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</td>
@@ -1772,7 +1794,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-1-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-1-256.png\" alt=\"\"/></a></td> <td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-1-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-1-400.png\" alt=\"\"/></a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -1816,7 +1838,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-2-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-2-256.png\" alt=\"\"/></a></td> <td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-2-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-2-400.png\" alt=\"\"/></a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -2686,7 +2708,7 @@ ${title_tag} <td class=\"extras4\">&nbs
$css_row = $i % 2 + 1; $css_row = $i % 2 + 1;
$entry_tag = " <tr class=\"extras{$css_row}\" style=\"height: {$height}px\"> $entry_tag = " <tr class=\"extras{$css_row}\" style=\"height: {$height}px\">
<td class=\"extras1\"><a href=\"{$file_tab[1]["url"]}\"><img class=\"button-item\" src=\"{$extra_prefix}-icon.png\" alt=\"\"/></a></td> <td class=\"extras1\"><a href=\"{$file_tab[2]["url"]}\"><img class=\"button-item\" src=\"{$extra_prefix}-icon.png\" alt=\"\"/></a></td>
<td class=\"extras2\">&nbsp;{$extra_type}&nbsp;</td> <td class=\"extras2\">&nbsp;{$extra_type}&nbsp;</td>
<td class=\"extras3\">&nbsp;{$extra_subid}&nbsp;</td> <td class=\"extras3\">&nbsp;{$extra_subid}&nbsp;</td>
<td class=\"extras4\">&nbsp;{$extra_format}&nbsp;</td> <td class=\"extras4\">&nbsp;{$extra_format}&nbsp;</td>