diff --git a/api/export_html.php b/api/export_html.php new file mode 100644 index 0000000..b422b4b --- /dev/null +++ b/api/export_html.php @@ -0,0 +1,57 @@ +getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag, NULL, getSortOrder()); + +$currentuser = $userservice->getCurrentUser(); +$currentusername = $currentuser[$userservice->getFieldName('username')]; + +// Set up the XML file and output all the posts. +header('Content-Type: text/html'); +echo ''."\r\n"; +echo ''; +echo ''."\r\n"; +echo '
'."\r\n"; + + + +foreach($bookmarks['bookmarks'] as $row) { + if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) + $description = ''; + else + $description = 'description="'. filter($row['bDescription'], 'xml') .'" '; + + $taglist = ''; + if (count($row['tags']) > 0) { + foreach($row['tags'] as $tag) + $taglist .= convertTag($tag) .','; + $taglist = substr($taglist, 0, -1); + } else { + $taglist = 'system:unfiled'; + } + + echo "\t
'; +?> diff --git a/templates/editprofile.tpl.php b/templates/editprofile.tpl.php index 8108b2c..c9eb8a4 100644 --- a/templates/editprofile.tpl.php +++ b/templates/editprofile.tpl.php @@ -56,8 +56,8 @@ $this->includeTemplate($GLOBALS['top_include']);