1
0

Added a link to use Online-Bookmarks as a real Firefox Sidebar.

This commit is contained in:
Stefan Frech
2008-05-17 13:35:42 +00:00
committed by Jonas Kattendick
parent 9bba3877d5
commit df60ffea39
2 changed files with 31 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ function check_date_format () {
</tr>
<tr>
<td>Show the column with the change date: <?php echo date ("d.m.Y"); ?></td>
<td>Show the column with the change date: <?php echo date ($date_formats[$settings['date_format']]); ?></td>
<td>
<input type="checkbox" name="settings_show_column_date" <?php if ($settings['show_column_date'] == 1) {echo "checked";}?>></input>
</td>
@@ -355,6 +355,33 @@ function check_date_format () {
Note that if your browser has a Popup Blocker enabled you might experience difficulties using
the upper link.
</p>
<hr>
<p>
<script type="text/javascript">
<!--
function addSidebar() {
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")){
var sidebarname=window.location.host;
if (!/bug/i.test(sidebarname))
sidebarname="Online Bookmarks "+sidebarname;
window.sidebar.addPanel (sidebarname, "<?php echo $js_url; ?>/sidebar.php", "");
}
else{
var rv = window.confirm ("Your browser does not support the sidebar extension. " + "Would you like to upgrade now?");
if (rv)
document.location.href = "http://www.mozilla.org/";
}
}
//-->
</script>
If you are using <a href="http://www.mozilla.com/firefox/">Firefox</a> as a webbrowser, you can
use the link below to add a bookmark which opens Online-Bookmarks as a sidebar.<br>
<b><a href="javascript:addSidebar()">Add to Sidebar</a></b>
</p>
<hr>
</td>
</tr>
</table>