' . "\n"; foreach ($bookmarks as $value) { echo '
' . "\n"; # the folders, only needed when searching for bookmarks if ($show_folder) { if ($value['fid'] == null) { $value['name'] = $settings['root_folder_name']; $value['fid'] = 0; } if ($value['fpublic']) { $folder_image = $folder_opened_public; } else { $folder_image = $folder_opened; } $expand = $tree->get_path_to_root ($value['fid']); echo "\t" . '
'; echo ''; echo $folder_image . " " . $value['name'] . ""; echo "
\n"; } # the checkbox and favicon section echo "\t" . '
' . "\n"; # the checkbox if ($show_checkbox){ echo "\t\t" . '' . "\n"; } # the favicon echo "\t\t"; if ($show_icon){ if ($value['favicon'] && is_file ($value['favicon'])) { echo ''; } else { echo $bookmark_image; } } echo "\n\t
\n"; # the share, date and edit/move/delete icon section echo "\t" . '
' . "\n"; if ($show_share) { $share = $value['public'] ? 'public' : 'private'; echo "\t\t" . '' . $share . "\n"; } if ($show_date) { echo "\t\t" . ''; echo date ($date_formats[$settings['date_format']], $value['timestamp']); echo "\t\n"; } # the edit column if ($show_edit) { echo "\t\t" . ''; echo sprintf ($edit_image, "Edit"); echo "\n"; } # the move column if ($show_move) { echo "\t\t" . ''; echo sprintf ($move_image, "Move"); echo "\n"; } # the delete column if ($show_delete) { echo "\t\t" . ''; echo sprintf ($delete_image, "Delete"); echo "\n"; } echo "\t
\n"; # the link if ($settings['open_new_window']) { $target = ' target="_blank"'; } else { $target = null; } if ($show_link){ $link = '' . $value['title'] . ""; } else { $link = $value['title']; } echo "\t" . '\n"; # the description and if not empty if ($show_desc && $value['description'] != "") { if ($show_folder) { $css_extension = ' style="margin-left: ' . $column_width_folder . ';"'; } else { $css_extension = ""; } echo "\t" . '
' . $value['description'] . "
\n"; } echo "
\n\n"; } echo "\n"; } ?>