From a89a4c07b811ceda200c7913d9629466f345d674 Mon Sep 17 00:00:00 2001 From: buckaroo-labs Date: Wed, 20 Dec 2023 19:16:51 -0800 Subject: bundle sscuttlizr theme --- data/templates/sscuttlizr/about.tpl.php | 41 + data/templates/sscuttlizr/admin.tpl.php | 44 + .../bookmarkcommondescriptionedit.tpl.php | 64 + data/templates/sscuttlizr/bookmarklet.inc.php | 117 + .../sscuttlizr/bookmarks-thumbnail.inc.tpl.php | 18 + .../bookmarks-vote-horizontal.inc.tpl.php | 50 + .../sscuttlizr/bookmarks-vote.inc.tpl.php | 44 + data/templates/sscuttlizr/bookmarks.tpl.php | 533 + data/templates/sscuttlizr/bottom.inc.php | 50 + data/templates/sscuttlizr/dynamictags.inc.php | 148 + data/templates/sscuttlizr/editbookmark.tpl.php | 226 + .../sscuttlizr/editprofile-sslclientcerts.tpl.php | 60 + data/templates/sscuttlizr/editprofile.tpl.php | 74 + data/templates/sscuttlizr/error.404.tpl.php | 9 + data/templates/sscuttlizr/error.500.tpl.php | 9 + data/templates/sscuttlizr/importDelicious.tpl.php | 42 + data/templates/sscuttlizr/importNetscape.tpl.php | 50 + data/templates/sscuttlizr/importStructure.tpl.php | 42 + data/templates/sscuttlizr/jappix.php | 82 + data/templates/sscuttlizr/login.tpl.php | 42 + data/templates/sscuttlizr/password.tpl.php | 26 + data/templates/sscuttlizr/piwik.php | 25 + data/templates/sscuttlizr/profile.tpl.php | 80 + data/templates/sscuttlizr/register.tpl.php | 50 + data/templates/sscuttlizr/rss.tpl.php | 30 + data/templates/sscuttlizr/search.menu.php | 55 + data/templates/sscuttlizr/sidebar.block.common.php | 28 + data/templates/sscuttlizr/sidebar.block.linked.php | 66 + data/templates/sscuttlizr/sidebar.block.menu.php | 80 + data/templates/sscuttlizr/sidebar.block.menu2.php | 71 + .../templates/sscuttlizr/sidebar.block.popular.php | 44 + data/templates/sscuttlizr/sidebar.block.recent.php | 39 + .../templates/sscuttlizr/sidebar.block.related.php | 40 + data/templates/sscuttlizr/sidebar.block.search.php | 51 + .../sscuttlizr/sidebar.block.tagactions.php | 35 + data/templates/sscuttlizr/sidebar.block.users.php | 34 + .../sscuttlizr/sidebar.block.watchlist.php | 60 + .../sscuttlizr/sidebar.block.watchstatus.php | 28 + .../sscuttlizr/sidebar.linkedtags.inc.php | 84 + data/templates/sscuttlizr/sidebar.tpl.php | 23 + data/templates/sscuttlizr/tag2tagadd.tpl.php | 64 + data/templates/sscuttlizr/tag2tagdelete.tpl.php | 56 + data/templates/sscuttlizr/tag2tagedit.tpl.php | 81 + .../sscuttlizr/tagcommondescriptionedit.tpl.php | 55 + data/templates/sscuttlizr/tagdelete.tpl.php | 25 + data/templates/sscuttlizr/tagedit.tpl.php | 40 + data/templates/sscuttlizr/tagrename.tpl.php | 46 + data/templates/sscuttlizr/tags.tpl.php | 40 + data/templates/sscuttlizr/toolbar.inc.php | 41 + data/templates/sscuttlizr/top.inc.php | 115 + data/templates/sscuttlizr/users.tpl.php | 42 + www/js/sscuttlizr/bootstrap.js | 1951 ++++ www/js/sscuttlizr/bootstrap.min.js | 6 + www/js/sscuttlizr/jquery-1.11.0.js | 10337 +++++++++++++++++++ www/js/sscuttlizr/jquery-1.11.0.min.js | 4 + www/js/sscuttlizr/jquery-1.11.0.min.map | 1 + www/js/sscuttlizr/jquery.qrcode.min.js | 28 + www/js/sscuttlizr/modernizr.min.js | 828 ++ www/themes/sscuttlizr/css/bootstrap.min.css | 7 + www/themes/sscuttlizr/css/font-awesome.min.css | 4 + www/themes/sscuttlizr/fonts/FontAwesome.otf | Bin 0 -> 62856 bytes .../sscuttlizr/fonts/fontawesome-webfont.eot | Bin 0 -> 38205 bytes .../sscuttlizr/fonts/fontawesome-webfont.svg | 414 + .../sscuttlizr/fonts/fontawesome-webfont.ttf | Bin 0 -> 80652 bytes .../sscuttlizr/fonts/fontawesome-webfont.woff | Bin 0 -> 44432 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20290 bytes .../fonts/glyphicons-halflings-regular.svg | 229 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 41236 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23292 bytes www/themes/sscuttlizr/icon.png | Bin 0 -> 771 bytes www/themes/sscuttlizr/images/b_edit.png | Bin 0 -> 451 bytes www/themes/sscuttlizr/images/bg_admin.png | Bin 0 -> 1212 bytes www/themes/sscuttlizr/images/bg_bar.png | Bin 0 -> 873 bytes www/themes/sscuttlizr/images/bg_header.png | Bin 0 -> 684 bytes www/themes/sscuttlizr/images/bg_sidebar.png | Bin 0 -> 726 bytes www/themes/sscuttlizr/images/loading.gif | Bin 0 -> 1582 bytes www/themes/sscuttlizr/images/logo.png | Bin 0 -> 2973 bytes www/themes/sscuttlizr/images/logo_24.gif | Bin 0 -> 1530 bytes www/themes/sscuttlizr/images/poche.png | Bin 0 -> 897 bytes www/themes/sscuttlizr/images/rss.gif | Bin 0 -> 401 bytes www/themes/sscuttlizr/images/thumbs_up.orig.png | Bin 0 -> 19257 bytes www/themes/sscuttlizr/images/yourls.png | Bin 0 -> 538 bytes www/themes/sscuttlizr/scuttle.css | 679 ++ 83 files changed, 17787 insertions(+) create mode 100644 data/templates/sscuttlizr/about.tpl.php create mode 100644 data/templates/sscuttlizr/admin.tpl.php create mode 100644 data/templates/sscuttlizr/bookmarkcommondescriptionedit.tpl.php create mode 100644 data/templates/sscuttlizr/bookmarklet.inc.php create mode 100644 data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php create mode 100644 data/templates/sscuttlizr/bookmarks-vote-horizontal.inc.tpl.php create mode 100644 data/templates/sscuttlizr/bookmarks-vote.inc.tpl.php create mode 100644 data/templates/sscuttlizr/bookmarks.tpl.php create mode 100644 data/templates/sscuttlizr/bottom.inc.php create mode 100644 data/templates/sscuttlizr/dynamictags.inc.php create mode 100644 data/templates/sscuttlizr/editbookmark.tpl.php create mode 100644 data/templates/sscuttlizr/editprofile-sslclientcerts.tpl.php create mode 100644 data/templates/sscuttlizr/editprofile.tpl.php create mode 100644 data/templates/sscuttlizr/error.404.tpl.php create mode 100644 data/templates/sscuttlizr/error.500.tpl.php create mode 100644 data/templates/sscuttlizr/importDelicious.tpl.php create mode 100644 data/templates/sscuttlizr/importNetscape.tpl.php create mode 100644 data/templates/sscuttlizr/importStructure.tpl.php create mode 100644 data/templates/sscuttlizr/jappix.php create mode 100644 data/templates/sscuttlizr/login.tpl.php create mode 100644 data/templates/sscuttlizr/password.tpl.php create mode 100644 data/templates/sscuttlizr/piwik.php create mode 100644 data/templates/sscuttlizr/profile.tpl.php create mode 100644 data/templates/sscuttlizr/register.tpl.php create mode 100644 data/templates/sscuttlizr/rss.tpl.php create mode 100644 data/templates/sscuttlizr/search.menu.php create mode 100644 data/templates/sscuttlizr/sidebar.block.common.php create mode 100644 data/templates/sscuttlizr/sidebar.block.linked.php create mode 100644 data/templates/sscuttlizr/sidebar.block.menu.php create mode 100644 data/templates/sscuttlizr/sidebar.block.menu2.php create mode 100644 data/templates/sscuttlizr/sidebar.block.popular.php create mode 100644 data/templates/sscuttlizr/sidebar.block.recent.php create mode 100644 data/templates/sscuttlizr/sidebar.block.related.php create mode 100644 data/templates/sscuttlizr/sidebar.block.search.php create mode 100644 data/templates/sscuttlizr/sidebar.block.tagactions.php create mode 100644 data/templates/sscuttlizr/sidebar.block.users.php create mode 100644 data/templates/sscuttlizr/sidebar.block.watchlist.php create mode 100644 data/templates/sscuttlizr/sidebar.block.watchstatus.php create mode 100644 data/templates/sscuttlizr/sidebar.linkedtags.inc.php create mode 100644 data/templates/sscuttlizr/sidebar.tpl.php create mode 100644 data/templates/sscuttlizr/tag2tagadd.tpl.php create mode 100644 data/templates/sscuttlizr/tag2tagdelete.tpl.php create mode 100644 data/templates/sscuttlizr/tag2tagedit.tpl.php create mode 100644 data/templates/sscuttlizr/tagcommondescriptionedit.tpl.php create mode 100644 data/templates/sscuttlizr/tagdelete.tpl.php create mode 100644 data/templates/sscuttlizr/tagedit.tpl.php create mode 100644 data/templates/sscuttlizr/tagrename.tpl.php create mode 100644 data/templates/sscuttlizr/tags.tpl.php create mode 100644 data/templates/sscuttlizr/toolbar.inc.php create mode 100644 data/templates/sscuttlizr/top.inc.php create mode 100644 data/templates/sscuttlizr/users.tpl.php create mode 100644 www/js/sscuttlizr/bootstrap.js create mode 100644 www/js/sscuttlizr/bootstrap.min.js create mode 100644 www/js/sscuttlizr/jquery-1.11.0.js create mode 100644 www/js/sscuttlizr/jquery-1.11.0.min.js create mode 100644 www/js/sscuttlizr/jquery-1.11.0.min.map create mode 100644 www/js/sscuttlizr/jquery.qrcode.min.js create mode 100644 www/js/sscuttlizr/modernizr.min.js create mode 100644 www/themes/sscuttlizr/css/bootstrap.min.css create mode 100644 www/themes/sscuttlizr/css/font-awesome.min.css create mode 100644 www/themes/sscuttlizr/fonts/FontAwesome.otf create mode 100644 www/themes/sscuttlizr/fonts/fontawesome-webfont.eot create mode 100644 www/themes/sscuttlizr/fonts/fontawesome-webfont.svg create mode 100644 www/themes/sscuttlizr/fonts/fontawesome-webfont.ttf create mode 100644 www/themes/sscuttlizr/fonts/fontawesome-webfont.woff create mode 100644 www/themes/sscuttlizr/fonts/glyphicons-halflings-regular.eot create mode 100644 www/themes/sscuttlizr/fonts/glyphicons-halflings-regular.svg create mode 100644 www/themes/sscuttlizr/fonts/glyphicons-halflings-regular.ttf create mode 100644 www/themes/sscuttlizr/fonts/glyphicons-halflings-regular.woff create mode 100644 www/themes/sscuttlizr/icon.png create mode 100644 www/themes/sscuttlizr/images/b_edit.png create mode 100644 www/themes/sscuttlizr/images/bg_admin.png create mode 100644 www/themes/sscuttlizr/images/bg_bar.png create mode 100644 www/themes/sscuttlizr/images/bg_header.png create mode 100644 www/themes/sscuttlizr/images/bg_sidebar.png create mode 100644 www/themes/sscuttlizr/images/loading.gif create mode 100644 www/themes/sscuttlizr/images/logo.png create mode 100644 www/themes/sscuttlizr/images/logo_24.gif create mode 100644 www/themes/sscuttlizr/images/poche.png create mode 100644 www/themes/sscuttlizr/images/rss.gif create mode 100644 www/themes/sscuttlizr/images/thumbs_up.orig.png create mode 100644 www/themes/sscuttlizr/images/yourls.png create mode 100644 www/themes/sscuttlizr/scuttle.css diff --git a/data/templates/sscuttlizr/about.tpl.php b/data/templates/sscuttlizr/about.tpl.php new file mode 100644 index 0000000..4841124 --- /dev/null +++ b/data/templates/sscuttlizr/about.tpl.php @@ -0,0 +1,41 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
+
+ + + +

+ + +

+ + +
+
+ +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/admin.tpl.php b/data/templates/sscuttlizr/admin.tpl.php new file mode 100644 index 0000000..02502c0 --- /dev/null +++ b/data/templates/sscuttlizr/admin.tpl.php @@ -0,0 +1,44 @@ +includeTemplate($GLOBALS['top_include']); +?> +
+
+
+ '.T_('Users management').''; + + echo '
    '; + + foreach($users as $user) { + echo '
  1. '."\n"; + + echo ''; + + if($user->getUsername() != $currentUser->getUsername()) { + echo '
    '; + echo ''.T_('Delete').''; + echo '
    '; + } + + echo '
  2. '."\n"; + } + echo '
'; + ?> +

+

+ +

+
+
+ includeTemplate('sidebar.tpl'); + ?> +
+
+
+includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/bookmarkcommondescriptionedit.tpl.php b/data/templates/sscuttlizr/bookmarkcommondescriptionedit.tpl.php new file mode 100644 index 0000000..b1114d7 --- /dev/null +++ b/data/templates/sscuttlizr/bookmarkcommondescriptionedit.tpl.php @@ -0,0 +1,64 @@ +includeTemplate($GLOBALS['top_include']); + +list ($url, $hash) = explode('/', $_SERVER['PATH_INFO']); + + +?> + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ 0) { + echo T_('Last modification:').' '.$description['cdDatetime'].', '; + $lastUser = $userservice->getUser($description['uId']); + echo '' + . SemanticScuttle_Model_UserArray::getName($lastUser) . ''; + } + ?> +
+ + +
+ + +
+ +
+
+
+
+
+ +includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/bookmarklet.inc.php b/data/templates/sscuttlizr/bookmarklet.inc.php new file mode 100644 index 0000000..c93f581 --- /dev/null +++ b/data/templates/sscuttlizr/bookmarklet.inc.php @@ -0,0 +1,117 @@ +

+

+ + diff --git a/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php b/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php new file mode 100644 index 0000000..77cc67f --- /dev/null +++ b/data/templates/sscuttlizr/bookmarks-thumbnail.inc.tpl.php @@ -0,0 +1,18 @@ +'; +echo ''; + +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/bookmarks-vote-horizontal.inc.tpl.php b/data/templates/sscuttlizr/bookmarks-vote-horizontal.inc.tpl.php new file mode 100644 index 0000000..665894d --- /dev/null +++ b/data/templates/sscuttlizr/bookmarks-vote-horizontal.inc.tpl.php @@ -0,0 +1,50 @@ +'; +echo sprintf( + T_('Voting %d'), $row['bVoting'] +) . ' '; + +if (isset($row['hasVoted'])) { + if ($row['vote'] != 1) { + echo ' ' . T_('Vote for') . ' '; + } else { + echo ' ' + . T_('Vote for') . ' '; + } + + + if ($row['vote'] != -1) { + echo ' ' . T_('Vote against') . ''; + } else { + echo ' ' + . T_('Vote against') . ''; + } +} +echo ''; +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/bookmarks-vote.inc.tpl.php b/data/templates/sscuttlizr/bookmarks-vote.inc.tpl.php new file mode 100644 index 0000000..a553569 --- /dev/null +++ b/data/templates/sscuttlizr/bookmarks-vote.inc.tpl.php @@ -0,0 +1,44 @@ +'; + +if (isset($row['hasVoted']) && $row['vote'] != 1) { + echo '+'; +} else { + echo '+'; +} + +echo '' . $row['bVoting'] . ''; + +if (isset($row['hasVoted']) && $row['vote'] != -1) { + echo '-'; +} else { + echo '-'; +} +echo ''; +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/bookmarks.tpl.php b/data/templates/sscuttlizr/bookmarks.tpl.php new file mode 100644 index 0000000..944e657 --- /dev/null +++ b/data/templates/sscuttlizr/bookmarks.tpl.php @@ -0,0 +1,533 @@ + + * @author Christian Weiske + * @author Eric Dane + * @license GPL http://www.gnu.org/licenses/gpl.html + * @link http://sourceforge.net/projects/semanticscuttle + */ + +/* Service creation: only useful services are created */ +$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark'); +$tagservice = SemanticScuttle_Service_Factory::get('Tag'); +$cdservice = SemanticScuttle_Service_Factory::get('CommonDescription'); + + +$pageName = isset($pageName) ? $pageName : ''; +$user = isset($user) ? $user : ''; +$currenttag = isset($currenttag) ? $currenttag : ''; + + +$this->includeTemplate($GLOBALS['top_include']); +?> + + +
+ +

+
+ + + +isAdmin($userid) && $pageName != PAGE_WATCHLIST) : ?> +
+ + + +
+ + + + + + +

getLastTagDescription($currenttag)) { + $cDescription = $cdservice->getLastTagDescription($currenttag); + echo nl2br(filter($cDescription['cdDescription'])); +} elseif(isset($hash) && $cdservice->getLastBookmarkDescription($hash)) { + $cDescription = $cdservice->getLastBookmarkDescription($hash); + echo nl2br(filter($cDescription['cdTitle'])). "
"; + echo nl2br(filter($cDescription['cdDescription'])). "
"; +} + +//common tag description edit +if ($userservice->isLoggedOn()) { + if ($currenttag != '' + && ($GLOBALS['enableCommonTagDescriptionEditedByAll'] + || $currentUser->isAdmin() + ) + ) { + echo ' '; + echo !is_array($cDescription) || strlen($cDescription['cdDescription'])==0?T_('Edit the common description of this tag'):''; + echo ' '; + } else if (isset($hash)) { + echo ' ('; + echo T_('Edit the common description of this bookmark').')'; + } +} +?>

+ + + +getUserByUsername($user); + if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?> + +

getDescription($currenttag, $userObject['uId']); +echo nl2br(filter($pDescription['tDescription'])); + +//personal tag description edit +if($userservice->isLoggedOn()) { + if($currenttag!= '') { + echo ' '; + echo strlen($pDescription['tDescription'])==0?T_('Edit your personal description of this tag'):''; + echo ' '; + } +} +?>

+ + + + 0) { ?> + +
+
+
+

- + '; + $dateSort = 'date_desc'; + break; + +case 'title_asc': + $titleArrow = ' '; + $titleSort = 'title_desc'; + break; + +case 'title_desc': + $titleArrow = ' '; + $titleSort = 'title_asc'; + break; + +case 'voting_asc': + $votingArrow = ' '; + $votingSort = 'voting_desc'; + break; + +case 'voting_desc': + $votingArrow = ' '; + $votingSort = 'voting_asc'; + break; + +case 'date_desc': +default: + $dateArrow = ' '; + $dateSort = 'date_asc'; + break; +} +?> + + / + + / + + + / + + +'; + echo T_('Bookmarks from other users for this tag').''; + //echo T_(' for these tags'); + } else if ($userservice->isLoggedOn()){ + echo ' - '; + echo ''; + echo T_('Only your bookmarks for this tag').''; + //echo T_(' for these tags'); + } +} +?>

+
+
+
+ +
+
+
+ '. T_('First') .''; + $bprev = ' '. T_('Previous') .''; + } else { + $prev = $page - 1; + $prev = 'page='. $prev; + $start = ($page - 1) * $perpage; + $bfirst= ' '. T_('First') .''; + $bprev = ' '. T_('Previous') .''; + } + + // Next + $next = $page + 1; + $totalpages = ceil($total / $perpage); + if (count($bookmarks) < $perpage || $perpage * $page == $total) { + $bnext = ''. T_('Next') .' '; + $blast = ''. T_('Last') .' ' . "\n"; + } else { + $bnext = ''. T_('Next') .' '; + $blast = ''. T_('Last') .' ' . "\n"; + } + + // RSS + $brss = ''; + $size = count($rsschannels); + for ($i = 0; $i < $size; $i++) { + $brss = '' + . '' . htmlspecialchars($rsschannels[$i][0]) .'' + . ''; + } + + $pagesBanner = '

'. $bfirst . $bprev . $bnext . $blast . sprintf(T_('Page %d of %d'), $page, $totalpages) ." ". $brss ."

\n"; + + if (getPerPageCount($currentUser) > 10) { + echo $pagesBanner; // display a page banner if too many bookmarks to manage + } + + +?> +
+
+
+ + +
+
+
+ 0 ? ' start="'. ++$start .'"' : ''); ?> id="bookmarks"> + &$row) { + $addresses[$row['bId']] = $row['bAddress']; + } + $otherCounts = $bookmarkservice->countOthers($addresses); + if ($userservice->isLoggedOn()) { + $existence = $bookmarkservice->bookmarksExist( + $addresses, $currentUser->getId() + ); + } + + if ($userservice->isLoggedOn()) { + $watchedNames = $userservice->getWatchNames( + $currentUser->getId(), true + ); + } else { + $watchedNames = null; + } + + foreach ($bookmarks as $key => &$row) { + switch ($row['bStatus']) { + case 0: + $access = ''; + break; + case 1: + $access = ' shared'; + break; + case 2: + $access = ' private'; + break; + } + + $cats = ''; + $tagsForCopy = ''; + $tags = $row['tags']; + foreach ($tags as $tkey => &$tag) { + $tagcaturl = sprintf( + $cat_url, + filter($row['username'], 'url'), + filter($tag, 'url') + ); + $cats .= sprintf( + ', ', + $tagcaturl, filter($tag) + ); + $tagsForCopy .= $tag . ','; + } + $cats = substr($cats, 0, -2); + if ($cats != '') { + $cats = T_('Tags:') . ' ' . $cats; + } + + // Edit and delete links + $edit = ''; + if ($bookmarkservice->editAllowed($row)) { + $edit = ' - ' + . T_('Edit') + . '' + . ' ' + . T_('Delete') + .''; + } + + // Last update + $update = ' ('. date($GLOBALS['shortdate'], strtotime($row['bModified'])). ') '; + + // User attribution + $copy = ' ' . T_('by') . ' '; + if ($userservice->isLoggedOn() + && $currentUser->getUsername() == $row['username'] + ) { + $copy .= T_('you'); + } else { + $copy .= '' + . SemanticScuttle_Model_UserArray::getName($row) + . ''; + } + + // others + if (!isset($hash)) { + $others = $otherCounts[$row['bAddress']]; + $ostart = ''; + $oend = ''; + switch ($others) { + case 0: + break; + case 1: + $copy .= sprintf(T_(' and %s1 other%s'), $ostart, $oend); + break; + default: + $copy .= sprintf(T_(' and %2$s%1$s others%3$s'), $others, $ostart, $oend); + } + } + + // Copy link + if ($userservice->isLoggedOn() + && ($currentUser->getId() != $row['uId']) + && !$existence[$row['bAddress']] + ) { + $copy .= ' - ' + . T_('Copy') + . ''; + } + + // Nofollow option + $rel = ''; + if ($GLOBALS['nofollow']) { + $rel = ' rel="nofollow"'; + } + + $address = $row['bAddress']; + $oaddress = $address; + // Redirection option + if ($GLOBALS['useredir']) { + $address = $GLOBALS['url_redir'] . $address; + } + + // Admin specific design + if ($userservice->isAdmin($row['username']) + && $GLOBALS['enableAdminColors'] + ) { + $adminBgClass = ' class="adminBackground"'; + $adminStar = ' '; + } else { + $adminBgClass = ''; + $adminStar = ''; + } + + // Private Note (just visible by the owner and his/her contacts) + if ($watchedNames !== null + && ($currentUser->getId() == $row['uId'] + || in_array($row['username'], $watchedNames) + ) + ) { + $privateNoteField = $row['bPrivateNote']; + } else { + $privateNoteField = ''; + } + + if ($GLOBALS['enableVoting'] && $GLOBALS['hideBelowVoting'] !== null + && $row['bVoting'] < $GLOBALS['hideBelowVoting'] + ) { + $access .= ' below-threshold'; + } + + // Output + echo '
  • '."\n"; + include 'bookmarks-thumbnail.inc.tpl.php'; + include 'bookmarks-vote.inc.tpl.php'; + + echo ' ' . "\n"; + + echo ' \n"; + if ($row['bDescription'] == '') { + $bkDescription = $GLOBALS['blankDescription']; + } else { + // Improve description display (anchors, links, ...) + $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor + $bkDescription = preg_replace('|\[(.*?)\]|', ' $1 ยป ', $bkDescription); // highlight starting anchor + $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '$1$3', $bkDescription); // make url clickable + + } + echo '
    '. nl2br($bkDescription) ."
    \n"; + echo '
    ' . htmlspecialchars(shortenString($oaddress)) . "
    \n"; + + echo '
    ' + . $cats . "\n" + . $copy . "\n" + . $edit . "\n" + . $update . "\n"; + if ( isset($GLOBALS['enableQrCodes']) && $GLOBALS['enableQrCodes'] == true ) { + echo ' QR Code ' . "\n"; + } + if ( isset($GLOBALS['pocheUrl']) && $GLOBALS['pocheUrl'] != '' ) { + echo ' Poche ' . "\n"; + } + if ( isset($GLOBALS['yourlsUrl']) && $GLOBALS['yourlsUrl'] != '' && isset($GLOBALS['yourlsApiKey']) && preg_match('#^[a-z0-9]{10}$#', $GLOBALS['yourlsApiKey']) ) { + echo ' Yourls ' . "\n"; + } + echo "
    \n"; + echo $privateNoteField != '' + ? '
    '.$privateNoteField."
    \n" + : ''; + echo ' '; + include 'bookmarks-vote-horizontal.inc.tpl.php'; + //echo "
  • \n"; + echo '
    '; + echo " \n"; + } + ?> + + + +
    + +
    + includeTemplate('sidebar.tpl'); + ?> +
    +
    + + + 7) { + echo '

    '.T_('Top of the page').'

    '; + } + echo $pagesBanner; // display previous and next links pages + RSS link + + +} else { + echo '

    '.T_('No bookmarks available').'

    '; +} + +$this->includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/bottom.inc.php b/data/templates/sscuttlizr/bottom.inc.php new file mode 100644 index 0000000..4e5b226 --- /dev/null +++ b/data/templates/sscuttlizr/bottom.inc.php @@ -0,0 +1,50 @@ +
    + +'.T_('About').''; +echo ' - '; +echo T_("Propulsed by "); +echo " SemanticScuttle"; + +if($GLOBALS['enableWebsiteThumbnails']) { + // Licence to the thumbnails provider (OBLIGATORY IF YOU USE ARTVIPER SERVICE) + echo ' (Thumbnails by webdesign)'; +} +?> + +
    + + + + + + + + + + + + + + + + + + + + + diff --git a/data/templates/sscuttlizr/dynamictags.inc.php b/data/templates/sscuttlizr/dynamictags.inc.php new file mode 100644 index 0000000..c2ab6d4 --- /dev/null +++ b/data/templates/sscuttlizr/dynamictags.inc.php @@ -0,0 +1,148 @@ +getCurrentUserId(); + +//tags from current user +$userPopularTags = $b2tservice->getPopularTags($logged_on_userid, 25, $logged_on_userid); +$userPopularTagsCloud = $b2tservice->tagCloud($userPopularTags, 5, 90, 175); +$userPopularTagsCount = count($userPopularTags); + +//tags from all users +$allPopularTags = $b2tservice->getPopularTags(null, 5, $logged_on_userid); +$allPopularTagsCloud = $b2tservice->tagCloud($allPopularTags, 5, 90, 175); +$allPopularTagsCount = count($allPopularTags); + + +// function printing the cloud +function writeTagsProposition($tagsCloud, $title) +{ + static $id = 0; + ++$id; + + echo <<' ++ '

    $title

    ' ++ '

    ' ++ ''); +JS; + + $taglist = ''; + foreach (array_keys($tagsCloud) as $key) { + $row = $tagsCloud[$key]; + $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']); + $taglist .= '' + . filter($row['tag']) + . ' '; + } + echo '$(\'#edit-tagcloud-' . $id . ' p\').append(' + . json_encode($taglist) + . ");\n"; +} + + +if ($allPopularTagsCount > 0 || $userPopularTagsCount > 0 ) { ?> + +
    + diff --git a/data/templates/sscuttlizr/editbookmark.tpl.php b/data/templates/sscuttlizr/editbookmark.tpl.php new file mode 100644 index 0000000..dfb97e1 --- /dev/null +++ b/data/templates/sscuttlizr/editbookmark.tpl.php @@ -0,0 +1,226 @@ +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'; +?> + +
    +
    +
    +
    + +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + + + + + 0): ?> +

    + + $anchorValue): ?> + + + + + +
    +
    +
    style="display:none"> + + + +
    +
    + +
    + + +
    + " 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']); +?> diff --git a/data/templates/sscuttlizr/editprofile-sslclientcerts.tpl.php b/data/templates/sscuttlizr/editprofile-sslclientcerts.tpl.php new file mode 100644 index 0000000..900c193 --- /dev/null +++ b/data/templates/sscuttlizr/editprofile-sslclientcerts.tpl.php @@ -0,0 +1,60 @@ + +

    + + + + + + + + + + + + + + isCurrent()) { echo 'class="ssl-current"'; } ?>> + + + + + + + + +
    Options
    +
    + + +
    +
    sslSerial); ?>sslName); ?>sslEmail); ?>sslClientIssuerDn); ?>
    + +

    + + + + isRegistered($sslClientCerts)) { ?> +

    + +

    +

    + +
    +

    + + +

    + diff --git a/data/templates/sscuttlizr/editprofile.tpl.php b/data/templates/sscuttlizr/editprofile.tpl.php new file mode 100644 index 0000000..df1b48c --- /dev/null +++ b/data/templates/sscuttlizr/editprofile.tpl.php @@ -0,0 +1,74 @@ + includeTemplate($GLOBALS['top_include']); + ?> + +
    +
    +
    +
    + + +

    + +
    + + +
    +
    + + +
    +
    + + +
    +
    + + + +
    +
    + + /> +
    + + + +

    + +
    + + +
    +
    + + +
    +
    + + +
    + + + +

    + +
    + + + / + / + + +
    +
    +
    +
    + +
    +
    +
    +
    + includeTemplate($GLOBALS['bottom_include']); + ?> diff --git a/data/templates/sscuttlizr/error.404.tpl.php b/data/templates/sscuttlizr/error.404.tpl.php new file mode 100644 index 0000000..fe9401d --- /dev/null +++ b/data/templates/sscuttlizr/error.404.tpl.php @@ -0,0 +1,9 @@ +includeTemplate($GLOBALS['top_include']); +if (!$error) { + echo '

    '. T_('Not Found') .'

    '; + echo '

    '. T_('The requested URL was not found on this server') .'

    '; +} +$this->includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/error.500.tpl.php b/data/templates/sscuttlizr/error.500.tpl.php new file mode 100644 index 0000000..1d7f7ae --- /dev/null +++ b/data/templates/sscuttlizr/error.500.tpl.php @@ -0,0 +1,9 @@ +includeTemplate($GLOBALS['top_include']); +if (!$error) { + echo '

    '. T_('General server error') .'

    '; + echo '

    '. T_('The requested URL could not be processed') .'

    '; +} +$this->includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/importDelicious.tpl.php b/data/templates/sscuttlizr/importDelicious.tpl.php new file mode 100644 index 0000000..0f53cde --- /dev/null +++ b/data/templates/sscuttlizr/importDelicious.tpl.php @@ -0,0 +1,42 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    + + + + + + + + + + + + +
    + + +
    + +
    +
    +
    + +

    +
      +
    1. export page at del.icio.us'); ?>.
    2. +
    3. XML file to your computer'); ?>.
    4. +
    5. Browse... to find this file on your computer. The maximum size the file can be is 1MB'); ?>.
    6. +
    7. .
    8. +
    9. Import to start importing the bookmarks; it may take a minute'); ?>.
    10. +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/importNetscape.tpl.php b/data/templates/sscuttlizr/importNetscape.tpl.php new file mode 100644 index 0000000..627a5af --- /dev/null +++ b/data/templates/sscuttlizr/importNetscape.tpl.php @@ -0,0 +1,50 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +
    + + + + + + + + + + + + +
    + + +
    + +
    +
    +
    + +

    +
      +
    1. +

      :

      +
        +
      • File > Import and Export... > Export Favorites'); ?>
      • +
      • Bookmarks > Manage Bookmarks... > File > Export...'); ?>
      • +
      • Bookmarks > Manage Bookmarks... > Tools > Export...'); ?>
      • +
      +
    2. +
    3. Browse... to find the saved bookmark file on your computer. The maximum size the file can be is 1MB'); ?>.
    4. +
    5. .
    6. +
    7. Import to start importing the bookmarks; it may take a minute'); ?>.
    8. +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/importStructure.tpl.php b/data/templates/sscuttlizr/importStructure.tpl.php new file mode 100644 index 0000000..9c54612 --- /dev/null +++ b/data/templates/sscuttlizr/importStructure.tpl.php @@ -0,0 +1,42 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +
    + + + + + + + + +
    +
    +
    + +

    +
      +
    1. +

      +
        +
      • firstTagOfLevel1
      • +
      •     firstTagOfLevel2 (the line starts with two spaces)
      • +
      •     secondTagOfLevel2
      • +
      •     thirdTagOfLevel2
      • +
      • secondTagOfLevel1
      • +
      •     fourthTagOfLevel2 (included into secondTagOfLevel1)
      • +
      +
    2. +
    3. +

      +
    4. +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/jappix.php b/data/templates/sscuttlizr/jappix.php new file mode 100644 index 0000000..b8f4bad --- /dev/null +++ b/data/templates/sscuttlizr/jappix.php @@ -0,0 +1,82 @@ +isAdmin() && isset($GLOBALS['jappixEnableForAdmin']) && $GLOBALS['jappixEnableForAdmin'] == true ) { + $show = true; +} else { + if ( $userservice->isLoggedOn() && isset($GLOBALS['jappixEnableForLogged']) && $GLOBALS['jappixEnableForLogged'] == true ) { + $show = true; + } +} + + + +if ( $show == true ) { + ?> + + \ No newline at end of file diff --git a/data/templates/sscuttlizr/login.tpl.php b/data/templates/sscuttlizr/login.tpl.php new file mode 100644 index 0000000..23c4a5b --- /dev/null +++ b/data/templates/sscuttlizr/login.tpl.php @@ -0,0 +1,42 @@ +includeTemplate($GLOBALS['top_include']); +?> + + +
    +
    +
    + isSessionStable()) { + echo '

    '.T_('Please activate cookies').'

    '; + } + ?> + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    + +

    »

    +
    +
    +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/password.tpl.php b/data/templates/sscuttlizr/password.tpl.php new file mode 100644 index 0000000..4fe0eab --- /dev/null +++ b/data/templates/sscuttlizr/password.tpl.php @@ -0,0 +1,26 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +
    +
    +

    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/data/templates/sscuttlizr/piwik.php b/data/templates/sscuttlizr/piwik.php new file mode 100644 index 0000000..d29a7d4 --- /dev/null +++ b/data/templates/sscuttlizr/piwik.php @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/data/templates/sscuttlizr/profile.tpl.php b/data/templates/sscuttlizr/profile.tpl.php new file mode 100644 index 0000000..60bbae1 --- /dev/null +++ b/data/templates/sscuttlizr/profile.tpl.php @@ -0,0 +1,80 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +
    +
    +
    +
    +
    + isLoggedOn() && $currentUser->isAdmin()) { + ?> +
    +
    getEmail()) ?>
    + getName() != "") { + ?> +
    +
    getName()); ?>
    + getHomepage() != "") { + ?> +
    +
    getHomepage()); ?>
    + +
    +
    getDatetime())); ?>
    + getContent() != "") { + ?> +
    +
    getContent(); ?>
    + getWatchNames($userid); + if ($watching) { + ?> +
    +
    + '. $watchuser .', '; + } + echo substr($list, 0, -2); + ?> +
    + getWatchNames($userid, true); + if ($watchnames) { + ?> +
    +
    + '. $watchuser .', '; + } + echo substr($list, 0, -2); + ?> +
    + +
    +
    >>
    +
    +
    +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/register.tpl.php b/data/templates/sscuttlizr/register.tpl.php new file mode 100644 index 0000000..7c05a39 --- /dev/null +++ b/data/templates/sscuttlizr/register.tpl.php @@ -0,0 +1,50 @@ +includeTemplate($GLOBALS['top_include']); +?> + + +
    +
    +
    +

    .

    + +
    +
    + + + '.T_(' at least 5 characters, alphanumeric (no spaces, no dots or other special ones)') ?> +
    +
    + + +
    +
    + + + +
    +
    + + + '.T_(' to send you your password if you forget it')?> +
    + + 0) {?> +
    + + +
    + + +
    +
    +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/data/templates/sscuttlizr/rss.tpl.php b/data/templates/sscuttlizr/rss.tpl.php new file mode 100644 index 0000000..4aba277 --- /dev/null +++ b/data/templates/sscuttlizr/rss.tpl.php @@ -0,0 +1,30 @@ +\n"; +?> + + + <?php echo $feedtitle; ?> + + + + + + 60 + + + + <?php echo htmlspecialchars($bookmark['title']); ?> + + + + + + + + + + + + diff --git a/data/templates/sscuttlizr/search.menu.php b/data/templates/sscuttlizr/search.menu.php new file mode 100644 index 0000000..cb82a95 --- /dev/null +++ b/data/templates/sscuttlizr/search.menu.php @@ -0,0 +1,55 @@ + + + + diff --git a/data/templates/sscuttlizr/sidebar.block.common.php b/data/templates/sscuttlizr/sidebar.block.common.php new file mode 100644 index 0000000..dfc83ef --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.common.php @@ -0,0 +1,28 @@ +getRelatedTagsByHash($hash); +$commonTags = $b2tservice->tagCloud($commonTags, 5, 90, 225, 'alphabet_asc'); + +if ($commonTags && count($commonTags) > 0) { + ?> + +

    +
    +

    '. filter($row['tag']) .' '; +} +echo $contents ."\n"; +?>

    +
    + + diff --git a/data/templates/sscuttlizr/sidebar.block.linked.php b/data/templates/sscuttlizr/sidebar.block.linked.php new file mode 100644 index 0000000..d3a25a5 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.linked.php @@ -0,0 +1,66 @@ +getCurrentUserId(); +$editingMode = $logged_on_userid !== false; +?> +

    + \ No newline at end of file diff --git a/data/templates/sscuttlizr/sidebar.block.menu.php b/data/templates/sscuttlizr/sidebar.block.menu.php new file mode 100644 index 0000000..94a9fa2 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.menu.php @@ -0,0 +1,80 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} + +// editing mode +if(($logged_on_userid != null) && ($userid === $logged_on_userid)) { + $editingMode = true; +} else { + $editingMode = false; +} + +if(!isset($user) || $user == '') { + $cat_url = createURL('tags', '%2$s'); +} + +$menuTags = $tag2tagservice->getMenuTags($userid); +if (sizeof($menuTags) > 0 || ($userid != 0 && $userid === $logged_on_userid)) { +?> + +

    +'.T_('Menu Tags').' '; + //} +?> +

    + + + + + diff --git a/data/templates/sscuttlizr/sidebar.block.menu2.php b/data/templates/sscuttlizr/sidebar.block.menu2.php new file mode 100644 index 0000000..1c177a5 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.menu2.php @@ -0,0 +1,71 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} + + +$cat_url = createURL('tags', '%s'); +$menu2Tags = $GLOBALS['menu2Tags']; + +if (count($menu2Tags) > 0) { +?> + +

    + + +
    > +
      +' + . sprintf( + '%s', + sprintf($cat_url, $menu2Tag), + $menu2Tag + ) + . '' . "\n"; +} +?> +
    +
    + + diff --git a/data/templates/sscuttlizr/sidebar.block.popular.php b/data/templates/sscuttlizr/sidebar.block.popular.php new file mode 100644 index 0000000..842aa60 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.popular.php @@ -0,0 +1,44 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} +$popularTags = $b2tservice->getPopularTags($userid, $popCount, $logged_on_userid); +$popularTags = $b2tservice->tagCloud($popularTags, 5, 90, 225, 'alphabet_asc'); + +if ($popularTags && count($popularTags) > 0) { +?> + +

    + + + diff --git a/data/templates/sscuttlizr/sidebar.block.recent.php b/data/templates/sscuttlizr/sidebar.block.recent.php new file mode 100644 index 0000000..80ae71c --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.recent.php @@ -0,0 +1,39 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} +$recentTags = $b2tservice->getPopularTags($userid, $popCount, $logged_on_userid, $GLOBALS['defaultRecentDays']); +$recentTags = $b2tservice->tagCloud($recentTags, 5, 90, 225, 'alphabet_asc'); + +if ($recentTags && count($recentTags) > 0) { +?> + +

    +
    + '; + + if(!isset($user) || $user == '') { + $user = ''; + $cat_url = createURL('tags', '%2$s'); + } + + foreach ($recentTags as $row) { + $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']); + $contents .= ' '; + } + echo $contents ."

    \n"; + ?> +

    โ†’

    +
    + + diff --git a/data/templates/sscuttlizr/sidebar.block.related.php b/data/templates/sscuttlizr/sidebar.block.related.php new file mode 100644 index 0000000..60ee486 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.related.php @@ -0,0 +1,40 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} + +if(!isset($userid)) { + $userid = NULL; +} + +if(isset($user) && strlen($user)==0) { + $cat_url = createURL('tags', '%2$s'); +} +if ($currenttag) { + $relatedTags = $b2tservice->getRelatedTags($currenttag, $userid, $logged_on_userid); + if (sizeof($relatedTags) > 0) { +?> + +

    + + + diff --git a/data/templates/sscuttlizr/sidebar.block.search.php b/data/templates/sscuttlizr/sidebar.block.search.php new file mode 100644 index 0000000..d3cd8a5 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.search.php @@ -0,0 +1,51 @@ + + * @author Christian Weiske + * @author Eric Dane + * @license GPL http://www.gnu.org/licenses/gpl.html + * @link http://sourceforge.net/projects/semanticscuttle + */ +/* Service creation: only useful services are created */ +$searchhistoryservice = SemanticScuttle_Service_Factory::get('SearchHistory'); + +$lastSearches = $searchhistoryservice->getAllSearches( + 'all', NULL, 3, NULL, true, false +); + +if ($lastSearches && count($lastSearches) > 0) { +?> + +

    +
    + +' . "\n"; +} +//echo ''; +?> + +
    '; + echo ''; + echo htmlspecialchars($row['shTerms']); + echo ''; + echo ' (' . $row['shNbResults'] . ')'; + echo '
    ...
    +
    + diff --git a/data/templates/sscuttlizr/sidebar.block.tagactions.php b/data/templates/sscuttlizr/sidebar.block.tagactions.php new file mode 100644 index 0000000..3351866 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.tagactions.php @@ -0,0 +1,35 @@ +isLoggedOn()) { + + if ($currentUser->getUsername() == $user) { + $tags = explode('+', $currenttag); + $renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags)); + $renamelink = createURL('tagrename', $currenttag); + $deletelink = createURL('tagdelete', $currenttag); + $tagdesclink = createURL('tagedit', $currenttag); + $commondesclink = createURL('tagcommondescriptionedit', $currenttag); + $addtag2taglinklink = createURL('tag2tagadd', $currenttag); +?> + +

    +
    +
      +
    • + +
    • + +
    • + isAdmin() )): ?> +
    • + +
    • +
    +
    + + diff --git a/data/templates/sscuttlizr/sidebar.block.users.php b/data/templates/sscuttlizr/sidebar.block.users.php new file mode 100644 index 0000000..58fdfb7 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.users.php @@ -0,0 +1,34 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} +$lastUsers = $userservice->getUsers(3); + +if ($lastUsers && count($lastUsers) > 0) { +?> + +

    +
    + +'; +} +//echo ''; +?> + +
    '; + echo ''; + echo SemanticScuttle_Model_UserArray::getName($row); + echo ''; + echo ' ('.T_('bookmarks').')'; + echo '
    ...
    +

    โ†’

    +
    + diff --git a/data/templates/sscuttlizr/sidebar.block.watchlist.php b/data/templates/sscuttlizr/sidebar.block.watchlist.php new file mode 100644 index 0000000..3af9c5a --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.watchlist.php @@ -0,0 +1,60 @@ +getWatchNames($userid); +$watchedBy = $userservice->getWatchNames($userid, true); + + +$closeContacts = array(); // people in my contacts list and who I am also in the contacts list +foreach($watching as $watchuser) { + if(in_array($watchuser, $watchedBy)) { + $closeContacts[] = $watchuser; + } +} + +?> + +0):?> +

    +
    +
      + +
    • + +
    +
    + + + +

    +
    +
      + isLoggedOn() && $currentUser->getUsername() == $user): ?> +
    • +
      + +
      +
    • + + + +
    • + isLoggedOn() && $currentUser->getUsername() == $user): ?> + - x +
    • + + + +
    +
    + +

    +
    +
      + +
    • + +
    + +
    diff --git a/data/templates/sscuttlizr/sidebar.block.watchstatus.php b/data/templates/sscuttlizr/sidebar.block.watchstatus.php new file mode 100644 index 0000000..99574aa --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.block.watchstatus.php @@ -0,0 +1,28 @@ +isLoggedOn()) { + + if ($currentUser->getUsername() != $user) { + $result = $userservice->getWatchStatus($userid, $userservice->getCurrentUserId()); + if ($result) { + $linkText = T_('Remove from Watchlist'); + } else { + $linkText = T_('Add to Watchlist'); + } + $linkAddress = createURL('watch', $user); +?> + +

    +
    +
      +
    • +
    +
    + + \ No newline at end of file diff --git a/data/templates/sscuttlizr/sidebar.linkedtags.inc.php b/data/templates/sscuttlizr/sidebar.linkedtags.inc.php new file mode 100644 index 0000000..020d0f0 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.linkedtags.inc.php @@ -0,0 +1,84 @@ + '', 'stoplist' => $stopList); + } + + $tag2tagservice =SemanticScuttle_Service_Factory::get('Tag2Tag'); + $tagstatservice =SemanticScuttle_Service_Factory::get('TagStat'); + + // link '>' + if($level>1) { + if($editingMode) { + $link = '> '; + } else { + $link = '> '; + } + } else { + $link = ''; + } + + $output = ''; + $output.= ''; + $output.= ''; + $output.= ''; + $output.= $level == 1?'':''; + $output.= str_repeat(' ', $level*2) .$link.''; + $output.= $level == 1?'':''; + //$output.= ' - '. $tagstatservice->getMaxDepth($tag, $linkType, $uId); + + $synonymTags = $tag2tagservice->getAllLinkedTags($tag, '=', $uId); + $synonymTags = is_array($synonymTags)?$synonymTags:array($synonymTags); + sort($synonymTags); + $synonymList = ''; + foreach($synonymTags as $synonymTag) { + //$output.= ", ".$synonymTag; + $synonymList.= $synonymTag.' '; + } + if(count($synonymTags)>0) { + $output.= ', '.$synonymTags[0]; + } + if(count($synonymTags)>1) { + $output.= ', etc'; + } + + /*if($editingMode) { + $output.= ' ('; + $output.= '+'; + if(1) { + $output.= ' - '; + $output.= '-'; + } + $output.= ')'; + }*/ + $output.= ''; + $output.= ''; + + $tags = array($tag); + $tags = array_merge($tags, $synonymTags); + foreach($tags as $tag) { + + if(!in_array($tag, $stopList)) { + $linkedTags = $tag2tagservice->getLinkedTags($tag, '>', $uId); + $precedentTag = $tag; + $stopList[] = $tag; + foreach($linkedTags as $linkedTag) { + $displayLinkedTags = displayLinkedTags($linkedTag, $linkType, $uId, $cat_url, $user, $editingMode, $precedentTag, $level + 1, $stopList); + $output.= $displayLinkedTags['output']; + } + if(isset($displayLinkedTags) && is_array($displayLinkedTags['stopList'])) { + $stopList = array_merge($stopList, $displayLinkedTags['stopList']); + $stopList = array_unique($stopList); + } + } + + } + return array('output' => $output, 'stopList' => $stopList); +} + +?> diff --git a/data/templates/sscuttlizr/sidebar.tpl.php b/data/templates/sscuttlizr/sidebar.tpl.php new file mode 100644 index 0000000..b4fac96 --- /dev/null +++ b/data/templates/sscuttlizr/sidebar.tpl.php @@ -0,0 +1,23 @@ +isAdmin($userid) +): ?> +