Skip to content

updated the web site for release 4.4.2 #1598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 0 additions & 70 deletions website/WebContent/archived-1.x.php

This file was deleted.

4 changes: 2 additions & 2 deletions website/WebContent/archived.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require 'fragments/file-list.php';
require 'fragments/file-buttons.php';
$version = "3.0";

if (isset ( $_GET ["ver"] ))
Expand Down Expand Up @@ -65,7 +65,7 @@

<a href="#top" scroll-to="top">Back to top</a>
<h3>Pick your OS architecture in the following list</h3>
<?php listFiles("V" . $version);
<?php echo listVersionFiles($version);
?>

<a href="#top" scroll-to="top">Back to top</a>
Expand Down
42 changes: 23 additions & 19 deletions website/WebContent/fragments/file-buttons.php
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
<?php
/*include '/eclipse/globals.txt';
$version = $STABLE_VERSION_MAJOR . "." . $STABLE_VERSION_MINOR;
$fullVersion = $version . "." . $STABLE_VERSION_PATCH;
$version = "4.4";
$fullVersion = "4.4.1";*/

function my_offset($curfile, $prefix) {
preg_match ( '/\d/', $curfile, $m, PREG_OFFSET_CAPTURE, strlen ( $prefix ) );
if (sizeof ( $m ))
return $m [0] [1];
return strlen ( $prefix );

function listFiles($os,$version,$fullVersion){
$listFilesOutput= internalListFiles("V" . $version . '_' . $os);
$listFilesOutput= $listFilesOutput . internalListFiles("V" . $fullVersion . '_' . $os);
$listFilesOutput= $listFilesOutput . internalListFiles("sloeber-ide-V" . $fullVersion . '-' . $os);
return $listFilesOutput;
}
function my_bitness($curfile, $prefix) {
return substr ( $curfile, my_offset ( $curfile, $prefix ), 2 );
function listVersionFiles($version){
$listFilesOutput= internalListFiles("V" . $version );
$listFilesOutput= $listFilesOutput . internalListFiles("sloeber-ide-V" . $version);
return $listFilesOutput;
}
function listFiles($prefix) {

function internalListFiles($prefix) {
include "files.php";
global $filter;
$filter = $prefix;
$lines=$lines." ".$prefix." ";
date_default_timezone_set ( 'UTC' );

$files = array_filter ( $files, "filter" );
sort ( $files );
$lines = array (
"32" => "",
"64" => ""
);
foreach ( $files as &$file ) {
$curfile = basename ( $file );
$bitness=my_bitness ( $curfile, $prefix );
$lines[$bitness]= '<div class="text-center col-md-4 col-md-offset-4">';
$lines[$bitness]= $lines[$bitness] . ' <a href="' . $file . '" class="btn btn-success btn-lg text-center">Download <b>' . $bitness . ' bits</b> Bundle <i class="glyphicon glyphicon-cloud-download"></i></a>';
$lines[$bitness]= $lines[$bitness] . '</div>';
$line= '<div class="text-center col-md-4 col-md-offset-4">';
$line= $line . ' <a href="' . $file . '" class="btn btn-success btn-lg text-center">Download <b>' . basename ( $file ) . '</b><i class="glyphicon glyphicon-cloud-download"></i></a>';
$line= $line . '</div>';
$lines=$lines.$line;
}
echo $lines [ "64" ];
echo $lines [ "32" ];
return $lines ;
}
function filter($file) {
global $filter;
Expand Down
65 changes: 0 additions & 65 deletions website/WebContent/fragments/file-list.php

This file was deleted.

5 changes: 5 additions & 0 deletions website/WebContent/fragments/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_1_0/V4.4.1_mac64.2022-09-05_06-48-31.zip",
"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_1_0/V4.4.1_win64.2022-09-05_06-48-31.zip",

"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_2_0/sloeber-ide-V4.4.2-linux.gtk.x86_64.tar.gz",
"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_2_0/sloeber-ide-V4.4.2-macosx.cocoa.aarch64.zip",
"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_2_0/sloeber-ide-V4.4.2-macosx.cocoa.x86_64.zip",
"https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_4_2_0/sloeber-ide-V4.4.2-win32.win32.x86_64.zip",

);

?>
5 changes: 3 additions & 2 deletions website/WebContent/fragments/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://forum.arduino.cc/index.php?topic=79595" target="_blank">Forum Discussion</a></li>
<li><a href="https://github.com/jantje/arduino-eclipse-plugin/issues" target="_blank">Report Issue</a></li>
<li><a href="https://github.com/Sloeber/arduino-eclipse-plugin/discussions" target="_blank">Forum Discussion</a></li>
<li><a href="https://github.com/jantje/arduino-eclipse-plugin/issues" target="_blank">Reported Issue</a></li>
<li><a href="https://github.com/jantje/arduino-eclipse-plugin" target="_blank"><img src="css/github.png" class="pull-right" height="20"/>Github</a></li>
<li><a href="https://github.com/Sloeber/arduino-eclipse-plugin/wiki" target="_blank">Github Wiki (for contributors)</a></li>
</ul>
</li>
</ul>
Expand Down
35 changes: 35 additions & 0 deletions website/WebContent/fragments/testFiles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
require 'file-buttons.php';
$version = "4.4";
$fullVersion=$version.".2";

?>

<!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">
<meta name="description" content="">
<link rel="shortcut icon" href="http://eclipse.baeyens.it/favicon.ico">
<title>test fileList</title>

<body role="document">


<p>Linux</p>
<?php
echo listFiles( "lin",$version,$fullVersion) . "AAAAAA";
?>

<p>Windows</p>
<?php
echo listFiles( "win",$version,$fullVersion). "AAAAAA";?>

<p>Mac</p>
<?php
echo listFiles( "mac",$version,$fullVersion). "AAAAAA";?>

</body>
</html>
2 changes: 1 addition & 1 deletion website/WebContent/globals.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$STABLE_VERSION_MAJOR=4;
$STABLE_VERSION_MINOR=4;
$STABLE_VERSION_PATCH=1;
$STABLE_VERSION_PATCH=2;
?>
10 changes: 2 additions & 8 deletions website/WebContent/index.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
This represents a completely <b>free and open</b> Arduino IDE alternative!<br>
Download the product, unpack and play!<br>
</p>
<h1>Sloeber V4.4.1 Support for bootloader and arduino way size (and lots of fixes)</h1>
<h1>Sloeber V4.4.2 contains some minor fixes among them incompatibility fixes with the latest eclipse </h1>
<p>Welcome to a next stage for your Arduino projects!</p>
<p>
<a href="learn.shtml" class="btn btn-primary btn-lg" role="button">Learn more &raquo;</a>
Expand All @@ -61,13 +61,7 @@
<a class="list-group-item" href="https://www.youtube.com/playlist?list=PLCSjf7QmP3TCOLIw0lMPbwHtKrO-nwfKG">Watch <b>videos</b> of other projects of Jantje</a>
</div>
</div>
<div class="col-md-4">
<h2><span class="glyphicon glyphicon-star" style="color:orange"></span>&nbsp;News</h2>
<div>
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/Arduino_jantje" height="400" data-widget-id="433339655606394880" data-chrome="nofooter noheader">Latest News</a>
<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>
</div>
</div>

<div class="col-md-4">
<h2><span class="glyphicon glyphicon-heart" style="color:red"></span>&nbsp;Help us!</h2>
<ul class="list-group">
Expand Down
Loading