starting on the journey to comanche everywhere - beginning with widget conversions. There are approximately 20 which need to be wrapped for accessibility to comanche.

This commit is contained in:
friendica 2013-12-08 16:04:28 -08:00
parent 7c6c036f8a
commit d32e05fb5e
4 changed files with 13 additions and 5 deletions

View File

@ -229,7 +229,7 @@ function mini_group_select($uid,$group = '') {
function group_side($every="contacts",$each="group",$edit = false, $group_id = 0, $cid = '') {
function group_side($every="contacts",$each="group",$edit = false, $group_id = 0, $cid = '',$mode = 1) {
$o = '';
@ -272,7 +272,7 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
'cid' => $cid,
'text' => $rr['name'],
'selected' => $selected,
'href' => (($each === 'network') ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']),
'href' => (($mode == 0) ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']),
'edit' => $groupedit,
'ismember' => in_array($rr['id'],$member_of),
);

View File

@ -32,3 +32,11 @@ function widget_tagcloud($args) {
return $o;
}
function widget_collections($args) {
require_once('include/group.php');
$page = argv(0);
$gid = $_REQUEST['gid'];
return group_side($page,$page,true,$_REQUEST['gid'],'',0);
}

View File

@ -47,8 +47,8 @@ function network_init(&$a) {
);
}
$a->page['aside'] .= group_side('network','network',true,$_GET['gid']);
require_once('include/widgets.php');
$a->page['aside'] .= widget_collections(array());
$a->page['aside'] .= posted_date_widget($a->get_baseurl() . '/network',local_user(),false);
$a->page['aside'] .= suggest_widget();

View File

@ -1 +1 @@
2013-12-07.520
2013-12-08.521