diff options
author | friendica <info@friendica.com> | 2013-12-18 15:53:40 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-18 15:53:40 -0800 |
commit | 22973357985bfa3a4803fe5c3e53d99117e615b1 (patch) | |
tree | 17f7c810a393467463d51a29aa06229cf7331a0d | |
parent | ee26587a8fd7227a395aba0397692fc80bf8b224 (diff) | |
download | volse-hubzilla-22973357985bfa3a4803fe5c3e53d99117e615b1.tar.gz volse-hubzilla-22973357985bfa3a4803fe5c3e53d99117e615b1.tar.bz2 volse-hubzilla-22973357985bfa3a4803fe5c3e53d99117e615b1.zip |
remove the .wgl (widget list) file processing for ordering widgets on a page. This preceded Comanche and was never used and is now obsolete.
-rwxr-xr-x | boot.php | 38 |
1 files changed, 1 insertions, 37 deletions
@@ -904,44 +904,8 @@ class App { return $this->groups; } - /* - * Use a theme or app specific widget ordering list to determine what widgets should be included - * for each module and in what order and optionally what region of the page to place them. - * For example: - * view/wgl/mod_connections.wgl: - * ----------------------------- - * vcard aside - * follow aside - * findpeople rightside - * collections aside - * - * If your widgetlist does not include a widget that is destined for the page, it will not be rendered. - * You can also use this to change the order of presentation, as they will be presented in the order you specify. - * - */ - function set_widget($title,$html, $location = 'aside') { - $widgetlist_file = 'mod_' . $this->module . '.wgl'; - if(! $this->widgetlist) { - if($this->module && (($f = theme_include($widgetlist_file)) !== '')) { - $s = file($f, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); - if(is_array($s)) { - foreach($s as $x) { - $this->widgetlist[] = explode(' ', $x); - } - } - } - else { - $this->widgets[] = array('title' => $title, 'html' => $html, 'location' => $location); - } - } - if($this->widgetlist) { - foreach($this->widgetlist as $k => $v) { - if($v[0] && $v[0] === $title) { - $this->widgets[$k] = array('title' => $title, 'html' => $html, 'location' => (($v[1]) ?$v[1] : $location)); - } - } - } + $this->widgets[] = array('title' => $title, 'html' => $html, 'location' => $location); } function get_widgets($location = '') { |