we aren't using the module_aside functions or hooks any more
This commit is contained in:
parent
a3d7e8456a
commit
b43c0bc471
32
index.php
32
index.php
@ -151,10 +151,6 @@ $a->set_apps($arr['app_menu']);
|
|||||||
*
|
*
|
||||||
* "module"_init
|
* "module"_init
|
||||||
* "module"_post (only called if there are $_POST variables)
|
* "module"_post (only called if there are $_POST variables)
|
||||||
* "module"_aside
|
|
||||||
* $theme_$module_aside (and $extends_$module_aside) are run first if either exist
|
|
||||||
* if either of these return false, module_aside is not called
|
|
||||||
* This allows a theme to over-ride the sidebar layout completely.
|
|
||||||
* "module"_content - the string return of this function contains our page body
|
* "module"_content - the string return of this function contains our page body
|
||||||
*
|
*
|
||||||
* Modules which emit other serialisations besides HTML (XML,JSON, etc.) should do
|
* Modules which emit other serialisations besides HTML (XML,JSON, etc.) should do
|
||||||
@ -324,34 +320,6 @@ if($a->module_loaded) {
|
|||||||
$func($a);
|
$func($a);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! $a->error) {
|
|
||||||
// If a theme has defined an _aside() function, run that first
|
|
||||||
//
|
|
||||||
// If the theme function doesn't exist, see if this theme extends another,
|
|
||||||
// and see if that other theme has an _aside() function--if it does, run it
|
|
||||||
//
|
|
||||||
// If $aside_default is not False after the theme _aside() function, run the
|
|
||||||
// module's _aside() function too
|
|
||||||
//
|
|
||||||
// This gives themes more control over how the sidebar looks
|
|
||||||
|
|
||||||
$aside_default = true;
|
|
||||||
call_hooks($a->module . '_mod_aside',$placeholder);
|
|
||||||
if(function_exists(str_replace('-','_',current_theme()) . '_' . $a->module . '_aside')) {
|
|
||||||
$func = str_replace('-','_',current_theme()) . '_' . $a->module . '_aside';
|
|
||||||
$aside_default = $func($a);
|
|
||||||
}
|
|
||||||
elseif($aside_default && x($a->theme_info, "extends")
|
|
||||||
&& (function_exists(str_replace('-', '_',$a->theme_info["extends"]) . '_' . $a->module . '_aside'))) {
|
|
||||||
$func = str_replace('-', '_', $a->theme_info["extends"]) . '_' . $a->module . '_aside';
|
|
||||||
$aside_default = $func($a);
|
|
||||||
}
|
|
||||||
if($aside_default && function_exists($a->module . '_aside')) {
|
|
||||||
$func = $a->module . '_aside';
|
|
||||||
$func($a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if((! $a->error) && (function_exists($a->module . '_content'))) {
|
if((! $a->error) && (function_exists($a->module . '_content'))) {
|
||||||
$arr = array('content' => $a->page['content']);
|
$arr = array('content' => $a->page['content']);
|
||||||
call_hooks($a->module . '_mod_content', $arr);
|
call_hooks($a->module . '_mod_content', $arr);
|
||||||
|
Reference in New Issue
Block a user