changeset 9c69cf4da135 in /home/hg/repos/gajim-website
details:http://hg.gajim.org/gajim-website?cmd=changeset;node=9c69cf4da135 description: improve HTML validity diffstat:
Design.php | 4 +- css/gajim.css | 181 ---------------------------------------------------- css/main.css | 2 +- index.php | 10 +- templates/index.tpl | 2 +- 5 files changed, 9 insertions(+), 190 deletions(-)
diffs (269 lines):
diff -r 49c73986f637 -r 9c69cf4da135 Design.php --- a/Design.php Wed Aug 14 11:13:10 2013 +0200 +++ b/Design.php Mon Aug 26 07:33:51 2013 +0200 @@ -119,9 +119,9 @@ $page = $_SERVER["SCRIPT_NAME"]; $p = explode("/", $page); $page = $p[count($p)-1]; - echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1 Strict//FR\"\n"; + echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"; echo "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; - echo "<html>\n <head>\n"; + echo "<html xmlns='http://www.w3.org/1999/xhtml'>\n <head>\n"; echo " <meta name="Author" content="Le Boulanger Yann (asterix)"/>"; echo " <meta name="description" content="Gajim is a Jabber client written in PyGTK. The goal of Gajim's developers is to provide a full featured and easy to use xmpp client for the GTK+ users. Gajim does not require GNOME to run, eventhough it exists with it nicely. Gajim is released under the GNU General Public License"/>\n"; echo " <meta name="keywords" content="gajim client jabber python gtk xmpp chat linux gnu instant messaging messenger pygtk contact transport file transfer hig chatstate bookmark avatars srv wikipedia"/>\n"; diff -r 49c73986f637 -r 9c69cf4da135 css/gajim.css --- a/css/gajim.css Wed Aug 14 11:13:10 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,181 +0,0 @@ -body {color: black; - background-color: white; - background: url('../imgs/fond22.jpg') no-repeat; -} - -a:link {color: blue} -a:visited {color: blue} - -#spacer { - clear: both; -} - -#header { - position: float; - z-index: 1; - margin: 0px; - padding: 0px; - width: 100%; - height:305px; -/* border: 1px solid #ed7e00;*/ -} -/* -html>body #header { - position: fixed; - top:0px; - left:0px; - background-color: white; - background: url('/imgs/fond22-t.jpg') no-repeat; -} -*/ -#translator { - position: absolute; - z-index: 2; - top: 15px; - left: 450px; - width: 450px; - height: 50px; - vertical-align: middle; - text-decoration: none; -/* border: 1px solid #ed7e00;*/ -} -/* -html>body #translator { - position: fixed; -} -*/ -#translator img { - border: 0px; -} - -#inner { - width: 100%; - position: absolute; - left: 0px; - top: 305px; -/* border: 1px solid #ed7e00;*/ -} -/* -html>body #inner { - background: url('/imgs/fond22-b.jpg') no-repeat; - background-position: 0px 305px; - background-attachment:fixed; -} -*/ -#menu { - position: absolute; - left: 5px; - top: 15px; - width: 130px; - font-size: 11pt; - text-align:left; -/* border : 1px solid black;*/ -} -/* -html>body #menu { - position: fixed; - top: 320px; -} -*/ -#menu ul { - margin: 0px; - padding: 0px; - list-style-type: none; -} - -#menu li { - margin: 0px; - display: inline; -} - -#menu li a { - margin: 10px 0px; - padding: 2px; - color: #DB0B0B; - font-weight:bold; - display: block; - text-decoration: none; -/* border: 1px solid #ed7e00;*/ -} - -#menu li a:hover { - padding: 1px; /* <-- compensation du border 1px, l'addition redonne un padding 2px*/ - background: #ffa6a6; - border: 1px solid red; -} - -#menu a.submenu { - padding: 1px; - padding-left: 0.5em; - margin: 2px; - font-weight:normal; - font-size: 10pt; -} - -/* Ajout d'un hover sur le submenu, car padding different dans a.submenu*/ -#menu a.submenu:hover { - padding: 0 0 0 0.5em; - margin-left: 1px; -} - -#content { - margin-left: 200px; - position: float; -/* border: 1px solid #ed7e00;*/ -} - -#content h1 { - color: #e13131; - font-weight:bolder; -} - -#content h2{ - color: #3197e1; -} - -#image_index { - float: right; - margin-right: 20px; -} - -#image_index img{ - border : 0px solid; -} - -#photos img{ - vertical-align: middle; - text-align: center; - margin: 20px; - border : 0px solid; -} - -#footer { - margin: 0px; - margin-top: 50px; - padding: 0px; - font-size: 8pt; -/* text-align:center;*/ -/* border: 1px solid #ed7e00;*/ -} - -#footerCenter { - float:left; - width: 60%; -/* position:relative; - top:40px;*/ -/* border: 1px solid #ed7e00;*/ -} - -#news_title { - background: #5377ff; - font-size: 15pt; - font-weight:bold; - text-align: center; - width: 70%; - border: 2px solid #5377ff; -} - -#news { - border: 2px solid #5377ff; - width: 70%; -} diff -r 49c73986f637 -r 9c69cf4da135 css/main.css --- a/css/main.css Wed Aug 14 11:13:10 2013 +0200 +++ b/css/main.css Mon Aug 26 07:33:51 2013 +0200 @@ -113,7 +113,7 @@ width: 70%; }
-#news { +.news { border: 2px dashed #BAD3DC; width: 70%; } diff -r 49c73986f637 -r 9c69cf4da135 index.php --- a/index.php Wed Aug 14 11:13:10 2013 +0200 +++ b/index.php Mon Aug 26 07:33:51 2013 +0200 @@ -92,7 +92,7 @@ 0 => _("Fix connection to non-SSL servers"), 1 => _("Minor other fixes"), 2 => _("Full changelog, see") . " <a href = "http://hg.gajim.org/gajim/file/gajim-0.15.4/ChangeLog%5C%22%3E%22._(%22Full ChangeLog")."</a> ", - 3 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.4%5C%22%3E%22._... of fixed bugs")."</a>", + 3 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.4%5C%22%3E%22._... of fixed bugs")."</a>", );
$array_news_items[1] = array( @@ -100,20 +100,20 @@ 1 => _("Better handling of canceling file transfer"), 2 => _("Improve farstream calls"), 3 => _("Full changelog, see") . " <a href = "http://hg.gajim.org/gajim/file/gajim-0.15.3/ChangeLog%5C%22%3E%22._(%22Full ChangeLog")."</a> ", - 4 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.3%5C%22%3E%22._... of fixed bugs")."</a>", + 4 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.3%5C%22%3E%22._... of fixed bugs")."</a>", );
$array_news_items[2] = array( 0 => _("Fix crash when pressing ESC in chat window"), 1 => _("Full changelog, see") . " <a href = "http://hg.gajim.org/gajim/file/gajim-0.15.2/ChangeLog%5C%22%3E%22._(%22Full ChangeLog")."</a> ", - 2 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.2%5C%22%3E%22._... of fixed bugs")."</a>", + 2 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.2%5C%22%3E%22._... of fixed bugs")."</a>", );
$array_news_items[3] = array( 0 => _("Switch to python-farstream"), 1 => _("Fix several issues"), 2 => _("Full changelog, see") . " <a href = "http://hg.gajim.org/gajim/file/gajim-0.15.1/ChangeLog%5C%22%3E%22._(%22Full ChangeLog")."</a> ", - 3 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.1%5C%22%3E%22._... of fixed bugs")."</a>", + 3 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15.1%5C%22%3E%22._... of fixed bugs")."</a>", );
$array_news_items[4] = array( @@ -125,7 +125,7 @@ 5 => _("Roster filtrering"), 6 => _("GPG and spell checking support for windows"), 7 => _("Full changelog, see") . " <a href = "http://hg.gajim.org/gajim/file/gajim-0.15/ChangeLog%5C%22%3E%22._(%22Full ChangeLog")."</a> ", - 8 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15%5C%22%3E%22._(%... of fixed bugs")."</a>", + 8 => "<a href = "http://trac.gajim.org/query?status=closed&milestone=0.15%5C%22%3E%22._(%... of fixed bugs")."</a>", );
$tpl->set_block("page", "NEWS_LIST", "item"); // define intern block diff -r 49c73986f637 -r 9c69cf4da135 templates/index.tpl --- a/templates/index.tpl Wed Aug 14 11:13:10 2013 +0200 +++ b/templates/index.tpl Mon Aug 26 07:33:51 2013 +0200 @@ -24,7 +24,7 @@ <div id="news_title"> {NEWS_MAIN} </div> - <!-- BEGIN NEWS --><div id="news"> + <!-- BEGIN NEWS --><div class="news"> <b>{NEWS_TITLE}</b> ({NEWS_DATE}) <br/> {NEWS_DESC}