summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/bookmarks.tpl.php14
-rw-r--r--templates/editbookmark.tpl.php2
-rw-r--r--templates/sidebar.block.linked.php2
-rw-r--r--templates/sidebar.block.menu.php12
-rw-r--r--templates/sidebar.block.recent.php2
-rw-r--r--templates/sidebar.block.search.php2
-rw-r--r--templates/sidebar.tpl.php5
-rw-r--r--templates/tag2tagadd.tpl.php6
-rw-r--r--templates/toolbar.inc.php1
-rw-r--r--templates/top.inc.php2
10 files changed, 30 insertions, 18 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index dfcf1c7..9277083 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -235,7 +235,19 @@ window.onload = playerLoad;
$bnext = '<a href="'. sprintf($nav_url, $user, $currenttag, '?page=') . $next . $sortAmp .'">'. T_('Next') .'</a>';
$blast = '<a href="'. sprintf($nav_url, $user, $currenttag, '?page=') . $totalpages . $sortAmp .'">'. T_('Last') ."</a>\n";
}
- echo '<p class="paging">'. $bfirst .'<span> / </span>'. $bprev .'<span> / </span>'. $bnext .'<span> / </span>'. $blast .'<span> / </span>'. sprintf(T_('Page %d of %d'), $page, $totalpages) ."</p>\n";
+
+ // RSS
+ $brss = '';
+ $size = count($rsschannels);
+ for ($i = 0; $i < $size; $i++) {
+ $brss = '<a style="background:#FFFFFF" href="'. $rsschannels[$i][1] .'" title="'. $rsschannels[$i][0] .'"><img src="'. $GLOBALS['root'] .'rss.gif" width="16" height="16" alt="'. $rsschannels[$i][0] .'" /></a>';
+ }
+
+ echo '<p class="paging">'. $bfirst .'<span> / </span>'. $bprev .'<span> / </span>'. $bnext .'<span> / </span>'. $blast .'<span> / </span>'. sprintf(T_('Page %d of %d'), $page, $totalpages) ." ". $brss ." </p>\n";
+
+
+
+
} else {
echo '<p class="error">'.T_('No bookmarks available').'</p>';
}
diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php
index 3101431..b4c74ba 100644
--- a/templates/editbookmark.tpl.php
+++ b/templates/editbookmark.tpl.php
@@ -112,7 +112,7 @@ if (window.getSelection) {
}
document.write('<ul>');
document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&amp;address=\'+a+\'&amp;title=\'+t+\'&amp;description=\'+d;void 0;"><?php echo sprintf(T_('Post to %s'), $GLOBALS['sitename']); ?><\/a><\/li>');
-document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&amp;popup=1&amp;address=\'+a+\'&amp;title=\'+t+\'&amp;description=\'+d,\'<?php echo $GLOBALS['sitename']; ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=730,height=465,left=\'+(screen.width-730)/2+\',top=\'+(screen.height-425)/2);void 0;"><?php echo sprintf(T_('Post to %s (Pop-up)'), $GLOBALS['sitename']); ?><\/a><\/li>');
+document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&amp;popup=1&amp;address=\'+a+\'&amp;title=\'+t+\'&amp;description=\'+d,\'<?php echo $GLOBALS['sitename']; ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;"><?php echo sprintf(T_('Post to %s (Pop-up)'), $GLOBALS['sitename']); ?><\/a><\/li>');
document.write('<\/ul>');
</script>
diff --git a/templates/sidebar.block.linked.php b/templates/sidebar.block.linked.php
index b534db8..a39f590 100644
--- a/templates/sidebar.block.linked.php
+++ b/templates/sidebar.block.linked.php
@@ -41,7 +41,7 @@ if(($logged_on_userid != null) && ($userid === $logged_on_userid)) {
echo T_('Linked Tags').' ';
//if($userid != null) {
$cUser = $userservice->getUser($userid);
- echo '<small><a href="'.createURL('alltags', $cUser['username']).'">('.T_('all tags').')</a></small>';
+ //echo '<small><a href="'.createURL('alltags', $cUser['username']).'">('.T_('all tags').')</a></small>';
//}
?>
</h2>
diff --git a/templates/sidebar.block.menu.php b/templates/sidebar.block.menu.php
index 20db5e0..de4f0f7 100644
--- a/templates/sidebar.block.menu.php
+++ b/templates/sidebar.block.menu.php
@@ -21,14 +21,12 @@ if(strlen($user)==0) {
}
$menuTags = $tag2tagservice->getMenuTags($userid);
-if (sizeof($menuTags) > 0) {
+if (sizeof($menuTags) > 0 || ($userid != 0 && $userid === $logged_on_userid)) {
?>
<h2>
<?php
echo '<span title="'.sprintf(T_('Tags included into the tag \'%s\''), $GLOBALS['menuTag']).'">'.T_('Menu Tags').'</span> ';
- $cUser = $userservice->getUser($userid);
- echo '<small span title="'.T_('See all tags').'"><a href="'.createURL('alltags', $cUser['username']).'">('.T_('all tags').')</a></small>';
//}
?>
</h2>
@@ -39,8 +37,8 @@ if (sizeof($menuTags) > 0) {
<?php
if($editingMode) {
echo '<tr><td></td><td>';
- echo ' (<a href="'. createURL('tag2tagadd','') .'" rel="tag">'.T_('Add new link').'</a>) ';
- echo ' (<a href="'. createURL('tag2tagdelete','') .'" rel="tag">'.T_('Delete link').'</a>)';
+ echo ' (<a href="'. createURL('tag2tagadd','menu') .'" rel="tag">'.T_('Add new link').'</a>) ';
+ echo ' (<a href="'. createURL('tag2tagdelete','menu') .'" rel="tag">'.T_('Delete link').'</a>)';
echo '</td></tr>';
}
@@ -57,6 +55,10 @@ if (sizeof($menuTags) > 0) {
}
?>
</table>
+
+<?php $cUser = $userservice->getUser($userid); ?>
+<p style="text-align:right"><a href="<?php echo createURL('alltags', $cUser['username']); ?>" title="<?php echo T_('See all your tags')?>"><?php echo T_('all your tags'); ?></a> &rarr;</p>
+
</div>
<?php
diff --git a/templates/sidebar.block.recent.php b/templates/sidebar.block.recent.php
index 6d25478..e720533 100644
--- a/templates/sidebar.block.recent.php
+++ b/templates/sidebar.block.recent.php
@@ -27,7 +27,7 @@ if ($recentTags && count($recentTags) > 0) {
}
echo $contents ."</p>\n";
?>
- <p><a href="<?php echo createURL('populartags'); ?>"><?php echo T_('Popular Tags'); ?></a> &rarr;</p>
+ <p style="text-align:right"><a href="<?php echo createURL('populartags'); ?>"><?php echo T_('Popular Tags'); ?></a> &rarr;</p>
</div>
<?php
diff --git a/templates/sidebar.block.search.php b/templates/sidebar.block.search.php
index 8b00bb4..921b0b9 100644
--- a/templates/sidebar.block.search.php
+++ b/templates/sidebar.block.search.php
@@ -7,7 +7,7 @@ if ($logged_on_userid === false) {
$logged_on_userid = NULL;
}
-$lastSearches = $searchhistoryservice->getAllSearches('all', NULL, 3, NULL, true);
+$lastSearches = $searchhistoryservice->getAllSearches('all', NULL, 3, NULL, true, true);
if ($lastSearches && count($lastSearches) > 0) {
?>
diff --git a/templates/sidebar.tpl.php b/templates/sidebar.tpl.php
index 7ae1fa1..88915fc 100644
--- a/templates/sidebar.tpl.php
+++ b/templates/sidebar.tpl.php
@@ -6,10 +6,5 @@
for ($i = 0; $i < $size; $i++) {
$this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
}
-
- $size = count($rsschannels);
- for ($i = 0; $i < $size; $i++) {
- echo '<p><a href="'. $rsschannels[$i][1] .'" title="'. $rsschannels[$i][0] .'"><img src="'. $GLOBALS['root'] .'rss.gif" width="16" height="16" alt="'. $rsschannels[$i][0] .'" /></a></p>';
- }
?>
</div>
diff --git a/templates/tag2tagadd.tpl.php b/templates/tag2tagadd.tpl.php
index 84ee31a..5c82223 100644
--- a/templates/tag2tagadd.tpl.php
+++ b/templates/tag2tagadd.tpl.php
@@ -7,7 +7,6 @@ $this->includeTemplate($GLOBALS['top_include']);
<p align=right" style="float:right">
<small style="text-align:right"><?php echo T_('Note: use "=" to make synonym two tags. e.g.: france=frenchcountry')?></small><br/>
<small style="text-align:right"><?php echo T_('Note: use ">" to include one tag in another. e.g.: europe>france>paris')?></small><br/>
-<small style="text-align:right"><?php echo sprintf(T_('Note: include a tag into \'%s\' tag (e.g. %s>countries) display the tag into the menu box'), $GLOBALS['menuTag'], $GLOBALS['menuTag'])?></small>
</p>
<p><?php echo T_('Create new link:')?></p>
@@ -16,8 +15,9 @@ $this->includeTemplate($GLOBALS['top_include']);
<input type="text" name="linkType" value=">" size="1" maxlength="1"/>
<input type="text" name="tag2" />
</p>
-
-
+<p>
+<small style="text-align:right"><?php echo sprintf(T_('Note: include a tag into \'%s\' tag (e.g. %s>countries) display the tag into the menu box'), $GLOBALS['menuTag'], $GLOBALS['menuTag'])?></small>
+</p>
<!--p><?php echo T_('Are you sure?'); ?></p-->
<p>
<input type="submit" name="confirm" value="<?php echo T_('Create'); ?>" />
diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php
index 501222d..ab17bc5 100644
--- a/templates/toolbar.inc.php
+++ b/templates/toolbar.inc.php
@@ -21,6 +21,7 @@ if ($userservice->isLoggedOn()) {
?>
<ul id="navigation">
+ <li><a href="<?php echo createURL('populartags', $cUsername); ?>"><?php echo T_('Popular Tags'); ?></a></li>
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
<li class="access"><a href="<?php echo createURL('login'); ?>"><?php echo T_('Log In'); ?></a></li>
<li class="access"><a href="<?php echo createURL('register'); ?>"><?php echo T_('Register'); ?></a></li>
diff --git a/templates/top.inc.php b/templates/top.inc.php
index 28fa4fc..58eacb5 100644
--- a/templates/top.inc.php
+++ b/templates/top.inc.php
@@ -32,7 +32,9 @@ if(isset($_GET['popup'])) {
$this->includeTemplate('toolbar.inc');
}
?>
+<? if(!isset($_GET['popup'])):?>
<span id="welcome"><?php echo $GLOBALS['welcomeMessage'];?></span>
+<?php endif; ?>
</div>
<?php