more spaces again ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
676e956a72
commit
622b532f23
|
@ -17,10 +17,11 @@ function findpeople_widget() {
|
||||||
|
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
|
if (get_config('system', 'invitation_only')) {
|
||||||
$x = get_pconfig(local_user(), 'system', 'invites_remaining');
|
$x = get_pconfig(local_user(), 'system', 'invites_remaining');
|
||||||
if ($x || is_site_admin()) {
|
if ($x || is_site_admin()) {
|
||||||
$a->page['aside'] .= '<div class="side-link" id="side-invite-remain">'
|
$a->page['aside'] .= '<div class="side-link" id="side-invite-remain">'
|
||||||
. sprintf( tt('%d invitation available','%d invitations available', $x), $x)
|
. sprintf( tt('%d invitation available', '%d invitations available', $x), $x)
|
||||||
. '</div>' . $inv;
|
. '</div>' . $inv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +96,7 @@ function networks_widget($baseurl, $selected = '') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!feature_enabled(local_user(),'networks')) {
|
if (!feature_enabled(local_user(), 'networks')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,11 +137,11 @@ function fileas_widget($baseurl, $selected = '') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! feature_enabled(local_user(),'filing')) {
|
if (! feature_enabled(local_user(), 'filing')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$saved = get_pconfig(local_user(),'system', 'filetags');
|
$saved = get_pconfig(local_user(), 'system', 'filetags');
|
||||||
if (! strlen($saved)) {
|
if (! strlen($saved)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +152,7 @@ function fileas_widget($baseurl, $selected = '') {
|
||||||
if ($cnt) {
|
if ($cnt) {
|
||||||
foreach ($matches as $mtch) {
|
foreach ($matches as $mtch) {
|
||||||
$unescaped = xmlify(file_tag_decode($mtch[1]));
|
$unescaped = xmlify(file_tag_decode($mtch[1]));
|
||||||
$terms[] = array('name' => $unescaped,'selected' => (($selected == $unescaped) ? 'selected' : ''));
|
$terms[] = array('name' => $unescaped, 'selected' => (($selected == $unescaped) ? 'selected' : ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,22 +171,23 @@ function categories_widget($baseurl, $selected = '') {
|
||||||
|
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
if (! feature_enabled($a->profile['profile_uid'],'categories')) {
|
if (! feature_enabled($a->profile['profile_uid'], 'categories')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$saved = get_pconfig($a->profile['profile_uid'],'system', 'filetags');
|
$saved = get_pconfig($a->profile['profile_uid'], 'system', 'filetags');
|
||||||
if (! strlen($saved)) {
|
if (! strlen($saved)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$matches = false;
|
$matches = false;
|
||||||
$terms = array();
|
$terms = array();
|
||||||
$cnt = preg_match_all('/<(.*?)>/',$saved,$matches,PREG_SET_ORDER);
|
$cnt = preg_match_all('/<(.*?)>/', $saved, $matches, PREG_SET_ORDER);
|
||||||
|
|
||||||
if ($cnt) {
|
if ($cnt) {
|
||||||
foreach ($matches as $mtch) {
|
foreach ($matches as $mtch) {
|
||||||
$unescaped = xmlify(file_tag_decode($mtch[1]));
|
$unescaped = xmlify(file_tag_decode($mtch[1]));
|
||||||
$terms[] = array('name' => $unescaped,'selected' => (($selected == $unescaped) ? 'selected' : ''));
|
$terms[] = array('name' => $unescaped, 'selected' => (($selected == $unescaped) ? 'selected' : ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue