From d582054c77b22daeb08d2bff17794b9a69a20dd4 Mon Sep 17 00:00:00 2001 From: mensonge Date: Wed, 12 Dec 2007 16:29:16 +0000 Subject: import of scuttle 0.7.2 git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@1 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/about.tpl.php | 20 ++++ templates/bookmarks.tpl.php | 166 ++++++++++++++++++++++++++++++++ templates/bottom.inc.php | 2 + templates/dynamictags.inc.php | 120 +++++++++++++++++++++++ templates/editbookmark.tpl.php | 120 +++++++++++++++++++++++ templates/editprofile.tpl.php | 56 +++++++++++ templates/error.404.tpl.php | 9 ++ templates/error.500.tpl.php | 9 ++ templates/importDelicious.tpl.php | 42 ++++++++ templates/importNetscape.tpl.php | 50 ++++++++++ templates/login.tpl.php | 35 +++++++ templates/password.tpl.php | 26 +++++ templates/profile.tpl.php | 67 +++++++++++++ templates/register.tpl.php | 40 ++++++++ templates/rss.tpl.php | 28 ++++++ templates/sidebar.block.common.php | 25 +++++ templates/sidebar.block.popular.php | 31 ++++++ templates/sidebar.block.profile.php | 16 +++ templates/sidebar.block.recent.php | 30 ++++++ templates/sidebar.block.related.php | 29 ++++++ templates/sidebar.block.tagactions.php | 27 ++++++ templates/sidebar.block.watchlist.php | 19 ++++ templates/sidebar.block.watchstatus.php | 27 ++++++ templates/sidebar.tpl.php | 13 +++ templates/tagdelete.tpl.php | 20 ++++ templates/tagrename.tpl.php | 41 ++++++++ templates/tags.tpl.php | 27 ++++++ templates/toolbar.inc.php | 27 ++++++ templates/top.inc.php | 47 +++++++++ 29 files changed, 1169 insertions(+) create mode 100644 templates/about.tpl.php create mode 100644 templates/bookmarks.tpl.php create mode 100644 templates/bottom.inc.php create mode 100644 templates/dynamictags.inc.php create mode 100644 templates/editbookmark.tpl.php create mode 100644 templates/editprofile.tpl.php create mode 100644 templates/error.404.tpl.php create mode 100644 templates/error.500.tpl.php create mode 100644 templates/importDelicious.tpl.php create mode 100644 templates/importNetscape.tpl.php create mode 100644 templates/login.tpl.php create mode 100644 templates/password.tpl.php create mode 100644 templates/profile.tpl.php create mode 100644 templates/register.tpl.php create mode 100644 templates/rss.tpl.php create mode 100644 templates/sidebar.block.common.php create mode 100644 templates/sidebar.block.popular.php create mode 100644 templates/sidebar.block.profile.php create mode 100644 templates/sidebar.block.recent.php create mode 100644 templates/sidebar.block.related.php create mode 100644 templates/sidebar.block.tagactions.php create mode 100644 templates/sidebar.block.watchlist.php create mode 100644 templates/sidebar.block.watchstatus.php create mode 100644 templates/sidebar.tpl.php create mode 100644 templates/tagdelete.tpl.php create mode 100644 templates/tagrename.tpl.php create mode 100644 templates/tags.tpl.php create mode 100644 templates/toolbar.inc.php create mode 100644 templates/top.inc.php (limited to 'templates') diff --git a/templates/about.tpl.php b/templates/about.tpl.php new file mode 100644 index 0000000..494a2e3 --- /dev/null +++ b/templates/about.tpl.php @@ -0,0 +1,20 @@ +includeTemplate($GLOBALS['top_include']); +?> + + + +

+ + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php new file mode 100644 index 0000000..368ec8b --- /dev/null +++ b/templates/bookmarks.tpl.php @@ -0,0 +1,166 @@ +getCurrentUserId(); +$this->includeTemplate($GLOBALS['top_include']); + +include('search.inc.php'); +if (count($bookmarks) > 0) { +?> + + + +

+ + / + / + + + +

+ + 0 ? ' start="'. ++$start .'"' : ''); ?> id="bookmarks"> + + '. filter($tag) .', '; + } + $cats = substr($cats, 0, -2); + if ($cats != '') { + $cats = ' to '. $cats; + } + + // Edit and delete links + $edit = ''; + if ($bookmarkservice->editAllowed($row['bId'])) { + $edit = ' - '. T_('Edit') .''; + } + + // User attribution + $copy = ''; + if (!isset($user) || isset($watched)) { + $copy = ' '. T_('by') .' '. $row['username'] .''; + } + + // Udders! + if (!isset($hash)) { + $others = $bookmarkservice->countOthers($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() && ($logged_on_userid != $row['uId'])) { + // Get the username of the current user + $currentUser = $userservice->getCurrentUser(); + $currentUsername = $currentUser[$userservice->getFieldName('username')]; + $copy .= ' - '. T_('Copy') .''; + } + + // Nofollow option + $rel = ''; + if ($GLOBALS['nofollow']) { + $rel = ' rel="nofollow"'; + } + + $address = filter($row['bAddress']); + + // Redirection option + if ($GLOBALS['useredir']) { + $address = $GLOBALS['url_redir'] . $address; + } + + // Output + echo '
  • '."\n"; + echo '\n"; + if ($row['bDescription'] != '') { + echo '
    '. filter($row['bDescription']) ."
    \n"; + } + echo '
    '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
    \n"; + echo "
  • \n"; + } + ?> + + + + '. 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') .''; + } else { + $bnext = ''. T_('Next') .''; + $blast = ''. T_('Last') .''; + } + echo '

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

    '; +} else { +?> + +

    .

    + +includeTemplate('sidebar.tpl'); +$this->includeTemplate($GLOBALS['bottom_include']); +?> diff --git a/templates/bottom.inc.php b/templates/bottom.inc.php new file mode 100644 index 0000000..691287b --- /dev/null +++ b/templates/bottom.inc.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/templates/dynamictags.inc.php b/templates/dynamictags.inc.php new file mode 100644 index 0000000..5a85143 --- /dev/null +++ b/templates/dynamictags.inc.php @@ -0,0 +1,120 @@ +getCurrentUserId(); + +$userPopularTags =& $tagservice->getPopularTags($logged_on_userid, 25, $logged_on_userid); +$userPopularTagsCloud =& $tagservice->tagCloud($userPopularTags, 5, 90, 175); +$userPopularTagsCount = count($userPopularTags); + +if ($userPopularTagsCount > 0) { +?> + + + + \ No newline at end of file diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php new file mode 100644 index 0000000..a590d81 --- /dev/null +++ b/templates/editbookmark.tpl.php @@ -0,0 +1,120 @@ +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; +} +?> + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + + + +
    +
    + +includeTemplate('dynamictags.inc'); + +// Bookmarklets and import links +if (empty($_REQUEST['popup']) && !$showdelete) { +?> + +

    +

    :

    + + + +

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

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

    + + + + + + + + + + + + + + + + + + +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/error.404.tpl.php b/templates/error.404.tpl.php new file mode 100644 index 0000000..fe9401d --- /dev/null +++ b/templates/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/templates/error.500.tpl.php b/templates/error.500.tpl.php new file mode 100644 index 0000000..1d7f7ae --- /dev/null +++ b/templates/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/templates/importDelicious.tpl.php b/templates/importDelicious.tpl.php new file mode 100644 index 0000000..bc4d892 --- /dev/null +++ b/templates/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/templates/importNetscape.tpl.php b/templates/importNetscape.tpl.php new file mode 100644 index 0000000..627a5af --- /dev/null +++ b/templates/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/templates/login.tpl.php b/templates/login.tpl.php new file mode 100644 index 0000000..6137dc0 --- /dev/null +++ b/templates/login.tpl.php @@ -0,0 +1,35 @@ +includeTemplate($GLOBALS['top_include']); +?> + + + +
    +
    + + + + + + + + + + + + + + + + +
    .
    +

    »

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

    + +
    + + + + + + + + + + + + + +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/profile.tpl.php b/templates/profile.tpl.php new file mode 100644 index 0000000..e9ff91b --- /dev/null +++ b/templates/profile.tpl.php @@ -0,0 +1,67 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +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']); +?> \ No newline at end of file diff --git a/templates/register.tpl.php b/templates/register.tpl.php new file mode 100644 index 0000000..7160535 --- /dev/null +++ b/templates/register.tpl.php @@ -0,0 +1,40 @@ +includeTemplate($GLOBALS['top_include']); +?> + + + +

    .

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/rss.tpl.php b/templates/rss.tpl.php new file mode 100644 index 0000000..0f03c06 --- /dev/null +++ b/templates/rss.tpl.php @@ -0,0 +1,28 @@ +\n"; +?> + + + + <?php echo $feedtitle; ?> + + + 60 + + + + <?php echo $bookmark['title']; ?> + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/sidebar.block.common.php b/templates/sidebar.block.common.php new file mode 100644 index 0000000..205ca1e --- /dev/null +++ b/templates/sidebar.block.common.php @@ -0,0 +1,25 @@ +getRelatedTagsByHash($hash); +$commonTags =& $tagservice->tagCloud($commonTags, 5, 90, 225, 'alphabet_asc'); + +if ($commonTags && count($commonTags) > 0) { +?> + +

    +
    +

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

    +
    + + \ No newline at end of file diff --git a/templates/sidebar.block.popular.php b/templates/sidebar.block.popular.php new file mode 100644 index 0000000..fc9703d --- /dev/null +++ b/templates/sidebar.block.popular.php @@ -0,0 +1,31 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} +$popularTags =& $tagservice->getPopularTags($userid, $popCount, $logged_on_userid); +$popularTags =& $tagservice->tagCloud($popularTags, 5, 90, 225, 'alphabet_asc'); + +if ($popularTags && count($popularTags) > 0) { +?> + +

    + + + \ No newline at end of file diff --git a/templates/sidebar.block.profile.php b/templates/sidebar.block.profile.php new file mode 100644 index 0000000..1b8e915 --- /dev/null +++ b/templates/sidebar.block.profile.php @@ -0,0 +1,16 @@ + 0) { + $name = $userinfo['name']; +} else { + $name = $userinfo['username']; +} +?> +

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

    +
    + '; + foreach ($recentTags as $row) { + $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']); + $contents .= ' '; + } + echo $contents ."

    \n"; + ?> +

    +
    + + \ No newline at end of file diff --git a/templates/sidebar.block.related.php b/templates/sidebar.block.related.php new file mode 100644 index 0000000..3a37718 --- /dev/null +++ b/templates/sidebar.block.related.php @@ -0,0 +1,29 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} +if ($currenttag) { + $relatedTags = $tagservice->getRelatedTags($currenttag, $userid, $logged_on_userid); + if (sizeof($relatedTags) > 0) { +?> + +

    + + + \ No newline at end of file diff --git a/templates/sidebar.block.tagactions.php b/templates/sidebar.block.tagactions.php new file mode 100644 index 0000000..836c40c --- /dev/null +++ b/templates/sidebar.block.tagactions.php @@ -0,0 +1,27 @@ +isLoggedOn()) { + $currentUser = $userservice->getCurrentUser(); + $currentUsername = $currentUser[$userservice->getFieldName('username')]; + + if ($currentUsername == $user) { + $tags = explode('+', $currenttag); + $renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags)); + $renamelink = createURL('tagrename', $currenttag); + $deletelink = createURL('tagdelete', $currenttag); +?> + +

    +
    + +
    + + \ No newline at end of file diff --git a/templates/sidebar.block.watchlist.php b/templates/sidebar.block.watchlist.php new file mode 100644 index 0000000..e35fa76 --- /dev/null +++ b/templates/sidebar.block.watchlist.php @@ -0,0 +1,19 @@ +getWatchNames($userid); +if ($watching) { +?> + +

    +
    + +
    + + \ No newline at end of file diff --git a/templates/sidebar.block.watchstatus.php b/templates/sidebar.block.watchstatus.php new file mode 100644 index 0000000..d912846 --- /dev/null +++ b/templates/sidebar.block.watchstatus.php @@ -0,0 +1,27 @@ +isLoggedOn()) { + $currentUser = $userservice->getCurrentUser(); + $currentUsername = $currentUser[$userservice->getFieldName('username')]; + + if ($currentUsername != $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/templates/sidebar.tpl.php b/templates/sidebar.tpl.php new file mode 100644 index 0000000..5f399b5 --- /dev/null +++ b/templates/sidebar.tpl.php @@ -0,0 +1,13 @@ + diff --git a/templates/tagdelete.tpl.php b/templates/tagdelete.tpl.php new file mode 100644 index 0000000..3e9744a --- /dev/null +++ b/templates/tagdelete.tpl.php @@ -0,0 +1,20 @@ +includeTemplate($GLOBALS['top_include']); +?> + +
    +

    +

    + + +

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

    + + +
    + + +
    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/tags.tpl.php b/templates/tags.tpl.php new file mode 100644 index 0000000..7266170 --- /dev/null +++ b/templates/tags.tpl.php @@ -0,0 +1,27 @@ +includeTemplate($GLOBALS['top_include']); +if ($tags && count($tags) > 0) { +?> + +

    + + / + +

    +

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

    + +includeTemplate($GLOBALS['bottom_include']); +?> \ No newline at end of file diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php new file mode 100644 index 0000000..2eb56ac --- /dev/null +++ b/templates/toolbar.inc.php @@ -0,0 +1,27 @@ +isLoggedOn()) { + $cUser = $userservice->getCurrentUser(); + $cUsername = $cUser[$userservice->getFieldName('username')]; +?> + + + + + + + + diff --git a/templates/top.inc.php b/templates/top.inc.php new file mode 100644 index 0000000..64213fd --- /dev/null +++ b/templates/top.inc.php @@ -0,0 +1,47 @@ + + + + + <?php echo filter($GLOBALS['sitename'] . (isset($pagetitle) ? ': ' . $pagetitle : '')); ?> + + + + '; + } + if ($loadjs) { + echo ''; + } + ?> + + + + + + + +'. $subtitle ."\n"; +} +if (isset($error)) { + echo '

    '. $error ."

    \n"; +} +if (isset($msg)) { + echo '

    '. $msg ."

    \n"; +} +?> -- cgit v1.2.3-54-g00ecf