some basic w3c compliance for static code
This commit is contained in:
parent
f7f939b29c
commit
74d5c8fa15
|
@ -1436,7 +1436,7 @@
|
||||||
print "<select name=\"$id\" id='$id' $attributes>";
|
print "<select name=\"$id\" id='$id' $attributes>";
|
||||||
foreach (array_keys($values) as $v) {
|
foreach (array_keys($values) as $v) {
|
||||||
if ($v == $default)
|
if ($v == $default)
|
||||||
$sel = "selected";
|
$sel = 'selected="selected"';
|
||||||
else
|
else
|
||||||
$sel = "";
|
$sel = "";
|
||||||
|
|
||||||
|
@ -5729,13 +5729,13 @@
|
||||||
|
|
||||||
function rounded_table_start($classname, $header = " ") {
|
function rounded_table_start($classname, $header = " ") {
|
||||||
print "<table width='100%' class='$classname' cellspacing='0' cellpadding='0'>";
|
print "<table width='100%' class='$classname' cellspacing='0' cellpadding='0'>";
|
||||||
print "<tr><td class='c1'> </td><td class='top'>$header</td><td class='c2'> </tr>";
|
print "<tr><td class='c1'> </td><td class='top'>$header</td><td class='c2'> </td></tr>";
|
||||||
print "<tr><td class='left'> </td><td class='content'>";
|
print "<tr><td class='left'> </td><td class='content'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function rounded_table_end($footer = " ") {
|
function rounded_table_end($footer = " ") {
|
||||||
print "</td><td class='right'> </td></tr>";
|
print "</td><td class='right'> </td></tr>";
|
||||||
print "<tr><td class='c4'> </td><td class='bottom'>$footer</td><td class='c3'> </tr>";
|
print "<tr><td class='c4'> </td><td class='bottom'>$footer</td><td class='c3'> </td></tr>";
|
||||||
print "</table>";
|
print "</table>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
16
prefs.php
16
prefs.php
|
@ -22,11 +22,11 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tiny Tiny RSS : Preferences</title>
|
<title>Tiny Tiny RSS : Preferences</title>
|
||||||
<link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>">
|
<link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>"/>
|
||||||
|
|
||||||
<?php $user_theme = $_SESSION["theme"];
|
<?php $user_theme = $_SESSION["theme"];
|
||||||
if ($user_theme) { ?>
|
if ($user_theme) { ?>
|
||||||
<link rel="stylesheet" type="text/css" href="themes/<?php echo $user_theme ?>/theme.css">
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $user_theme ?>/theme.css"/>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?>
|
<?php if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<link type="text/css" href="<?php echo $user_css_url ?>"/>
|
<link type="text/css" href="<?php echo $user_css_url ?>"/>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
|
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="prototype.js"></script>
|
<script type="text/javascript" src="prototype.js"></script>
|
||||||
<script type="text/javascript" src="scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
|
<script type="text/javascript" src="scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
|
||||||
|
@ -46,15 +46,17 @@
|
||||||
<script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
|
||||||
<script type="text/javascript" src="prefs.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="prefs.js?<?php echo $dt_add ?>"></script>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
if (navigator.userAgent.match("Opera")) {
|
if (navigator.userAgent.match("Opera")) {
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
||||||
}
|
}
|
||||||
if (navigator.userAgent.match("Gecko") && !navigator.userAgent.match("KHTML")) {
|
if (navigator.userAgent.match("Gecko") && !navigator.userAgent.match("KHTML")) {
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
|
document.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
|
||||||
}
|
}
|
||||||
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -84,7 +86,7 @@
|
||||||
<?php rounded_table_end(); ?>
|
<?php rounded_table_end(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie">
|
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if (document.addEventListener) {
|
if (document.addEventListener) {
|
||||||
|
@ -93,7 +95,7 @@ if (document.addEventListener) {
|
||||||
window.onload = init;
|
window.onload = init;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul id="debug_output" style='display : none'></ul>
|
<ul id="debug_output" style='display : none'><li> </li></ul>
|
||||||
|
|
||||||
<div id="fatal_error"><div id="fatal_error_inner">
|
<div id="fatal_error"><div id="fatal_error_inner">
|
||||||
<h1>Fatal Error</h1>
|
<h1>Fatal Error</h1>
|
||||||
|
@ -119,7 +121,7 @@ window.onload = init;
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class='prefKbdHelp'>
|
<div class='prefKbdHelp'>
|
||||||
<img src="images/small_question.png" alt="?"> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})">Keyboard shortcuts</a>
|
<img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})">Keyboard shortcuts</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="firstTab"> </div>
|
<div class="firstTab"> </div>
|
||||||
|
|
47
tt-rss.php
47
tt-rss.php
|
@ -23,7 +23,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Tiny Tiny RSS</title>
|
<title>Tiny Tiny RSS</title>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>">
|
<link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>"/>
|
||||||
|
|
||||||
<?php $user_theme = $_SESSION["theme"];
|
<?php $user_theme = $_SESSION["theme"];
|
||||||
if ($user_theme) { ?>
|
if ($user_theme) { ?>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/>
|
<link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
|
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="prototype.js"></script>
|
<script type="text/javascript" src="prototype.js"></script>
|
||||||
<script type="text/javascript" src="scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
|
<script type="text/javascript" src="scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
|
||||||
|
@ -47,19 +47,22 @@
|
||||||
<script type="text/javascript" src="feedlist.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="feedlist.js?<?php echo $dt_add ?>"></script>
|
||||||
<script type="text/javascript" src="viewfeed.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="viewfeed.js?<?php echo $dt_add ?>"></script>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
if (navigator.userAgent.match("Opera")) {
|
if (navigator.userAgent.match("Opera")) {
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
||||||
}
|
}
|
||||||
if (navigator.userAgent.match("Gecko") && !navigator.userAgent.match("KHTML")) {
|
if (navigator.userAgent.match("Gecko") && !navigator.userAgent.match("KHTML")) {
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
|
document.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
|
||||||
}
|
}
|
||||||
|
window.onresize=resize_headlines;
|
||||||
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onresize="resize_headlines()" id="ttrssMain">
|
<body id="ttrssMain">
|
||||||
|
|
||||||
<div id="overlay" style="display : block">
|
<div id="overlay" style="display : block">
|
||||||
<div id="overlay_inner">
|
<div id="overlay_inner">
|
||||||
|
@ -100,7 +103,7 @@ if (document.addEventListener) {
|
||||||
window.onload = init;
|
window.onload = init;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul id="debug_output" style='display : none'></ul>
|
<ul id="debug_output" style='display : none'><li> </li></ul>
|
||||||
|
|
||||||
<div id="infoBoxShadow"><div id="infoBox"> </div></div>
|
<div id="infoBoxShadow"><div id="infoBox"> </div></div>
|
||||||
|
|
||||||
|
@ -122,7 +125,7 @@ window.onload = init;
|
||||||
|
|
||||||
<img id="newVersionIcon" style="display:none;" onclick="javascript:explainError(2)"
|
<img id="newVersionIcon" style="display:none;" onclick="javascript:explainError(2)"
|
||||||
src="images/new_version.png" title="New version is available!"
|
src="images/new_version.png" title="New version is available!"
|
||||||
alt="new_version_icon">
|
alt="new_version_icon"/>
|
||||||
</div>
|
</div>
|
||||||
<img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/>
|
<img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -139,22 +142,22 @@ window.onload = init;
|
||||||
|
|
||||||
<div style="float : right">
|
<div style="float : right">
|
||||||
<select id="quickMenuChooser" onchange="quickMenuChange()">
|
<select id="quickMenuChooser" onchange="quickMenuChange()">
|
||||||
<option value="qmcDefault" selected><?php echo __('Actions...') ?></option>
|
<option value="qmcDefault" selected="selected"><?php echo __('Actions...') ?></option>
|
||||||
<option value="qmcSearch"><?php echo __('Search') ?></option>
|
<option value="qmcSearch"><?php echo __('Search') ?></option>
|
||||||
<!-- <option value="qmcPrefs"><?php echo __('Preferences') ?></option> -->
|
<!-- <option value="qmcPrefs"><?php echo __('Preferences') ?></option> -->
|
||||||
<option disabled>--------</option>
|
<option disabled="disabled">--------</option>
|
||||||
<option style="color : #5050aa" disabled><?php echo __('Feed actions:') ?></option>
|
<option style="color : #5050aa" disabled="disabled"><?php echo __('Feed actions:') ?></option>
|
||||||
<option value="qmcAddFeed"><?php echo __(' Subscribe to feed') ?></option>
|
<option value="qmcAddFeed"><?php echo __(' Subscribe to feed') ?></option>
|
||||||
<option value="qmcEditFeed"><?php echo __(' Edit this feed') ?></option>
|
<option value="qmcEditFeed"><?php echo __(' Edit this feed') ?></option>
|
||||||
<!-- <option value="qmcClearFeed"><?php echo __(' Clear articles') ?></option> -->
|
<!-- <option value="qmcClearFeed"><?php echo __(' Clear articles') ?></option> -->
|
||||||
<option value="qmcRescoreFeed"><?php echo __(' Rescore feed') ?></option>
|
<option value="qmcRescoreFeed"><?php echo __(' Rescore feed') ?></option>
|
||||||
<option value="qmcRemoveFeed"><?php echo __(' Unsubscribe') ?></option>
|
<option value="qmcRemoveFeed"><?php echo __(' Unsubscribe') ?></option>
|
||||||
<option disabled>--------</option>
|
<option disabled="disabled">--------</option>
|
||||||
<option style="color : #5050aa" disabled><?php echo __('All feeds:') ?></option>
|
<option style="color : #5050aa" disabled="disabled"><?php echo __('All feeds:') ?></option>
|
||||||
<option value="qmcCatchupAll"><?php echo __(' Mark as read') ?></option>
|
<option value="qmcCatchupAll"><?php echo __(' Mark as read') ?></option>
|
||||||
<option value="qmcShowOnlyUnread"><?php echo __(' (Un)hide read feeds') ?></option>
|
<option value="qmcShowOnlyUnread"><?php echo __(' (Un)hide read feeds') ?></option>
|
||||||
<option disabled>--------</option>
|
<option disabled="disabled">--------</option>
|
||||||
<option style="color : #5050aa" disabled><?php echo __('Other actions:') ?></option>
|
<option style="color : #5050aa" disabled="disabled"><?php echo __('Other actions:') ?></option>
|
||||||
<option value="qmcAddFilter"><?php echo __(' Create filter') ?></option>
|
<option value="qmcAddFilter"><?php echo __(' Create filter') ?></option>
|
||||||
<option value="qmcResetUI"><?php echo __(' Reset UI layout') ?></option>
|
<option value="qmcResetUI"><?php echo __(' Reset UI layout') ?></option>
|
||||||
<option value="qmcResetCats"><?php echo __(' Reset category order') ?></option>
|
<option value="qmcResetCats"><?php echo __(' Reset category order') ?></option>
|
||||||
|
@ -163,29 +166,29 @@ window.onload = init;
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="main_toolbar_form" onsubmit='return false'>
|
<form id="main_toolbar_form" action="" onsubmit='return false'>
|
||||||
|
|
||||||
<input type="submit" value="<<"
|
<input type="submit" value="<<"
|
||||||
id="collapse_feeds_btn" onclick="collapse_feedlist()" class="button"
|
id="collapse_feeds_btn" onclick="collapse_feedlist()" class="button"
|
||||||
title="<?php echo __('Collapse feedlist') ?>" style="display : none">
|
title="<?php echo __('Collapse feedlist') ?>" style="display : none"/>
|
||||||
|
|
||||||
<input type="submit" value="<?php echo __("Toggle Feedlist") ?>"
|
<input type="submit" value="<?php echo __("Toggle Feedlist") ?>"
|
||||||
id="toggle_feeds_btn" class="button"
|
id="toggle_feeds_btn" class="button"
|
||||||
onclick="toggle_feedlist()" style="display : none">
|
onclick="toggle_feedlist()" style="display : none"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
|
<?php if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
|
||||||
|
|
||||||
<?php echo __('Search:') ?>
|
<?php echo __('Search:') ?>
|
||||||
<input name="query" type="search"
|
<input name="query" type="text"
|
||||||
onKeyPress="return filterCR(event, viewCurrentFeed)"
|
onkeypress="return filterCR(event, viewCurrentFeed)"
|
||||||
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();">
|
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();"/>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<select name="view_mode" onchange="viewModeChanged()">
|
<select name="view_mode" onchange="viewModeChanged()">
|
||||||
<option selected value="adaptive"><?php echo __('Adaptive') ?></option>
|
<option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option>
|
||||||
<option value="all_articles"><?php echo __('All Articles') ?></option>
|
<option value="all_articles"><?php echo __('All Articles') ?></option>
|
||||||
<option value="marked"><?php echo __('Starred') ?></option>
|
<option value="marked"><?php echo __('Starred') ?></option>
|
||||||
<option value="unread"><?php echo __('Unread') ?></option>
|
<option value="unread"><?php echo __('Unread') ?></option>
|
||||||
|
@ -195,7 +198,7 @@ window.onload = init;
|
||||||
<?php echo __('Order:') ?>
|
<?php echo __('Order:') ?>
|
||||||
|
|
||||||
<select name="order_by" onchange="viewModeChanged()">
|
<select name="order_by" onchange="viewModeChanged()">
|
||||||
<option selected value="default"><?php echo __('Default') ?></option>
|
<option selected="selected" value="default"><?php echo __('Default') ?></option>
|
||||||
<option value="date"><?php echo __('Date') ?></option>
|
<option value="date"><?php echo __('Date') ?></option>
|
||||||
<option value="title"><?php echo __('Title') ?></option>
|
<option value="title"><?php echo __('Title') ?></option>
|
||||||
<option value="score"><?php echo __('Score') ?></option>
|
<option value="score"><?php echo __('Score') ?></option>
|
||||||
|
@ -227,7 +230,7 @@ window.onload = init;
|
||||||
|
|
||||||
<input class="button" type="submit"
|
<input class="button" type="submit"
|
||||||
onclick="return viewCurrentFeed('ForceUpdate')"
|
onclick="return viewCurrentFeed('ForceUpdate')"
|
||||||
value="<?php echo __('Update') ?>">
|
value="<?php echo __('Update') ?>"/>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue