diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-20 19:12:23 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-20 19:12:23 -0700 |
commit | 7b060dff68841543e08e516a1dbdcdceea8fb59a (patch) | |
tree | 83cf1a73c692c08d9854d9b3886c7d9bf9beee81 /boot.php | |
parent | 90f759412b32485b029c2a43f9c01372e9fc83a7 (diff) | |
download | volse-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-x | boot.php | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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; } |