Files
sls/index.php
2024-12-14 11:54:27 +01:00

158 lines
11 KiB
PHP

<?php
session_start();
include 'i18n_setup.php';
/*include 'localize.php';
$domain = 'sentier';
localize($domain);
*/
include 'functions.php';
/*
_pr($_REQUEST); // [lang] => es_ES
_pr($_SESSION); // [language] => es_ES
_pr($_POST);
_pr($_GET); // [lang] => es_ES
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Sur le sentier: <?php echo gettext('photos taken during my walks'); ?>...">
<title>Sur le sentier...</title>
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="manifest" href="/icons/site.webmanifest">
<link rel="shortcut icon" href="/icons/favicon.ico">
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="vegas/js/vegas.min.js"></script>
<script src="js/matomo-sls.js"></script>
<link href='https://fonts.googleapis.com/css?family=Coming+Soon' rel='stylesheet' type='text/css'>
<!-- Patrick+Hand|Josefin+Sans|Coming+Soon|Comfortaa|Pontano+Sans|Rock+Salt -->
<link rel="stylesheet" type="text/css" href="vegas/js/vegas.min.css">
<link rel="stylesheet" type="text/css" href="vegas/js/vegas-style.css">
<link rel="stylesheet" type="text/css" href="css/sls.css">
<?php
//Get a list of file paths using the glob function.
$fileList = glob('vegas/img/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}', GLOB_BRACE);
$wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
?>
</head>
<body>
<script>
$("#exemple, body").vegas({
slides: [
<?php
foreach($fileList as $filename){
echo '{ src: "' . $filename . '" },' . "\r\n";
}
?>
],
animation: 'random',
animationDuration: '20000',
timer: false,
overlay: 'vegas/js/overlays/07.png'
});
/* 02 07 08 */
</script>
<div class="vegas-menu">
<div class="tweet-it">
<div class="icn">
<a title="Flickr" href="https://www.flickr.com/photos/funnymac/">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><path d="M500,10C229.4,10,10,229.5,10,500c0,270.6,219.4,490,490,490c270.6,0,490-219.4,490-490C990,229.5,770.6,10,500,10L500,10z M312.1,651.8c-85.2,0-154.3-69-154.3-154.2c0-85.2,69.1-154.2,154.3-154.2c85.2,0,154.2,69,154.2,154.2C466.3,582.9,397.3,651.8,312.1,651.8z M699.1,651.8c-85.2,0-154.2-69-154.2-154.2c0-85.2,69-154.2,154.2-154.2s154.2,69,154.2,154.2C853.3,582.9,784.3,651.8,699.1,651.8z"/></g>
</svg>
</a>
</div>
<div class="icn">
<a title="500px" href="https://500px.com/bruno_21">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><path d="M538.2,510.1c-11.8-8.5-24.2-16.1-38.4-19.6c-21.7-5.4-41.5-2.3-56.9,15.4c-12,13.7-17.7,29.9-17.6,49.3c0.1,1.8,0.3,4.6,0.5,7.5c2.3,26.9,20.3,47.1,46.3,51.9c14.3,2.6,28.2,0.7,41.7-4.6c28.8-11.2,50.8-31.4,70.8-54.1c1.5-1.7,0.8-2.5-0.4-3.7C569.8,537.1,555.1,522.3,538.2,510.1z"/><path d="M768.7,488.7c-18.2,2.4-33.2,11.4-47.3,22.2c-15.8,12.1-29,26.8-42.6,41.2c-1.8,1.9-1,2.9,0.3,4.4c9.5,10.7,19.4,21.1,30.6,30.1c18.6,15,38.7,26.5,63.2,28.8c27.6,2.6,50-10.4,59.9-35.4c3.4-8.7,4.9-17.7,4.9-28.3c0.1-2.6-0.3-6.5-0.8-10.4C832.7,506.6,803.4,484.1,768.7,488.7z"/><path d="M937.9,10H62.1C33.3,10,10,33.3,10,62.1v875.7c0,28.8,23.3,52.1,52.1,52.1h875.7c28.8,0,52.1-23.3,52.1-52.1V62.1C990,33.3,966.7,10,937.9,10z M899.5,607c-19.6,54.6-65.1,85.8-123.2,85.1c-35.4-0.4-65.6-14.1-93.2-35c-18-13.7-33.4-30-48.3-47c-2.5-2.8-3.7-3.5-6.7-0.3c-15.2,15.8-29.6,32.3-46.6,46.2c-21.5,17.6-45.3,30.7-73.2,34.5c-49.3,6.7-91.8-6.3-124.9-44.9c-7.5-8.8-13.1-18.7-17.8-29.3c-0.6-1.3-0.8-2.9-2.3-4c-6.5,14-14.5,26.9-25,38.1c-26.6,28.2-59.3,42.9-97.9,44.3c-27.9,1-55.3-2.6-80.7-14.7c-42.7-20.2-66.1-53.9-69-101.4c-0.2-3.6,0.8-4.6,4.4-4.5c22.9,0.2,45.9,0.2,68.9,0c3.4,0,4.4,1,5,4.4c4.4,26.2,18.5,44.4,44.9,51c36.8,9.1,70.6-11.7,80.3-49.6c6.5-25.5,3.7-49.9-13.2-71.2c-11.2-14.1-26.5-21-44.4-22.2c-25.8-1.8-46.8,6.7-62.1,28.1c-1.4,2-3.1,2.5-5.4,2.5c-20.7-0.1-41.4-0.1-62,0c-3.6,0-4.3-1-3.7-4.4c10.7-59.7,21.4-119.4,32-179.1c1.5-8.2,3-16.3,4.3-24.5c0.4-2.7,1.5-3.7,4.4-3.7c68.7,0.1,137.4,0.1,206.1,0c3.3,0,4,1.1,4,4.1c-0.1,18.4-0.2,36.8,0,55.2c0,3.8-0.9,4.8-4.7,4.8c-49.2-0.1-98.4,0-147.6-0.2c-4.1,0-5.9,0.7-6.7,5.3c-4.3,26.2-9.1,52.3-13.7,78.5c-0.2,1.1-1,2.6,0.2,3.3c1.3,0.8,2.1-0.8,2.9-1.6c22.5-21.7,50-28.3,80.4-26.7c29.2,1.6,54.1,12.5,74.6,33.3c8.6,8.7,15.2,18.7,20.6,29.6c0.6,1.2,1.2,2.4,2.2,4.5c5.8-15.3,13-28.7,23.1-40.2c22.3-25.4,50.5-39,84-42.1c47.2-4.4,86,13.9,120,44.9c14.1,12.8,26.5,27.2,38.8,41.8c2.6,3.1,3.7,3.4,6.5,0.1c15.8-18.7,31.5-37.5,50.8-52.7c22.4-17.5,47-30.2,75.6-33.5c70.6-8.3,129.6,30.2,144.7,103.1C912.1,547.2,910.1,577.5,899.5,607z"/></g>
</svg>
</a>
</div>
<div class="icn">
<a title="Instagram" href="https://www.instagram.com/bruno_pesenti/">
<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M11.999 7.377a4.623 4.623 0 1 0 0 9.248 4.623 4.623 0 0 0 0-9.248zm0 7.627a3.004 3.004 0 1 1 0-6.008 3.004 3.004 0 0 1 0 6.008z"/><circle cx="16.806" cy="7.207" r="1.078"/><path d="M20.533 6.111A4.605 4.605 0 0 0 17.9 3.479a6.606 6.606 0 0 0-2.186-.42c-.963-.042-1.268-.054-3.71-.054s-2.755 0-3.71.054a6.554 6.554 0 0 0-2.184.42 4.6 4.6 0 0 0-2.633 2.632 6.585 6.585 0 0 0-.419 2.186c-.043.962-.056 1.267-.056 3.71 0 2.442 0 2.753.056 3.71.015.748.156 1.486.419 2.187a4.61 4.61 0 0 0 2.634 2.632 6.584 6.584 0 0 0 2.185.45c.963.042 1.268.055 3.71.055s2.755 0 3.71-.055a6.615 6.615 0 0 0 2.186-.419 4.613 4.613 0 0 0 2.633-2.633c.263-.7.404-1.438.419-2.186.043-.962.056-1.267.056-3.71s0-2.753-.056-3.71a6.581 6.581 0 0 0-.421-2.217zm-1.218 9.532a5.043 5.043 0 0 1-.311 1.688 2.987 2.987 0 0 1-1.712 1.711 4.985 4.985 0 0 1-1.67.311c-.95.044-1.218.055-3.654.055-2.438 0-2.687 0-3.655-.055a4.96 4.96 0 0 1-1.669-.311 2.985 2.985 0 0 1-1.719-1.711 5.08 5.08 0 0 1-.311-1.669c-.043-.95-.053-1.218-.053-3.654 0-2.437 0-2.686.053-3.655a5.038 5.038 0 0 1 .311-1.687c.305-.789.93-1.41 1.719-1.712a5.01 5.01 0 0 1 1.669-.311c.951-.043 1.218-.055 3.655-.055s2.687 0 3.654.055a4.96 4.96 0 0 1 1.67.311 2.991 2.991 0 0 1 1.712 1.712 5.08 5.08 0 0 1 .311 1.669c.043.951.054 1.218.054 3.655 0 2.436 0 2.698-.043 3.654h-.011z"/>
</svg>
</a>
</div>
<div class="icn">
<!--a title="mail" href="mailto:contact.clicclac.info?subject=[Contact] sur-le-sentier.fr"-->host()
<a title="mail" href="/<?php echo $wp; ?>/contact/">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><path d="M956.7,141H43.3C24.9,141,10,155.9,10,174.2v651.5c0,18.3,14.9,33.3,33.3,33.3h913.5c18.3,0,33.3-14.9,33.3-33.3V174.2C990,155.9,975.1,141,956.7,141z M950.5,687L693.1,483.4c86.1-75,202.8-176.7,257.4-224.4V687L950.5,687z M950.5,180.4v26.3c-42.2,36.7-358.1,312.1-385.3,335.8c-27.6,24-54.8,26.6-65.2,26.6c-10.4,0-37.7-2.6-65.3-26.6c-27.2-23.7-343.1-299-385.3-335.8v-26.3H950.5L950.5,180.4z M309.6,485.7L49.5,691.4V259.1C104.7,307.2,223.3,410.5,309.6,485.7z M49.5,819.6v-77.9l290.4-229.6c35.8,31.2,62,54,69,60.1c37.6,32.8,76.3,36.3,91.2,36.3s53.6-3.5,91.2-36.3c7.2-6.3,34.5-30.1,71.7-62.4l287.7,227.5v82.3H49.5L49.5,819.6z"/></g>
</svg>
</a>
</div>
<div class="icn">
<?php //echo $host . "/" . $wp; ?>
<a title="rss" href="<?php host() . "/" . $wp; ?>/feed/">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><path d="M143.6,722.7c-37.1,0-68.7,13-94.7,39c-26,26-39,57.5-39,94.6c0,37.1,13,68.7,39,94.7c26,26,57.5,39,94.7,39s68.7-13,94.6-39c26-26,39-57.5,39-94.7c0-37.1-13-68.7-39-94.6C212.3,735.7,180.7,722.7,143.6,722.7z"/><path d="M451.2,548.7c-52.4-52.9-112.5-95-180.3-126.3c-67.7-31.3-138.7-50-213-56h-3.5c-12.1,0-22,3.9-29.9,11.8c-9.7,8.3-14.6,19.3-14.6,32.7v94c0,11.6,3.8,21.6,11.5,29.9c7.7,8.4,17.3,13,28.9,13.9c106.2,10.2,197.1,53,272.5,128.4c75.4,75.4,118.2,166.2,128.4,272.5c0.9,11.6,5.6,21.2,13.9,28.9c8.4,7.7,18.3,11.5,29.9,11.5h94c13.5,0,24.4-4.9,32.7-14.6c8.8-9.3,12.8-20.4,11.8-33.4c-6-74.2-24.7-145.2-56-212.9C546.2,661.2,504.1,601.1,451.2,548.7z"/><path d="M906.4,594.3c-49.6-111.1-117.8-209.8-204.6-296.1c-86.3-86.8-185-155-296.1-204.6C294.5,43.9,178.2,16.1,56.6,10h-2.1c-12.1,0-22.3,4.2-30.6,12.5c-9.3,8.3-13.9,19-13.9,32v99.5c0,11.6,4.1,21.7,12.2,30.3c8.1,8.6,18,13.1,29.6,13.6c99.8,6,194.5,29.7,284.3,71c89.8,41.3,167.7,95,233.8,161.1C636,496.2,689.7,574.1,731,663.9c41.3,89.8,64.7,184.5,70.3,284.3c0.5,11.6,5,21.5,13.6,29.6c8.6,8.1,18.9,12.2,31,12.2h99.5c13,0,23.6-4.6,32-13.9c9.3-9.3,13.4-20.2,12.5-32.7C983.9,821.8,956,705.4,906.4,594.3z"/></g>
</svg>
</a>
</div>
</div>
<h1> sur-le-sentier... </h1>
<div class="menu">
<div class="texte"><a href="/<?php echo $wp; ?>/" title="<?php echo gettext('Blog'); ?>"> <?php echo gettext('Go to the <span class="green">blog...</span>'); ?></a></div>
<div class="texte"><a href="/gallery/" title="<?php echo gettext('Gallery'); ?>"> <?php echo gettext('Visit the <span class="green">gallery...</span>'); ?></a></div>
<div class="texte"><a href="/piwigo/" title="<?php echo gettext('Piwigo'); ?>"> <?php echo gettext('Visit the <span class="green">Piwigo gallery...</span>'); ?></a></div>
<div class="texte"><a href="photo-du-mois.php" title="<?php echo gettext('This month'); ?>"> <?php echo gettext('Picture of the <span class="green">month</span> ...'); ?></a></div>
</div>
</div>
<div class="indexForm">
<form name="langSelect" action="index.php" method="post" >
<select name="lang" id="lang" class="mySelect">
<option value="">Language</option>
<option value="de_DE">German</option>
<option value="en_US">English</option>
<option value="es_ES">Spanish</option>
<option value="fr_FR">French</option>
</select>
<button type="submit" class="myButton">Ok</button>
</form>
</div>
<div class="vegas-info">
<?php echo gettext('Powered by'); ?> <a href="https://wordpress.org">WordPress</a> - <a href="https://www.zenphoto.org">Zenphoto</a> - <a href="https://vegas.jaysalvat.com">Vegas Background Slideshow 2</a>. <a href="">License des photos</a>. &copy; 2013-<?php echo date('Y'); ?> sur-le-sentier.fr
</div>
</body>
</html>