From a11432db93dbfdb0dbc78e1dd384663439799559 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 23 May 2011 06:53:31 +0200 Subject: first try to implement theming support, which currently does not work at all --- data/templates/default/editbookmark.tpl.php | 221 ++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 data/templates/default/editbookmark.tpl.php (limited to 'data/templates/default/editbookmark.tpl.php') diff --git a/data/templates/default/editbookmark.tpl.php b/data/templates/default/editbookmark.tpl.php new file mode 100644 index 0000000..8b71230 --- /dev/null +++ b/data/templates/default/editbookmark.tpl.php @@ -0,0 +1,221 @@ +includeTemplate($GLOBALS['top_include']); + +$accessPublic = ''; +$accessShared = ''; +$accessPrivate = ''; +switch ($row['bStatus']) { + case 0 : + $accessPublic = ' selected="selected"'; + break; + case 1 : + $accessShared = ' selected="selected"'; + break; + case 2 : + $accessPrivate = ' selected="selected"'; + break; +} + +function jsEscTitle($title) +{ + return addcslashes($title, "'"); +} +function jsEscTitleDouble($title) +{ + return addcslashes(addcslashes($title, "'"), "'\\"); +} +function fixOperaButtonName($name) { + //yes, opera has problems with double quotes in button names + return str_replace('"', "''", $name); +} + +if (is_array($row['tags'])) { + $row['tags'] = implode(', ', $row['tags']); +} + +$ajaxUrl = ROOT . 'ajax/' + . ( + ($GLOBALS['adminsAreAdvisedTagsFromOtherAdmins'] && $currentUser->isAdmin()) + ? 'getadmintags' + : 'getcontacttags' + ) . '.php'; +?> +
+ + + + + + + + + + + + + + + + +style="display:none"> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + 0): ?> +

+ + $anchorValue): ?> + + + + +
+
+ +
" to include one tag in another. e.g.: europe>france>paris'))?>
+ +
+ + + + + '; + echo T_('edit common description').')'; + } + + if ($popup) { + ?> + + + + +
+
+ + + + + + + + + +includeTemplate('dynamictags.inc'); + +// Bookmarklets and import links +if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) { + +$this->includeTemplate('bookmarklet.inc.php'); +?> +

+ + +includeTemplate($GLOBALS['bottom_include']); +?> -- cgit v1.2.3