Skip to content
Snippets Groups Projects
Commit 7d00a589 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Website revamp. Now a couple of content and ready for pseudo-production.

Added needed images. Update of Git_Access.txt, demo page.

Added templates/page_modules.php, which show the very simple approach to
 content management.

Added header/footer

Fix stylesheet, miam miam.
parent b05113ba
No related branches found
No related tags found
No related merge requests found
...@@ -18,4 +18,5 @@ tools/portaudio ...@@ -18,4 +18,5 @@ tools/portaudio
# Ignore temp files # Ignore temp files
*~ *~
# Ignore website cache
www/cache
...@@ -10,6 +10,8 @@ To access SFLphone's git repository (read-only): ...@@ -10,6 +10,8 @@ To access SFLphone's git repository (read-only):
--------------------------------------------- ---------------------------------------------
git clone git://sflphone.org/git/sflphone.git git clone git://sflphone.org/git/sflphone.git
cd sflphone
autoreconf --install
--------------------------------------------- ---------------------------------------------
......
</div><!-- page_wrapper -->
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="sflphone.css" />
<title><?= ($title ? $title.' :: ' : '') ?> SFLphone</title>
</head>
<body>
<div id="page_wrapper">
<div id="header">
<a href="."><img src="images/logoSFLphone<?= ($module == 'page_home' ? '512x149' : '312x91') ?>.png" /></a>
</div>
\ No newline at end of file
www/images/devel.png

6 KiB

www/images/fetch.png

3.16 KiB

www/images/info.png

5.56 KiB

www/images/logoSFLphone312x91.png

10.2 KiB

www/images/logoSFLphone512x149.png

17.2 KiB

<?php <?php
/**
* Copyright (C) 2007 - Savoir-faire Linux Inc.
* Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
*
* LICENSE: GPLv3
*/
include('sflphone.funcs.php'); require_once('sflphone.funcs.php');
show_page('Git_Access');
$module = '';
// Default module: home
if (!$_REQUEST['l']) {
$module = 'home';
} else {
$module = $_REQUEST['l'];
}
// Send output.
include('header.php');
$mod = "templates/page_$module.php";
if (!file_exists($mod)) {
print "<h1>Module '$module' not found</h1>";
} else {
include($mod);
}
include('footer.php');
?> ?>
\ No newline at end of file
/* Based on the output of asciidoc */
body {
margin: 0 auto 0 auto;
width: 750px;
background-color: #666666;
}
a {
color: blue;
text-decoration: underline;
}
a:visited {
color: fuchsia;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
tt {
color: navy;
}
h1, h2, h3, h4, h5, h6 {
color: #86B1B5;
font-family: sans-serif;
margin-top: 1.2em;
margin-bottom: 0.5em;
line-height: 1.3;
}
h1 {
border-bottom: 2px solid silver;
}
h2 {
border-bottom: 2px solid silver;
padding-top: 0.5em;
}
div.sectionbody {
font-family: serif;
margin-left: 0;
}
hr {
border: 1px solid silver;
}
p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
pre {
padding: 0;
margin: 0;
}
span#author {
color: #527bbd;
font-family: sans-serif;
font-weight: bold;
font-size: 1.2em;
}
span#email {
}
span#revision {
font-family: sans-serif;
}
div#footer {
font-family: sans-serif;
font-size: small;
border-top: 2px solid silver;
padding-top: 0.5em;
margin-top: 4.0em;
}
div#footer-text {
float: left;
padding-bottom: 0.5em;
}
div#footer-badges {
float: right;
padding-bottom: 0.5em;
}
div#preamble,
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
div.admonitionblock {
margin-right: 10%;
margin-top: 1.5em;
margin-bottom: 1.5em;
}
div.admonitionblock {
margin-top: 2.5em;
margin-bottom: 2.5em;
}
div.content { /* Block element content. */
padding: 0;
}
/* Block element titles. */
div.title, caption.title {
font-family: sans-serif;
font-weight: bold;
text-align: left;
margin-top: 1.0em;
margin-bottom: 0.5em;
}
div.title + * {
margin-top: 0;
}
td div.title:first-child {
margin-top: 0.0em;
}
div.content div.title:first-child {
margin-top: 0.0em;
}
div.content + div.title {
margin-top: 0.0em;
}
div.sidebarblock > div.content {
background: #ffffee;
border: 1px solid silver;
padding: 0.5em;
}
div.listingblock > div.content {
border: 1px solid silver;
background: #f4f4f4;
padding: 0.5em;
}
div.quoteblock > div.content {
padding-left: 2.0em;
}
div.attribution {
text-align: right;
}
div.verseblock + div.attribution {
text-align: left;
}
div.admonitionblock .icon {
vertical-align: top;
font-size: 1.1em;
font-weight: bold;
text-decoration: underline;
color: #527bbd;
padding-right: 0.5em;
}
div.admonitionblock td.content {
padding-left: 0.5em;
border-left: 2px solid silver;
}
div.exampleblock > div.content {
border-left: 2px solid silver;
padding: 0.5em;
}
div.verseblock div.content {
white-space: pre;
}
div.imageblock div.content { padding-left: 0; }
div.imageblock img { border: 1px solid silver; }
span.image img { border-style: none; }
dl {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
dt {
margin-top: 0.5em;
margin-bottom: 0;
font-style: italic;
}
dd > *:first-child {
margin-top: 0;
}
ul, ol {
list-style-position: outside;
}
ol.olist2 {
list-style-type: lower-alpha;
}
div.tableblock > table {
border: 3px solid #527bbd;
}
thead {
font-family: sans-serif;
font-weight: bold;
}
tfoot {
font-weight: bold;
}
div.hlist {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
td.hlist1 {
vertical-align: top;
font-style: italic;
padding-right: 0.8em;
}
td.hlist2 {
vertical-align: top;
}
@media print {
div#footer-badges { display: none; }
}
/* Workarounds for IE6's broken and incomplete CSS2. */
div.sidebar-content {
background: #ffffee;
border: 1px solid silver;
padding: 0.5em;
}
div.sidebar-title, div.image-title {
font-family: sans-serif;
font-weight: bold;
margin-top: 0.0em;
margin-bottom: 0.5em;
}
div.listingblock div.content {
border: 1px solid silver;
background: #f4f4f4;
padding: 0.5em;
}
div.quoteblock-content {
padding-left: 2.0em;
}
div.exampleblock-content {
border-left: 2px solid silver;
padding-left: 0.5em;
}
/** SFLphone specific */
#header {
text-align: center;
}
#header img {
border: 0px;
}
#page_wrapper {
width: 750px;
background-color: white;
padding: 1em 2em 2em 2em;
border-left: 1px #aaaaaa solid;
border-right: 1px #aaaaaa solid;
}
\ No newline at end of file
...@@ -29,6 +29,10 @@ function get_page($page) { ...@@ -29,6 +29,10 @@ function get_page($page) {
// Get the latest HASH for that page. // Get the latest HASH for that page.
$hash = get_git_hash($page); $hash = get_git_hash($page);
if (!$hash) {
return "Page '$page' not found.<br />\n";
}
$cnt = get_cache_hash($hash); $cnt = get_cache_hash($hash);
if (!$cnt) { if (!$cnt) {
......
<h1>Git access</h1>
<?php show_page('Git_Access'); ?>
<h1>Download</h2>
<?php show_page('Download'); ?>
<h1>Goals</h1>
<?php show_page('Goals'); ?>
<h1>News</h1>
<?php show_page('News'); ?>
<h1>About</h1>
<?php show_page('About'); ?>
<h1>Get started</h2>
<p>
The project is ongoing well, but your help and contribution is needed to make this software even better!
</p>
<p>&nbsp;</p>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/info.png"/>
<a href="index.php?l=goals">Goals</a> - where do we want to be <br/>
<a href="index.php?l=features">Features</a> - where we are <br/>
<a href="index.php?l=screenshots">Screenshots</a> - a quick look at the current status
</p>
<br style="clear: both;"/>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/fetch.png"/>
<a href="index.php?l=download">Download</a> - grab the latest source code<br/>
<a href="index.php?l=build">Build</a> - build and installation instructions <br/>
</p>
<br style="clear: both;"/>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/devel.png"/>
<a href="/mantis">File a bug</a> - File a bug report <br/>
<a href="index.php?l=discuss">Discuss</a> - Subscribe to a mailing list or contact us <br/>
<a href="index.php?l=devel">Develop</a> - Submit patches, work on the code, contribute
</p>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment