aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-10 07:36:51 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-10 07:36:51 +0100
commitb782c46e518afd0713f92fabb76aea9a7c3e5d77 (patch)
treec28dc5d4f45988a01c56876d1ae41d92a73d6191 /boot.php
parenteaa47760bc7bb024b4c41bd41be62fd16f1237ec (diff)
parent7ec687988746e1037d86d25186c2dd5f2addb15b (diff)
downloadvolse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.tar.gz
volse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.tar.bz2
volse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/boot.php b/boot.php
index 48bf54804..f9b826bb7 100755
--- a/boot.php
+++ b/boot.php
@@ -937,26 +937,6 @@ class App {
return $this->groups;
}
- function set_widget($title,$html, $location = 'aside') {
- $this->widgets[] = array('title' => $title, 'html' => $html, 'location' => $location);
- }
-
- function get_widgets($location = '') {
- if($location && count($this->widgets)) {
- $ret = array();
- foreach($this->widgets as $w) {
- if ($w['location'] == $location)
- $ret[] = $w;
- }
- $arr = array('location' => $location, 'widgets' => $ret);
- call_hooks('get_widgets', $arr);
- return $arr['widgets'];
- }
- $arr = array('location' => $location, 'widgets' => $this->widgets);
- call_hooks('get_widgets', $arr);
- return $arr['widgets'];
- }
-
function set_pager_total($n) {
$this->pager['total'] = intval($n);
}
@@ -2076,17 +2056,6 @@ function construct_page(&$a) {
$a->build_pagehead();
- $arr = $a->get_widgets();
- ksort($arr, SORT_NUMERIC);
- if(count($arr)) {
- foreach($arr as $x) {
- if(! array_key_exists($x['location'], $a->page))
- $a->page[$x['location']] = '';
-
- $a->page[$x['location']] .= $x['html'];
- }
- }
-
// Let's say we have a comanche declaration '[region=nav][/region][region=content]$nav $content[/region]'.
// The text 'region=' identifies a section of the layout by that name. So what we want to do here is leave
// $a->page['nav'] empty and put the default content from $a->page['nav'] and $a->page['section']