show profile url in ACL hovertips, add fork identifier to json siteinfo
parent
1e288dc8a3
commit
7e2284043f
2
boot.php
2
boot.php
|
@ -7,7 +7,7 @@ require_once('include/text.php');
|
||||||
require_once("include/pgettext.php");
|
require_once("include/pgettext.php");
|
||||||
require_once('include/nav.php');
|
require_once('include/nav.php');
|
||||||
|
|
||||||
|
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
|
||||||
define ( 'FRIENDIKA_VERSION', '2.3.1116' );
|
define ( 'FRIENDIKA_VERSION', '2.3.1116' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1092 );
|
define ( 'DB_UPDATE_VERSION', 1092 );
|
||||||
|
|
|
@ -235,8 +235,8 @@ ACL.prototype.populate = function(data){
|
||||||
var height = Math.ceil(data.tot / that.nw) * 42;
|
var height = Math.ceil(data.tot / that.nw) * 42;
|
||||||
that.list_content.height(height);
|
that.list_content.height(height);
|
||||||
$(data.items).each(function(){
|
$(data.items).each(function(){
|
||||||
html = "<div class='acl-list-item {4} {5}' id='{2}{3}'>"+that.item_tpl+"</div>";
|
html = "<div class='acl-list-item {4} {5}' title='{6}' id='{2}{3}'>"+that.item_tpl+"</div>";
|
||||||
html = html.format( this.photo, this.name, this.type, this.id, '', this.network );
|
html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link );
|
||||||
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
|
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
|
||||||
//console.log(html);
|
//console.log(html);
|
||||||
that.list_content.append(html);
|
that.list_content.append(html);
|
||||||
|
|
|
@ -53,12 +53,13 @@ function acl_init(&$a){
|
||||||
"photo" => "images/default-group-mm.png",
|
"photo" => "images/default-group-mm.png",
|
||||||
"name" => $g['name'],
|
"name" => $g['name'],
|
||||||
"id" => intval($g['id']),
|
"id" => intval($g['id']),
|
||||||
"uids" => array_map("intval", explode(",",$g['uids']))
|
"uids" => array_map("intval", explode(",",$g['uids'])),
|
||||||
|
"link" => ''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$r = q("SELECT `id`, `name`, `micro`, `network` FROM `contact`
|
$r = q("SELECT `id`, `name`, `micro`, `network`, `url` FROM `contact`
|
||||||
WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != ''
|
WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != ''
|
||||||
$sql_extra
|
$sql_extra
|
||||||
ORDER BY `name` ASC ",
|
ORDER BY `name` ASC ",
|
||||||
|
@ -70,7 +71,8 @@ function acl_init(&$a){
|
||||||
"photo" => $g['micro'],
|
"photo" => $g['micro'],
|
||||||
"name" => $g['name'],
|
"name" => $g['name'],
|
||||||
"id" => intval($g['id']),
|
"id" => intval($g['id']),
|
||||||
"network" => $g['network']
|
"network" => $g['network'],
|
||||||
|
"link" => $g['url'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ function friendika_init(&$a) {
|
||||||
'register_policy' => $register_policy[$a->config['register_policy']],
|
'register_policy' => $register_policy[$a->config['register_policy']],
|
||||||
'admin' => $admin,
|
'admin' => $admin,
|
||||||
'site_name' => $a->config['sitename'],
|
'site_name' => $a->config['sitename'],
|
||||||
|
'platform' => FRIENDIKA_PLATFORM,
|
||||||
'info' => ((x($a->config,'info')) ? $a->config['info'] : '')
|
'info' => ((x($a->config,'info')) ? $a->config['info'] : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue