summaryrefslogtreecommitdiff
path: root/actions/public.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-04-15 09:38:19 +0200
committerAdrian Lang <mail@adrianlang.de>2009-04-15 09:38:19 +0200
commit99f4367d03a4bd0676ac2b7ea9b5cfb8cf0f6f83 (patch)
treec84cd6625a0df93ec078317f29eeb0046bb9e59e /actions/public.php
parentfc6cedd2227d9d560736e494f431e2b40b26b45c (diff)
parent2fb8c58c84ef02766364e605d28ecaf90c5fc25f (diff)
Merge branch 'link-rel-paginate' of git://gitorious.org/laconica/meitar. Fixed wrong call of common_local_url.
These changes add opera-readable prev/next relations.
Diffstat (limited to 'actions/public.php')
-rw-r--r--actions/public.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/actions/public.php b/actions/public.php
index 5a380de9a..961606908 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -56,6 +56,18 @@ class PublicAction extends Action
var $page = null;
+ /**
+ * Number of notices being shown on this page.
+ */
+ // Does this need to be here? Should it be?
+ // If it does, this property needs to be
+ // added to other actions as well, like $page.
+ // I'm trying to find a way to capture the
+ // output of the $cnt variable from this
+ // action's showContent() method but need
+ // to do so earlier, I think...?
+ var $count = null;
+
function isReadOnly()
{
return true;
@@ -136,6 +148,17 @@ class PublicAction extends Action
}
/**
+ * Output document relationship links
+ *
+ * @return void
+ */
+ function showRelationshipLinks()
+ {
+ $this->sequenceRelationships($this->page > 1, $this->count > NOTICES_PER_PAGE, // FIXME
+ $this->page, 'public');
+ }
+
+ /**
* Extra head elements
*
* We include a <meta> element linking to the publicxrds page, for OpenID