' . "\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" . '
\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";
# 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" . '
' . $link . "
\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";
}
?>