1
0

Adding the 'select all' possibility to the bookmarks header.

This commit is contained in:
Stefan Frech
2008-06-12 19:14:20 +00:00
committed by Jonas Kattendick
parent 7782823d1d
commit b4308ee5ab
4 changed files with 18 additions and 20 deletions

View File

@@ -49,18 +49,7 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
echo "\t" . '<div class="bmleft">' . "\n";
# the checkbox
if ($show_checkbox){
echo "\t\t" . '<input class="link" type="checkbox" name="' . $value['id'] . '">' . "\n";
}
# the favicon
echo "\t\t";
if ($show_icon){
if ($value['favicon'] && is_file ($value['favicon'])) {
echo '<img src="' . $value['favicon'] . '" width="16" height="16">';
}
else {
echo $bookmark_image;
}
echo "\t\t" . '<input type="checkbox" name="' . $value['id'] . '">' . "\n";
}
echo "\n\t</div>\n";
@@ -97,9 +86,20 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
echo sprintf ($delete_image, "Delete");
echo "</a>\n";
}
echo "\t</div>\n";
# the favicon
echo "\t" . '<div class="link">' . "\n";
echo "\t\t";
if ($show_icon){
if ($value['favicon'] && is_file ($value['favicon'])) {
echo '<img src="' . $value['favicon'] . '" width="16" height="16" alt="">' . "\n";
}
else {
echo $bookmark_image . "\n";
}
}
# the link
if ($settings['open_new_window']) {
$target = ' target="_blank"';
@@ -114,7 +114,8 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
else {
$link = $value['title'];
}
echo "\t" . '<div class="link">' . $link . "</div>\n";
echo "\t\t$link\n";
echo "\t</div>\n";
# the description and if not empty
if ($show_desc && $value['description'] != "") {