aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-20 19:12:23 -0700
committerzotlabs <mike@macgirvin.com>2017-09-20 19:12:23 -0700
commit7b060dff68841543e08e516a1dbdcdceea8fb59a (patch)
tree83cf1a73c692c08d9854d9b3886c7d9bf9beee81 /boot.php
parent90f759412b32485b029c2a43f9c01372e9fc83a7 (diff)
downloadvolse-hubzilla-7b060dff68841543e08e516a1dbdcdceea8fb59a.tar.gz
volse-hubzilla-7b060dff68841543e08e516a1dbdcdceea8fb59a.tar.bz2
volse-hubzilla-7b060dff68841543e08e516a1dbdcdceea8fb59a.zip
add HTTP link header to channel page, making it pluggable
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index b6a33b808..9260cea43 100755
--- a/boot.php
+++ b/boot.php
@@ -782,6 +782,10 @@ class App {
public static $is_tablet = false;
public static $comanche;
+
+ public static $channel_links;
+
+
public static $category;
// Allow themes to control internal parameters
@@ -929,6 +933,7 @@ class App {
self::$module = 'home';
}
+
/*
* See if there is any page number information, and initialise
* pagination
@@ -1026,6 +1031,19 @@ class App {
return self::$path;
}
+ public static function get_channel_links() {
+ $s = '';
+ $x = self::$channel_links;
+ if($x && is_array($x) && count($x)) {
+ foreach($x as $y) {
+ if($s) {
+ $s .= ',';
+ }
+ $s .= '<' . $y['url'] . '>;rel="' . $y['rel'] . '";type="' . $y['type'] . '"';
+ }
+ }
+ return $s;
+ }
public static function set_account($acct) {
self::$account = $acct;
}