Added a link to use Online-Bookmarks as a real Firefox Sidebar.
This commit is contained in:
29
settings.php
29
settings.php
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user