Use newer site layout
diff --git a/.project b/.project
index 2e0f909..3beefbd 100644
--- a/.project
+++ b/.project
@@ -1,11 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>swtbot</name>
+ <name>swtbot-website</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
diff --git a/_index.html b/_index.html
new file mode 100644
index 0000000..903d7b4
--- /dev/null
+++ b/_index.html
@@ -0,0 +1,64 @@
+<div id="bigbuttons">
+ <h3>Primary Links</h3>
+ <ul>
+ <li><a id="buttonDownload" href="http://wiki.eclipse.org/SWTBot#Latest_snapshot_build" title="Download">Eclipse
+ Distribution, Update Site, Dropins</a></li>
+ <li><a id="buttonDocumentation" href="http://wiki.eclipse.org/SWTBot"
+ title="Documentation">Tutorials, Examples, Videos, Reference Documentation</a></li>
+ <li><a id="buttonSupport" href="http://wiki.eclipse.org/SWTBot/Support" title="Support">Bug
+ Tracker, Newsgroup, Support</a></li>
+ <li><a id="buttonInvolved" href="http://wiki.eclipse.org/SWTBot/Contributing" title="Getting Involved">Contributor Guide, Mailing Lists, Wiki</a></li>
+ </ul>
+</div>
+
+<div id="midcolumn">
+ <h1>What is SWTBot?</h1>
+ <p>SWTBot is an open-source Java based UI/functional testing tool for testing <a href="/swt">SWT</a>, <a href="/">Eclipse</a> and <a href="/gef">GEF</a> based applications.</p>
+
+ <p>SWTBot provides APIs that are simple to read and write. The APIs also hide the complexities involved with SWT and Eclipse. This makes it suitable for UI/functional testing by everyone, not just developers. SWTBot also provides its own set of assertions that are useful for SWT. You can also use your own assertion framework with SWTBot.</p>
+
+ <p>SWTBot integrates with Eclipse PDE, Eclipse headless testing framework, Ant and <a href="http://eclipse.org/tycho">Tycho</a>, so it's easy to use in your IDE and Headless Builds (as part of a CI job for example).</p>
+
+ <p>SWTBot can run on all platforms that SWT runs on. Very few other testing tools provide such a wide variety of platforms.</p>
+
+ <p>Starting from version 2.1.0, SWTBot also provide a <a href="http://wiki.eclipse.org/SWTBot/Generator">Test Recorder and Generator</a> that you can use to generate your test case simply by recording the UI actions as an end-user would perform them. This is really helpful to get quickly a first sketch of your SWTBot scenario and reduce costs of writing tests.</p>
+
+</div>
+
+<div id="rightcolumn">
+
+<p>
+<a class="twitter-timeline" href="https://twitter.com/search?q=%23SWTBot" data-widget-id="387570714603053056">Tweets about SWTBot</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>
+</p>
+
+</div>
+
+
+
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-910670-2']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-414875-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
\ No newline at end of file
diff --git a/_projectCommon.php b/_projectCommon.php
index fada931..d9a941e 100755
--- a/_projectCommon.php
+++ b/_projectCommon.php
@@ -1,31 +1,37 @@
<?php
- $pageAuthor = "Ketan Padegaonkar, Mickael Istria";
- $pageKeywords = "SWTBot, UI Testing for SWT, UI Testing for Eclipse, SWT testing, Eclipse testing";
- $pageTitle = "SWTBot – UI Testing for SWT and Eclipse";
-
- $App->setGoogleAnalyticsTrackingCode("UA-414875-5");
-
# Set the theme for your project's web pages.
# See the Committer Tools "How Do I" for list of themes
# https://dev.eclipse.org/committers/
# Optional: defaults to system theme
$theme = "Nova";
+
# Define your project-wide Nav bars here.
# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
# these are optional
- $Nav->addCustomNav("Project Home", "/swtbot/index.php");
- $Nav->addCustomNav("Project Info", "/swtbot/about.php");
+ $Nav->setLinkList(array());
+ $Nav->addCustomNav("SWTBot", "/swtbot/");
$Nav->addCustomNav("Downloads", "http://wiki.eclipse.org/SWTBot#Update_Sites");
-
$Nav->addCustomNav("Users Guide", "http://wiki.eclipse.org/SWTBot/UsersGuide");
$Nav->addCustomNav("Get Support", "http://wiki.eclipse.org/SWTBot/Support");
$Nav->addCustomNav("Contributing", "http://wiki.eclipse.org/SWTBot/Contributing");
-
- $Nav->addCustomNav("Blogs", "http://wiki.eclipse.org/SWTBot/Blogs");
- $Nav->addCustomNav("Who's Using It?", "http://wiki.eclipse.org/SWTBot/Who_Is_Using_SWTBot");
- $Nav->addCustomNav("All Pages", "http://wiki.eclipse.org/Category:SWTBot");
+ $pageAuthor = "Ketan Padegaonkar, Mickael Istria";
+ $pageKeywords = "SWTBot, UI Testing for SWT, UI Testing for Eclipse, SWT testing, Eclipse testing";
+ $pageTitle = "SWTBot – UI Testing for SWT and Eclipse";
+
+ $Menu->setMenuItemList(array());
+ $Menu->addMenuItem("Home", "/swtbot/", "_self");
+ $Menu->addMenuItem("Download", "ttp://wiki.eclipse.org/SWTBot#Update_Sites", "_self");
+ $Menu->addMenuItem("Documentation", "http://wiki.eclipse.org/SWTBot/UsersGuide", "_self");
+ $Menu->addMenuItem("Support", ""http://wiki.eclipse.org/SWTBot/Support"", "_self");
+ $Menu->addMenuItem("Contribute", "http://wiki.eclipse.org/SWTBot/Contributing", "_self");
+
+ $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="style.css"/>' . "\n\t");
+ $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="style2.css"/>' . "\n\t");
+
+ $App->Promotion = TRUE;
?>
+
diff --git a/images/backgroundMain.png b/images/backgroundMain.png
new file mode 100644
index 0000000..b237176
--- /dev/null
+++ b/images/backgroundMain.png
Binary files differ
diff --git a/images/buttonDocumentation.png b/images/buttonDocumentation.png
new file mode 100644
index 0000000..bbfdde0
--- /dev/null
+++ b/images/buttonDocumentation.png
Binary files differ
diff --git a/images/buttonDocumentation_sel.png b/images/buttonDocumentation_sel.png
new file mode 100644
index 0000000..8affb93
--- /dev/null
+++ b/images/buttonDocumentation_sel.png
Binary files differ
diff --git a/images/buttonDownload.png b/images/buttonDownload.png
new file mode 100644
index 0000000..e620092
--- /dev/null
+++ b/images/buttonDownload.png
Binary files differ
diff --git a/images/buttonDownload_new.png b/images/buttonDownload_new.png
new file mode 100644
index 0000000..e620092
--- /dev/null
+++ b/images/buttonDownload_new.png
Binary files differ
diff --git a/images/buttonDownload_sel.png b/images/buttonDownload_sel.png
new file mode 100644
index 0000000..d3a0330
--- /dev/null
+++ b/images/buttonDownload_sel.png
Binary files differ
diff --git a/images/buttonInvolved.png b/images/buttonInvolved.png
new file mode 100644
index 0000000..bd115b0
--- /dev/null
+++ b/images/buttonInvolved.png
Binary files differ
diff --git a/images/buttonInvolved_sel.png b/images/buttonInvolved_sel.png
new file mode 100644
index 0000000..8dbf275
--- /dev/null
+++ b/images/buttonInvolved_sel.png
Binary files differ
diff --git a/images/buttonSupport.png b/images/buttonSupport.png
new file mode 100644
index 0000000..bd36086
--- /dev/null
+++ b/images/buttonSupport.png
Binary files differ
diff --git a/images/buttonSupport_sel.png b/images/buttonSupport_sel.png
new file mode 100644
index 0000000..a535fe8
--- /dev/null
+++ b/images/buttonSupport_sel.png
Binary files differ
diff --git a/images/star.png b/images/star.png
new file mode 100644
index 0000000..17c24b7
--- /dev/null
+++ b/images/star.png
Binary files differ
diff --git a/index.php b/index.php
index 0be21c4..6cb14c0 100755
--- a/index.php
+++ b/index.php
@@ -1,42 +1,9 @@
-<?php
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
-$App = new App();
-$Nav = new Nav();
-$Menu = new Menu();
-include($App->getProjectCommon());
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
+ $pageTitle = "SWTBot";
- $pageTitle = "SWTBot – UI Testing for SWT and Eclipse";
-
- # Add page-specific Nav bars here
- # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
- # $Nav->addNavSeparator("My Page Links", "downloads.php");
- # $Nav->addCustomNav("My Link", "mypage.php", "_self", 3);
- # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3);
-
- # Paste your HTML content between the ob_start/ob_end_clean markers!
- ob_start();
-?>
-
- <div id="midcolumn">
- <h1>What is SWTBot?</h1>
- <p>SWTBot is an open-source Java based UI/functional testing tool for testing <a href="http://eclipse.org/swt">SWT</a> and <a href="http://eclipse.org">Eclipse</a> based applications.</p>
-
- <p>SWTBot provides APIs that are simple to read and write. The APIs also hide the complexities involved with SWT and Eclipse. This makes it suitable for UI/functional testing by everyone, not just developers. SWTBot also provides its own set of assertions that are useful for SWT. You can also use your own assertion framework with SWTBot.</p>
-
- <p>SWTBot integrates with Eclipse PDE, <a href="advanced/ant-integration.html">Ant</a> and <a href="http://eclipse.org/tycho">Tycho</a>, so it's easy to use in your IDE and Headless Builds (as part of a CI job for example).</p>
-
- <p>SWTBot can run on all platforms that SWT runs on. Very few other testing tools provide such a wide variety of platforms.</p>
-
- <p>Starting from version 2.1.0, SWTBot also provide a <a href="http://wiki.eclipse.org/SWTBot/Generator">Test Recorder and Generator</a> that you can use to generate your test case simply by recording the UI actions as an end-user would perform them. This is really helpful to get quickly a first sketch of your SWTBot scenario and reduce costs of writing tests.</p>
-
- </div>
-
-<?php
-$html = ob_get_contents();
-ob_end_clean();
+ # Paste your HTML content between the EOHTML markers!
+ $html = file_get_contents('_index.html');
# Generate the web page
- $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
-?>
+ $App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
+?>
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..526317a
--- /dev/null
+++ b/style.css
@@ -0,0 +1,34 @@
+#novaContent {
+ background: url("images/backgroundMain.png") no-repeat;
+ padding-top: 210px;
+}
+
+#midcolumn {
+ width: 600px;
+ padding: 0 10px 10px 10px;
+}
+
+#rightcolumn {
+ width: 300px;
+}
+
+#padding {
+ height: 20px;
+}
+
+h3 {
+ clear: both;
+}
+
+h7 {
+ font-weight: bold;
+ padding: 5px;
+}
+
+a strong {
+ text-decoration: underline;
+}
+
+#rightcolumn ul {
+ margin-left: 10px;
+}
\ No newline at end of file
diff --git a/style2.css b/style2.css
new file mode 100644
index 0000000..ebff5e3
--- /dev/null
+++ b/style2.css
@@ -0,0 +1,168 @@
+#novaContent {
+ background: url("images/backgroundMain.png") no-repeat white;
+ padding-top: 170px;
+}
+
+#introText p.left {
+ width: 48%;
+ float: left;
+}
+
+#border {
+ border-style: solid;
+ border-width: 5px;
+ border-color: rgb(230,228,242);
+}
+
+#border_top {
+ border-style: solid;
+ border-width: 5px;
+ border-color: rgb(230,228,242);
+ border-bottom: 0px;
+ border-left: 0px;
+ border-right: 0px;
+}
+
+#border p.top {
+ background-color: rgb(230,228,242);
+ border-bottom: 2px solid #FFF;
+ font-size: 14px;
+ font-weight: bold;
+ margin-bottom: 0px;
+ -moz-border-radius-topleft:3px;
+ -moz-border-radius-topright:3px;
+}
+
+#introText p.right {
+ width: 48%;
+ float: right;
+}
+
+#feature_axf {
+ float: left;
+ width: 30%;
+ margin-right: 3%;
+}
+
+#feature_agf {
+ float: left;
+ width: 30%;
+ margin-right: 3%;
+}
+
+#feature_escape {
+ float: left;
+ width: 30%;
+ margin-right: 3%
+}
+
+#feature_generation {
+ float: left;
+ width: 30%;
+}
+
+#feature_experience {
+ clear: both;
+ float: left;
+ width: 63%;
+ margin-right: 3%;
+}
+
+#feature_more {
+ float: left;
+ width: 30%;
+}
+
+#bigbuttons {
+ position: relative;
+ left: 420px;
+ top: -170px;
+}
+#bigbuttons h3{
+ visibility: hidden;
+}
+
+#bigbuttons a {
+}
+
+#bigbuttons ul li {
+ display:block;
+ list-style-type:none;
+ background-color: red;
+ padding: 0;
+ margin: 0;
+}
+
+#bigbuttons a:hover {
+ text-decoration: none;
+}
+
+#bigbuttons a {
+ display: block;
+ height:77px; width:250px;
+ padding: 0;
+ margin: 20px;
+ text-indent: -9000px;
+ position: absolute;
+}
+
+#buttonDownload {
+ background:transparent url("images/buttonDownload.png") no-repeat 0 0;
+ top: 0px;
+ left: 0px;
+}
+
+#buttonDownload:hover {
+ background:transparent url("images/buttonDownload_sel.png") no-repeat 0 0;
+}
+
+
+#buttonDocumentation {
+ background:transparent url("images/buttonDocumentation.png") no-repeat 0 0;
+ top: 87px;
+ left: 0px;
+}
+
+#buttonDocumentation:hover {
+ background:transparent url("images/buttonDocumentation_sel.png") no-repeat 0 0;
+}
+
+#buttonSupport {
+ background:transparent url("images/buttonSupport.png") no-repeat 0 0;
+ top: 0px;
+ left: 280px;
+}
+
+#buttonSupport:hover {
+ background:transparent url("images/buttonSupport_sel.png") no-repeat 0 0;
+}
+
+#buttonInvolved {
+ background:transparent url("images/buttonInvolved.png") no-repeat 0 0;
+ top: 87px;
+ left: 280px;
+}
+
+#buttonInvolved:hover {
+ background:transparent url("images/buttonInvolved_sel.png") no-repeat 0 0;
+}
+
+#bigbuttons a * {
+ visibility: hidden;
+}
+
+
+/*
+#screencast {
+ margin: 20px;
+ position: relative;
+ left: 50px;
+ width: 480px;
+ background-color: black;
+ clear: both;
+ height: 340px;
+ color: white;
+ text-align: center;
+ vertical-align: middle;
+}
+*/
\ No newline at end of file