appears that I missed a few files for Comanchification. so here's mitem.
This commit is contained in:
parent
d32bbaf599
commit
0366991b45
@ -567,4 +567,11 @@ function widget_dirsort($arr) {
|
||||
|
||||
function widget_dirtags($arr) {
|
||||
return dir_tagblock(z_root() . '/directory',null);
|
||||
}
|
||||
}
|
||||
|
||||
function widget_menu_preview($arr) {
|
||||
if(! get_app()->data['menu_item'])
|
||||
return;
|
||||
require_once('include/menu.php');
|
||||
return menu_render(get_app()->data['menu_item']);
|
||||
}
|
||||
|
@ -81,11 +81,8 @@ function mitem_content(&$a) {
|
||||
|
||||
$channel = $a->get_channel();
|
||||
|
||||
$a->set_widget('design',design_tools());
|
||||
|
||||
|
||||
$m = menu_fetch($a->data['menu']['menu_name'],local_user(), get_observer_hash());
|
||||
$a->set_widget('menu_preview',menu_render($m));
|
||||
$a->data['menu_item'] = $m;
|
||||
|
||||
|
||||
if(argc() == 2) {
|
||||
|
@ -1 +1 @@
|
||||
2013-12-21.533
|
||||
2013-12-22.534
|
||||
|
4
view/pdl/mod_mitem.pdl
Normal file
4
view/pdl/mod_mitem.pdl
Normal file
@ -0,0 +1,4 @@
|
||||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=menu_preview][/widget]
|
||||
[/region]
|
Reference in New Issue
Block a user